home.vue
1.22 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<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>