layout.vue 2.49 KB
<template>
    <div class="layout">
        <Row type="flex" class-name="row-layout">
            <Col :span="6" class="layout-menu-left">
                <purview-menu></purview-menu>
            </Col>
            <Col :span="18" class="layout-menu-right">
                <user-info></user-info>
                <div class="layout-breadcrumb">
                    <breadcrumb></breadcrumb>
                </div>
                <div class="layout-content">
                    <div class="layout-content-main">
                        <router-view></router-view>
                    </div>
                </div>
                <div class="layout-copy">
                    2011-2016 &copy; YOHO集团
                </div>
            </Col>
        </Row>
    </div>
</template>

<script>
export default {
    name: 'layout'
};
</script>

<style lang="scss">
.layout {
    border: 1px solid #d7dde4;
    background: #f5f7f9;
    border-radius: 4px;
    overflow: hidden;

    .row-layout {
        position: absolute;
        min-width: 800px;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;

        .layout-menu-left {
            background: #464c5b;
            min-width: 170px;
            max-width: 250px;
        }

        .layout-menu-right {
            flex: 1;
        }
    }
}



.layout-breadcrumb {
    padding: 10px 15px 0;
}

.layout-content {
    min-height: 200px;
    margin: 15px;
    overflow: hidden;
    background: #fff;
    border-radius: 4px;
}

.layout-content-main {
    padding: 10px;
}

.layout-copy {
    text-align: center;
    padding: 10px 0 20px;
    color: #9ea7b4;
}

.layout-header {
    height: 60px !important;
    background: #fff;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .1);
    font-size: 14px;
    line-height: 20px;
    padding: 20px;
    
    .shop-info {
        text-align: right;
        padding-right: 20px;
        
        a {
            color: #F44545;
            font-size: 12px;
            margin-left: 10px;
        }
    }
}

.layout-logo-left {
    width: 90%;
    height: 30px;
    border-radius: 3px;
    background-image: url(../images/logo.png);
    background-repeat: no-repeat;
    margin: 15px auto;
}

.layout-ceiling-main a {
    color: #9ba7b5;
}

.layout-hide-text .layout-text {
    display: none;
}

.ivu-col {
    transition: width .2s ease-in-out;
}
.ivu-menu-item-group-title {
    color: #9ea7b4 !important;
}
.ivu-menu-item {
    color: #fff !important;
}
</style>