App.vue
949 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<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>