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/lib/meixioacomponent.common.js +166 -174
- package/lib/meixioacomponent.umd.js +166 -174
- package/lib/meixioacomponent.umd.min.js +6 -6
- package/package.json +1 -1
- package/packages/components/base/baseIcon/index.vue +2 -0
- package/packages/components/base/basePopoverButton/index.vue +6 -6
- package/packages/components/proForm/proForm/pro_form_item.vue +4 -22
- package/packages/config/selectStore/SelectStore.js +8 -0
package/package.json
CHANGED
|
@@ -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
|
-
|
|
125
|
-
|
|
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[`${
|
|
111
|
-
:value="item[`${
|
|
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
|
-
|
|
240
|
-
|
|
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
|
}
|