meixioacomponent 0.2.6 → 0.2.9
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 +169 -154
- package/lib/meixioacomponent.umd.js +169 -154
- package/lib/meixioacomponent.umd.min.js +5 -5
- package/package.json +1 -1
- package/packages/components/proForm/dialogForm/baseDialogForm.vue +10 -4
- package/packages/components/proForm/proForm/pro_form.vue +16 -6
- package/packages/components/proForm/proFormWrap/pro_form_wrap.vue +3 -0
package/package.json
CHANGED
|
@@ -22,12 +22,12 @@
|
|
|
22
22
|
<div class="content-item-form">
|
|
23
23
|
<pro_formVue
|
|
24
24
|
:form="true"
|
|
25
|
+
:size="size"
|
|
25
26
|
:footer="false"
|
|
26
27
|
:formConfig="item"
|
|
27
28
|
:labelWidth="labelWidth"
|
|
28
29
|
:formList="item.formList"
|
|
29
30
|
:rules="returnRules(item.key)"
|
|
30
|
-
@scrollToItem="scrollToItem"
|
|
31
31
|
:labelPosition="setLabelPosition(item.formType)"
|
|
32
32
|
:formType="item.formType ? item.formType : 'default'"
|
|
33
33
|
ref="proFormVue"
|
|
@@ -48,7 +48,8 @@ import baseButtonHandleVue from "../../base/baseButtonHandle/baseButtonHandle.vu
|
|
|
48
48
|
export default {
|
|
49
49
|
name: "baseDialogForm",
|
|
50
50
|
data() {
|
|
51
|
-
return {
|
|
51
|
+
return {
|
|
52
|
+
};
|
|
52
53
|
},
|
|
53
54
|
props: {
|
|
54
55
|
// 弹窗的标题
|
|
@@ -75,6 +76,10 @@ export default {
|
|
|
75
76
|
rulesList: {
|
|
76
77
|
type: Object,
|
|
77
78
|
},
|
|
79
|
+
size: {
|
|
80
|
+
type: String,
|
|
81
|
+
default: "small",
|
|
82
|
+
},
|
|
78
83
|
},
|
|
79
84
|
components: {
|
|
80
85
|
pro_formVue,
|
|
@@ -125,8 +130,9 @@ export default {
|
|
|
125
130
|
}
|
|
126
131
|
return validateResult;
|
|
127
132
|
},
|
|
128
|
-
|
|
129
|
-
|
|
133
|
+
},
|
|
134
|
+
watch: {
|
|
135
|
+
|
|
130
136
|
},
|
|
131
137
|
};
|
|
132
138
|
</script>
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
v-if="citem.type == 'area'"
|
|
39
39
|
v-model="formdata[`${citem.key}`]"
|
|
40
40
|
:class="[`form-item-${citem.key}`]"
|
|
41
|
+
@confirmAreaValue="formItemConfirm(citem)"
|
|
41
42
|
></baseAreaVue>
|
|
42
43
|
<baseUploadVue
|
|
43
44
|
:max="formConfig.max"
|
|
@@ -76,14 +77,14 @@ export default {
|
|
|
76
77
|
chunkLength: null,
|
|
77
78
|
};
|
|
78
79
|
},
|
|
79
|
-
created() {
|
|
80
|
-
mounted() {
|
|
80
|
+
created() {
|
|
81
81
|
this.$nextTick(() => {
|
|
82
82
|
this.init();
|
|
83
83
|
this.setFormData();
|
|
84
84
|
this.setFormLineList();
|
|
85
85
|
});
|
|
86
86
|
},
|
|
87
|
+
mounted() {},
|
|
87
88
|
props: {
|
|
88
89
|
rules: {
|
|
89
90
|
type: Object,
|
|
@@ -187,6 +188,7 @@ export default {
|
|
|
187
188
|
}
|
|
188
189
|
this.chunkLength = 3;
|
|
189
190
|
},
|
|
191
|
+
|
|
190
192
|
formItemConfirm(params) {
|
|
191
193
|
if (this.$props.rules) {
|
|
192
194
|
// element 验证单条表单修改
|
|
@@ -217,7 +219,6 @@ export default {
|
|
|
217
219
|
},
|
|
218
220
|
setFormLineList() {
|
|
219
221
|
this.formLineList = ArrayChunk(this.$props.formList, this.chunkLength);
|
|
220
|
-
//console.log(this.formLineList);
|
|
221
222
|
},
|
|
222
223
|
// 返回form表单值
|
|
223
224
|
returnFormValue() {
|
|
@@ -267,6 +268,12 @@ export default {
|
|
|
267
268
|
this.$emit("onCancel");
|
|
268
269
|
},
|
|
269
270
|
},
|
|
271
|
+
watch: {
|
|
272
|
+
formList(newVal, oldVal) {
|
|
273
|
+
this.setFormData();
|
|
274
|
+
this.setFormLineList();
|
|
275
|
+
},
|
|
276
|
+
},
|
|
270
277
|
};
|
|
271
278
|
</script>
|
|
272
279
|
|
|
@@ -315,11 +322,14 @@ export default {
|
|
|
315
322
|
}
|
|
316
323
|
|
|
317
324
|
.mini {
|
|
318
|
-
|
|
319
|
-
|
|
325
|
+
align-items: flex-start;
|
|
326
|
+
margin-bottom: var(--margin-4) !important;
|
|
327
|
+
|
|
328
|
+
.item-label {
|
|
329
|
+
font-size: var(--font-size-s) !important;
|
|
320
330
|
}
|
|
321
331
|
/deep/ .el-form-item__label {
|
|
322
|
-
line-height:
|
|
332
|
+
line-height: 24px !important;
|
|
323
333
|
}
|
|
324
334
|
}
|
|
325
335
|
}
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
<div class="pro-form-wrap">
|
|
3
3
|
<baseSectionVue :headerText="formTitle" v-model="sectionOpen">
|
|
4
4
|
<base-icon :name="iconClass" :size="`l`" slot="header-prefix"></base-icon>
|
|
5
|
+
<template slot="section-header-right">
|
|
6
|
+
<slot name="header-right"></slot>
|
|
7
|
+
</template>
|
|
5
8
|
<template slot="sectionContent">
|
|
6
9
|
<pro_formVue
|
|
7
10
|
:size="size"
|