commit | author | age
|
ad2b70
|
1 |
<template> |
41b36f
|
2 |
<div class="blog-container "> |
ad2b70
|
3 |
<span class="blog-pigeonhole">分类</span> |
L |
4 |
<div class="blog-scroll "> |
|
5 |
<div class="blog-log-list"> |
|
6 |
<div class="blog-log-item" v-for="item in list1"> |
aab811
|
7 |
<router-link to='/main1'> |
ad2b70
|
8 |
<span>{{item.name}}</span> |
56a4b8
|
9 |
</router-link> |
I |
10 |
|
|
11 |
<span>{{item.count}}</span> |
ad2b70
|
12 |
</div> |
L |
13 |
</div> |
|
14 |
<div class="blog-log-list"> |
|
15 |
<div class="blog-log-item" v-for="item in list2"> |
56a4b8
|
16 |
<router-link to="/box1"> |
ad2b70
|
17 |
<span>{{item.name}}</span> |
56a4b8
|
18 |
</router-link> |
I |
19 |
<span>{{item.count}}</span> |
|
20 |
|
ad2b70
|
21 |
</div> |
L |
22 |
</div> |
|
23 |
</div> |
|
24 |
</div> |
|
25 |
|
|
26 |
</template> |
|
27 |
|
|
28 |
<script> |
|
29 |
export default { |
|
30 |
data() { |
|
31 |
return { |
|
32 |
list1: [{ |
|
33 |
name: "日志", |
|
34 |
count: 10 |
|
35 |
}, { |
|
36 |
name: "分类", |
|
37 |
count: 12 |
|
38 |
}, { |
|
39 |
name: "标签", |
|
40 |
count: 14 |
|
41 |
}], |
|
42 |
list2: [{ |
|
43 |
name: "Tag", |
|
44 |
count: 133 |
|
45 |
}, { |
|
46 |
name: "专题", |
|
47 |
count: 10 |
|
48 |
}, { |
|
49 |
name: "偏好", |
|
50 |
count: 12 |
|
51 |
}, { |
|
52 |
name: "星标", |
|
53 |
count: 14 |
41b36f
|
54 |
},{ |
I |
55 |
name: "Tag", |
|
56 |
count: 133 |
|
57 |
}, { |
|
58 |
name: "专题", |
|
59 |
count: 10 |
|
60 |
}, { |
|
61 |
name: "偏好", |
|
62 |
count: 12 |
|
63 |
}, { |
|
64 |
name: "星标", |
|
65 |
count: 14 |
aab811
|
66 |
},{ |
I |
67 |
name: "Tag", |
|
68 |
count: 133 |
|
69 |
}, { |
|
70 |
name: "专题", |
|
71 |
count: 10 |
|
72 |
}, { |
|
73 |
name: "偏好", |
|
74 |
count: 12 |
|
75 |
}, { |
|
76 |
name: "星标", |
|
77 |
count: 14 |
|
78 |
},{ |
|
79 |
name: "Tag", |
|
80 |
count: 133 |
|
81 |
}, { |
|
82 |
name: "专题", |
|
83 |
count: 10 |
|
84 |
}, { |
|
85 |
name: "偏好", |
|
86 |
count: 12 |
|
87 |
}, { |
|
88 |
name: "星标", |
|
89 |
count: 14 |
ad2b70
|
90 |
}] |
L |
91 |
} |
|
92 |
} |
|
93 |
} |
|
94 |
</script> |
|
95 |
|
|
96 |
</script> |
|
97 |
|
|
98 |
<style lang="less"> |
|
99 |
/*日志部分*/ |
|
100 |
.blog-log-list { |
|
101 |
line-height: 1.6; |
|
102 |
padding-left: 3%; |
|
103 |
padding-right: 3%; |
|
104 |
|
|
105 |
flex-wrap: wrap; |
|
106 |
/*让弹性盒元素在必要的时候拆行:*/ |
|
107 |
display: -webkit-flex; |
|
108 |
display: flex; |
|
109 |
-webkit-justify-content: center; |
|
110 |
justify-content: center; |
|
111 |
} |
|
112 |
|
|
113 |
.blog-log-item { |
|
114 |
border-left: 2px solid rgba(222, 229, 231, .45); |
|
115 |
width: 23%; |
|
116 |
margin-bottom: 10px; |
|
117 |
|
|
118 |
:first-child { |
|
119 |
border-left: none; |
|
120 |
} |
|
121 |
|
d629d9
|
122 |
a { |
L |
123 |
color: black; |
|
124 |
} |
|
125 |
|
56a4b8
|
126 |
.link span:first-child { |
ad2b70
|
127 |
color: #999; |
L |
128 |
} |
|
129 |
|
56a4b8
|
130 |
.link span:last-child { |
ad2b70
|
131 |
font-weight: 600; |
L |
132 |
font-size: 15px; |
|
133 |
} |
|
134 |
|
|
135 |
span { |
|
136 |
display: block; |
|
137 |
} |
|
138 |
} |
|
139 |
</style> |