@mixd-id/web-scaffold 0.1.230406093 → 0.1.230406094
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
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div :class="$style.comp" @mousedown.prevent="mouseDown" @touchstart.passive="mouseDown">
|
|
3
3
|
|
|
4
|
-
<div ref="inner" :class="
|
|
5
|
-
<div v-for="item in items" :class="
|
|
4
|
+
<div ref="inner" :class="computedContainerClass">
|
|
5
|
+
<div v-for="item in items" :class="computedItemClass">
|
|
6
6
|
<component :is="item.type"
|
|
7
7
|
:="item"
|
|
8
8
|
@click.stop="editModeClick(item.uid)" />
|
|
@@ -69,17 +69,19 @@ export default{
|
|
|
69
69
|
|
|
70
70
|
computed: {
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+
computedContainerClass(){
|
|
73
73
|
return [
|
|
74
74
|
this.$style.inner,
|
|
75
|
+
this.containerClass
|
|
75
76
|
]
|
|
76
77
|
.filter(_ => _)
|
|
77
78
|
.join(' ')
|
|
78
79
|
},
|
|
79
80
|
|
|
80
|
-
|
|
81
|
+
computedItemClass(){
|
|
81
82
|
return [
|
|
82
|
-
this.$style.item
|
|
83
|
+
this.$style.item,
|
|
84
|
+
this.itemClass
|
|
83
85
|
]
|
|
84
86
|
.filter(_ => _)
|
|
85
87
|
.join(' ')
|
|
@@ -6,24 +6,15 @@
|
|
|
6
6
|
<div class="grid grid-cols-2 gap-4">
|
|
7
7
|
|
|
8
8
|
<div>
|
|
9
|
-
<label class="text-text-400">Ratio</label>
|
|
10
|
-
<Dropdown v-model="item.props.ratio[idx]" class="mt-1" @change="apply">
|
|
11
|
-
<option value="1/1">1/1</option>
|
|
12
|
-
<option value="2/1">2/1</option>
|
|
13
|
-
<option value="4/1">4/1</option>
|
|
14
|
-
<option value="4/3">4/3</option>
|
|
15
|
-
<option value="8/3">8/3</option>
|
|
16
|
-
<option value="8/5.6">8/5.6</option>
|
|
17
|
-
</Dropdown>
|
|
18
|
-
</div>
|
|
19
|
-
|
|
20
|
-
<div v-if="Array.isArray(item.props.gap)">
|
|
21
9
|
<label class="text-text-400">Gap</label>
|
|
22
|
-
<Dropdown v-model="
|
|
23
|
-
<option value="0">0</option>
|
|
24
|
-
<option value="
|
|
25
|
-
<option value="
|
|
26
|
-
<option value="
|
|
10
|
+
<Dropdown v-model="containerGap[idx]" class="mt-1" @change="apply">
|
|
11
|
+
<option :value="`${viewType}gap-0`">0</option>
|
|
12
|
+
<option :value="`${viewType}gap-1`">1</option>
|
|
13
|
+
<option :value="`${viewType}gap-2`">2</option>
|
|
14
|
+
<option :value="`${viewType}gap-3`">3</option>
|
|
15
|
+
<option :value="`${viewType}gap-4`">4</option>
|
|
16
|
+
<option :value="`${viewType}gap-5`">5</option>
|
|
17
|
+
<option :value="`${viewType}gap-6`">6</option>
|
|
27
18
|
</Dropdown>
|
|
28
19
|
</div>
|
|
29
20
|
|
|
@@ -133,7 +124,13 @@ export default{
|
|
|
133
124
|
if(!Array.isArray(this.item.items))
|
|
134
125
|
this.item.items = []
|
|
135
126
|
return this.item.items
|
|
136
|
-
}
|
|
127
|
+
},
|
|
128
|
+
|
|
129
|
+
containerGap(){
|
|
130
|
+
if(!Array.isArray(this.item.props.containerGap))
|
|
131
|
+
this.item.props.containerGap = []
|
|
132
|
+
return this.item.props.containerGap
|
|
133
|
+
},
|
|
137
134
|
|
|
138
135
|
}
|
|
139
136
|
|