@burh/nuxt-core 1.0.415 → 1.0.417
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -172,6 +172,10 @@ export default {
|
|
|
172
172
|
type: Boolean,
|
|
173
173
|
default: false
|
|
174
174
|
},
|
|
175
|
+
numbers: {
|
|
176
|
+
type: [Array, null],
|
|
177
|
+
default: null
|
|
178
|
+
},
|
|
175
179
|
templates: null
|
|
176
180
|
},
|
|
177
181
|
model: {
|
|
@@ -192,8 +196,9 @@ export default {
|
|
|
192
196
|
this.modelName = null;
|
|
193
197
|
this.allNumbers = [];
|
|
194
198
|
}
|
|
195
|
-
}
|
|
196
199
|
|
|
200
|
+
this.numbers && (this.allNumbers = this.numbers);
|
|
201
|
+
}
|
|
197
202
|
},
|
|
198
203
|
data() {
|
|
199
204
|
return {
|
|
@@ -301,8 +306,7 @@ export default {
|
|
|
301
306
|
template.user_id
|
|
302
307
|
);
|
|
303
308
|
}
|
|
304
|
-
}
|
|
305
|
-
|
|
309
|
+
}
|
|
306
310
|
};
|
|
307
311
|
</script>
|
|
308
312
|
<style lang="scss">
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
{ 'rounded': rounded },
|
|
6
6
|
{ 'img': img }
|
|
7
7
|
]"
|
|
8
|
-
:style="`--skeleton-w: ${width}px; --skeleton-h: ${height}px;`"
|
|
8
|
+
:style="`--skeleton-w: ${width < (windowWidth - 100) ? `${width}${percentageWidth ? '%' : 'px'}` : '100%'}; --skeleton-h: ${height}${percentageHeight ? '%' : 'px'};`"
|
|
9
9
|
></div>
|
|
10
10
|
</template>
|
|
11
11
|
|
|
@@ -21,6 +21,14 @@ export default {
|
|
|
21
21
|
type: Number,
|
|
22
22
|
default: 15
|
|
23
23
|
},
|
|
24
|
+
percentageWidth: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: false
|
|
27
|
+
},
|
|
28
|
+
percentageHeight: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
default: false
|
|
31
|
+
},
|
|
24
32
|
rounded: {
|
|
25
33
|
type: Boolean,
|
|
26
34
|
default: false
|
|
@@ -29,6 +37,23 @@ export default {
|
|
|
29
37
|
type: Boolean,
|
|
30
38
|
default: false
|
|
31
39
|
}
|
|
40
|
+
},
|
|
41
|
+
data() {
|
|
42
|
+
return {
|
|
43
|
+
windowWidth: 1000
|
|
44
|
+
};
|
|
45
|
+
},
|
|
46
|
+
methods: {
|
|
47
|
+
handleResize() {
|
|
48
|
+
this.windowWidth = window.innerWidth;
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
mounted() {
|
|
52
|
+
window.addEventListener('resize', this.handleResize);
|
|
53
|
+
this.handleResize();
|
|
54
|
+
},
|
|
55
|
+
beforeDestroy() {
|
|
56
|
+
window.removeEventListener('resize', this.handleResize);
|
|
32
57
|
}
|
|
33
58
|
};
|
|
34
59
|
</script>
|
|
@@ -116,6 +141,6 @@ $skeletonBaseLineColor: #edeef1;
|
|
|
116
141
|
$skeletonBaseColor 100%
|
|
117
142
|
);
|
|
118
143
|
background-repeat: no-repeat;
|
|
119
|
-
background-size:
|
|
144
|
+
background-size: 100% 100%;
|
|
120
145
|
}
|
|
121
146
|
</style>
|