leisure-core 0.5.34 → 0.5.36
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.
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
<div class="form-grid" :style="gridStyle">
|
|
10
10
|
<el-form-item
|
|
11
11
|
v-for="(item, index) in formColumns"
|
|
12
|
-
:key="index"
|
|
13
12
|
:label="item.label"
|
|
14
13
|
:prop="item.prop"
|
|
14
|
+
:key="`form-item-${index}-${item.prop}`"
|
|
15
15
|
class="leisure-form-item-class"
|
|
16
16
|
>
|
|
17
17
|
<div class="comContainerClass">
|
|
@@ -21,12 +21,13 @@
|
|
|
21
21
|
v-bind="mergeProps(getComponentProps(item), item.attr || {})"
|
|
22
22
|
v-on="item.event"
|
|
23
23
|
class="compontClass"
|
|
24
|
+
:key="`component-${index}-${item.prop}-${item.type}`"
|
|
24
25
|
>
|
|
25
26
|
<template v-if="item.type === 'radio'">
|
|
26
27
|
<el-radio
|
|
27
|
-
v-for="(option,
|
|
28
|
+
v-for="(option, radioIndex) in item.options"
|
|
28
29
|
:label="option.id"
|
|
29
|
-
:key="index
|
|
30
|
+
:key="`radio-${index}-${radioIndex}`"
|
|
30
31
|
>{{ option.lable }}</el-radio
|
|
31
32
|
>
|
|
32
33
|
</template>
|
|
@@ -36,6 +37,7 @@
|
|
|
36
37
|
:label="item.kv.label"
|
|
37
38
|
:value="item.kv.key"
|
|
38
39
|
:keyNum="item.keyNum"
|
|
40
|
+
:key="`select-${index}-${item.prop}`"
|
|
39
41
|
/>
|
|
40
42
|
</template>
|
|
41
43
|
</component>
|
|
@@ -146,6 +148,7 @@ export default {
|
|
|
146
148
|
},
|
|
147
149
|
},
|
|
148
150
|
select: { component: "le-select", props: {} },
|
|
151
|
+
smulti: { component: "le-select-multi", props: {} },
|
|
149
152
|
image: { component: "le-image-container", props: {} },
|
|
150
153
|
area: {
|
|
151
154
|
component: "le-area",
|
|
@@ -226,6 +229,7 @@ le-form-container {
|
|
|
226
229
|
display: flex;
|
|
227
230
|
display: -webkit-flex;
|
|
228
231
|
line-height: inherit;
|
|
232
|
+
justify-content: center; /* 水平居中 */
|
|
229
233
|
|
|
230
234
|
.compontClass {
|
|
231
235
|
flex: 1;
|