meixioacomponent 0.2.13 → 0.2.16

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,6 +1,6 @@
1
1
  {
2
2
  "name": "meixioacomponent",
3
- "version": "0.2.13",
3
+ "version": "0.2.16",
4
4
  "private": false,
5
5
  "author": "YuRi",
6
6
  "main": "lib/meixioacomponent.umd.min.js",
@@ -257,8 +257,11 @@ export default {
257
257
  checkValidate() {
258
258
  return new Promise((resolve, reject) => {
259
259
  this.$refs.form.validate((validate, Object) => {
260
+ console.log(Object);
260
261
  // 滚动至未填写的项目中
261
- this.scrollToItem(Object);
262
+ if (JSON.stringify(Object) != "{}") {
263
+ this.scrollToItem(Object);
264
+ }
262
265
  resolve({ result: validate, validateArray: Object });
263
266
  });
264
267
  });
@@ -97,6 +97,7 @@
97
97
  v-model="module"
98
98
  placeholder="请选择"
99
99
  :multiple="multiple"
100
+ :filterable="true"
100
101
  :loading="selectLoading"
101
102
  @visible-change="visibleChange"
102
103
  style="width: 100%; height: 100%"
@@ -106,8 +107,8 @@
106
107
  <el-option
107
108
  v-for="item in selectData"
108
109
  :key="item.value"
109
- :label="item.label"
110
- :value="item.value"
110
+ :label="item[`${selectLabelKey}`]"
111
+ :value="item[`${selectValueKey}`]"
111
112
  >
112
113
  </el-option>
113
114
  </el-select>
@@ -235,6 +236,27 @@ export default {
235
236
  return this.selectStore.getData();
236
237
  },
237
238
 
239
+ selectLabelKey() {
240
+ let config = this.$props.config?.config;
241
+
242
+ if (config) {
243
+ return config.label.key;
244
+ } else {
245
+ return `label`;
246
+ }
247
+ },
248
+ selectValueKey() {
249
+ let config = this.$props.config?.config;
250
+
251
+ if (config) {
252
+ return config.value.key;
253
+ } else {
254
+ return `value`;
255
+ }
256
+ },
257
+
258
+ selectValue() {},
259
+
238
260
  spContentType() {
239
261
  let configType = this.$props.config.type;
240
262
  if (
@@ -481,7 +503,6 @@ export default {
481
503
  }
482
504
  }
483
505
  .mini {
484
-
485
506
  /deep/ .item-label {
486
507
  font-size: var(--font-size-s) !important;
487
508
  }