inleft
2022-01-15 41b36f013d4103ffc59fd58feb6b6177ee5b04f7
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<template>
    <div class="blog-container archive">
        <span class="blog-pigeonhole">
            <router-link to="/tagTime?type=1">
                归档信息
            </router-link>
        </span>
        <div class="blog-scroll ">
            <div v-for="yearData in myData">
                <router-link to="/tagTime?type=2">
                    <p class="blog-pigeonhole-p">{{yearData.year}}</p>
                </router-link>
                <div class="blog-pigeonhole-list">
            
                    <div class="blog-pigeonhole-item" v-for="item in yearData.list">
                        <router-link to="/tagTime?type=3">
                            <span>{{item.month}}月</span>
                        </router-link>
                        <span>{{item.count}}篇</span>
            
                    </div>
                </div>
            </div>
        </div>
    </div>
 
</template>
 
<script>
    export default {
        data() {
            return {
                "myData": [{
                        "year": "2022",
                        "list": [{
                                "month": "12",
                                "count": 10
                            },
                            {
                                "month": "10",
                                "count": 11
                            },
                            {
                                "month": "9",
                                "count": 9
                            }
                        ]
                    },
                    {
                        "year": "2021",
                        "list": [{
                                "month": "12",
                                "count": 8
                            },
                            {
                                "month": "10",
                                "count": 7
                            },
                            {
                                "month": "9",
                                "count": 6
                            },
                            {
                                "month": "8",
                                "count": 5
                            },
                            {
                                "month": "7",
                                "count": 4
                            },
                            {
                                "month": "6",
                                "count": 3
                            },
                            {
                                "month": "5",
                                "count": 2
                            },
                            {
                                "month": "4",
                                "count": 1
                            }
                        ]
                    }
                ],
            }
        }
    }
</script>
 
</script>
 
<style lang="less">
    /*归档部分*/
    .archive {
        a {
            color: black;
        }
    }
 
    .blog-pigeonhole {
        font-size: 15px;
    }
 
    .blog-pigeonhole-p {
        width: 20%;
        text-align: center;
        line-height: 20px;
        border-radius: 6px 6px 6px 6px;
        /*background-color: #edf0f3;*/
        margin-left: 3%;
        margin-bottom: 3%;
        opacity: 0.7;
    }
 
    .blog-pigeonhole-list {
        line-height: 1.6;
        padding-left: 3%;
        padding-right: 3%;
        /*display: flex; !*弹性盒子*!*/
        /*justify-content: flex-end; !*在弹性盒对象的 <div> 元素中的各项周围留有空白:*!*/
 
        display: flex;
        display: -webkit-flex;
        -webkit-justify-content: flex-start;
        justify-content: flex-start;
 
        flex-wrap: wrap;
        /*让弹性盒元素在必要的时候拆行:*/
        align-content: flex-start;
        -webkit-align-content: flex-start;
 
    }
 
    .blog-pigeonhole-item {
        min-width: 22%;
        margin-left: 1.5%;
        margin-right: 1.5%;
        margin-bottom: 5%;
 
        a span:first-child {
            height: 22px;
            background-color: #edf0f3;
            border-radius: 6px 6px 0 0;
            opacity: .8;
            color: #999aaa;
            line-height: 22px;
            margin-bottom: 1px;
            text-align: center;
        }
 
        a span:last-child {
            height: 22px;
            background-color: #f6f8fa;
            border-radius: 0 0 6px 6px;
            color: #555666;
            line-height: 20px;
            font-weight: 600;
            text-align: center;
        }
 
        span {
            display: block;
        }
    }
</style>