meixioacomponent 0.2.25 → 0.2.26

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.25",
3
+ "version": "0.2.26",
4
4
  "private": false,
5
5
  "author": "YuRi",
6
6
  "main": "lib/meixioacomponent.umd.min.js",
@@ -20,14 +20,14 @@
20
20
  >
21
21
  <base-icon
22
22
  :size="`s`"
23
- :color="module ? 'text-white' : 'd'"
24
23
  :plain="true"
25
- :event="true"
26
24
  v-if="buttonIcon"
25
+ :event="!disabled"
27
26
  :name="buttonIcon"
28
27
  class="button-icon"
29
28
  :iconClass="iconClass"
30
29
  @iconClick="iconClick"
30
+ :color="module ? 'text-white' : 'd'"
31
31
  ></base-icon>
32
32
  <span class="inner-span" v-if="buttonText"> {{ buttonText }}</span>
33
33
  </el-button>
@@ -107,8 +107,8 @@
107
107
  <el-option
108
108
  v-for="item in selectData"
109
109
  :key="item.value"
110
- :label="item[`${selectLabelKey}`]"
111
- :value="item[`${selectValueKey}`]"
110
+ :label="item[`${selectConfig.label}`]"
111
+ :value="item[`${selectConfig.value}`]"
112
112
  >
113
113
  </el-option>
114
114
  </el-select>
@@ -236,26 +236,9 @@ export default {
236
236
  return this.selectStore.getData();
237
237
  },
238
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
- }
239
+ selectConfig() {
240
+ return this.selectStore.getConfig();
247
241
  },
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
242
 
260
243
  spContentType() {
261
244
  let configType = this.$props.config.type;
@@ -385,7 +368,6 @@ export default {
385
368
  this.isEdit = false;
386
369
  },
387
370
  loadSelectData() {
388
-
389
371
  this.selectStore.loadData();
390
372
  },
391
373
  visibleChange(visible) {
@@ -4,6 +4,10 @@ class SelectStore {
4
4
  this.loading = false;
5
5
  this.name = params.name;
6
6
  this.request = params.request;
7
+ this.config = {
8
+ label: "label",
9
+ value: "value",
10
+ };
7
11
  }
8
12
 
9
13
  async loadData() {
@@ -20,6 +24,10 @@ class SelectStore {
20
24
  getData() {
21
25
  return this.data;
22
26
  }
27
+
28
+ getConfig() {
29
+ return this.config;
30
+ }
23
31
  getLoading() {
24
32
  return this.loading;
25
33
  }