meixioacomponent 0.2.23 → 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.23",
3
+ "version": "0.2.26",
4
4
  "private": false,
5
5
  "author": "YuRi",
6
6
  "main": "lib/meixioacomponent.umd.min.js",
@@ -101,6 +101,8 @@ export default {
101
101
  return `meixicomponenticonfont ${this.$props.name}`;
102
102
  } else if (_iconClass == "element") {
103
103
  return `${this.$props.name}`;
104
+ } else if (_iconClass == "other") {
105
+ return `${this.$props.name}`;
104
106
  }
105
107
  },
106
108
  },
@@ -14,19 +14,20 @@
14
14
  <el-button
15
15
  slot="reference"
16
16
  :size="buttonSize"
17
+ :disabled="disabled"
17
18
  class="popover-button"
18
19
  :type="module ? 'selected' : 'info'"
19
20
  >
20
21
  <base-icon
21
22
  :size="`s`"
22
- :color="module ? 'text-white' : 'd'"
23
23
  :plain="true"
24
- :event="true"
25
24
  v-if="buttonIcon"
25
+ :event="!disabled"
26
26
  :name="buttonIcon"
27
27
  class="button-icon"
28
28
  :iconClass="iconClass"
29
29
  @iconClick="iconClick"
30
+ :color="module ? 'text-white' : 'd'"
30
31
  ></base-icon>
31
32
  <span class="inner-span" v-if="buttonText"> {{ buttonText }}</span>
32
33
  </el-button>
@@ -76,7 +77,6 @@ export default {
76
77
  // icon的类名
77
78
  buttonIcon: {
78
79
  type: String,
79
-
80
80
  require: false,
81
81
  },
82
82
 
@@ -120,9 +120,9 @@ export default {
120
120
  align-items: center;
121
121
  flex-flow: row nowrap;
122
122
  justify-content: flex-start;
123
- }
124
- .inner-span {
125
- margin-left: var(--margin-3);
123
+ :nth-child(2) {
124
+ margin-left: var(--margin-3);
125
+ }
126
126
  }
127
127
  }
128
128
  </style>
@@ -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
  }