meixioacomponent 0.2.13 → 0.2.14
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
|
@@ -106,8 +106,8 @@
|
|
|
106
106
|
<el-option
|
|
107
107
|
v-for="item in selectData"
|
|
108
108
|
:key="item.value"
|
|
109
|
-
:label="item
|
|
110
|
-
:value="item
|
|
109
|
+
:label="item[`${selectLabelKey}`]"
|
|
110
|
+
:value="item[`${selectValueKey}`]"
|
|
111
111
|
>
|
|
112
112
|
</el-option>
|
|
113
113
|
</el-select>
|
|
@@ -235,6 +235,27 @@ export default {
|
|
|
235
235
|
return this.selectStore.getData();
|
|
236
236
|
},
|
|
237
237
|
|
|
238
|
+
selectLabelKey() {
|
|
239
|
+
let config = this.$props.config?.config;
|
|
240
|
+
|
|
241
|
+
if (config) {
|
|
242
|
+
return config.label.key;
|
|
243
|
+
} else {
|
|
244
|
+
return `label`;
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
selectValueKey() {
|
|
248
|
+
let config = this.$props.config?.config;
|
|
249
|
+
|
|
250
|
+
if (config) {
|
|
251
|
+
return config.value.key;
|
|
252
|
+
} else {
|
|
253
|
+
return `value`;
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
|
|
257
|
+
selectValue() {},
|
|
258
|
+
|
|
238
259
|
spContentType() {
|
|
239
260
|
let configType = this.$props.config.type;
|
|
240
261
|
if (
|
|
@@ -481,7 +502,6 @@ export default {
|
|
|
481
502
|
}
|
|
482
503
|
}
|
|
483
504
|
.mini {
|
|
484
|
-
|
|
485
505
|
/deep/ .item-label {
|
|
486
506
|
font-size: var(--font-size-s) !important;
|
|
487
507
|
}
|