@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.
Files changed (90) hide show
  1. package/package.json +1 -1
  2. package/src/components/FormRender/useFormRender.js +18 -0
  3. package/src/components/form-designer/designer.js +78 -75
  4. package/src/components/form-designer/form-widget/container-widget/data-table-widget.vue.js +18 -18
  5. package/src/components/form-designer/form-widget/container-widget/data-table-widget.vue2.js +18 -20
  6. package/src/components/form-designer/form-widget/container-widget/vf-box-item.vue.js +9 -9
  7. package/src/components/form-designer/form-widget/container-widget/vf-dialog-widget.vue.js +29 -21
  8. package/src/components/form-designer/form-widget/field-widget/cascader-widget.vue.js +32 -39
  9. package/src/components/form-designer/form-widget/field-widget/date-range-widget.vue.js +24 -31
  10. package/src/components/form-designer/form-widget/field-widget/date-widget.vue.js +26 -33
  11. package/src/components/form-designer/form-widget/field-widget/diy-compontent-widget.vue.js +4 -4
  12. package/src/components/form-designer/form-widget/field-widget/fieldMixin.js +4 -1
  13. package/src/components/form-designer/form-widget/field-widget/form-item-wrapper.vue.js +84 -152
  14. package/src/components/form-designer/form-widget/field-widget/input-widget.vue.js +31 -38
  15. package/src/components/form-designer/form-widget/field-widget/number-widget.vue.js +23 -30
  16. package/src/components/form-designer/form-widget/field-widget/select-widget.vue.js +56 -63
  17. package/src/components/form-designer/form-widget/field-widget/switch-widget.vue.js +1 -1
  18. package/src/components/form-designer/form-widget/field-widget/textarea-widget.vue.js +23 -32
  19. package/src/components/form-designer/form-widget/field-widget/treeSelect-widget.vue.js +26 -33
  20. package/src/components/form-designer/setting-panel/form-setting.vue.js +2 -2
  21. package/src/components/form-designer/setting-panel/form-setting.vue2.js +81 -94
  22. package/src/components/form-designer/setting-panel/index.vue.js +2 -2
  23. package/src/components/form-designer/setting-panel/index.vue2.js +135 -135
  24. package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-colorRow-editor.vue2.js +8 -7
  25. package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-dsEnabled-editor.vue.js +23 -22
  26. package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-tableColumns-editor.vue.js +3 -3
  27. package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-tableColumns-editor.vue2.js +7 -7
  28. package/src/components/form-designer/setting-panel/property-editor/container-vf-dialog/formCode-editor.vue.js +25 -19
  29. package/src/components/form-designer/setting-panel/property-editor/container-vf-dialog/line-height-editor.vue2.js +7 -6
  30. package/src/components/form-designer/setting-panel/property-editor/index.js +41 -42
  31. package/src/components/form-designer/setting-panel/propertyRegister.js +3 -6
  32. package/src/components/form-designer/widget-panel/PanelItemDrag.vue.js +50 -0
  33. package/src/components/form-designer/widget-panel/PanelItemDrag.vue2.js +4 -0
  34. package/src/components/form-designer/widget-panel/advanced/cascader.js +0 -1
  35. package/src/components/form-designer/widget-panel/advanced/data-table.js +1 -1
  36. package/src/components/form-designer/widget-panel/advanced/file-upload.js +0 -1
  37. package/src/components/form-designer/widget-panel/advanced/rich-editor.js +4 -5
  38. package/src/components/form-designer/widget-panel/advanced/tree-select.js +0 -1
  39. package/src/components/form-designer/widget-panel/basicFields/checkbox.js +2 -3
  40. package/src/components/form-designer/widget-panel/basicFields/color.js +0 -1
  41. package/src/components/form-designer/widget-panel/basicFields/date.js +0 -1
  42. package/src/components/form-designer/widget-panel/basicFields/dateRange.js +0 -1
  43. package/src/components/form-designer/widget-panel/basicFields/input.js +0 -1
  44. package/src/components/form-designer/widget-panel/basicFields/number.js +0 -1
  45. package/src/components/form-designer/widget-panel/basicFields/radio.js +0 -1
  46. package/src/components/form-designer/widget-panel/basicFields/rate.js +5 -6
  47. package/src/components/form-designer/widget-panel/basicFields/select.js +2 -3
  48. package/src/components/form-designer/widget-panel/basicFields/slider.js +0 -1
  49. package/src/components/form-designer/widget-panel/basicFields/switch.js +0 -1
  50. package/src/components/form-designer/widget-panel/basicFields/textarea.js +0 -1
  51. package/src/components/form-designer/widget-panel/basicFields/time.js +0 -1
  52. package/src/components/form-designer/widget-panel/basicFields/timeRange.js +0 -1
  53. package/src/components/form-designer/widget-panel/business/department-select.js +0 -1
  54. package/src/components/form-designer/widget-panel/business/material-select.js +0 -1
  55. package/src/components/form-designer/widget-panel/business/operation-select.js +2 -3
  56. package/src/components/form-designer/widget-panel/business/post-select.js +0 -1
  57. package/src/components/form-designer/widget-panel/business/project-group-select.js +2 -3
  58. package/src/components/form-designer/widget-panel/business/project-select.js +2 -3
  59. package/src/components/form-designer/widget-panel/business/user-select.js +0 -1
  60. package/src/components/form-designer/widget-panel/containers/vf-dialog.js +3 -2
  61. package/src/components/form-designer/widget-panel/index.vue.js +4 -338
  62. package/src/components/form-designer/widget-panel/index.vue2.js +82 -0
  63. package/src/components/form-designer/widget-panel/widgetsConfig.js +19 -18
  64. package/src/components/form-render/RenderWigetList.vue.js +61 -0
  65. package/src/components/form-render/RenderWigetList.vue2.js +4 -0
  66. package/src/components/form-render/SubmitButtonRender.vue.js +41 -29
  67. package/src/components/form-render/container-item/container-item-wrapper.vue.js +2 -23
  68. package/src/components/form-render/container-item/container-item-wrapper.vue2.js +20 -0
  69. package/src/components/form-render/container-item/data-table-item.vue.js +22 -36
  70. package/src/components/form-render/container-item/grid-item.vue.js +7 -7
  71. package/src/components/form-render/container-item/grid-sub-form-item.vue.js +1 -1
  72. package/src/components/form-render/container-item/sub-form-item.vue.js +115 -146
  73. package/src/components/form-render/container-item/tab-item.vue.js +19 -19
  74. package/src/components/form-render/container-item/table-item.vue.js +7 -7
  75. package/src/components/form-render/container-item/vf-collapse-item.vue.js +27 -27
  76. package/src/components/form-render/dynamic-dialog.vue.js +87 -86
  77. package/src/components/form-render/index.vue.js +94 -110
  78. package/src/components/public/ActionButtonListDialog.vue.js +82 -75
  79. package/src/components/public/ActionButtonListDialog.vue2.js +16 -10
  80. package/src/components/public/ActionButtonListRender.vue.js +12 -11
  81. package/src/components/public/CustomerModal/CustomerModal.vue2.js +49 -42
  82. package/src/hooks/useLowcode.js +40 -39
  83. package/src/lang/en-US.js +5 -1
  84. package/src/lang/zh-CN.js +5 -1
  85. package/src/mixins/useDataTableMixin.js +29 -31
  86. package/src/utils/asyncExecuteFunction.js +4 -0
  87. package/stats.html +1 -1
  88. package/styles/style.css +1 -1
  89. package/src/components/form-designer/setting-panel/property-editor/labelTooltip-editor.vue.js +0 -31
  90. package/src/components/form-designer/widget-panel/templatesConfig.js +0 -53
