@kp-ui/lowcode 2.14.0-beta.2 → 2.14.0-beta.21
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/package.json +1 -1
- package/src/components/FormRender/useFormRender.js +18 -0
- package/src/components/form-designer/designer.js +78 -75
- package/src/components/form-designer/form-widget/container-widget/data-table-widget.vue.js +18 -18
- package/src/components/form-designer/form-widget/container-widget/data-table-widget.vue2.js +18 -20
- package/src/components/form-designer/form-widget/container-widget/vf-box-item.vue.js +9 -9
- package/src/components/form-designer/form-widget/container-widget/vf-dialog-widget.vue.js +29 -21
- package/src/components/form-designer/form-widget/field-widget/cascader-widget.vue.js +32 -39
- package/src/components/form-designer/form-widget/field-widget/date-range-widget.vue.js +24 -31
- package/src/components/form-designer/form-widget/field-widget/date-widget.vue.js +26 -33
- package/src/components/form-designer/form-widget/field-widget/diy-compontent-widget.vue.js +4 -4
- package/src/components/form-designer/form-widget/field-widget/fieldMixin.js +4 -1
- package/src/components/form-designer/form-widget/field-widget/form-item-wrapper.vue.js +84 -152
- package/src/components/form-designer/form-widget/field-widget/input-widget.vue.js +31 -38
- package/src/components/form-designer/form-widget/field-widget/number-widget.vue.js +23 -30
- package/src/components/form-designer/form-widget/field-widget/select-widget.vue.js +56 -63
- package/src/components/form-designer/form-widget/field-widget/switch-widget.vue.js +1 -1
- package/src/components/form-designer/form-widget/field-widget/textarea-widget.vue.js +23 -32
- package/src/components/form-designer/form-widget/field-widget/treeSelect-widget.vue.js +26 -33
- package/src/components/form-designer/setting-panel/form-setting.vue.js +2 -2
- package/src/components/form-designer/setting-panel/form-setting.vue2.js +81 -94
- package/src/components/form-designer/setting-panel/index.vue.js +2 -2
- package/src/components/form-designer/setting-panel/index.vue2.js +135 -135
- package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-colorRow-editor.vue2.js +8 -7
- package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-dsEnabled-editor.vue.js +23 -22
- package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-tableColumns-editor.vue.js +3 -3
- package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-tableColumns-editor.vue2.js +7 -7
- package/src/components/form-designer/setting-panel/property-editor/container-vf-dialog/formCode-editor.vue.js +25 -19
- package/src/components/form-designer/setting-panel/property-editor/container-vf-dialog/line-height-editor.vue2.js +7 -6
- package/src/components/form-designer/setting-panel/property-editor/index.js +41 -42
- package/src/components/form-designer/setting-panel/propertyRegister.js +3 -6
- package/src/components/form-designer/widget-panel/PanelItemDrag.vue.js +50 -0
- package/src/components/form-designer/widget-panel/PanelItemDrag.vue2.js +4 -0
- package/src/components/form-designer/widget-panel/advanced/cascader.js +0 -1
- package/src/components/form-designer/widget-panel/advanced/data-table.js +1 -1
- package/src/components/form-designer/widget-panel/advanced/file-upload.js +0 -1
- package/src/components/form-designer/widget-panel/advanced/rich-editor.js +4 -5
- package/src/components/form-designer/widget-panel/advanced/tree-select.js +0 -1
- package/src/components/form-designer/widget-panel/basicFields/checkbox.js +2 -3
- package/src/components/form-designer/widget-panel/basicFields/color.js +0 -1
- package/src/components/form-designer/widget-panel/basicFields/date.js +0 -1
- package/src/components/form-designer/widget-panel/basicFields/dateRange.js +0 -1
- package/src/components/form-designer/widget-panel/basicFields/input.js +0 -1
- package/src/components/form-designer/widget-panel/basicFields/number.js +0 -1
- package/src/components/form-designer/widget-panel/basicFields/radio.js +0 -1
- package/src/components/form-designer/widget-panel/basicFields/rate.js +5 -6
- package/src/components/form-designer/widget-panel/basicFields/select.js +2 -3
- package/src/components/form-designer/widget-panel/basicFields/slider.js +0 -1
- package/src/components/form-designer/widget-panel/basicFields/switch.js +0 -1
- package/src/components/form-designer/widget-panel/basicFields/textarea.js +0 -1
- package/src/components/form-designer/widget-panel/basicFields/time.js +0 -1
- package/src/components/form-designer/widget-panel/basicFields/timeRange.js +0 -1
- package/src/components/form-designer/widget-panel/business/department-select.js +0 -1
- package/src/components/form-designer/widget-panel/business/material-select.js +0 -1
- package/src/components/form-designer/widget-panel/business/operation-select.js +2 -3
- package/src/components/form-designer/widget-panel/business/post-select.js +0 -1
- package/src/components/form-designer/widget-panel/business/project-group-select.js +2 -3
- package/src/components/form-designer/widget-panel/business/project-select.js +2 -3
- package/src/components/form-designer/widget-panel/business/user-select.js +0 -1
- package/src/components/form-designer/widget-panel/containers/vf-dialog.js +3 -2
- package/src/components/form-designer/widget-panel/index.vue.js +4 -338
- package/src/components/form-designer/widget-panel/index.vue2.js +82 -0
- package/src/components/form-designer/widget-panel/widgetsConfig.js +19 -18
- package/src/components/form-render/RenderWigetList.vue.js +61 -0
- package/src/components/form-render/RenderWigetList.vue2.js +4 -0
- package/src/components/form-render/SubmitButtonRender.vue.js +41 -29
- package/src/components/form-render/container-item/container-item-wrapper.vue.js +2 -23
- package/src/components/form-render/container-item/container-item-wrapper.vue2.js +20 -0
- package/src/components/form-render/container-item/data-table-item.vue.js +22 -36
- package/src/components/form-render/container-item/grid-item.vue.js +7 -7
- package/src/components/form-render/container-item/grid-sub-form-item.vue.js +1 -1
- package/src/components/form-render/container-item/sub-form-item.vue.js +115 -146
- package/src/components/form-render/container-item/tab-item.vue.js +19 -19
- package/src/components/form-render/container-item/table-item.vue.js +7 -7
- package/src/components/form-render/container-item/vf-collapse-item.vue.js +27 -27
- package/src/components/form-render/dynamic-dialog.vue.js +87 -86
- package/src/components/form-render/index.vue.js +94 -110
- package/src/components/public/ActionButtonListDialog.vue.js +82 -75
- package/src/components/public/ActionButtonListDialog.vue2.js +16 -10
- package/src/components/public/ActionButtonListRender.vue.js +12 -11
- package/src/components/public/CustomerModal/CustomerModal.vue2.js +49 -42
- package/src/hooks/useLowcode.js +40 -39
- package/src/lang/en-US.js +5 -1
- package/src/lang/zh-CN.js +5 -1
- package/src/mixins/useDataTableMixin.js +29 -31
- package/src/utils/asyncExecuteFunction.js +4 -0
- package/stats.html +1 -1
- package/styles/style.css +1 -1
- package/src/components/form-designer/setting-panel/property-editor/labelTooltip-editor.vue.js +0 -31
- package/src/components/form-designer/widget-panel/templatesConfig.js +0 -53
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import L from "./container-item-wrapper.
|
|
1
|
+
import L from "./container-item-wrapper.vue2.js";
|
|
2
2
|
import I from "../../../utils/emitter.js";
|
|
3
|
-
import { defineAsyncComponent as j, resolveComponent as f, withDirectives as F, createBlock as s, openBlock as
|
|
3
|
+
import { defineAsyncComponent as j, resolveComponent as f, withDirectives as F, createBlock as s, openBlock as o, withCtx as d, createElementVNode as C, createVNode as c, createElementBlock as m, createCommentVNode as _, normalizeClass as S, Fragment as u, renderList as l, resolveDynamicComponent as g, createSlots as p, renderSlot as w, mergeProps as h, Transition as D, normalizeStyle as N, vShow as O } from "vue";
|
|
4
4
|
import M from "../../../utils/i18n.js";
|
|
5
5
|
import T from "../../form-designer/form-widget/field-widget/index.js";
|
|
6
6
|
import B from "../refMixin.js";
|
|
@@ -106,10 +106,10 @@ const E = {
|
|
|
106
106
|
},
|
|
107
107
|
async loadFormCode(t) {
|
|
108
108
|
if (t) {
|
|
109
|
-
const
|
|
109
|
+
const y = await this.$http.get("/api/tmgc2-query/dataQuery/detail/FormDefinitionManagement", {
|
|
110
110
|
params: { code: t }
|
|
111
111
|
}).then((e) => e.data.object.frontendDefinition || "{}");
|
|
112
|
-
this.$refs.dFormRef.setFormJson(JSON.parse(
|
|
112
|
+
this.$refs.dFormRef.setFormJson(JSON.parse(y));
|
|
113
113
|
}
|
|
114
114
|
},
|
|
115
115
|
handleOnCreated() {
|
|
@@ -123,9 +123,9 @@ const E = {
|
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
}, P = { class: "tpf-collapse" }, q = { class: "tpf-collapse-header" };
|
|
126
|
-
function G(t,
|
|
126
|
+
function G(t, y, e, Q, U, b) {
|
|
127
127
|
const R = f("TpfCollapseTitle"), v = f("SvgIcon"), k = f("a-space"), x = f("container-item-wrapper");
|
|
128
|
-
return F((
|
|
128
|
+
return F((o(), s(x, { widget: e.widget }, {
|
|
129
129
|
default: d(() => [
|
|
130
130
|
C("div", P, [
|
|
131
131
|
C("div", q, [
|
|
@@ -144,12 +144,12 @@ function G(t, _, e, Q, U, b) {
|
|
|
144
144
|
]),
|
|
145
145
|
_: 1
|
|
146
146
|
}),
|
|
147
|
-
e.widget.options.isCollapse ?
|
|
147
|
+
e.widget.options.isCollapse ? _("", !0) : (o(), m("div", {
|
|
148
148
|
key: 0,
|
|
149
149
|
class: S(["header-right", b.rightSlotCss])
|
|
150
150
|
}, [
|
|
151
|
-
e.widget.headerRightSlotList && e.widget.headerRightSlotList.length > 0 ? (
|
|
152
|
-
n.category === "container" ? (
|
|
151
|
+
e.widget.headerRightSlotList && e.widget.headerRightSlotList.length > 0 ? (o(!0), m(u, { key: 0 }, l(e.widget.headerRightSlotList, (n, a) => (o(), m(u, null, [
|
|
152
|
+
n.category === "container" ? (o(), s(g(t.getComponentByContainer(n)), {
|
|
153
153
|
widget: n,
|
|
154
154
|
key: a,
|
|
155
155
|
"parent-list": e.widget.headerRightSlotList,
|
|
@@ -160,13 +160,13 @@ function G(t, _, e, Q, U, b) {
|
|
|
160
160
|
"sub-form-col-index": e.subFormColIndex,
|
|
161
161
|
data: e.model[e.widget.options.name]
|
|
162
162
|
}, p({ _: 2 }, [
|
|
163
|
-
l(Object.keys(t.$slots), (
|
|
164
|
-
name:
|
|
163
|
+
l(Object.keys(t.$slots), (i) => ({
|
|
164
|
+
name: i,
|
|
165
165
|
fn: d((r) => [
|
|
166
|
-
w(t.$slots,
|
|
166
|
+
w(t.$slots, i, h({ ref_for: !0 }, r), void 0, !0)
|
|
167
167
|
])
|
|
168
168
|
}))
|
|
169
|
-
]), 1032, ["widget", "parent-list", "index-of-parent-list", "parent-widget", "sub-form-row-id", "sub-form-row-index", "sub-form-col-index", "data"])) : (
|
|
169
|
+
]), 1032, ["widget", "parent-list", "index-of-parent-list", "parent-widget", "sub-form-row-id", "sub-form-row-index", "sub-form-col-index", "data"])) : (o(), s(g(n.type + "-widget"), {
|
|
170
170
|
field: n,
|
|
171
171
|
designer: null,
|
|
172
172
|
key: a,
|
|
@@ -174,14 +174,14 @@ function G(t, _, e, Q, U, b) {
|
|
|
174
174
|
"index-of-parent-list": a,
|
|
175
175
|
"parent-widget": e.widget
|
|
176
176
|
}, p({ _: 2 }, [
|
|
177
|
-
l(Object.keys(t.$slots), (
|
|
178
|
-
name:
|
|
177
|
+
l(Object.keys(t.$slots), (i) => ({
|
|
178
|
+
name: i,
|
|
179
179
|
fn: d((r) => [
|
|
180
|
-
w(t.$slots,
|
|
180
|
+
w(t.$slots, i, h({ ref_for: !0 }, r), void 0, !0)
|
|
181
181
|
])
|
|
182
182
|
}))
|
|
183
183
|
]), 1032, ["field", "parent-list", "index-of-parent-list", "parent-widget"]))
|
|
184
|
-
], 64))), 256)) :
|
|
184
|
+
], 64))), 256)) : _("", !0)
|
|
185
185
|
], 2))
|
|
186
186
|
]),
|
|
187
187
|
c(D, {
|
|
@@ -198,8 +198,8 @@ function G(t, _, e, Q, U, b) {
|
|
|
198
198
|
...JSON.parse(e.widget.options.bodyStyle || "{}")
|
|
199
199
|
})
|
|
200
200
|
}, [
|
|
201
|
-
e.widget.defaultSlotsList && e.widget.defaultSlotsList.length > 0 ? (
|
|
202
|
-
n.category === "container" ? (
|
|
201
|
+
e.widget.defaultSlotsList && e.widget.defaultSlotsList.length > 0 ? (o(!0), m(u, { key: 0 }, l(e.widget.defaultSlotsList, (n, a) => (o(), m(u, null, [
|
|
202
|
+
n.category === "container" ? (o(), s(g(t.getComponentByContainer(n)), {
|
|
203
203
|
widget: n,
|
|
204
204
|
key: a,
|
|
205
205
|
"parent-list": e.widget.defaultSlotsList,
|
|
@@ -211,13 +211,13 @@ function G(t, _, e, Q, U, b) {
|
|
|
211
211
|
data: e.model[n.options.name],
|
|
212
212
|
model: e.model
|
|
213
213
|
}, p({ _: 2 }, [
|
|
214
|
-
l(Object.keys(t.$slots), (
|
|
215
|
-
name:
|
|
214
|
+
l(Object.keys(t.$slots), (i) => ({
|
|
215
|
+
name: i,
|
|
216
216
|
fn: d((r) => [
|
|
217
|
-
w(t.$slots,
|
|
217
|
+
w(t.$slots, i, h({ ref_for: !0 }, r), void 0, !0)
|
|
218
218
|
])
|
|
219
219
|
}))
|
|
220
|
-
]), 1032, ["widget", "parent-list", "index-of-parent-list", "parent-widget", "sub-form-row-id", "sub-form-row-index", "sub-form-col-index", "data", "model"])) : (
|
|
220
|
+
]), 1032, ["widget", "parent-list", "index-of-parent-list", "parent-widget", "sub-form-row-id", "sub-form-row-index", "sub-form-col-index", "data", "model"])) : (o(), s(g(n.type + "-widget"), {
|
|
221
221
|
field: n,
|
|
222
222
|
designer: null,
|
|
223
223
|
key: a,
|
|
@@ -225,14 +225,14 @@ function G(t, _, e, Q, U, b) {
|
|
|
225
225
|
"index-of-parent-list": a,
|
|
226
226
|
"parent-widget": e.widget
|
|
227
227
|
}, p({ _: 2 }, [
|
|
228
|
-
l(Object.keys(t.$slots), (
|
|
229
|
-
name:
|
|
228
|
+
l(Object.keys(t.$slots), (i) => ({
|
|
229
|
+
name: i,
|
|
230
230
|
fn: d((r) => [
|
|
231
|
-
w(t.$slots,
|
|
231
|
+
w(t.$slots, i, h({ ref_for: !0 }, r), void 0, !0)
|
|
232
232
|
])
|
|
233
233
|
}))
|
|
234
234
|
]), 1032, ["field", "parent-list", "index-of-parent-list", "parent-widget"]))
|
|
235
|
-
], 64))), 256)) :
|
|
235
|
+
], 64))), 256)) : _("", !0)
|
|
236
236
|
], 4), [
|
|
237
237
|
[O, !e.widget.options.isCollapse]
|
|
238
238
|
])
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import { defineComponent as M, defineAsyncComponent as S, computed as f, ref as u, getCurrentInstance as L, onBeforeUnmount as V, resolveDirective as H, createBlock as I, openBlock as C, unref as r, mergeProps as J, withCtx as y, withDirectives as N, createElementBlock as P, createVNode as x, nextTick as U } from "vue";
|
|
2
|
+
import { TpfModal as W } from "tmgc2-share";
|
|
3
|
+
import A from "./SubmitButtonRender.vue.js";
|
|
4
|
+
import { useLowcode as $ } from "../../hooks/useLowcode.js";
|
|
5
|
+
const q = { class: "dialog-content" }, ne = /* @__PURE__ */ M({
|
|
5
6
|
name: "dynamic-dialog",
|
|
6
7
|
__name: "dynamic-dialog",
|
|
7
8
|
props: {
|
|
@@ -43,121 +44,121 @@ const $ = { class: "dialog-content" }, ee = /* @__PURE__ */ T({
|
|
|
43
44
|
default: null
|
|
44
45
|
}
|
|
45
46
|
},
|
|
46
|
-
setup(n, { expose:
|
|
47
|
-
const
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
47
|
+
setup(n, { expose: R }) {
|
|
48
|
+
const F = S(() => import("./index.vue.js")), t = n, D = f(() => t.options.height || "500px"), p = u(null), m = u(!1), l = u(!1), a = L(), { vfdRef: s, formConfig: z, getComponentJson: h, goBack: G } = $({
|
|
49
|
+
formCode: t.options.formCode,
|
|
50
|
+
...t.vfCtx
|
|
51
|
+
}), O = f(() => ({
|
|
52
|
+
...t.parentFormRef,
|
|
53
|
+
parentDom: a,
|
|
54
|
+
getParentFormRef: b
|
|
55
|
+
})), w = f(() => t.options.cancelButtonHidden && t.options.okButtonHidden ? { footer: null } : {});
|
|
56
|
+
V(() => {
|
|
57
|
+
var e, o;
|
|
58
|
+
console.log(t.parentFormRef), (o = (e = t.parentFormRef) == null ? void 0 : e.setChildFormRef) == null || o.call(e, null);
|
|
55
59
|
});
|
|
56
|
-
const
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
const s = await q.get("/api/tmgc2-query/dataQuery/detail/FormDefinitionManagement", {
|
|
62
|
-
params: { code: o.options.formCode }
|
|
63
|
-
}).then((M) => M.data.object.frontendDefinition || "{}"), r = JSON.parse(s);
|
|
64
|
-
console.log("formJson: ", r), (t = (e = a.value) == null ? void 0 : e.setFormJson) == null || t.call(e, r);
|
|
65
|
-
} catch {
|
|
66
|
-
}
|
|
67
|
-
i.value = !1;
|
|
68
|
-
}
|
|
69
|
-
}, O = (e) => {
|
|
70
|
-
console.log("setLoading", e), i.value = e;
|
|
71
|
-
}, w = (e) => {
|
|
72
|
-
a.value.setFormJson(e);
|
|
73
|
-
}, k = (e) => {
|
|
74
|
-
o.options.title = e;
|
|
75
|
-
}, j = () => {
|
|
60
|
+
const k = (e) => {
|
|
61
|
+
console.log("setLoading", e), m.value = e;
|
|
62
|
+
}, B = (e) => {
|
|
63
|
+
t.options.title = e;
|
|
64
|
+
}, T = () => {
|
|
76
65
|
l.value = !0;
|
|
77
|
-
},
|
|
78
|
-
l.value = !0,
|
|
79
|
-
var e;
|
|
80
|
-
|
|
66
|
+
}, j = async () => {
|
|
67
|
+
console.log(32132312132), l.value = !0, U(async () => {
|
|
68
|
+
var e, o;
|
|
69
|
+
t.options.readMode && ((e = s.value) == null || e.setReadMode(!0)), console.log({
|
|
70
|
+
...t.vfCtx,
|
|
71
|
+
instance: a
|
|
72
|
+
}), await h([], t.options.formCode), (o = s.value) == null || o.setDialogOrDrawerRef(a), t.parentFormRef && t.parentFormRef.setChildFormRef(s.value), v();
|
|
81
73
|
});
|
|
82
|
-
},
|
|
83
|
-
|
|
84
|
-
}, c = () =>
|
|
85
|
-
|
|
74
|
+
}, E = () => {
|
|
75
|
+
t.options.onDialogBeforeClose && new Function("done", t.options.onDialogBeforeClose).call(a) === !1 || (l.value = !1);
|
|
76
|
+
}, c = () => {
|
|
77
|
+
if (t.options.onDialogBeforeClose) {
|
|
78
|
+
const e = new Function(t.options.onDialogBeforeClose);
|
|
79
|
+
return console.log(e), e.call(a);
|
|
80
|
+
}
|
|
81
|
+
return !0;
|
|
86
82
|
}, g = () => {
|
|
87
|
-
|
|
88
|
-
}, v = () =>
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
83
|
+
c() && (l.value = !1);
|
|
84
|
+
}, v = () => {
|
|
85
|
+
t.options.onDialogOpened && new Function(t.options.onDialogOpened).call(a);
|
|
86
|
+
}, b = () => t.parentFormRef;
|
|
87
|
+
return R({
|
|
88
|
+
setleftText: (e) => {
|
|
89
|
+
p.value = e;
|
|
90
|
+
},
|
|
91
|
+
setLoading: k,
|
|
92
|
+
setTitle: B,
|
|
93
|
+
beforeOpen: T,
|
|
94
|
+
show: j,
|
|
95
|
+
close: E,
|
|
97
96
|
handleBeforeClose: c,
|
|
98
|
-
handleCloseEvent:
|
|
99
|
-
handleOpenedEvent:
|
|
100
|
-
getParentFormRef:
|
|
101
|
-
getFormRef: () => (console.log("getFormRef"),
|
|
102
|
-
getWidgetRef: (e,
|
|
97
|
+
handleCloseEvent: g,
|
|
98
|
+
handleOpenedEvent: v,
|
|
99
|
+
getParentFormRef: b,
|
|
100
|
+
getFormRef: () => (console.log("getFormRef"), s.value),
|
|
101
|
+
getWidgetRef: (e, o = !1) => {
|
|
102
|
+
var i;
|
|
103
|
+
return (i = s.value) == null ? void 0 : i.getWidgetRef(e, o);
|
|
104
|
+
},
|
|
103
105
|
updateTable: () => {
|
|
104
|
-
var e,
|
|
105
|
-
(
|
|
106
|
+
var e, o, i;
|
|
107
|
+
(i = (o = (e = t.vfCtx) == null ? void 0 : e.parent) == null ? void 0 : o.exposed) != null && i.updateTable && t.vfCtx.parent.exposed.updateTable();
|
|
106
108
|
},
|
|
107
|
-
getExtraData: () =>
|
|
108
|
-
}), (e,
|
|
109
|
-
const
|
|
110
|
-
return
|
|
109
|
+
getExtraData: () => t.extraData
|
|
110
|
+
}), (e, o) => {
|
|
111
|
+
const i = H("loading");
|
|
112
|
+
return C(), I(r(W), J({
|
|
111
113
|
class: "tpf-model design-model",
|
|
112
114
|
destroyOnClose: !0,
|
|
113
115
|
title: n.options.title,
|
|
114
116
|
bodyStyle: {
|
|
115
|
-
height:
|
|
117
|
+
height: D.value,
|
|
116
118
|
overflow: "auto",
|
|
117
119
|
...JSON.parse(n.options.bodyStyle || "{}")
|
|
118
120
|
},
|
|
119
121
|
centered: !0,
|
|
120
122
|
visible: l.value,
|
|
121
|
-
"onUpdate:visible":
|
|
123
|
+
"onUpdate:visible": o[1] || (o[1] = (d) => l.value = d),
|
|
122
124
|
width: n.options.width,
|
|
123
125
|
mask: n.options.showModal,
|
|
124
126
|
maskClosable: n.options.closeOnClickModal,
|
|
125
127
|
keyboard: n.options.closeOnPressEscape,
|
|
126
|
-
onCancel:
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
128
|
+
onCancel: g,
|
|
129
|
+
"left-num": p.value
|
|
130
|
+
}, w.value), {
|
|
131
|
+
footerRight: y(() => [
|
|
132
|
+
x(A, {
|
|
130
133
|
"dialog-visible": l.value,
|
|
131
|
-
"onUpdate:dialogVisible":
|
|
134
|
+
"onUpdate:dialogVisible": o[0] || (o[0] = (d) => l.value = d),
|
|
132
135
|
handleBeforeClose: c,
|
|
133
136
|
options: n.options,
|
|
134
|
-
ctx:
|
|
137
|
+
ctx: r(s)
|
|
135
138
|
}, null, 8, ["dialog-visible", "options", "ctx"])
|
|
136
139
|
]),
|
|
137
|
-
default:
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
"
|
|
147
|
-
"global-dsv": n.globalDsv,
|
|
148
|
-
"parent-form": h.value,
|
|
140
|
+
default: y(() => [
|
|
141
|
+
N((C(), P("div", q, [
|
|
142
|
+
x(r(F), {
|
|
143
|
+
ref_key: "vfdRef",
|
|
144
|
+
ref: s,
|
|
145
|
+
vfCtx: {
|
|
146
|
+
...n.vfCtx,
|
|
147
|
+
instance: r(a)
|
|
148
|
+
},
|
|
149
|
+
"parent-form": O.value,
|
|
149
150
|
"disabled-mode": n.options.disabledMode,
|
|
150
151
|
"dynamic-creation": !0
|
|
151
|
-
}, null, 8, ["
|
|
152
|
+
}, null, 8, ["vfCtx", "parent-form", "disabled-mode"])
|
|
152
153
|
])), [
|
|
153
|
-
[
|
|
154
|
+
[i, m.value]
|
|
154
155
|
])
|
|
155
156
|
]),
|
|
156
157
|
_: 1
|
|
157
|
-
}, 16, ["title", "bodyStyle", "visible", "width", "mask", "maskClosable", "keyboard"]);
|
|
158
|
+
}, 16, ["title", "bodyStyle", "visible", "width", "mask", "maskClosable", "keyboard", "left-num"]);
|
|
158
159
|
};
|
|
159
160
|
}
|
|
160
161
|
});
|
|
161
162
|
export {
|
|
162
|
-
|
|
163
|
+
ne as default
|
|
163
164
|
};
|