|
@@ -65,7 +65,7 @@ export default {
|
65
|
65
|
},
|
66
|
66
|
created() {},
|
67
|
67
|
mounted() {
|
68
|
|
- this.$nextTick(function () {
|
|
68
|
+ this.$nextTick(() => {
|
69
|
69
|
// 仅在整个视图都被渲染之后才会运行的代码
|
70
|
70
|
this.divWidth = this.$refs.divWidth.clientWidth / 2
|
71
|
71
|
})
|
|
@@ -92,9 +92,10 @@ export default {
|
92
|
92
|
align-items: center;
|
93
|
93
|
box-sizing: border-box;
|
94
|
94
|
padding: 0 20px;
|
|
95
|
+
|
95
|
96
|
.flex-box-style {
|
96
|
|
- justify-content: start;
|
97
|
97
|
display: flex;
|
|
98
|
+ justify-content: center;
|
98
|
99
|
flex-wrap: wrap;
|
99
|
100
|
align-items: center;
|
100
|
101
|
flex: 3;
|