home.vue 1.22 KB
<template>
    <div class="layout">
        <doc-header></doc-header>
        <div class="layout-content">
            <div class="layout-left">
                <doc-menu></doc-menu>
            </div>
            <div class="layout-right">
                <article>
                    <doc-search></doc-search>
                    <doc-ctrl-list></doc-ctrl-list>
                </article>
            </div>
        </div>
        <BackTop></BackTop>
    </div>
</template>

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

<style lang="scss">
.layout {
    display: flex;
    flex-direction: column;
    background: #f5f7f9;
}
.layout-content {
    background: #fff;
    width: 90%;
    margin: 30px auto 20px;
    border-radius: 6px;
    box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
    display: flex;
    flex-direction: row;
    flex: auto;
}
.layout-left {
    width: 200px;
    padding-top: 5px;
    padding-bottom: 5px;
}
.layout-right {
    flex: 1;
    position: relative;

    & article:after {
        content: "";
        display: block;
        width: 1px;
        height: 100%;
        background: #dddee1;
        position: absolute;
        top: 0;
        bottom: 0;
        left: -1px;
        z-index: 1
    }
}
</style>