meixioacomponent 0.2.44 → 0.2.47
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 +163 -100
- package/lib/meixioacomponent.umd.js +163 -100
- package/lib/meixioacomponent.umd.min.js +16 -16
- package/package.json +1 -1
- package/packages/components/base/baseUpload/baseUploadItem.vue +2 -4
- package/packages/components/proForm/proFormWrap/pro_form_wrap.vue +37 -3
package/package.json
CHANGED
|
@@ -66,9 +66,7 @@ export default {
|
|
|
66
66
|
data() {
|
|
67
67
|
return {};
|
|
68
68
|
},
|
|
69
|
-
created() {
|
|
70
|
-
|
|
71
|
-
},
|
|
69
|
+
created() {},
|
|
72
70
|
mixins: [baseUploadMixins],
|
|
73
71
|
components: {
|
|
74
72
|
baseImgVue,
|
|
@@ -106,7 +104,6 @@ export default {
|
|
|
106
104
|
},
|
|
107
105
|
},
|
|
108
106
|
computed: {
|
|
109
|
-
|
|
110
107
|
module: {
|
|
111
108
|
get() {
|
|
112
109
|
return this.$props.value;
|
|
@@ -252,6 +249,7 @@ export default {
|
|
|
252
249
|
cursor: pointer;
|
|
253
250
|
color: var(--font-color-s);
|
|
254
251
|
font-size: var(--font-size-s);
|
|
252
|
+
line-height: 12px !important;
|
|
255
253
|
&:hover {
|
|
256
254
|
color: var(--color-primary);
|
|
257
255
|
}
|
|
@@ -19,14 +19,19 @@
|
|
|
19
19
|
<pro_formVue
|
|
20
20
|
:size="size"
|
|
21
21
|
ref="proForm"
|
|
22
|
-
:form="
|
|
22
|
+
:form="form"
|
|
23
23
|
:rules="rules"
|
|
24
24
|
:footer="false"
|
|
25
|
-
|
|
25
|
+
v-model="formList"
|
|
26
26
|
:rowNumber="rowNumber"
|
|
27
27
|
:labelWidth="labelWidth"
|
|
28
28
|
@formItemConfirm="formItemConfirm"
|
|
29
|
-
></pro_formVue>
|
|
29
|
+
></pro_formVue>
|
|
30
|
+
<template v-for="slotItem in slotList">
|
|
31
|
+
<template :slot="`form-${slotItem}`">
|
|
32
|
+
<slot :scope="formList" :name="`formslot-${slotItem}`"></slot>
|
|
33
|
+
</template>
|
|
34
|
+
</template> </template
|
|
30
35
|
></baseSectionVue>
|
|
31
36
|
</div>
|
|
32
37
|
</template>
|
|
@@ -38,10 +43,18 @@ export default {
|
|
|
38
43
|
name: "baseFormWrap",
|
|
39
44
|
data() {
|
|
40
45
|
return {
|
|
46
|
+
slotList: [],
|
|
41
47
|
sectionOpen: true,
|
|
42
48
|
};
|
|
43
49
|
},
|
|
50
|
+
created() {
|
|
51
|
+
this.createSlots();
|
|
52
|
+
},
|
|
44
53
|
props: {
|
|
54
|
+
form: {
|
|
55
|
+
type: Boolean,
|
|
56
|
+
default: false,
|
|
57
|
+
},
|
|
45
58
|
formTitle: {
|
|
46
59
|
type: String,
|
|
47
60
|
require: true,
|
|
@@ -81,6 +94,27 @@ export default {
|
|
|
81
94
|
baseSectionVue,
|
|
82
95
|
},
|
|
83
96
|
methods: {
|
|
97
|
+
createSlots() {
|
|
98
|
+
let slotList = this.slotList;
|
|
99
|
+
let formList = this.$props.formList;
|
|
100
|
+
for (let i = 0; i < formList.length; i++) {
|
|
101
|
+
let citem = formList[i];
|
|
102
|
+
if (citem.type == "template") {
|
|
103
|
+
slotList.push(citem.key);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
|
|
108
|
+
async checkValidate() {
|
|
109
|
+
let refs = this.$refs.proForm;
|
|
110
|
+
let validateResult = true;
|
|
111
|
+
let validate = await refs[i].checkValidate();
|
|
112
|
+
validateResult = validate.result;
|
|
113
|
+
if (!validateResult) {
|
|
114
|
+
return validateResult;
|
|
115
|
+
}
|
|
116
|
+
return validateResult;
|
|
117
|
+
},
|
|
84
118
|
handleSection() {
|
|
85
119
|
this.sectionOpen = !this.sectionOpen;
|
|
86
120
|
},
|