meixioacomponent 0.2.10 → 0.2.13
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 +317 -305
- package/lib/meixioacomponent.umd.js +317 -305
- package/lib/meixioacomponent.umd.min.js +16 -16
- package/package.json +1 -1
- package/packages/components/base/baseButtonHandle/baseButtonHandle.vue +3 -2
- package/packages/components/base/baseFixedHeader/baseFixedHeader.vue +1 -1
- package/packages/components/base/baseSection/baseSection.vue +2 -6
- package/packages/components/base/upload/upload.vue +1 -1
- package/packages/components/proForm/proForm/pro_form.vue +3 -0
- package/packages/components/proForm/proFormWrap/pro_form_wrap.vue +16 -3
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
<script>
|
|
17
17
|
export default {
|
|
18
|
-
name:
|
|
18
|
+
name: "baseButtonHandle",
|
|
19
19
|
data() {
|
|
20
20
|
return {};
|
|
21
21
|
},
|
|
@@ -56,9 +56,10 @@ export default {
|
|
|
56
56
|
|
|
57
57
|
<style lang="less" scoped>
|
|
58
58
|
.footer-handle-wrap {
|
|
59
|
-
width:
|
|
59
|
+
width: auto;
|
|
60
60
|
height: 100%;
|
|
61
61
|
display: flex;
|
|
62
|
+
max-width: 100%;
|
|
62
63
|
align-items: center;
|
|
63
64
|
}
|
|
64
65
|
</style>
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
<div
|
|
4
4
|
class="section-header"
|
|
5
5
|
ref="sectionHeader"
|
|
6
|
+
@click.self="handleOpen"
|
|
6
7
|
:style="{
|
|
7
8
|
cursor: event && !disable ? 'pointer' : 'default',
|
|
8
9
|
}"
|
|
@@ -30,11 +31,7 @@ export default {
|
|
|
30
31
|
this.init();
|
|
31
32
|
});
|
|
32
33
|
},
|
|
33
|
-
beforeDestroy() {
|
|
34
|
-
if (this.$props.event) {
|
|
35
|
-
this.$refs.sectionHeader.removeEventListener("click", this.handleOpen);
|
|
36
|
-
}
|
|
37
|
-
},
|
|
34
|
+
beforeDestroy() {},
|
|
38
35
|
props: {
|
|
39
36
|
disable: {
|
|
40
37
|
type: Boolean,
|
|
@@ -68,7 +65,6 @@ export default {
|
|
|
68
65
|
methods: {
|
|
69
66
|
init() {
|
|
70
67
|
if (!this.$props.event) return;
|
|
71
|
-
this.$refs.sectionHeader.addEventListener("click", this.handleOpen);
|
|
72
68
|
},
|
|
73
69
|
handleOpen() {
|
|
74
70
|
if (this.$props.disable) return;
|
|
@@ -210,6 +210,7 @@ export default {
|
|
|
210
210
|
let result = this.submitVerifiData(params);
|
|
211
211
|
if (result) {
|
|
212
212
|
this.$refs[`area-${params.config.key}`][0].doClose();
|
|
213
|
+
this.$emit("formItemConfirm", params.config);
|
|
213
214
|
} else {
|
|
214
215
|
this.$message.error("请重新选择");
|
|
215
216
|
}
|
|
@@ -231,6 +232,8 @@ export default {
|
|
|
231
232
|
);
|
|
232
233
|
}
|
|
233
234
|
return confrim;
|
|
235
|
+
} else {
|
|
236
|
+
return true;
|
|
234
237
|
}
|
|
235
238
|
},
|
|
236
239
|
setFormData() {
|
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="pro-form-wrap">
|
|
3
|
-
<baseSectionVue
|
|
4
|
-
|
|
3
|
+
<baseSectionVue
|
|
4
|
+
ref="baseSection"
|
|
5
|
+
v-model="sectionOpen"
|
|
6
|
+
:headerText="formTitle"
|
|
7
|
+
>
|
|
8
|
+
<base-icon
|
|
9
|
+
:size="`l`"
|
|
10
|
+
:event="true"
|
|
11
|
+
:name="iconClass"
|
|
12
|
+
slot="header-prefix"
|
|
13
|
+
@iconClick="handleSection"
|
|
14
|
+
></base-icon>
|
|
5
15
|
<template slot="section-header-right">
|
|
6
16
|
<slot name="header-right"></slot>
|
|
7
17
|
</template>
|
|
@@ -63,7 +73,7 @@ export default {
|
|
|
63
73
|
if (this.sectionOpen) {
|
|
64
74
|
return "meixicomponenticon-shouqi";
|
|
65
75
|
}
|
|
66
|
-
return "
|
|
76
|
+
return "meixicomponenticon-xiala";
|
|
67
77
|
},
|
|
68
78
|
},
|
|
69
79
|
components: {
|
|
@@ -71,6 +81,9 @@ export default {
|
|
|
71
81
|
baseSectionVue,
|
|
72
82
|
},
|
|
73
83
|
methods: {
|
|
84
|
+
handleSection() {
|
|
85
|
+
this.sectionOpen = !this.sectionOpen;
|
|
86
|
+
},
|
|
74
87
|
formItemConfirm(configItem) {
|
|
75
88
|
this.$emit("formItemConfirm", configItem);
|
|
76
89
|
},
|