@mixd-id/web-scaffold 0.1.230406204 → 0.1.230406206
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
|
@@ -205,10 +205,10 @@ export default{
|
|
|
205
205
|
const ix = parseInt(this._props['ix'] + dx)
|
|
206
206
|
|
|
207
207
|
if(!this._props['direction']){
|
|
208
|
-
if(Math.abs(dy) >
|
|
208
|
+
if(Math.abs(dy) > 3){
|
|
209
209
|
this._props['direction'] = 'vertical'
|
|
210
210
|
}
|
|
211
|
-
else if(Math.abs(dx) >
|
|
211
|
+
else if(Math.abs(dx) > 3){
|
|
212
212
|
this._props['direction'] = 'horizontal'
|
|
213
213
|
this.disableBodyScroll()
|
|
214
214
|
}
|
package/src/widgets/FAQ.vue
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
<h3>{{ title }}</h3>
|
|
4
4
|
<div :class="$style.items">
|
|
5
5
|
<div v-for="(item, idx) in items" :class="$style.item">
|
|
6
|
-
<input type="checkbox" :name="$style.comp" :id="`${$style.comp}${idx}`" />
|
|
7
|
-
<label :for="`${$style.comp}${idx}`" class="text-lg">{{ item.question }}</label>
|
|
6
|
+
<input type="checkbox" :name="$style.comp" :id="`${$style.comp}${id}${idx}`" />
|
|
7
|
+
<label :for="`${$style.comp}${id}${idx}`" class="text-lg">{{ item.question }}</label>
|
|
8
8
|
<div>
|
|
9
9
|
<div class="p-4 pt-0 pb-8 text-lg" v-html="item.answer"></div>
|
|
10
10
|
</div>
|
|
@@ -29,7 +29,13 @@ export default{
|
|
|
29
29
|
props:{
|
|
30
30
|
title: String,
|
|
31
31
|
items: Array
|
|
32
|
-
}
|
|
32
|
+
},
|
|
33
|
+
|
|
34
|
+
data(){
|
|
35
|
+
return {
|
|
36
|
+
id: this.uniqid()
|
|
37
|
+
}
|
|
38
|
+
}
|
|
33
39
|
|
|
34
40
|
}
|
|
35
41
|
|
|
@@ -755,6 +755,13 @@ export default{
|
|
|
755
755
|
}
|
|
756
756
|
}
|
|
757
757
|
|
|
758
|
+
const whitelistProps = [ 'containerVariant' ]
|
|
759
|
+
whitelistProps.forEach((key) => {
|
|
760
|
+
if(component.props[key]){
|
|
761
|
+
instance[key] = component.props[key]
|
|
762
|
+
}
|
|
763
|
+
})
|
|
764
|
+
|
|
758
765
|
if(Array.isArray(component.items)){
|
|
759
766
|
instance.items = component.items.map((_) => this.createComponentInstance(_)).filter(_=>_)
|
|
760
767
|
}
|