App.vue 949 Bytes
<template>
    <div class="layout">
        <Layout>
            <Topbar></Topbar>
            <Layout class="main">
                <Sider hide-trigger :style="{background: '#fff'}">
                    <Sidebar></Sidebar>
                </Sider>
                <Layout :style="{padding: '24px'}">
                    <Content :style="{padding: '24px', background: '#fff'}">
                        <router-view></router-view>
                    </Content>
                </Layout>
            </Layout>
        </Layout>
    </div>
</template>
<script>
import Topbar from 'common/Topbar.vue'
import Sidebar from 'common/Sidebar.vue'

export default {
    components: {
        Topbar,
        Sidebar
    }
}
</script>
<style scoped lang="scss">
.layout{
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #f5f7f9;
}

.main {
    flex: 1;
}
</style>