meixioacomponent 0.2.34 → 0.2.35
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 +159 -200
- package/lib/meixioacomponent.umd.js +159 -200
- package/lib/meixioacomponent.umd.min.js +6 -6
- package/package.json +1 -1
- package/packages/components/base/baseDialog/index.vue +6 -1
- package/packages/components/proForm/dialogForm/baseDialogForm.vue +5 -1
- package/packages/components/proForm/proForm/pro_form.vue +0 -49
package/package.json
CHANGED
|
@@ -64,6 +64,9 @@ export default {
|
|
|
64
64
|
}
|
|
65
65
|
});
|
|
66
66
|
},
|
|
67
|
+
beforeDestroy() {
|
|
68
|
+
this.$emit("destroy");
|
|
69
|
+
},
|
|
67
70
|
props: {
|
|
68
71
|
// 是否开启拖拽
|
|
69
72
|
onDrag: {
|
|
@@ -124,7 +127,9 @@ export default {
|
|
|
124
127
|
let target = this.$refs.dialog.$el.childNodes[0];
|
|
125
128
|
let left =
|
|
126
129
|
(document.documentElement.clientWidth - target.clientWidth) / 2;
|
|
127
|
-
target.style.cssText += `top:${parseInt(
|
|
130
|
+
target.style.cssText += `top:${parseInt(
|
|
131
|
+
this.$props.top
|
|
132
|
+
)}px;left:${left}px;margin:0px !important`;
|
|
128
133
|
},
|
|
129
134
|
startDrag(e) {
|
|
130
135
|
if (!this.useDrag) {
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
:onDrag="onDrag"
|
|
8
8
|
:isDestroy="true"
|
|
9
9
|
:contentHeight="`50vh`"
|
|
10
|
+
@destroy="destroyForDialog"
|
|
10
11
|
>
|
|
11
12
|
<div
|
|
12
13
|
class="dialog-form-content"
|
|
@@ -68,6 +69,7 @@ export default {
|
|
|
68
69
|
created() {
|
|
69
70
|
this.createSlots();
|
|
70
71
|
},
|
|
72
|
+
beforeDestroy() {},
|
|
71
73
|
mounted() {},
|
|
72
74
|
props: {
|
|
73
75
|
disables: {
|
|
@@ -144,7 +146,6 @@ export default {
|
|
|
144
146
|
}
|
|
145
147
|
}
|
|
146
148
|
},
|
|
147
|
-
|
|
148
149
|
disableWatcherResult(params) {
|
|
149
150
|
const { result, type, key } = params;
|
|
150
151
|
let index = 0;
|
|
@@ -215,6 +216,9 @@ export default {
|
|
|
215
216
|
}
|
|
216
217
|
return validateResult;
|
|
217
218
|
},
|
|
219
|
+
destroyForDialog() {
|
|
220
|
+
this.$destroy();
|
|
221
|
+
},
|
|
218
222
|
},
|
|
219
223
|
watch: {},
|
|
220
224
|
};
|
|
@@ -57,55 +57,6 @@
|
|
|
57
57
|
</el-form-item>
|
|
58
58
|
</div>
|
|
59
59
|
|
|
60
|
-
<!-- <div
|
|
61
|
-
:key="index"
|
|
62
|
-
class="form-line-box"
|
|
63
|
-
v-for="(item, index) in formLineList"
|
|
64
|
-
>
|
|
65
|
-
<el-form-item
|
|
66
|
-
:key="cindex"
|
|
67
|
-
:prop="citem.key"
|
|
68
|
-
:label="citem.label"
|
|
69
|
-
v-show="!citem.renderHide"
|
|
70
|
-
v-for="(citem, cindex) in item"
|
|
71
|
-
:class="[`chunk-${chunkLength}`, `${flexClass}`, size]"
|
|
72
|
-
>
|
|
73
|
-
<span slot="label" class="item-label">{{ citem.label }}</span>
|
|
74
|
-
<pro_form_itemVue
|
|
75
|
-
:form="form"
|
|
76
|
-
:size="size"
|
|
77
|
-
:config="citem"
|
|
78
|
-
:class="[`form-item-${citem.key}`]"
|
|
79
|
-
@formItemConfirm="formItemConfirm"
|
|
80
|
-
@disableWatcherResult="disableWatcherResult"
|
|
81
|
-
:disableWatcher="setWatcher(citem.key)"
|
|
82
|
-
v-if="formType == 'default' && citem.type != 'area'"
|
|
83
|
-
v-model="module[findFormItem(index, cindex)].value"
|
|
84
|
-
>
|
|
85
|
-
<template slot="template" v-if="citem.type == 'template'">
|
|
86
|
-
<slot :name="`form-${citem.key}`" :scope="module"></slot>
|
|
87
|
-
</template>
|
|
88
|
-
</pro_form_itemVue>
|
|
89
|
-
<baseAreaVue
|
|
90
|
-
:disable="citem.disabled"
|
|
91
|
-
v-if="citem.type == 'area'"
|
|
92
|
-
:ref="`area-${citem.key}`"
|
|
93
|
-
v-model="module[findFormItem(index, cindex)].value"
|
|
94
|
-
:class="[`form-item-${citem.key}`]"
|
|
95
|
-
@confirmAreaValue="
|
|
96
|
-
formItemConfirm({
|
|
97
|
-
config: citem,
|
|
98
|
-
})
|
|
99
|
-
"
|
|
100
|
-
></baseAreaVue>
|
|
101
|
-
<baseUploadVue
|
|
102
|
-
:max="formConfig.max"
|
|
103
|
-
v-if="formType == `upload`"
|
|
104
|
-
v-model="module[findFormItem(index, cindex)].value"
|
|
105
|
-
:class="[`form-item-${citem.key}`]"
|
|
106
|
-
></baseUploadVue>
|
|
107
|
-
</el-form-item>
|
|
108
|
-
</div> -->
|
|
109
60
|
|
|
110
61
|
<baseButtonHandleVue
|
|
111
62
|
v-if="footer"
|