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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
| <template>
| <div class="blog-container ">
| <span class="blog-pigeonhole">分类</span>
| <div class="blog-scroll ">
| <div class="blog-log-list">
| <div class="blog-log-item" v-for="item in list1">
| <a href="#">
| <span>{{item.name}}</span>
| <span>{{item.count}}</span>
| </a>
| </div>
| </div>
| <div class="blog-log-list">
| <div class="blog-log-item" v-for="item in list2">
| <a href="#">
| <span>{{item.name}}</span>
| <span>{{item.count}}</span>
| </a>
| </div>
| </div>
| <div class="blog-log-list">
| <div class="blog-log-item" v-for="item in list2">
| <a href="#">
| <span>{{item.name}}</span>
| <span>{{item.count}}</span>
| </a>
| </div>
| </div>
| </div>
| </div>
|
| </template>
|
| <script>
| export default {
| data() {
| return {
| list1: [{
| name: "日志",
| count: 10
| }, {
| name: "分类",
| count: 12
| }, {
| name: "标签",
| count: 14
| }],
| list2: [{
| name: "Tag",
| count: 133
| }, {
| name: "专题",
| count: 10
| }, {
| name: "偏好",
| count: 12
| }, {
| name: "星标",
| count: 14
| }]
| }
| }
| }
| </script>
|
| </script>
|
| <style lang="less">
| /*日志部分*/
| .blog-log-list {
| line-height: 1.6;
| padding-left: 3%;
| padding-right: 3%;
|
| flex-wrap: wrap;
| /*让弹性盒元素在必要的时候拆行:*/
| display: -webkit-flex;
| display: flex;
| -webkit-justify-content: center;
| justify-content: center;
| }
|
| .blog-log-item {
| border-left: 2px solid rgba(222, 229, 231, .45);
| width: 23%;
| margin-bottom: 10px;
|
| :first-child {
| border-left: none;
| }
|
| a span:first-child {
| color: #999;
| }
|
| a span:last-child {
| font-weight: 600;
| font-size: 15px;
| }
|
| span {
| display: block;
| }
| }
| </style>
|
|