inleft
2022-01-15 41b36f013d4103ffc59fd58feb6b6177ee5b04f7
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">
56a4b8 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
ad2b70 66                 }]
L 67             }
68         }
69     }
70 </script>
71
72 </script>
73
74 <style lang="less">
75     /*日志部分*/
76     .blog-log-list {
77         line-height: 1.6;
78         padding-left: 3%;
79         padding-right: 3%;
80
81         flex-wrap: wrap;
82         /*让弹性盒元素在必要的时候拆行:*/
83         display: -webkit-flex;
84         display: flex;
85         -webkit-justify-content: center;
86         justify-content: center;
87     }
88
89     .blog-log-item {
90         border-left: 2px solid rgba(222, 229, 231, .45);
91         width: 23%;
92         margin-bottom: 10px;
93
94         :first-child {
95             border-left: none;
96         }
97
d629d9 98         a {
L 99             color: black;
100         }
101
56a4b8 102         .link span:first-child {
ad2b70 103             color: #999;
L 104         }
105
56a4b8 106         .link span:last-child {
ad2b70 107             font-weight: 600;
L 108             font-size: 15px;
109         }
110
111         span {
112             display: block;
113         }
114     }
115 </style>