meixioacomponent 0.2.6 → 0.2.7
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 +115 -104
- package/lib/meixioacomponent.umd.js +115 -104
- package/lib/meixioacomponent.umd.min.js +4 -4
- package/package.json +1 -1
- package/packages/components/proForm/dialogForm/baseDialogForm.vue +10 -4
- package/packages/components/proForm/proForm/pro_form.vue +11 -6
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>
|
|
@@ -76,14 +76,14 @@ export default {
|
|
|
76
76
|
chunkLength: null,
|
|
77
77
|
};
|
|
78
78
|
},
|
|
79
|
-
created() {
|
|
80
|
-
mounted() {
|
|
79
|
+
created() {
|
|
81
80
|
this.$nextTick(() => {
|
|
82
81
|
this.init();
|
|
83
82
|
this.setFormData();
|
|
84
83
|
this.setFormLineList();
|
|
85
84
|
});
|
|
86
85
|
},
|
|
86
|
+
mounted() {},
|
|
87
87
|
props: {
|
|
88
88
|
rules: {
|
|
89
89
|
type: Object,
|
|
@@ -217,7 +217,6 @@ export default {
|
|
|
217
217
|
},
|
|
218
218
|
setFormLineList() {
|
|
219
219
|
this.formLineList = ArrayChunk(this.$props.formList, this.chunkLength);
|
|
220
|
-
//console.log(this.formLineList);
|
|
221
220
|
},
|
|
222
221
|
// 返回form表单值
|
|
223
222
|
returnFormValue() {
|
|
@@ -267,6 +266,12 @@ export default {
|
|
|
267
266
|
this.$emit("onCancel");
|
|
268
267
|
},
|
|
269
268
|
},
|
|
269
|
+
watch: {
|
|
270
|
+
formList(newVal, oldVal) {
|
|
271
|
+
this.setFormData();
|
|
272
|
+
this.setFormLineList();
|
|
273
|
+
},
|
|
274
|
+
},
|
|
270
275
|
};
|
|
271
276
|
</script>
|
|
272
277
|
|
|
@@ -315,9 +320,9 @@ export default {
|
|
|
315
320
|
}
|
|
316
321
|
|
|
317
322
|
.mini {
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
323
|
+
align-items: flex-start;
|
|
324
|
+
margin-bottom: var(--margin-4) !important;
|
|
325
|
+
|
|
321
326
|
/deep/ .el-form-item__label {
|
|
322
327
|
line-height: 28px !important;
|
|
323
328
|
}
|