@mixd-id/web-scaffold 0.1.230406191 → 0.1.230406193
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.
package/package.json
CHANGED
|
@@ -249,17 +249,15 @@ export default{
|
|
|
249
249
|
|
|
250
250
|
disableBodyScroll(){
|
|
251
251
|
this.scrollPosition = window.pageYOffset || document.documentElement.offsetTop
|
|
252
|
-
document.body.style.
|
|
253
|
-
document.body.style.
|
|
252
|
+
document.body.classList.add(this.$style.htmlNoScroll)
|
|
253
|
+
document.body.classList.add(this.$style.bodyNoScroll)
|
|
254
254
|
document.body.style.top = `-${this.scrollPosition}px`;
|
|
255
|
-
document.body.style.width = '100%';
|
|
256
255
|
},
|
|
257
256
|
|
|
258
257
|
enableBodyScroll(){
|
|
259
|
-
document.body.style.removeProperty('overflow');
|
|
260
|
-
document.body.style.removeProperty('position');
|
|
261
258
|
document.body.style.removeProperty('top');
|
|
262
|
-
document.body.style.
|
|
259
|
+
document.body.classList.remove(this.$style.bodyNoScroll)
|
|
260
|
+
document.body.classList.remove(this.$style.htmlNoScroll)
|
|
263
261
|
window.scrollTo(0, this.scrollPosition);
|
|
264
262
|
},
|
|
265
263
|
|
|
@@ -318,11 +316,6 @@ export default{
|
|
|
318
316
|
overflow: hidden;
|
|
319
317
|
position: relative;
|
|
320
318
|
background-image: v-bind(bgImages[0]);
|
|
321
|
-
/*touch-action: none;*/
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
.comp.noTouchAction{
|
|
325
|
-
/*touch-action: none;*/
|
|
326
319
|
}
|
|
327
320
|
|
|
328
321
|
.comp img{
|
|
@@ -365,7 +358,21 @@ export default{
|
|
|
365
358
|
@apply bg-primary-500;
|
|
366
359
|
}
|
|
367
360
|
|
|
361
|
+
.htmlNoScroll{
|
|
362
|
+
min-height: 100.3%;
|
|
363
|
+
overscroll-behavior-y: none;
|
|
364
|
+
height: 100%;
|
|
365
|
+
overflow: hidden;
|
|
366
|
+
}
|
|
368
367
|
.bodyNoScroll{
|
|
368
|
+
overscroll-behavior: none;
|
|
369
|
+
overscroll-behavior-y: none;
|
|
370
|
+
overflow: hidden;
|
|
371
|
+
position: fixed;
|
|
372
|
+
width: 100%;
|
|
373
|
+
margin: 0;
|
|
374
|
+
max-height: 100%;
|
|
375
|
+
-webkit-overflow-scrolling: touch;
|
|
369
376
|
}
|
|
370
377
|
|
|
371
378
|
@media screen(md){
|
|
@@ -186,7 +186,7 @@ const plugin = Plugin(function({ addBase, config, theme }) {
|
|
|
186
186
|
transform: 'translate3d(0, 10px, 0)'
|
|
187
187
|
},
|
|
188
188
|
|
|
189
|
-
'.slideleft-enter-active, .slideleft
|
|
189
|
+
'.slideleft-enter-active, .slideleft-leave-active': {
|
|
190
190
|
transition: 'all 300ms cubic-bezier(0.25, 1, 0.5, 1)',
|
|
191
191
|
transform: 'translate3d(0, 0, 0)'
|
|
192
192
|
},
|
|
@@ -111,7 +111,7 @@ export default{
|
|
|
111
111
|
group: _.group
|
|
112
112
|
}
|
|
113
113
|
})
|
|
114
|
-
console.log(this.extraComponents)
|
|
114
|
+
console.log(Array.isArray(this.extraComponents))
|
|
115
115
|
})
|
|
116
116
|
}
|
|
117
117
|
|
|
@@ -126,7 +126,7 @@ export default{
|
|
|
126
126
|
combinedComponents(){
|
|
127
127
|
return [
|
|
128
128
|
...(this.components ?? []),
|
|
129
|
-
...(this.extraComponents
|
|
129
|
+
...(Array.isArray(this.extraComponents) ? this.extraComponents : [])
|
|
130
130
|
]
|
|
131
131
|
},
|
|
132
132
|
|