@kp-ui/lowcode 2.15.0-alpha.14 → 2.15.0-alpha.16

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 (21) hide show
  1. package/package.json +1 -1
  2. package/src/components/FormRender/index.vue.js +5 -79
  3. package/src/components/FormRender/index.vue2.js +85 -2
  4. package/src/components/form-designer/form-widget/container-widget/data-table-widget.vue.js +3 -3
  5. package/src/components/form-designer/form-widget/container-widget/data-table-widget.vue2.js +36 -30
  6. package/src/components/form-designer/form-widget/container-widget/useTableWidget.js +58 -54
  7. package/src/components/form-designer/form-widget/field-widget/hooks/useSelect.js +16 -16
  8. package/src/components/form-designer/form-widget/field-widget/useField.js +117 -108
  9. package/src/components/form-designer/index.vue.js +60 -62
  10. package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-tableColumns-editor.vue.js +3 -3
  11. package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-tableColumns-editor.vue2.js +49 -47
  12. package/src/components/form-designer/toolbar-panel/PreviewDialog.vue.js +1 -1
  13. package/src/components/form-designer/widget-panel/advanced/data-table.js +7 -19
  14. package/src/components/form-render/container-items/data-table-widget.vue.js +1 -1
  15. package/src/components/form-render/container-items/data-table-widget.vue2.js +57 -49
  16. package/src/components/form-render/dynamic-dialog.vue.js +91 -94
  17. package/src/components/public/CustomerModal/CustomerModal.vue2.js +16 -16
  18. package/src/hooks/useDataHttp.js +15 -12
  19. package/src/lang/zh-CN.js +4 -3
  20. package/stats.html +1 -1
  21. package/styles/style.css +1 -1
@@ -1,23 +1,23 @@
1
- import { inject as c, ref as f, getCurrentInstance as Ne, computed as d, toRaw as J, onMounted as ze, onBeforeUnmount as Ue, nextTick as $ } from "vue";
2
- import { deepClone as j } from "../../../../utils/util.js";
1
+ import { inject as c, ref as f, getCurrentInstance as ze, computed as s, toRaw as $, onMounted as Ue, onBeforeUnmount as Te, nextTick as j } from "vue";
2
+ import { deepClone as G } from "../../../../utils/util.js";
3
3
  import I from "../../../../utils/validators.js";