@@ -1,6 +1,6 @@
1
- import L from "./container-item-wrapper.vue.js";
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 i, withCtx as d, createElementVNode as C, createVNode as c, createElementBlock as m, createCommentVNode as y, 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";
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 _ = await this.$http.get("/api/tmgc2-query/dataQuery/detail/FormDefinitionManagement", {
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, _, e, Q, U, b) {
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((i(), s(x, { widget: e.widget }, {
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 ? y("", !0) : (i(), m("div", {
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 ? (i(!0), m(u, { key: 0 }, l(e.widget.headerRightSlotList, (n, a) => (i(), m(u, null, [
152
- n.category === "container" ? (i(), s(g(t.getComponentByContainer(n)), {
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), (o) => ({
164
- name: o,
163
+ l(Object.keys(t.$slots), (i) => ({
164
+ name: i,
165
165
  fn: d((r) => [
166
- w(t.$slots, o, h({ ref_for: !0 }, r), void 0, !0)
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"])) : (i(), s(g(n.type + "-widget"), {
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), (o) => ({
178
- name: o,
177
+ l(Object.keys(t.$slots), (i) => ({
178
+ name: i,
179
179
  fn: d((r) => [
180
- w(t.$slots, o, h({ ref_for: !0 }, r), void 0, !0)
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)) : y("", !0)
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 ? (i(!0), m(u, { key: 0 }, l(e.widget.defaultSlotsList, (n, a) => (i(), m(u, null, [
202
- n.category === "container" ? (i(), s(g(t.getComponentByContainer(n)), {
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), (o) => ({
215
- name: o,
214
+ l(Object.keys(t.$slots), (i) => ({
215
+ name: i,
216
216
  fn: d((r) => [
217
- w(t.$slots, o, h({ ref_for: !0 }, r), void 0, !0)
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"])) : (i(), s(g(n.type + "-widget"), {
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), (o) => ({
229
- name: o,
228
+ l(Object.keys(t.$slots), (i) => ({
229
+ name: i,
230
230
  fn: d((r) => [
231
- w(t.$slots, o, h({ ref_for: !0 }, r), void 0, !0)
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)) : y("", !0)
235
+ ], 64))), 256)) : _("", !0)
236
236
  ], 4), [
237
237
  [O, !e.widget.options.isCollapse]
238
238
  ])
@@ -1,7 +1,8 @@
1
- import { defineComponent as T, defineAsyncComponent as E, ref as b, getCurrentInstance as S, computed as F, onBeforeUnmount as L, resolveDirective as V, createBlock as I, openBlock as y, unref as f, mergeProps as N, withCtx as C, withDirectives as P, createElementBlock as U, createVNode as R, nextTick as W } from "vue";
2
- import { useComRef as A, TpfModal as H, http as q } from "tmgc2-share";
3
- import Q from "./SubmitButtonRender.vue.js";
4
- const $ = { class: "dialog-content" }, ee = /* @__PURE__ */ T({
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: D }) {
47
- const u = E(() => import("./index.vue.js")), o = n, i = b(!1), l = b(!1), a = A(u), d = S(), h = F(() => ({
48
- ...o.parentFormRef,
49
- parentDom: d,
50
- getParentFormRef: v
51
- })), x = F(() => o.options.cancelButtonHidden && o.options.okButtonHidden ? { footer: null } : {});
52
- L(() => {
53
- var e, t;
54
- console.log(o.parentFormRef), (t = (e = o.parentFormRef) == null ? void 0 : e.setChildFormRef) == null || t.call(e, null);
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 m = async () => {
57
- var e, t;
58
- if (o.options.formCode) {
59
- i.value = !0;
60
- try {
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
- }, B = () => {
78
- l.value = !0, W(() => {
79
- var e;
80
- o.options.readMode && a.value.setReadMode(!0), m(), console.log(a.value), (e = a.value) == null || e.setDialogOrDrawerRef(d), o.parentFormRef && o.parentFormRef.setChildFormRef(a.value), g();
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
- }, J = () => {
83
- o.options.onDialogBeforeClose && new Function("done", o.options.onDialogBeforeClose).call(d) === !1 || (l.value = !1);
84
- }, c = () => o.options.onDialogBeforeClose ? new Function(o.options.onDialogBeforeClose).call(d) : !0, p = () => {
85
- c() && (l.value = !1);
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
- o.options.onDialogOpened && new Function(o.options.onDialogOpened).call(d);
88
- }, v = () => o.parentFormRef;
89
- return D({
90
- loadFormCode: m,
91
- setLoading: O,
92
- setFormJson: w,
93
- setTitle: k,
94
- beforeOpen: j,
95
- show: B,
96
- close: J,
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: p,
99
- handleOpenedEvent: g,
100
- getParentFormRef: v,
101
- getFormRef: () => (console.log("getFormRef"), a.value),
102
- getWidgetRef: (e, t = !1) => a.value.getWidgetRef(e, t),
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, t, s;
105
- (s = (t = (e = o.vfCtx) == null ? void 0 : e.parent) == null ? void 0 : t.exposed) != null && s.updateTable && o.vfCtx.parent.exposed.updateTable();
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: () => o.extraData
108
- }), (e, t) => {
109
- const s = V("loading");
110
- return y(), I(f(H), N({
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: n.options.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": t[1] || (t[1] = (r) => l.value = r),
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: p
127
- }, x.value), {
128
- footerRight: C(() => [
129
- R(Q, {
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": t[0] || (t[0] = (r) => l.value = r),
134
+ "onUpdate:dialogVisible": o[0] || (o[0] = (d) => l.value = d),
132
135
  handleBeforeClose: c,
133
136
  options: n.options,
134
- ctx: f(a)
137
+ ctx: r(s)
135
138
  }, null, 8, ["dialog-visible", "options", "ctx"])
136
139
  ]),
137
- default: C(() => [
138
- P((y(), U("div", $, [
139
- R(f(u), {
140
- isLoading: i.value,
141
- ref_key: "dFormRef",
142
- ref: a,
143
- "form-json": n.formJson,
144
- "form-data": n.formData,
145
- vfCtx: n.vfCtx,
146
- "option-data": n.optionData,
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, ["isLoading", "form-json", "form-data", "vfCtx", "option-data", "global-dsv", "parent-form", "disabled-mode"])
152
+ }, null, 8, ["vfCtx", "parent-form", "disabled-mode"])
152
153
  ])), [
153
- [s, i.value]
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
- ee as default
163
+ ne as default
163
164
  };