home.vue
1.2 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">
<layout-header></layout-header>
<div class="layout-content">
<div class="layout-left">
<layout-search></layout-search>
</div>
<div class="layout-right">
<layout-list></layout-list>
</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: 380px;
padding: 20px;
padding-top: 10px;
border-right: solid 1px #dddee1;
}
.layout-right {
flex: 1;
padding: 20px;
padding-top: 10px;
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>