4
- import { get as Te, eq as Le, isArray as Pe } from "lodash-es";
5
- import { useI18n as We } from "../../../../utils/i18n.js";
6
- import { useEmitter as Je } from "../../../../utils/useEmitter.js";
7
- import { useAppRef as $e } from "../../useAppRef.js";
8
- import { useExecFunction as je } from "tmgc2-share";
9
- function pe(t) {
10
- const G = c("getFormConfig", () => ({})), y = c("formData", f({})), K = c("getReadMode", () => !1), k = c("isSubFormField", !1), D = c("getSubFormName", () => ""), o = c("designState", !1), { registerToRefList: Q, getWidgetRef: X, getFormRef: B, unregisterFromRefList: Y } = $e(), { executeFunction: u, asyncExecuteFunction: g } = je(), { i18nt: M, i18n2t: Z } = We(), { field: s } = t, v = f(null), A = f(null), R = f(!1), _ = f(!1), l = f([]), O = f({}), H = f({}), w = f(null), h = Ne(), { dispatch: E } = Je(), q = d(() => G()), p = d(() => {
4
+ import { get as Le, eq as Pe, isArray as We } from "lodash-es";
5
+ import { useI18n as Je } from "../../../../utils/i18n.js";
6
+ import { useEmitter as $e } from "../../../../utils/useEmitter.js";
7
+ import { useAppRef as je } from "../../useAppRef.js";
8
+ import { useExecFunction as Ge } from "tmgc2-share";
9
+ function et(t) {
10
+ const K = c("getFormConfig", () => ({})), y = c("formData", f({})), Q = c("getReadMode", () => !1), k = c("isSubFormField", !1), D = c("getSubFormName", () => ""), o = c("designState", !1), { registerToRefList: X, getWidgetRef: Y, getFormRef: B, unregisterFromRefList: Z } = je(), { executeFunction: u, asyncExecuteFunction: m } = Ge(), { i18nt: M, i18n2t: _ } = Je(), { field: d } = t, v = f(null), A = f(null), R = f(!1), w = f(!1), l = f([]), O = f({}), H = f({}), p = f(null), h = ze(), { dispatch: E } = $e(), q = s(() => K()), ee = s(() => {
11
11
  var e;
12
- return (e = s == null ? void 0 : s.options) != null && e.size ? s.options.size : q.value.size || "middle";
13
- }), b = d(() => D ? D() : ""), a = d({
12
+ return (e = d == null ? void 0 : d.options) != null && e.size ? d.options.size : q.value.size || "middle";
13
+ }), b = s(() => D ? D() : ""), a = s({
14
14
  get() {
15
- return Te(y.value, m.value);
15
+ return Le(y.value, g.value);
16
16
  },
17
17
  set(e) {
18
18
  x(e);
19
19
  }
20
- }), ee = d(() => y.value[b.value]), S = d(() => K() ? !0 : R.value), te = d(() => {
20
+ }), te = s(() => y.value[b.value]), S = s(() => Q() ? !0 : R.value), ne = s(() => {
21
21
  if (o)
22
22
  return !1;
23
23
  const { onHidden: e, hidden: n } = t.field.options;
@@ -32,7 +32,7 @@ function pe(t) {
32
32
  return !1;
33
33
  }
34
34
  return !1;
35
- }), V = d(() => {
35
+ }), V = s(() => {
36
36
  if (o)
37
37
  return !1;
38
38
  const { onDisabled: e, disabled: n } = t.field.options;
@@ -47,29 +47,29 @@ function pe(t) {
47
47
  return console.log({ error: i }), !1;
48
48
  }
49
49
  return !1;
50
- }), ne = (e, n) => {
50
+ }), ie = (e, n) => {
51
51
  if (!Array.isArray(e))
52
52
  return -1;
53
53
  let i = -1;
54
- return e.forEach((r, Ve) => {
55
- r === n && (i = Ve);
54
+ return e.forEach((r, Ne) => {
55
+ r === n && (i = Ne);
56
56
  }), i;
57
- }, m = d(() => k && !o ? b.value + "." + t.subFormRowIndex + "." + t.field.options.name : t.field.options.name);
58
- function ie() {
59
- o || t.field.options.onCreated && $(async () => {
60
- await g({
57
+ }, g = s(() => k && !o ? b.value + "." + t.subFormRowIndex + "." + t.field.options.name : t.field.options.name);
58
+ function oe() {
59
+ o || t.field.options.onCreated && j(async () => {
60
+ await m({
61
61
  functionBody: t.field.options.onCreated
62
62
  });
63
63
  });
64
64
  }
65
- function oe() {
66
- o || t.field.options.onMounted && $(async () => {
67
- await g({
65
+ function le() {
66
+ o || t.field.options.onMounted && j(async () => {
67
+ await m({
68
68
  functionBody: t.field.options.onMounted
69
69
  });
70
70
  });
71
71
  }
72
- const le = () => {
72
+ const ae = () => {
73
73
  a.value = t.field.options.defaultValue;
74
74
  }, N = () => {
75
75
  t.field.formItemFlag && l.value.splice(0, l.value.length);
@@ -110,19 +110,19 @@ function pe(t) {
110
110
  });
111
111
  }
112
112
  }
113
- }, ae = () => {
113
+ }, se = () => {
114
114
  l.value && l.value.forEach((e) => {
115
115
  e.trigger && e.trigger.splice(0, e.trigger.length);
116
116
  });
117
- }, se = () => {
117
+ }, de = () => {
118
118
  l.value && l.value.forEach((e) => {
119
119
  e.trigger && (e.trigger.push("blur"), e.trigger.push("change"));
120
120
  });
121
- }, de = (e, n) => {
121
+ }, fe = (e, n) => {
122
122
  e && e.length > 0 && e.forEach((i) => {
123
123
  i.value === n && (i.disabled = !0);
124
124
  });
125
- }, fe = (e, n) => {
125
+ }, ue = (e, n) => {
126
126
  e && e.length > 0 && e.forEach((i) => {
127
127
  i.value === n && (i.disabled = !1);
128
128
  });
@@ -135,25 +135,25 @@ function pe(t) {
135
135
  t.subFormRowIndex
136
136
  ]);
137
137
  }, x = (e) => {
138
- o || (E("VFormRender", "fieldValidation", [m.value]), U(e, J(a.value)), E("VFormRender", "fieldChange", {
139
- fieldName: m.value,
138
+ o || (E("VFormRender", "fieldValidation", [g.value]), E("VFormRender", "fieldChange", {
139
+ fieldName: g.value,
140
140
  value: e,
141
- oldValue: J(a.value),
142
- field: s
143
- }));
144
- }, ue = (e) => {
145
- o || (A.value = j(a.value), t.field.options.onFocus && u({
141
+ oldValue: $(a.value),
142
+ field: d
143
+ }), U(e, $(a.value)));
144
+ }, re = (e) => {
145
+ o || (A.value = G(a.value), t.field.options.onFocus && u({
146
146
  functionBody: t.field.options.onFocus,
147
147
  params: { event: e },
148
148
  keys: ["event"]
149
149
  }));
150
- }, re = (e) => {
150
+ }, ce = (e) => {
151
151
  o || t.field.options.onBlur && u({
152
152
  functionBody: t.field.options.onBlur,
153
153
  params: { event: e },
154
154
  keys: ["event"]
155
155
  });
156
- }, ce = () => {
156
+ }, ge = () => {
157
157
  o || t.field.options.onAppendButtonClick && u({
158
158
  functionBody: t.field.options.onAppendButtonClick
159
159
  });
@@ -163,27 +163,27 @@ function pe(t) {
163
163
  params: {
164
164
  value: e,
165
165
  oldVal: n,
166
- subFormData: ee.value,
166
+ subFormData: te.value,
167
167
  rowId: t.subFormRowId
168
168
  },
169
169
  keys: ["value", "subFormData", "rowId"]
170
170
  });
171
171
  }, me = async () => {
172
172
  if (!o && t.field.options.onClick)
173
- return await g({
173
+ return await m({
174
174
  functionBody: t.field.options.onClick
175
175
  });
176
- }, ge = async () => {
177
- o || V.value || s.options.onClickIcon && await g({
178
- functionBody: s.options.onClickIcon
176
+ }, ve = async () => {
177
+ o || V.value || d.options.onClickIcon && await m({
178
+ functionBody: d.options.onClickIcon
179
179
  });
180
- }, F = () => v.value, T = (e) => (typeof e == "string" && (e = JSON.parse(e)), Pe(e) ? e.map((i, r) => ({
180
+ }, F = () => v.value, T = (e) => (typeof e == "string" && (e = JSON.parse(e)), We(e) ? e.map((i, r) => ({
181
181
  ...i,
182
182
  name: i.fileName,
183
183
  uid: r
184
184
  })) : []), L = (e, n = !1) => {
185
- if (e && (e = e.target ? e.target.value : e), Le(a.value, e)) return;
186
- const i = j(a.value);
185
+ if (e && (e = e.target ? e.target.value : e), Pe(a.value, e)) return;
186
+ const i = G(a.value);
187
187
  if (t.field.type === "file-upload")
188
188
  e = T(e || []);
189
189
  else if (t.field.type === "code-editor") {
@@ -191,135 +191,144 @@ function pe(t) {
191
191
  r && r.setValue(e);
192
192
  }
193
193
  a.value = e, x(e), n || z(e, i);
194
- }, ve = () => a.value, he = () => {
194
+ }, he = () => a.value, be = () => {
195
195
  const e = t.field.options.defaultValue;
196
196
  L(e), (t.field.type === "picture-upload" || t.field.type === "file-upload") && a.value.splice(0, a.value.length);
197
- }, be = (e, n) => {
197
+ }, Ce = (e, n) => {
198
198
  t.field.options.hasOwnProperty(e) && (t.field.options[e] = n);
199
- }, Ce = (e) => {
200
- t.field.options.readonly = e;
201
199
  }, Fe = (e) => {
202
- t.field.options.disabled = e;
200
+ t.field.options.readonly = e;
203
201
  }, ye = (e) => {
204
- t.field.options.appendButton = e;
202
+ t.field.options.disabled = e;
205
203
  }, Be = (e) => {
206
- t.field.options.appendButtonDisabled = e;
204
+ t.field.options.appendButton = e;
207
205
  }, Re = (e) => {
208
- t.field.options.hidden = e, e ? N() : C();
206
+ t.field.options.appendButtonDisabled = e;
209
207
  }, Ee = (e) => {
208
+ t.field.options.hidden = e, e ? N() : C();
209
+ }, xe = (e) => {
210
210
  t.field.options.required = e, C(), !o && !e && P();
211
211
  }, P = () => {
212
- o || B().clearValidate(m.value);
213
- }, xe = () => B().vfCtx, Ie = (e) => {
212
+ o || B().clearValidate(g.value);
213
+ }, Ie = () => B().vfCtx, ke = (e) => {
214
214
  t.field.options.label = e;
215
215
  }, W = () => {
216
216
  const e = F();
217
217
  e && e.focus && e.focus();
218
- }, ke = (e, n) => {
219
- O.value[e] = n;
220
218
  }, De = (e, n) => {
219
+ O.value[e] = n;
220
+ }, Me = (e, n) => {
221
221
  H.value[e] = n;
222
- }, Me = (e = !0) => {
222
+ }, Ae = (e = !0) => {
223
223
  R.value = e;
224
- }, Ae = (e) => {
224
+ }, Oe = (e) => {
225
225
  t.field.options.customClass ? t.field.options.customClass.push(e) : t.field.options.customClass = [e];
226
- }, Oe = d(() => t.field.options.customClass), He = (e) => {
226
+ }, He = s(() => t.field.options.customClass), qe = (e) => {
227
227
  if (!t.field.options.customClass)
228
228
  return;
229
229
  let n = -1;
230
230
  t.field.options.customClass.map((i, r) => {
231
231
  i === e && (n = r);
232
232
  }), n > -1 && t.field.options.customClass.splice(n, 1);
233
- }, qe = () => {
233
+ }, Se = () => {
234
234
  var e;
235
235
  return (e = v.value) == null ? void 0 : e.$el;
236
- };
237
- ze(() => {
238
- Q(), ie(), C(), oe();
239
- }), Ue(() => {
240
- Y();
236
+ }, J = s({
237
+ get() {
238
+ return t.field.options;
239
+ },
240
+ set(e) {
241
+ t.field.options = e;
242
+ }
243
+ });
244
+ Ue(() => {
245
+ X(), oe(), C(), le();
246
+ }), Te(() => {
247
+ Z();
241
248
  });
242
- const Se = {
249
+ const Ve = {
250
+ options: J,
243
251
  proxy: h == null ? void 0 : h.proxy,
244
- field: s,
245
- widget: s,
252
+ field: d,
253
+ widget: d,
246
254
  fieldModel: a,
247
255
  fieldEditor: v,
248
256
  isReadMode: S,
249
- setWidgetOption: be,
250
- setReadonly: Ce,
251
- setDisabled: Fe,
252
- getVfCtx: xe,
253
- setLabel: Ie,
254
- getEl: qe,
255
- setReadMode: Me,
256
- resetField: he,
257
+ setWidgetOption: Ce,
258
+ setReadonly: Fe,
259
+ setDisabled: ye,
260
+ getVfCtx: Ie,
261
+ setLabel: ke,
262
+ getEl: Se,
263
+ setReadMode: Ae,
264
+ resetField: be,
257
265
  setValue: L,
258
- getValue: ve,
266
+ getValue: he,
259
267
  getFieldEditor: F,
260
268
  getFormRef: B,
261
- getWidgetRef: X,
262
- setHidden: Re,
263
- addCssClass: Ae,
264
- removeCssClass: He,
265
- setRequired: Ee,
269
+ getWidgetRef: Y,
270
+ setHidden: Ee,
271
+ addCssClass: Oe,
272
+ removeCssClass: qe,
273
+ setRequired: xe,
266
274
  clearValidate: P,
267
275
  focus: W
268
276
  };
269
277
  return {
270
278
  executeFunction: u,
271
- customClass: Oe,
279
+ options: J,
280
+ customClass: He,
272
281
  fieldEditor: v,
273
282
  // 状态
274
283
  fieldModel: a,
275
284
  oldFieldValue: A,
276
285
  fieldReadonlyFlag: R,
277
- loading: _,
286
+ loading: w,
278
287
  rules: l,
279
288
  uploadHeaders: O,
280
289
  uploadData: H,
281
290
  designState: o,
282
- customToolbar: w,
291
+ customToolbar: p,
283
292
  i18nt: M,
284
- i18n2t: Z,
285
- size: p,
286
- field: s,
293
+ i18n2t: _,
294
+ size: ee,
295
+ field: d,
287
296
  // 计算属性
288
297
  formConfig: q,
289
298
  subFormName: b,
290
299
  formModel: y,
291
300
  isReadMode: S,
292
301
  // 方法
293
- handleHidden: te,
302
+ handleHidden: ne,
294
303
  handleDisabled: V,
295
- findInArray: ne,
296
- getPropName: m,
297
- refreshDefaultValue: le,
304
+ findInArray: ie,
305
+ getPropName: g,
306
+ refreshDefaultValue: ae,
298
307
  clearFieldRules: N,
299
308
  buildFieldRules: C,
300
- disableChangeValidate: ae,
301
- enableChangeValidate: se,
302
- disableOptionOfList: de,
303
- enableOptionOfList: fe,
309
+ disableChangeValidate: se,
310
+ enableChangeValidate: de,
311
+ disableOptionOfList: fe,
312
+ enableOptionOfList: ue,
304
313
  emitFieldDataChange: z,
305
314
  syncUpdateFormModel: x,
306
- handleFocusCustomEvent: ue,
307
- handleBlurCustomEvent: re,
308
- emitAppendButtonClick: ce,
315
+ handleFocusCustomEvent: re,
316
+ handleBlurCustomEvent: ce,
317
+ emitAppendButtonClick: ge,
309
318
  handleOnChange: U,
310
319
  onClick: me,
311
- handleClickIcon: ge,
320
+ handleClickIcon: ve,
312
321
  getFieldEditor: F,
313
322
  showFileList: T,
314
- setAppendButtonVisible: ye,
315
- setAppendButtonDisabled: Be,
323
+ setAppendButtonVisible: Be,
324
+ setAppendButtonDisabled: Re,
316
325
  focus: W,
317
- setUploadHeader: ke,
318
- setUploadData: De,
326
+ setUploadHeader: De,
327
+ setUploadData: Me,
319
328
  isSubFormField: k,
320
- defineExposed: Se
329
+ defineExposed: Ve
321
330
  };
322
331
  }
323
332
  export {
324
- pe as useField
333
+ et as useField
325
334
  };
@@ -1,17 +1,17 @@
1
- import { defineComponent as M, ref as l, provide as s, getCurrentInstance as q, computed as z, watch as G, onMounted as K, resolveComponent as a, resolveDirective as Q, createBlock as X, openBlock as Y, withCtx as n, createVNode as r, createSlots as Z, renderList as j, renderSlot as O, createElementVNode as ee, withDirectives as te, unref as oe } from "vue";
2
- import re from "./widget-panel/index.vue.js";
3
- import ne from "./toolbar-panel/index.vue.js";
4
- import ie from "./setting-panel/index.vue.js";
5
- import le from "./form-widget/index.vue.js";
6
- import { createDesigner as se } from "./designer.js";
7
- import { useLocaleStore as ae } from "@kp-ui/i18n";
8
- import { deepClone as W, getAllFieldWidgets as y, getAllContainerWidgets as w } from "../../utils/util.js";
9
- import { isEmpty as F } from "lodash-es";
10
- import { useI18n as L } from "../../utils/i18n.js";
11
- import { message as b } from "ant-design-vue";
12
- import { storeToRefs as de } from "pinia";
13
- import { useRef as fe } from "tmgc2-share";
14
- const ge = { class: "container-scroll-bar" }, be = /* @__PURE__ */ M({
1
+ import { defineComponent as x, ref as l, provide as s, getCurrentInstance as M, computed as q, watch as z, onMounted as G, resolveComponent as a, createBlock as K, openBlock as Q, withCtx as n, createVNode as r, createSlots as X, renderList as Y, renderSlot as Z, createElementVNode as j } from "vue";
2
+ import O from "./widget-panel/index.vue.js";
3
+ import ee from "./toolbar-panel/index.vue.js";
4
+ import te from "./setting-panel/index.vue.js";
5
+ import oe from "./form-widget/index.vue.js";
6
+ import { createDesigner as re } from "./designer.js";
7
+ import { useLocaleStore as ne } from "@kp-ui/i18n";
8
+ import { deepClone as _, getAllFieldWidgets as W, getAllContainerWidgets as y } from "../../utils/util.js";
9
+ import { isEmpty as w } from "lodash-es";
10
+ import { useI18n as F } from "../../utils/i18n.js";
11
+ import { message as L } from "ant-design-vue";
12
+ import { storeToRefs as ie } from "pinia";
13
+ import { useRef as le } from "tmgc2-share";
14
+ const se = { class: "container-scroll-bar" }, ye = /* @__PURE__ */ x({
15
15
  name: "VFormDesigner",
16
16
  componentName: "VFormDesigner",
17
17
  __name: "index",
@@ -34,75 +34,75 @@ const ge = { class: "container-scroll-bar" }, be = /* @__PURE__ */ M({
34
34
  }) },
35
35
  globalDsv: { default: () => ({}) }
36
36
  },
37
- setup(D, { expose: J }) {
38
- const u = l(), { i18nt: A } = L(), R = ae(), { locale: m } = de(R), d = D;
37
+ setup(b, { expose: D }) {
38
+ const u = l(), { i18nt: J } = F(), A = ne(), { locale: m } = ie(A), d = b;
39
39
  s("serverFieldList", () => c.value), s("designState", !0);
40
- const f = l(270), g = l(300), c = l([]), { initLocale: S } = L(), B = q(), t = l(se(B)), V = z(() => t.value.formConfig);
41
- s("formConfig", V), s("designer", t), s("getDesignerConfig", () => d.designerConfig);
42
- const E = (e) => {
43
- if (!F(e))
40
+ const f = l(270), g = l(300), c = l([]), { initLocale: R } = F(), S = M(), t = l(re(S)), B = q(() => t.value.formConfig);
41
+ s("formConfig", B), s("designer", t), s("getDesignerConfig", () => d.designerConfig);
42
+ const V = (e) => {
43
+ if (!w(e))
44
44
  try {
45
45
  if (!e || !e.formConfig)
46
- throw new Error(A("designer.hint.invalidJsonFormat"));
46
+ throw new Error(J("designer.hint.invalidJsonFormat"));
47
47
  t.value.loadFormJson(e), t.value.emitHistoryChange(), t.value.emitEvent("form-json-imported", []);
48
48
  } catch (o) {
49
- b.error(o + "");
49
+ L.error(o + "");
50
50
  }
51
- }, N = async () => {
51
+ }, E = async () => {
52
52
  d.fieldListApi && (c.value = await d.fieldListApi());
53
- }, k = (e) => {
54
- if (!F(e))
53
+ }, N = (e) => {
54
+ if (!w(e))
55
55
  try {
56
56
  let o = !1;
57
57
  typeof e == "string" ? o = t.value.loadFormJson(JSON.parse(e)) : e.constructor === Object && (o = t.value.loadFormJson(e)), o && t.value.emitHistoryChange();
58
58
  } catch (o) {
59
- b.error(o + "");
59
+ L.error(o + "");
60
60
  }
61
- }, I = () => ({
62
- widgetList: W(t.value.widgetList),
63
- formConfig: W(t.value.formConfig)
64
- }), P = (e = []) => e.length ? y(e) : y(t.value.widgetList), U = (e = []) => e.length ? w(e) : w(t.value.widgetList), H = (e, o = !1) => u.value.getWidgetRef(e, o);
65
- G(
61
+ }, k = () => ({
62
+ widgetList: _(t.value.widgetList),
63
+ formConfig: _(t.value.formConfig)
64
+ }), I = (e = []) => e.length ? W(e) : W(t.value.widgetList), P = (e = []) => e.length ? y(e) : y(t.value.widgetList), U = (e, o = !1) => u.value.getWidgetRef(e, o);
65
+ z(
66
66
  m,
67
67
  () => {
68
- S(m.value);
68
+ R(m.value);
69
69
  },
70
70
  {
71
71
  immediate: !0
72
72
  }
73
73
  );
74
- const [v, T] = fe(!1);
75
- return K(() => {
76
- t.value.initDesigner(), N();
77
- }), J({
78
- isLoading: v,
74
+ const [H, T] = le(!1);
75
+ return G(() => {
76
+ t.value.initDesigner(), E();
77
+ }), D({
78
+ isLoading: H,
79
79
  setLoading: T,
80
- getWidgetRef: H,
81
- getContainerWidgets: U,
82
- getFieldWidgets: P,
83
- getFormJson: I,
84
- setFormJson: k,
85
- setJsonImport: E
80
+ getWidgetRef: U,
81
+ getContainerWidgets: P,
82
+ getFieldWidgets: I,
83
+ getFormJson: k,
84
+ setFormJson: N,
85
+ setJsonImport: V
86
86
  }), (e, o) => {
87
- const p = a("a-layout-sider"), $ = a("a-layout-header"), h = a("a-layout-content"), _ = a("a-layout"), x = Q("loading");
88
- return Y(), X(_, { class: "main-container full-height" }, {
87
+ const v = a("a-layout-sider"), $ = a("a-layout-header"), p = a("a-layout-content"), h = a("a-layout");
88
+ return Q(), K(h, { class: "main-container full-height" }, {
89
89
  default: n(() => [
90
- r(_, null, {
90
+ r(h, null, {
91
91
  default: n(() => [
92
- r(p, {
92
+ r(v, {
93
93
  width: f.value,
94
94
  class: "side-panel"
95
95
  }, {
96
96
  default: n(() => [
97
- r(re)
97
+ r(O)
98
98
  ]),
99
99
  _: 1
100
100
  }, 8, ["width"]),
101
- r(h, { class: "center-layout-container" }, {
101
+ r(p, { class: "center-layout-container" }, {
102
102
  default: n(() => [
103
103
  r($, { class: "toolbar-header" }, {
104
104
  default: n(() => [
105
- r(ne, {
105
+ r(ee, {
106
106
  saveJsonApi: e.saveJsonApi,
107
107
  "global-dsv": e.globalDsv,
108
108
  leftWidth: f.value,
@@ -110,28 +110,26 @@ const ge = { class: "container-scroll-bar" }, be = /* @__PURE__ */ M({
110
110
  rightWidth: g.value,
111
111
  "onUpdate:rightWidth": o[1] || (o[1] = (i) => g.value = i),
112
112
  ref: "toolbarRef"
113
- }, Z({ _: 2 }, [
114
- j(e.$slots, (i, C) => ({
113
+ }, X({ _: 2 }, [
114
+ Y(e.$slots, (i, C) => ({
115
115
  name: C,
116
116
  fn: n(() => [
117
- O(e.$slots, C)
117
+ Z(e.$slots, C)
118
118
  ])
119
119
  }))
120
120
  ]), 1032, ["saveJsonApi", "global-dsv", "leftWidth", "rightWidth"])
121
121
  ]),
122
122
  _: 3
123
123
  }),
124
- r(h, { class: "form-widget-main" }, {
124
+ r(p, { class: "form-widget-main" }, {
125
125
  default: n(() => [
126
- ee("div", ge, [
127
- te(r(le, {
126
+ j("div", se, [
127
+ r(oe, {
128
128
  "global-dsv": e.globalDsv,
129
129
  "form-config": t.value.formConfig,
130
130
  ref_key: "formRef",
131
131
  ref: u
132
- }, null, 8, ["global-dsv", "form-config"]), [
133
- [x, oe(v)]
134
- ])
132
+ }, null, 8, ["global-dsv", "form-config"])
135
133
  ])
136
134
  ]),
137
135
  _: 1
@@ -139,9 +137,9 @@ const ge = { class: "container-scroll-bar" }, be = /* @__PURE__ */ M({
139
137
  ]),
140
138
  _: 3
141
139
  }),
142
- r(p, { width: g.value }, {
140
+ r(v, { width: g.value }, {
143
141
  default: n(() => [
144
- r(ie, {
142
+ r(te, {
145
143
  "selected-widget": t.value.selectedWidget,
146
144
  "onUpdate:selectedWidget": o[2] || (o[2] = (i) => t.value.selectedWidget = i),
147
145
  "global-dsv": e.globalDsv,
@@ -160,5 +158,5 @@ const ge = { class: "container-scroll-bar" }, be = /* @__PURE__ */ M({
160
158
  }
161
159
  });
162
160
  export {
163
- be as default
161
+ ye as default
164
162
  };
@@ -1,7 +1,7 @@
1
- import a from "./data-table-tableColumns-editor.vue2.js";
1
+ import o from "./data-table-tableColumns-editor.vue2.js";
2
2
  /* empty css */
3
- import o from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const e = /* @__PURE__ */ o(a, [["__scopeId", "data-v-a879359a"]]);
3
+ import a from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const e = /* @__PURE__ */ a(o, [["__scopeId", "data-v-ac7b3122"]]);
5
5
  export {
6
6
  e as default
7
7
  };