epic-designer-gold 0.0.23 → 0.0.25

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 (31) hide show
  1. package/dist/{attributeView-8NOrqlS1.cjs → attributeView-BBrzwmf4.cjs} +1 -1
  2. package/dist/{attributeView-BHuhrlM5.js → attributeView-Ck-ShAfN.js} +1 -1
  3. package/dist/index-4q36b3GY.cjs +1 -0
  4. package/dist/index-8CeSyRAe.js +4 -0
  5. package/dist/index-B08C8MBy.cjs +10 -0
  6. package/dist/{index-DAQnePGW.cjs → index-B3vfighS.cjs} +1 -1
  7. package/dist/{index-BqP4q7kG.cjs → index-Bhg6gVv4.cjs} +1 -1
  8. package/dist/{index-BcAPkz_3.js → index-By8RSEAs.js} +1 -1
  9. package/dist/{index-DPQrSg6e.cjs → index-CAF_naew.cjs} +1 -1
  10. package/dist/{index-R1sGzPDh.js → index-CRL8hmqv.js} +1 -1
  11. package/dist/{index-zFyk0fsI.js → index-CbEEZFLc.js} +1 -1
  12. package/dist/{index-CNRYixnW.js → index-Cewvn9wU.js} +296 -295
  13. package/dist/{index-CtqoFTv7.cjs → index-CrBsc5Nz.cjs} +1 -1
  14. package/dist/{index-DzGESDFj.cjs → index-CtryGVPT.cjs} +1 -1
  15. package/dist/{index-BHkCN6Gc.cjs → index-DSLPA7t_.cjs} +1 -1
  16. package/dist/{index-BfV0-xlv.cjs → index-DxHwIIzt.cjs} +1 -1
  17. package/dist/{index-8kRf0Tni.js → index-Dxl77FFb.js} +1 -1
  18. package/dist/{index-BcRau_iO.js → index-DzoVPXjq.js} +92 -91
  19. package/dist/{index-BfWxzrQ0.js → index-guZtdVEN.js} +1 -1
  20. package/dist/{index-DLXCQOpE.js → index-nkzQQCaI.js} +1 -1
  21. package/dist/index.cjs +1 -1
  22. package/dist/index.js +1 -1
  23. package/dist/style.css +1 -1
  24. package/dist/{styleView-DevMh4gy.cjs → styleView-CBGRKJTF.cjs} +1 -1
  25. package/dist/{styleView-Dq9MseMf.js → styleView-D-po6qQi.js} +1 -1
  26. package/dist/ui/elementPlus/index.cjs +1 -1
  27. package/dist/ui/elementPlus/index.js +12 -0
  28. package/package.json +1 -1
  29. package/dist/index-9bx0Eg0-.cjs +0 -1
  30. package/dist/index-CI-wApqh.cjs +0 -10
  31. package/dist/index-DMO6svHk.js +0 -4
@@ -1,6 +1,6 @@
1
- import { ref as S, reactive as Z, defineComponent as G, openBlock as F, createBlock as L, unref as x, mergeProps as me, withCtx as P, renderSlot as R, getCurrentInstance as ne, inject as H, watch as V, useAttrs as _e, provide as $, shallowRef as Pe, computed as U, watchEffect as se, onUnmounted as Se, resolveComponent as Ve, resolveDynamicComponent as Me, createVNode as T, createCommentVNode as De, useSlots as Oe, createElementBlock as he, Suspense as Ae, createElementVNode as J, Fragment as Fe, renderList as Re, nextTick as Y, effectScope as $e, isRef as Ne, getCurrentScope as Be, onScopeDispose as Ue, onMounted as ve, normalizeClass as Te, toRaw as we } from "vue";
2
- import { p as O, a as be, l as q, E as de } from "./axios-ITY6Uw7A.js";
3
- function le(e = 10) {
1
+ import { ref as D, reactive as Z, defineComponent as G, openBlock as F, createBlock as L, unref as _, mergeProps as fe, withCtx as P, renderSlot as R, getCurrentInstance as te, inject as H, watch as V, useAttrs as _e, provide as $, shallowRef as Pe, computed as U, watchEffect as ae, onUnmounted as be, resolveComponent as Ve, resolveDynamicComponent as Me, createVNode as T, createCommentVNode as Se, useSlots as Oe, createElementBlock as pe, Suspense as De, createElementVNode as J, Fragment as Fe, renderList as Re, nextTick as Y, effectScope as $e, isRef as Ne, getCurrentScope as Be, onScopeDispose as Ue, onMounted as me, normalizeClass as Te, toRaw as ge } from "vue";
2
+ import { p as O, a as we, l as q, E as ce } from "./axios-ITY6Uw7A.js";
3
+ function re(e = 10) {
4
4
  const a = "abcdefghijklmnopqrstuvwxyz0123456789";
5
5
  let n = "";
6
6
  for (let o = 0; o < e; o++) {
@@ -31,7 +31,7 @@ function Vt(e) {
31
31
  var t, r;
32
32
  const o = {
33
33
  ...n,
34
- id: `${n.type}_${le(8)}`
34
+ id: `${n.type}_${re(8)}`
35
35
  };
36
36
  return (o.field || o.input) && !((r = (t = O.getComponentConfingByType(o.type)) == null ? void 0 : t.editConstraints) != null && r.fixedField) && (o.field = o.id), o;
37
37
  });
@@ -46,7 +46,7 @@ function z(e, a, n = !0) {
46
46
  a.hasOwnProperty(o) || (Array.isArray(e) ? e.splice(Number(o), 1) : delete e[o]);
47
47
  });
48
48
  }
49
- function Ee(e, a, n = [], o = /* @__PURE__ */ new WeakMap()) {
49
+ function Ae(e, a, n = [], o = /* @__PURE__ */ new WeakMap()) {
50
50
  const t = (r) => {
51
51
  if (Array.isArray(r))
52
52
  return r.map(t);
@@ -55,8 +55,8 @@ function Ee(e, a, n = [], o = /* @__PURE__ */ new WeakMap()) {
55
55
  return "[Circular]";
56
56
  o.set(r, !0);
57
57
  const l = Object.keys(r).sort(), i = {};
58
- return l.forEach((u) => {
59
- n.includes(u) || (i[u] = t(r[u]));
58
+ return l.forEach((c) => {
59
+ n.includes(c) || (i[c] = t(r[c]));
60
60
  }), o.delete(r), i;
61
61
  } else
62
62
  return r;
@@ -101,7 +101,7 @@ function Ft(e, a = "default") {
101
101
  return ze(e, a).map((o) => o.field);
102
102
  }
103
103
  function ze(e, a = "default") {
104
- const n = te(
104
+ const n = ee(
105
105
  e,
106
106
  (t) => {
107
107
  var r;
@@ -109,14 +109,14 @@ function ze(e, a = "default") {
109
109
  },
110
110
  !0
111
111
  );
112
- return te(
112
+ return ee(
113
113
  (n == null ? void 0 : n.children) ?? [],
114
114
  (t) => !!t.input,
115
115
  !1,
116
116
  (t) => t.type !== "subform"
117
117
  );
118
118
  }
119
- function te(e, a, n = !1, o) {
119
+ function ee(e, a, n = !1, o) {
120
120
  const t = [], r = [...e];
121
121
  for (; r.length; ) {
122
122
  const l = r.pop();
@@ -140,7 +140,7 @@ function We(e, a, n) {
140
140
  return e;
141
141
  }
142
142
  function Rt(e, a) {
143
- const n = te(
143
+ const n = ee(
144
144
  e,
145
145
  (o) => o.id === a,
146
146
  !0
@@ -152,7 +152,7 @@ function Rt(e, a) {
152
152
  function $t(e, a) {
153
153
  const n = [{ type: "", children: e }];
154
154
  let o = 0, t = null;
155
- if (te(
155
+ if (ee(
156
156
  n,
157
157
  (r) => {
158
158
  if (t = r.children ?? null, !t) {
@@ -205,7 +205,7 @@ function Nt(e) {
205
205
  size: e.config.size || "middle"
206
206
  },
207
207
  children: [],
208
- id: "form_" + le()
208
+ id: "form_" + re()
209
209
  }
210
210
  ],
211
211
  componentProps: {
@@ -217,11 +217,11 @@ function Nt(e) {
217
217
  ],
218
218
  script: e.script || ""
219
219
  };
220
- return a.schemas[0].children[0].children = ee(e.list), a;
220
+ return a.schemas[0].children[0].children = j(e.list), a;
221
221
  }
222
- function ee(e, a) {
222
+ function j(e, a) {
223
223
  return e.map((n) => {
224
- var u, w, h;
224
+ var c, w, h;
225
225
  let o = n.type ?? "";
226
226
  const t = n.options ?? {}, r = (s, y) => {
227
227
  o === s && (o = y, t.defaultValue && (t.defaultValue = JSON.parse(t.defaultValue)));
@@ -230,7 +230,7 @@ function ee(e, a) {
230
230
  const { minRows: s, maxRows: y } = t;
231
231
  t.autoSize = { minRows: s, maxRows: y }, delete t.minRows, delete t.maxRows;
232
232
  }
233
- o === "number" && !t.precision && delete t.precision, t.width && (t.style = { width: t.width }, delete t.width), o === "grid" && (o = "row"), a && a.type === "grid" && (o = "col", t.span = n.span, n.key = le());
233
+ o === "number" && !t.precision && delete t.precision, t.width && (t.style = { width: t.width }, delete t.width), o === "grid" && (o = "row"), a && a.type === "grid" && (o = "col", t.span = n.span, n.key = re());
234
234
  const l = {
235
235
  label: n.label,
236
236
  type: o,
@@ -255,7 +255,7 @@ function ee(e, a) {
255
255
  "color-picker",
256
256
  "upload-file",
257
257
  "upload-image"
258
- ].includes(o) && (l.input = !0, ((w = (u = n.rules) == null ? void 0 : u[0]) == null ? void 0 : w.required) === !1 && n.rules.shift(), ((h = n.rules) == null ? void 0 : h.length) > 0 && (l.rules = n.rules)), n.list && (l.children = ee(n.list, n)), n.columns && (l.children = ee(n.columns, n)), n.trs && (l.children = ee(n.trs, n)), n.tds && (l.children = ee(n.tds, n)), l;
258
+ ].includes(o) && (l.input = !0, ((w = (c = n.rules) == null ? void 0 : c[0]) == null ? void 0 : w.required) === !1 && n.rules.shift(), ((h = n.rules) == null ? void 0 : h.length) > 0 && (l.rules = n.rules)), n.list && (l.children = j(n.list, n)), n.columns && (l.children = j(n.columns, n)), n.trs && (l.children = j(n.trs, n)), n.tds && (l.children = j(n.tds, n)), l;
259
259
  });
260
260
  }
261
261
  function Bt(e, a) {
@@ -266,8 +266,8 @@ function Bt(e, a) {
266
266
  }, a);
267
267
  };
268
268
  }
269
- function Ie() {
270
- const e = S({}), a = S({}), n = S(!1), o = S([]), t = Z({});
269
+ function Ee() {
270
+ const e = D({}), a = D({}), n = D(!1), o = D([]), t = Z({});
271
271
  function r(m) {
272
272
  return e.value[m];
273
273
  }
@@ -277,9 +277,9 @@ function Ie() {
277
277
  function i(m) {
278
278
  delete e.value[m];
279
279
  }
280
- function u(m, g = !1) {
280
+ function c(m, g = !1) {
281
281
  const v = Object.entries(O.publicMethods).reduce(
282
- (E, [M, B]) => (E[M] = B.handler, E),
282
+ (I, [M, B]) => (I[M] = B.handler, I),
283
283
  {}
284
284
  );
285
285
  try {
@@ -291,8 +291,8 @@ function Ie() {
291
291
  publicMethods: v,
292
292
  pluginManager: O
293
293
  })();
294
- } catch (E) {
295
- g && console.error("[epic:自定义函数]异常:", E);
294
+ } catch (I) {
295
+ g && console.error("[epic:自定义函数]异常:", I);
296
296
  }
297
297
  }
298
298
  function w(m) {
@@ -304,16 +304,16 @@ function Ie() {
304
304
  return;
305
305
  }
306
306
  m.forEach((v) => {
307
- const E = v.args ? JSON.parse(v.args) : g;
307
+ const I = v.args ? JSON.parse(v.args) : g;
308
308
  switch (v.type) {
309
309
  case "public":
310
- s(v, E);
310
+ s(v, I);
311
311
  break;
312
312
  case "custom":
313
- y(v, E);
313
+ y(v, I);
314
314
  break;
315
315
  case "component":
316
- d(v, E);
316
+ d(v, I);
317
317
  break;
318
318
  default:
319
319
  console.warn(`未知的动作类型: ${v.type}`);
@@ -325,14 +325,14 @@ function Ie() {
325
325
  var v;
326
326
  try {
327
327
  (v = O.publicMethods[m.methodName]) == null || v.handler(...g);
328
- } catch (E) {
329
- console.error(`[Epic:公共函数(${m.methodName})]执行异常:`, E);
328
+ } catch (I) {
329
+ console.error(`[Epic:公共函数(${m.methodName})]执行异常:`, I);
330
330
  }
331
331
  }
332
332
  function y(m, g) {
333
- var v, E;
333
+ var v, I;
334
334
  try {
335
- (E = (v = a.value)[m.methodName]) == null || E.call(v, ...g);
335
+ (I = (v = a.value)[m.methodName]) == null || I.call(v, ...g);
336
336
  } catch (M) {
337
337
  console.error(`[Epic:自定义函数(${m.methodName})]执行异常:`, M);
338
338
  }
@@ -345,25 +345,25 @@ function Ie() {
345
345
  }
346
346
  try {
347
347
  v[m.methodName](...g);
348
- } catch (E) {
349
- console.error(`[Epic:组件${m.componentId}函数(${m.methodName})]执行异常:`, E);
348
+ } catch (I) {
349
+ console.error(`[Epic:组件${m.componentId}函数(${m.methodName})]执行异常:`, I);
350
350
  }
351
351
  }
352
352
  function f(m = !0) {
353
353
  n.value = m;
354
354
  }
355
- function c(m) {
356
- const g = te(m, () => !0);
355
+ function u(m) {
356
+ const g = ee(m, () => !0);
357
357
  o.value = g.map((v) => v.id);
358
358
  }
359
- function D(m, g = "default") {
359
+ function A(m, g = "default") {
360
360
  if (t[g]) {
361
361
  const v = t[g];
362
362
  z(m, v);
363
363
  }
364
364
  t[g] = m;
365
365
  }
366
- function C(m, g = "default") {
366
+ function x(m, g = "default") {
367
367
  if (t[g]) {
368
368
  z(t[g], m, !1);
369
369
  return;
@@ -376,40 +376,40 @@ function Ie() {
376
376
  isDesignMode: n,
377
377
  defaultComponentIds: o,
378
378
  forms: t,
379
- addFormData: D,
380
- setFormData: C,
379
+ addFormData: A,
380
+ setFormData: x,
381
381
  getComponentInstance: r,
382
382
  // 简化查询函数, 推荐使用
383
383
  find: r,
384
384
  addComponentInstance: l,
385
385
  removeComponentInstance: i,
386
- setMethods: u,
386
+ setMethods: c,
387
387
  doActions: h,
388
388
  setDesignMode: f,
389
- setDefaultComponentIds: c
389
+ setDefaultComponentIds: u
390
390
  };
391
391
  }
392
392
  function He() {
393
- const e = S([]), a = S([]), n = S(null);
393
+ const e = D([]), a = D([]), n = D(null);
394
394
  let o = 0;
395
- function t(u, w = "插入组件") {
395
+ function t(c, w = "插入组件") {
396
396
  const h = Date.now();
397
397
  o + 150 > h || (o = h, n.value != null && (e.value.push(n.value), a.value.splice(0, a.value.length)), n.value = {
398
398
  type: w,
399
- componentSchema: JSON.stringify(u)
399
+ componentSchema: JSON.stringify(c)
400
400
  }, e.value.length > 60 && e.value.unshift());
401
401
  }
402
402
  function r() {
403
403
  if (e.value.length === 0)
404
404
  return !1;
405
- const u = e.value.pop();
406
- return n.value != null && a.value.push(n.value), n.value = u, JSON.parse(u.componentSchema);
405
+ const c = e.value.pop();
406
+ return n.value != null && a.value.push(n.value), n.value = c, JSON.parse(c.componentSchema);
407
407
  }
408
408
  function l() {
409
409
  if (a.value.length === 0)
410
410
  return !1;
411
- const u = a.value.pop();
412
- return n.value != null && e.value.push(n.value), n.value = u, JSON.parse(u.componentSchema);
411
+ const c = a.value.pop();
412
+ return n.value != null && e.value.push(n.value), n.value = c, JSON.parse(c.componentSchema);
413
413
  }
414
414
  function i() {
415
415
  e.value = [], a.value = [], n.value = null;
@@ -432,10 +432,10 @@ const Ke = /* @__PURE__ */ G({
432
432
  },
433
433
  emits: ["updateFormItemRef"],
434
434
  setup(e, { emit: a }) {
435
- const n = O.getComponent("form-item"), o = e, t = a, r = S(), l = () => {
435
+ const n = O.getComponent("form-item"), o = e, t = a, r = D(), l = () => {
436
436
  t("updateFormItemRef", r.value);
437
437
  };
438
- return (i, u) => o.hasFormItem ? (F(), L(x(n), me({
438
+ return (i, c) => o.hasFormItem ? (F(), L(_(n), fe({
439
439
  key: 0,
440
440
  ref_key: "formItemRef",
441
441
  ref: r,
@@ -461,14 +461,14 @@ const Ke = /* @__PURE__ */ G({
461
461
  },
462
462
  emits: ["update:modelValue", "change", "update:dynamicId"],
463
463
  setup(e, { emit: a }) {
464
- const { proxy: n } = ne(), o = e, t = S(null);
464
+ const { proxy: n } = te(), o = e, t = D(null);
465
465
  let r = H("formData", Z({}));
466
- const l = H("slots", {}), i = H("pageManager", {}), u = H("disabled", { value: !1 }), w = H("ruleFieldPrefix", null), h = H("resetFormData", !1);
466
+ const l = H("slots", {}), i = H("pageManager", {}), c = H("disabled", { value: !1 }), w = H("ruleFieldPrefix", null), h = H("resetFormData", !1);
467
467
  let s = Z(N(o.componentSchema));
468
468
  f();
469
469
  async function y(p) {
470
470
  if (["cascader", "checkbox", "select", "radio"].includes(p.type) && p.componentProps.dynamicId && o.sourceDateUrl) {
471
- const A = (await be({
471
+ const S = (await we({
472
472
  // || "http://192.168.28.205:3000/dev-api/data-source
473
473
  url: o.sourceDateUrl,
474
474
  method: "get",
@@ -476,35 +476,36 @@ const Ke = /* @__PURE__ */ G({
476
476
  id: p.componentProps.dynamicId
477
477
  }
478
478
  })).data.data;
479
- let k = await be({
480
- url: A.url,
481
- method: A.method,
482
- data: JSON.parse(A.body),
483
- params: JSON.parse(A.params),
484
- headers: JSON.parse(A.headers)
479
+ let C = await we({
480
+ url: S.url,
481
+ method: S.method,
482
+ data: JSON.parse(S.body),
483
+ params: JSON.parse(S.params),
484
+ headers: JSON.parse(S.headers)
485
485
  });
486
- if (A && (A != null && A.dataPath)) {
487
- const Ce = A.dataPath.split(".").reduce((re, xe) => re[xe], k.data);
488
- p.componentProps.options = d(Ce).map((re) => ({
489
- label: re[A.dataKey],
490
- value: re[A.dataValue]
491
- }));
486
+ if (S && (S != null && S.dataPath)) {
487
+ const Ce = S.dataPath.split(".").reduce((ke, xe) => ke[xe], C.data);
488
+ p.componentProps.options = d(Ce, S.dataKey, S.dataValue);
492
489
  } else
493
- p.componentProps.options = d(k.data).map((j) => ({
494
- label: j[A.dataKey],
495
- value: j[A.dataValue]
496
- }));
490
+ p.componentProps.options = d(C.data, S.dataKey, S.dataValue);
497
491
  return p;
498
492
  }
499
493
  return p;
500
494
  }
501
- function d(p) {
502
- return p && Object.prototype.toString.call(p) === "[object Array]" ? p : [];
495
+ function d(p, E, k) {
496
+ return p && Object.prototype.toString.call(p) === "[object Array]" ? p.map((S) => S.children && S.children.length ? {
497
+ label: S[E],
498
+ value: S[k],
499
+ children: d(S.children, E, k)
500
+ } : {
501
+ label: S[E],
502
+ value: S[k]
503
+ }) : [];
503
504
  }
504
505
  V(
505
506
  () => o.componentSchema,
506
507
  (p) => {
507
- Ee(s, p, ["children"]) || (z(s, N(p)), f());
508
+ Ae(s, p, ["children"]) || (z(s, N(p)), f());
508
509
  },
509
510
  {
510
511
  deep: !0
@@ -514,43 +515,43 @@ const Ke = /* @__PURE__ */ G({
514
515
  i.isDesignMode.value && typeof s.field == "string" && (s.field += "-design-mode");
515
516
  }
516
517
  (o.resetFormData || h) && (r = {});
517
- const c = a, D = S(), C = S(), m = (p) => {
518
- C.value = p;
518
+ const u = a, A = D(), x = D(), m = (p) => {
519
+ x.value = p;
519
520
  }, g = _e();
520
521
  Object.keys(g).length && $("nodeAttrs", g);
521
- const v = Pe(null), E = U(() => {
522
- var p, I;
523
- return (p = s.componentProps) != null && p.hidden ? !1 : typeof s.show == "boolean" ? s.show : ((I = s.show) == null ? void 0 : I.call(s, { values: r })) ?? !0;
522
+ const v = Pe(null), I = U(() => {
523
+ var p, E;
524
+ return (p = s.componentProps) != null && p.hidden ? !1 : typeof s.show == "boolean" ? s.show : ((E = s.show) == null ? void 0 : E.call(s, { values: r })) ?? !0;
524
525
  }), M = U(() => {
525
- var A;
526
- const p = E.value && ((A = s.rules) == null ? void 0 : A.map((k) => ({
527
- ...k,
528
- validator: k.validator && i.funcs.value[k.validator]
526
+ var S;
527
+ const p = I.value && ((S = s.rules) == null ? void 0 : S.map((C) => ({
528
+ ...C,
529
+ validator: C.validator && i.funcs.value[C.validator]
529
530
  // 自定义校验函数
530
531
  })));
531
- let I = s.field;
532
- o.ruleField ? I = o.ruleField : w && s.field && (I = N(w), I.push(s.field));
533
- const _ = {
532
+ let E = s.field;
533
+ o.ruleField ? E = o.ruleField : w && s.field && (E = N(w), E.push(s.field));
534
+ const k = {
534
535
  ...s,
535
536
  rules: p,
536
537
  rule: p,
537
- field: I
538
+ field: E
538
539
  };
539
- return _.children && delete _.children, _;
540
+ return k.children && delete k.children, k;
540
541
  }), B = U(() => {
541
- var _, A;
542
- const p = ((_ = W.value) == null ? void 0 : _.bindModel) ?? "modelValue", I = {};
543
- return s.on && Object.keys(s.on).forEach((k) => {
544
- I[`on${Le(k)}`] = (...j) => i.doActions(s.on[k], ...j);
542
+ var k, S;
543
+ const p = ((k = W.value) == null ? void 0 : k.bindModel) ?? "modelValue", E = {};
544
+ return s.on && Object.keys(s.on).forEach((C) => {
545
+ E[`on${Le(C)}`] = (...ye) => i.doActions(s.on[C], ...ye);
545
546
  }), {
546
547
  ...o,
547
548
  ...s.componentProps,
548
- disabled: (u == null ? void 0 : u.value) || ((A = s.componentProps) == null ? void 0 : A.disabled),
549
+ disabled: (c == null ? void 0 : c.value) || ((S = s.componentProps) == null ? void 0 : S.disabled),
549
550
  bindModel: p,
550
- ...I
551
+ ...E
551
552
  };
552
553
  }), W = U(() => O.getComponentConfingByType(s.type) ?? null);
553
- se(() => {
554
+ ae(() => {
554
555
  t.value = o.modelValue ?? r[s.field ?? ""];
555
556
  }), V(
556
557
  () => t.value,
@@ -558,33 +559,33 @@ const Ke = /* @__PURE__ */ G({
558
559
  t.value !== (o.modelValue ?? r[s.field ?? ""]) && b(t.value);
559
560
  }
560
561
  ), V(
561
- () => D.value,
562
+ () => A.value,
562
563
  () => {
563
- oe();
564
+ ne();
564
565
  },
565
566
  { immediate: !0 }
566
567
  );
567
- function oe() {
568
- var I;
569
- const p = D.value || n;
570
- s.id && p && (s.input && (p.setValue = b, p.getValue = () => r[s.field] || o.modelValue), p.setAttr = (_, A) => (s.componentProps || (s.componentProps = {}), s.componentProps[_] = A), p.getAttr = (_) => s.componentProps[_], i.addComponentInstance(s.id, p), (I = W.value) != null && I.defaultSchema.input && s.noFormItem !== !0 && C.value && i.addComponentInstance(s.id + "formItem", C.value));
568
+ function ne() {
569
+ var E;
570
+ const p = A.value || n;
571
+ s.id && p && (s.input && (p.setValue = b, p.getValue = () => r[s.field] || o.modelValue), p.setAttr = (k, S) => (s.componentProps || (s.componentProps = {}), s.componentProps[k] = S), p.getAttr = (k) => s.componentProps[k], i.addComponentInstance(s.id, p), (E = W.value) != null && E.defaultSchema.input && s.noFormItem !== !0 && x.value && i.addComponentInstance(s.id + "formItem", x.value));
571
572
  }
572
- function ce() {
573
+ function ie() {
573
574
  var p;
574
575
  s.id && (i.removeComponentInstance(s.id), (p = W.value) != null && p.defaultSchema.input && s.noFormItem !== !0 && i.removeComponentInstance(s.id + "formItem"));
575
576
  }
576
- async function ae() {
577
- var I, _, A;
578
- if (s = await y(s), typeof ((I = s.componentProps) == null ? void 0 : I.defaultValue) < "u") {
579
- const k = i.isDesignMode.value ? (_ = s.componentProps) == null ? void 0 : _.defaultValue : r[s.field] ?? ((A = s.componentProps) == null ? void 0 : A.defaultValue);
580
- b(N(k));
577
+ async function oe() {
578
+ var E, k, S;
579
+ if (s = await y(s), typeof ((E = s.componentProps) == null ? void 0 : E.defaultValue) < "u") {
580
+ const C = i.isDesignMode.value ? (k = s.componentProps) == null ? void 0 : k.defaultValue : r[s.field] ?? ((S = s.componentProps) == null ? void 0 : S.defaultValue);
581
+ b(N(C));
581
582
  }
582
583
  if (s.type === "slot") {
583
- const k = s.slotName;
584
- if (!k) return;
584
+ const C = s.slotName;
585
+ if (!C) return;
585
586
  v.value = G({
586
587
  setup() {
587
- return () => R(l, k, {
588
+ return () => R(l, C, {
588
589
  componentSchema: s,
589
590
  model: r
590
591
  });
@@ -598,22 +599,22 @@ const Ke = /* @__PURE__ */ G({
598
599
  return;
599
600
  }
600
601
  if (typeof p == "function") {
601
- const k = await p();
602
- v.value = k.default ?? k;
602
+ const C = await p();
603
+ v.value = C.default ?? C;
603
604
  } else
604
605
  v.value = p;
605
606
  }
606
607
  function b(p) {
607
- c("update:modelValue", p), c("change", p), s.field && (r[s.field] = p);
608
+ u("update:modelValue", p), u("change", p), s.field && (r[s.field] = p);
608
609
  }
609
610
  function X(p) {
610
- c("update:dynamicId", p);
611
+ u("update:dynamicId", p);
611
612
  }
612
- let ge = null;
613
+ let ve = null;
613
614
  return V(
614
615
  () => s,
615
616
  async (p) => {
616
- const I = JSON.stringify({
617
+ const E = JSON.stringify({
617
618
  ...p,
618
619
  children: void 0,
619
620
  componentProps: {
@@ -621,37 +622,37 @@ const Ke = /* @__PURE__ */ G({
621
622
  options: null
622
623
  }
623
624
  });
624
- if (I === ge)
625
+ if (E === ve)
625
626
  return !1;
626
- ge = I, ae();
627
+ ve = E, oe();
627
628
  },
628
629
  {
629
630
  immediate: !0,
630
631
  deep: !0
631
632
  }
632
- ), Se(ce), (p, I) => {
633
- var A;
634
- const _ = Ve("ENode");
635
- return v.value && E.value ? (F(), L(Ke, {
633
+ ), be(ie), (p, E) => {
634
+ var S;
635
+ const k = Ve("ENode");
636
+ return v.value && I.value ? (F(), L(Ke, {
636
637
  key: 0,
637
- hasFormItem: x(s).noFormItem !== !0 && ((A = W.value) == null ? void 0 : A.defaultSchema.input),
638
+ hasFormItem: _(s).noFormItem !== !0 && ((S = W.value) == null ? void 0 : S.defaultSchema.input),
638
639
  formItemProps: M.value,
639
640
  onUpdateFormItemRef: m
640
641
  }, {
641
642
  default: P(() => [
642
- (F(), L(Me(v.value), me({
643
+ (F(), L(Me(v.value), fe({
643
644
  ref_key: "componentInstance",
644
- ref: D,
645
- onVnodeMounted: oe,
646
- model: x(r)
645
+ ref: A,
646
+ onVnodeMounted: ne,
647
+ model: _(r)
647
648
  }, { ...B.value }, {
648
649
  [B.value.bindModel]: t.value,
649
- ["onUpdate:" + B.value.bindModel]: I[0] || (I[0] = (k) => t.value = k),
650
+ ["onUpdate:" + B.value.bindModel]: E[0] || (E[0] = (C) => t.value = C),
650
651
  [`onUpdate:${B.value.bindModel}` || ""]: b,
651
652
  "onUpdate:dynamicId": X
652
653
  }), {
653
- node: P((k) => [
654
- T(_, me(k, {
654
+ node: P((C) => [
655
+ T(k, fe(C, {
655
656
  sourceDateUrl: o.sourceDateUrl
656
657
  }), null, 16, ["sourceDateUrl"])
657
658
  ]),
@@ -662,12 +663,12 @@ const Ke = /* @__PURE__ */ G({
662
663
  }, 16, ["model"]))
663
664
  ]),
664
665
  _: 3
665
- }, 8, ["hasFormItem", "formItemProps"])) : De("", !0);
666
+ }, 8, ["hasFormItem", "formItemProps"])) : Se("", !0);
666
667
  };
667
668
  }
668
669
  });
669
670
  function Ze() {
670
- const e = S(!1), a = Ie(), n = S({});
671
+ const e = D(!1), a = Ee(), n = D({});
671
672
  function o() {
672
673
  return new Promise((d) => {
673
674
  if (e.value)
@@ -680,34 +681,34 @@ function Ze() {
680
681
  });
681
682
  }
682
683
  async function t(d = "default") {
683
- var c;
684
+ var u;
684
685
  await o();
685
- const f = (c = n.value) == null ? void 0 : c[d];
686
+ const f = (u = n.value) == null ? void 0 : u[d];
686
687
  if (!f) throw new Error(`表单 [name=${d}] 不存在`);
687
688
  return f;
688
689
  }
689
690
  async function r(d, f) {
690
- const c = await t(d);
691
- return N(await f(c));
691
+ const u = await t(d);
692
+ return N(await f(u));
692
693
  }
693
694
  async function l(d = "default") {
694
695
  return await r(d, (f) => f.getData());
695
696
  }
696
697
  function i(d, f = "default") {
697
- var D;
698
+ var A;
698
699
  a.setFormData(d, f);
699
- const c = (D = n.value) == null ? void 0 : D[f];
700
- c == null || c.clearValidate();
700
+ const u = (A = n.value) == null ? void 0 : A[f];
701
+ u == null || u.clearValidate();
701
702
  }
702
- async function u(d = "default") {
703
+ async function c(d = "default") {
703
704
  return await r(d, async (f) => (await f.validate(), await f.getData()));
704
705
  }
705
706
  async function w(d) {
706
707
  await o();
707
708
  const f = {};
708
- for (const c in n.value) {
709
- const D = n.value[c];
710
- D && (f[c] = N(await d(D)));
709
+ for (const u in n.value) {
710
+ const A = n.value[u];
711
+ A && (f[u] = N(await d(A)));
711
712
  }
712
713
  return f;
713
714
  }
@@ -727,7 +728,7 @@ function Ze() {
727
728
  forms: n,
728
729
  getData: l,
729
730
  setData: i,
730
- validate: u,
731
+ validate: c,
731
732
  getForms: h,
732
733
  setForms: s,
733
734
  validateAll: y,
@@ -747,20 +748,20 @@ const Ge = {
747
748
  },
748
749
  emits: ["ready"],
749
750
  setup(e, { expose: a, emit: n }) {
750
- const o = q(() => import("./index-DgcFxYFp.js")), t = n, { ready: r, pageManager: l, forms: i, getData: u, setData: w, validate: h, getForms: s, setForms: y, validateAll: d, getFormInstance: f } = Ze(), c = e, D = Z({
751
+ const o = q(() => import("./index-DgcFxYFp.js")), t = n, { ready: r, pageManager: l, forms: i, getData: c, setData: w, validate: h, getForms: s, setForms: y, validateAll: d, getFormInstance: f } = Ze(), u = e, A = Z({
751
752
  schemas: []
752
753
  });
753
754
  V(
754
- () => c.pageSchema,
755
+ () => u.pageSchema,
755
756
  (v) => {
756
- z(D, v);
757
+ z(A, v);
757
758
  },
758
759
  {
759
760
  immediate: !0,
760
761
  deep: !0
761
762
  }
762
763
  ), V(
763
- () => c.formData,
764
+ () => u.formData,
764
765
  (v) => {
765
766
  v && w(v);
766
767
  },
@@ -769,18 +770,18 @@ const Ge = {
769
770
  deep: !0
770
771
  }
771
772
  ), V(
772
- () => D.script,
773
+ () => A.script,
773
774
  (v) => {
774
775
  v && l.setMethods(v, !0);
775
776
  },
776
777
  {
777
778
  immediate: !0
778
779
  }
779
- ), $("slots", Oe()), $("pageManager", l), $("forms", i), $("pageSchema", D), $(
780
+ ), $("slots", Oe()), $("pageManager", l), $("forms", i), $("pageSchema", A), $(
780
781
  "disabled",
781
- U(() => c.disabled)
782
+ U(() => u.disabled)
782
783
  );
783
- const C = ne(), m = C == null ? void 0 : C.proxy;
784
+ const x = te(), m = x == null ? void 0 : x.proxy;
784
785
  function g() {
785
786
  Y(() => {
786
787
  r.value = !0, t("ready", l), m && l.addComponentInstance("builder", m);
@@ -789,36 +790,36 @@ const Ge = {
789
790
  return a({
790
791
  ready: r,
791
792
  pageManager: l,
792
- getData: u,
793
+ getData: c,
793
794
  setData: w,
794
795
  validate: h,
795
796
  getForms: s,
796
797
  setForms: y,
797
798
  validateAll: d,
798
799
  getFormInstance: f
799
- }), (v, E) => x(O).initialized.value ? (F(), L(Ae, {
800
+ }), (v, I) => _(O).initialized.value ? (F(), L(De, {
800
801
  key: 1,
801
802
  onResolve: g
802
803
  }, {
803
804
  default: P(() => [
804
805
  J("div", Qe, [
805
- (F(!0), he(Fe, null, Re(D.schemas, (M, B) => (F(), L(x(qe), {
806
+ (F(!0), pe(Fe, null, Re(A.schemas, (M, B) => (F(), L(_(qe), {
806
807
  key: B,
807
- sourceDateUrl: c.sourceDateUrl,
808
+ sourceDateUrl: u.sourceDateUrl,
808
809
  componentSchema: M
809
810
  }, null, 8, ["sourceDateUrl", "componentSchema"]))), 128))
810
811
  ])
811
812
  ]),
812
813
  fallback: P(() => [
813
814
  J("div", Ye, [
814
- T(x(o))
815
+ T(_(o))
815
816
  ])
816
817
  ]),
817
818
  _: 1
818
- })) : (F(), he("div", Ge));
819
+ })) : (F(), pe("div", Ge));
819
820
  }
820
821
  });
821
- function ye(e) {
822
+ function he(e) {
822
823
  return Be() ? (Ue(e), !0) : !1;
823
824
  }
824
825
  function je(e) {
@@ -826,32 +827,32 @@ function je(e) {
826
827
  const t = () => {
827
828
  a -= 1, o && a <= 0 && (o.stop(), n = void 0, o = void 0);
828
829
  };
829
- return (...r) => (a += 1, o || (o = $e(!0), n = o.run(() => e(...r))), ye(t), n);
830
+ return (...r) => (a += 1, o || (o = $e(!0), n = o.run(() => e(...r))), he(t), n);
830
831
  }
831
832
  function Q(e) {
832
- return typeof e == "function" ? e() : x(e);
833
+ return typeof e == "function" ? e() : _(e);
833
834
  }
834
835
  const et = typeof window < "u" && typeof document < "u";
835
836
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
836
837
  const tt = (e) => typeof e < "u", nt = Object.prototype.toString, ot = (e) => nt.call(e) === "[object Object]", at = () => {
837
838
  };
838
839
  function rt(e) {
839
- return ne();
840
+ return te();
840
841
  }
841
842
  function st(e, a = !0, n) {
842
- rt() ? ve(e, n) : a ? e() : Y(e);
843
+ rt() ? me(e, n) : a ? e() : Y(e);
843
844
  }
844
845
  function lt(e = !1, a = {}) {
845
846
  const {
846
847
  truthyValue: n = !0,
847
848
  falsyValue: o = !1
848
- } = a, t = Ne(e), r = S(e);
849
+ } = a, t = Ne(e), r = D(e);
849
850
  function l(i) {
850
851
  if (arguments.length)
851
852
  return r.value = i, r.value;
852
853
  {
853
- const u = Q(n);
854
- return r.value = r.value === u ? Q(o) : u, r.value;
854
+ const c = Q(n);
855
+ return r.value = r.value === c ? Q(o) : c, r.value;
855
856
  }
856
857
  }
857
858
  return t ? l : [r, l];
@@ -860,7 +861,7 @@ function Ut(e, a, n) {
860
861
  const o = V(e, (...t) => (Y(() => o()), a(...t)), n);
861
862
  return o;
862
863
  }
863
- const ie = et ? window : void 0;
864
+ const se = et ? window : void 0;
864
865
  function K(e) {
865
866
  var a;
866
867
  const n = Q(e);
@@ -868,12 +869,12 @@ function K(e) {
868
869
  }
869
870
  function it(...e) {
870
871
  let a, n, o, t;
871
- if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, t] = e, a = ie) : [a, n, o, t] = e, !a)
872
+ if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, t] = e, a = se) : [a, n, o, t] = e, !a)
872
873
  return at;
873
874
  Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
874
875
  const r = [], l = () => {
875
876
  r.forEach((h) => h()), r.length = 0;
876
- }, i = (h, s, y, d) => (h.addEventListener(s, y, d), () => h.removeEventListener(s, y, d)), u = V(
877
+ }, i = (h, s, y, d) => (h.addEventListener(s, y, d), () => h.removeEventListener(s, y, d)), c = V(
877
878
  () => [K(a), Q(t)],
878
879
  ([h, s]) => {
879
880
  if (l(), !h)
@@ -885,55 +886,55 @@ function it(...e) {
885
886
  },
886
887
  { immediate: !0, flush: "post" }
887
888
  ), w = () => {
888
- u(), l();
889
+ c(), l();
889
890
  };
890
- return ye(w), w;
891
+ return he(w), w;
891
892
  }
892
- function ut(e) {
893
+ function ct(e) {
893
894
  return typeof e == "function" ? e : typeof e == "string" ? (a) => a.key === e : Array.isArray(e) ? (a) => e.includes(a.key) : () => !0;
894
895
  }
895
- function ke(...e) {
896
+ function Ie(...e) {
896
897
  let a, n, o = {};
897
898
  e.length === 3 ? (a = e[0], n = e[1], o = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (a = !0, n = e[0], o = e[1]) : (a = e[0], n = e[1]) : (a = !0, n = e[0]);
898
899
  const {
899
- target: t = ie,
900
+ target: t = se,
900
901
  eventName: r = "keydown",
901
902
  passive: l = !1,
902
903
  dedupe: i = !1
903
- } = o, u = ut(a);
904
+ } = o, c = ct(a);
904
905
  return it(t, r, (h) => {
905
- h.repeat && Q(i) || u(h) && n(h);
906
+ h.repeat && Q(i) || c(h) && n(h);
906
907
  }, l);
907
908
  }
908
- function fe(e, a, n = {}) {
909
- return ke(e, a, { ...n, eventName: "keydown" });
909
+ function ue(e, a, n = {}) {
910
+ return Ie(e, a, { ...n, eventName: "keydown" });
910
911
  }
911
- function pe(e, a, n = {}) {
912
- return ke(e, a, { ...n, eventName: "keyup" });
912
+ function de(e, a, n = {}) {
913
+ return Ie(e, a, { ...n, eventName: "keyup" });
913
914
  }
914
- function ct() {
915
- const e = S(!1), a = ne();
916
- return a && ve(() => {
915
+ function ut() {
916
+ const e = D(!1), a = te();
917
+ return a && me(() => {
917
918
  e.value = !0;
918
919
  }, a), e;
919
920
  }
920
921
  function dt(e) {
921
- const a = ct();
922
+ const a = ut();
922
923
  return U(() => (a.value, !!e()));
923
924
  }
924
925
  function ft(e) {
925
926
  return JSON.parse(JSON.stringify(e));
926
927
  }
927
928
  function pt(e, a, n = {}) {
928
- const { window: o = ie, ...t } = n;
929
+ const { window: o = se, ...t } = n;
929
930
  let r;
930
931
  const l = dt(() => o && "ResizeObserver" in o), i = () => {
931
932
  r && (r.disconnect(), r = void 0);
932
- }, u = U(() => {
933
+ }, c = U(() => {
933
934
  const s = Q(e);
934
935
  return Array.isArray(s) ? s.map((y) => K(y)) : [K(s)];
935
936
  }), w = V(
936
- u,
937
+ c,
937
938
  (s) => {
938
939
  if (i(), l.value && o) {
939
940
  r = new ResizeObserver(a);
@@ -945,16 +946,16 @@ function pt(e, a, n = {}) {
945
946
  ), h = () => {
946
947
  i(), w();
947
948
  };
948
- return ye(h), {
949
+ return he(h), {
949
950
  isSupported: l,
950
951
  stop: h
951
952
  };
952
953
  }
953
954
  function Tt(e, a = { width: 0, height: 0 }, n = {}) {
954
- const { window: o = ie, box: t = "content-box" } = n, r = U(() => {
955
+ const { window: o = se, box: t = "content-box" } = n, r = U(() => {
955
956
  var s, y;
956
957
  return (y = (s = K(e)) == null ? void 0 : s.namespaceURI) == null ? void 0 : y.includes("svg");
957
- }), l = S(a.width), i = S(a.height), { stop: u } = pt(
958
+ }), l = D(a.width), i = D(a.height), { stop: c } = pt(
958
959
  e,
959
960
  ([s]) => {
960
961
  const y = t === "border-box" ? s.borderBoxSize : t === "content-box" ? s.contentBoxSize : s.devicePixelContentBoxSize;
@@ -966,7 +967,7 @@ function Tt(e, a = { width: 0, height: 0 }, n = {}) {
966
967
  }
967
968
  } else if (y) {
968
969
  const d = Array.isArray(y) ? y : [y];
969
- l.value = d.reduce((f, { inlineSize: c }) => f + c, 0), i.value = d.reduce((f, { blockSize: c }) => f + c, 0);
970
+ l.value = d.reduce((f, { inlineSize: u }) => f + u, 0), i.value = d.reduce((f, { blockSize: u }) => f + u, 0);
970
971
  } else
971
972
  l.value = s.contentRect.width, i.value = s.contentRect.height;
972
973
  },
@@ -983,7 +984,7 @@ function Tt(e, a = { width: 0, height: 0 }, n = {}) {
983
984
  }
984
985
  );
985
986
  function h() {
986
- u(), w();
987
+ c(), w();
987
988
  }
988
989
  return {
989
990
  width: l,
@@ -995,36 +996,36 @@ function Lt(e, a, n, o = {}) {
995
996
  var t, r, l;
996
997
  const {
997
998
  clone: i = !1,
998
- passive: u = !1,
999
+ passive: c = !1,
999
1000
  eventName: w,
1000
1001
  deep: h = !1,
1001
1002
  defaultValue: s,
1002
1003
  shouldEmit: y
1003
- } = o, d = ne(), f = n || (d == null ? void 0 : d.emit) || ((t = d == null ? void 0 : d.$emit) == null ? void 0 : t.bind(d)) || ((l = (r = d == null ? void 0 : d.proxy) == null ? void 0 : r.$emit) == null ? void 0 : l.bind(d == null ? void 0 : d.proxy));
1004
- let c = w;
1005
- a || (a = "modelValue"), c = c || `update:${a.toString()}`;
1006
- const D = (g) => i ? typeof i == "function" ? i(g) : ft(g) : g, C = () => tt(e[a]) ? D(e[a]) : s, m = (g) => {
1007
- y ? y(g) && f(c, g) : f(c, g);
1004
+ } = o, d = te(), f = n || (d == null ? void 0 : d.emit) || ((t = d == null ? void 0 : d.$emit) == null ? void 0 : t.bind(d)) || ((l = (r = d == null ? void 0 : d.proxy) == null ? void 0 : r.$emit) == null ? void 0 : l.bind(d == null ? void 0 : d.proxy));
1005
+ let u = w;
1006
+ a || (a = "modelValue"), u = u || `update:${a.toString()}`;
1007
+ const A = (g) => i ? typeof i == "function" ? i(g) : ft(g) : g, x = () => tt(e[a]) ? A(e[a]) : s, m = (g) => {
1008
+ y ? y(g) && f(u, g) : f(u, g);
1008
1009
  };
1009
- if (u) {
1010
- const g = C(), v = S(g);
1011
- let E = !1;
1010
+ if (c) {
1011
+ const g = x(), v = D(g);
1012
+ let I = !1;
1012
1013
  return V(
1013
1014
  () => e[a],
1014
1015
  (M) => {
1015
- E || (E = !0, v.value = D(M), Y(() => E = !1));
1016
+ I || (I = !0, v.value = A(M), Y(() => I = !1));
1016
1017
  }
1017
1018
  ), V(
1018
1019
  v,
1019
1020
  (M) => {
1020
- !E && (M !== e[a] || h) && m(M);
1021
+ !I && (M !== e[a] || h) && m(M);
1021
1022
  },
1022
1023
  { deep: h }
1023
1024
  ), v;
1024
1025
  } else
1025
1026
  return U({
1026
1027
  get() {
1027
- return C();
1028
+ return x();
1028
1029
  },
1029
1030
  set(g) {
1030
1031
  m(g);
@@ -1032,15 +1033,15 @@ function Lt(e, a, n, o = {}) {
1032
1033
  });
1033
1034
  }
1034
1035
  function Jt() {
1035
- const { isDark: e } = ue(), a = lt(e);
1036
+ const { isDark: e } = le(), a = lt(e);
1036
1037
  return {
1037
1038
  isDark: e,
1038
1039
  toggleDark: a
1039
1040
  };
1040
1041
  }
1041
1042
  function mt() {
1042
- const e = S(!1);
1043
- return ve(() => {
1043
+ const e = D(!1);
1044
+ return me(() => {
1044
1045
  ht(e), vt(e);
1045
1046
  }), V(
1046
1047
  () => e.value,
@@ -1066,12 +1067,12 @@ function vt(e) {
1066
1067
  n.observe(a, {
1067
1068
  attributes: !0,
1068
1069
  attributeFilter: ["class"]
1069
- }), Se(() => {
1070
+ }), be(() => {
1070
1071
  n.disconnect();
1071
1072
  });
1072
1073
  }
1073
1074
  function yt() {
1074
- const e = S(1), a = S(!1), { isDark: n } = mt(), { pressSpace: o, pressShift: t, pressCtrl: r } = gt();
1075
+ const e = D(1), a = D(!1), { isDark: n } = mt(), { pressSpace: o, pressShift: t, pressCtrl: r } = gt();
1075
1076
  return {
1076
1077
  canvasScale: e,
1077
1078
  pressSpace: o,
@@ -1081,36 +1082,36 @@ function yt() {
1081
1082
  isDark: n
1082
1083
  };
1083
1084
  }
1084
- const ue = je(yt);
1085
+ const le = je(yt);
1085
1086
  function gt() {
1086
- const e = S(!1), a = S(!1), n = S(!1);
1087
- return fe(" ", () => {
1087
+ const e = D(!1), a = D(!1), n = D(!1);
1088
+ return ue(" ", () => {
1088
1089
  e.value = !0;
1089
- }), pe(" ", () => {
1090
+ }), de(" ", () => {
1090
1091
  e.value = !1;
1091
- }), fe("Shift", (o) => {
1092
+ }), ue("Shift", (o) => {
1092
1093
  o.preventDefault(), a.value = !0;
1093
- }), pe("Shift", () => {
1094
+ }), de("Shift", () => {
1094
1095
  a.value = !1;
1095
- }), fe("Control", (o) => {
1096
+ }), ue("Control", (o) => {
1096
1097
  o.preventDefault(), n.value = !0;
1097
- }), pe("Control", () => {
1098
+ }), de("Control", () => {
1098
1099
  n.value = !1;
1099
1100
  }), { pressSpace: e, pressShift: a, pressCtrl: n };
1100
1101
  }
1101
1102
  function zt(e) {
1102
- const { pressSpace: a } = ue(), n = new Image(1, 1);
1103
+ const { pressSpace: a } = le(), n = new Image(1, 1);
1103
1104
  n.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==";
1104
1105
  let o = 0, t = 0;
1105
- function r(u) {
1106
+ function r(c) {
1106
1107
  var w;
1107
- a.value && (o = u.x, t = u.y, (w = u.dataTransfer) == null || w.setDragImage(document.createElement("div"), 0, 0));
1108
+ a.value && (o = c.x, t = c.y, (w = c.dataTransfer) == null || w.setDragImage(document.createElement("div"), 0, 0));
1108
1109
  }
1109
- function l(u) {
1110
- if (u.preventDefault(), !u.x || !u.y || !a.value)
1110
+ function l(c) {
1111
+ if (c.preventDefault(), !c.x || !c.y || !a.value)
1111
1112
  return;
1112
- const w = u.x - o, h = u.y - t;
1113
- o = u.x, t = u.y, e.value && (e.value.scrollTop -= h, e.value.scrollLeft -= w);
1113
+ const w = c.x - o, h = c.y - t;
1114
+ o = c.x, t = c.y, e.value && (e.value.scrollTop -= h, e.value.scrollLeft -= w);
1114
1115
  }
1115
1116
  function i() {
1116
1117
  a.value = !1;
@@ -1118,7 +1119,7 @@ function zt(e) {
1118
1119
  return { handleElementDragStart: r, handleElementDrag: l, handleElementDragEnd: i };
1119
1120
  }
1120
1121
  function Wt(e) {
1121
- const { pressCtrl: a, canvasScale: n, disabledZoom: o } = ue();
1122
+ const { pressCtrl: a, canvasScale: n, disabledZoom: o } = le();
1122
1123
  function t(r) {
1123
1124
  if (!a.value || o.value)
1124
1125
  return;
@@ -1149,7 +1150,7 @@ function Ht(e, a = 16.66) {
1149
1150
  const wt = { class: "min-w-750px rounded" }, bt = { class: "h-full rounded" }, St = /* @__PURE__ */ G({
1150
1151
  __name: "index",
1151
1152
  setup(e, { expose: a }) {
1152
- const n = O.getComponent("monacoEditor"), o = O.getComponent("modal"), t = S(null), r = S(!1), l = S(!1), i = S({}), u = H("pageSchema"), w = S(null), h = S("");
1153
+ const n = O.getComponent("monacoEditor"), o = O.getComponent("modal"), t = D(null), r = D(!1), l = D(!1), i = D({}), c = H("pageSchema"), w = D(null), h = D("");
1153
1154
  function s() {
1154
1155
  l.value = !1;
1155
1156
  }
@@ -1157,28 +1158,28 @@ const wt = { class: "min-w-750px rounded" }, bt = { class: "h-full rounded" }, S
1157
1158
  r.value = !1;
1158
1159
  }
1159
1160
  function d() {
1160
- r.value = !0, h.value = le();
1161
+ r.value = !0, h.value = re();
1161
1162
  }
1162
1163
  async function f() {
1163
1164
  try {
1164
- let c = await w.value.validateAll();
1165
- if (!Object.keys(c).length) {
1165
+ let u = await w.value.validateAll();
1166
+ if (!Object.keys(u).length) {
1166
1167
  alert("请添加表单组件后再尝试!");
1167
1168
  return;
1168
1169
  }
1169
- Object.keys(c).length === 1 && (c = c.default), i.value = JSON.stringify(c, null, 2), Y(() => {
1170
- var D;
1171
- (D = t.value) == null || D.setValue(i.value);
1170
+ Object.keys(u).length === 1 && (u = u.default), i.value = JSON.stringify(u, null, 2), Y(() => {
1171
+ var A;
1172
+ (A = t.value) == null || A.setValue(i.value);
1172
1173
  }), l.value = !0;
1173
- } catch (c) {
1174
- console.error(c);
1174
+ } catch (u) {
1175
+ console.error(u);
1175
1176
  }
1176
1177
  }
1177
1178
  return a({
1178
1179
  handleOpen: d
1179
- }), (c, D) => (F(), L(x(o), {
1180
+ }), (u, A) => (F(), L(_(o), {
1180
1181
  modelValue: r.value,
1181
- "onUpdate:modelValue": D[1] || (D[1] = (C) => r.value = C),
1182
+ "onUpdate:modelValue": A[1] || (A[1] = (x) => r.value = x),
1182
1183
  title: "预览",
1183
1184
  class: "w-900px",
1184
1185
  width: "900px",
@@ -1188,15 +1189,15 @@ const wt = { class: "min-w-750px rounded" }, bt = { class: "h-full rounded" }, S
1188
1189
  }, {
1189
1190
  default: P(() => [
1190
1191
  J("div", wt, [
1191
- (F(), L(x(Xe), {
1192
+ (F(), L(_(Xe), {
1192
1193
  key: h.value,
1193
1194
  ref_key: "kb",
1194
1195
  ref: w,
1195
- "page-schema": x(u)
1196
+ "page-schema": _(c)
1196
1197
  }, null, 8, ["page-schema"])),
1197
- T(x(o), {
1198
+ T(_(o), {
1198
1199
  modelValue: l.value,
1199
- "onUpdate:modelValue": D[0] || (D[0] = (C) => l.value = C),
1200
+ "onUpdate:modelValue": A[0] || (A[0] = (x) => l.value = x),
1200
1201
  title: "表单数据",
1201
1202
  class: "w-860px",
1202
1203
  width: "860px",
@@ -1205,7 +1206,7 @@ const wt = { class: "min-w-750px rounded" }, bt = { class: "h-full rounded" }, S
1205
1206
  }, {
1206
1207
  default: P(() => [
1207
1208
  J("div", bt, [
1208
- T(x(n), {
1209
+ T(_(n), {
1209
1210
  ref_key: "monacoEditorRef",
1210
1211
  ref: t,
1211
1212
  autoToggleTheme: "",
@@ -1248,7 +1249,7 @@ const wt = { class: "min-w-750px rounded" }, bt = { class: "h-full rounded" }, S
1248
1249
  "updateSourceData"
1249
1250
  ],
1250
1251
  setup(e, { expose: a, emit: n }) {
1251
- const o = q(() => import("./index-C-XUgjda.js")), t = q(() => import("./index-ASoFJnMl.js")), r = q(() => import("./index-BfWxzrQ0.js")), l = q(() => import("./index-ooVzYa5L.js")), i = q(() => import("./index-DgcFxYFp.js")), u = Ie(), w = He(), h = e;
1252
+ const o = q(() => import("./index-C-XUgjda.js")), t = q(() => import("./index-ASoFJnMl.js")), r = q(() => import("./index-guZtdVEN.js")), l = q(() => import("./index-ooVzYa5L.js")), i = q(() => import("./index-DgcFxYFp.js")), c = Ee(), w = He(), h = e;
1252
1253
  let s = {
1253
1254
  schemas: [
1254
1255
  {
@@ -1295,49 +1296,49 @@ defineExpose({
1295
1296
  test
1296
1297
  })`
1297
1298
  };
1298
- se(() => {
1299
+ ae(() => {
1299
1300
  if (h.defaultSchema) {
1300
1301
  s = h.defaultSchema;
1301
1302
  return;
1302
1303
  }
1303
1304
  h.source && O.setSourceData(h.source), h.formMode && (s.schemas = O.formSchemas);
1304
- }), u.setDesignMode(), u.setDefaultComponentIds(s.schemas);
1305
- const y = n, d = S(null), f = Z({
1305
+ }), c.setDesignMode(), c.setDefaultComponentIds(s.schemas);
1306
+ const y = n, d = D(null), f = Z({
1306
1307
  checkedNode: null,
1307
1308
  hoverNode: null,
1308
1309
  disableHover: !1,
1309
1310
  matched: []
1310
- }), c = Z({
1311
+ }), u = Z({
1311
1312
  schemas: [],
1312
1313
  script: s.script
1313
- }), { disabledZoom: D } = ue();
1314
- se(() => {
1315
- D.value = h.disabledZoom;
1316
- }), se(() => {
1317
- const b = c.script;
1318
- b && b !== "" && u.setMethods(b);
1319
- }), $("pageSchema", c), $("revoke", w), $("pageManager", u), $(
1314
+ }), { disabledZoom: A } = le();
1315
+ ae(() => {
1316
+ A.value = h.disabledZoom;
1317
+ }), ae(() => {
1318
+ const b = u.script;
1319
+ b && b !== "" && c.setMethods(b);
1320
+ }), $("pageSchema", u), $("revoke", w), $("pageManager", c), $(
1320
1321
  "designerProps",
1321
1322
  U(() => h)
1322
1323
  ), $("designer", {
1323
1324
  setCheckedNode: m,
1324
1325
  setHoverNode: g,
1325
- setDisableHover: E,
1326
- handleToggleDeviceMode: ce,
1326
+ setDisableHover: I,
1327
+ handleToggleDeviceMode: ie,
1327
1328
  reset: W,
1328
1329
  state: f
1329
- }), de.on("saveSourceData", (b) => {
1330
+ }), ce.on("saveSourceData", (b) => {
1330
1331
  y("saveSourceData", b);
1331
- }), de.on("deleteSourceData", (b) => {
1332
+ }), ce.on("deleteSourceData", (b) => {
1332
1333
  y("deleteSourceData", b);
1333
- }), de.on("updateSourceData", (b) => {
1334
+ }), ce.on("updateSourceData", (b) => {
1334
1335
  y("updateSourceData", b);
1335
1336
  });
1336
- function C() {
1337
- c.schemas = N(s.schemas), m(c.schemas[0]), w.push(c.schemas, "初始化撤销功能");
1337
+ function x() {
1338
+ u.schemas = N(s.schemas), m(u.schemas[0]), w.push(u.schemas, "初始化撤销功能");
1338
1339
  }
1339
- async function m(b = c.schemas[0]) {
1340
- f.checkedNode = b, f.matched = Je(c.schemas, b.id);
1340
+ async function m(b = u.schemas[0]) {
1341
+ f.checkedNode = b, f.matched = Je(u.schemas, b.id);
1341
1342
  }
1342
1343
  async function g(b = null) {
1343
1344
  var X;
@@ -1349,37 +1350,37 @@ defineExpose({
1349
1350
  }
1350
1351
  function v() {
1351
1352
  Y(() => {
1352
- y("ready", { pageManager: u });
1353
+ y("ready", { pageManager: c });
1353
1354
  });
1354
1355
  }
1355
- async function E(b = !1) {
1356
+ async function I(b = !1) {
1356
1357
  f.disableHover = b;
1357
1358
  }
1358
1359
  function M(b) {
1359
- z(c, N(b));
1360
+ z(u, N(b));
1360
1361
  }
1361
1362
  function B() {
1362
- return we(c);
1363
+ return ge(u);
1363
1364
  }
1364
1365
  function W() {
1365
- Ee(c.schemas, s.schemas) && c.script === s.script || (z(c.schemas, s.schemas), c.script = s.script, m(c.schemas[0]), w.push(c.schemas, "重置操作"), y("reset", c));
1366
+ Ae(u.schemas, s.schemas) && u.script === s.script || (z(u.schemas, s.schemas), u.script = s.script, m(u.schemas[0]), w.push(u.schemas, "重置操作"), y("reset", u));
1366
1367
  }
1367
- function oe() {
1368
- y("save", we(c));
1368
+ function ne() {
1369
+ y("save", ge(u));
1369
1370
  }
1370
- function ce(b) {
1371
+ function ie(b) {
1371
1372
  y("toggleDeviceMode", b);
1372
1373
  }
1373
- function ae() {
1374
+ function oe() {
1374
1375
  d.value.handleOpen();
1375
1376
  }
1376
- return C(), a({
1377
+ return x(), a({
1377
1378
  revoke: w,
1378
1379
  setData: M,
1379
1380
  getData: B,
1380
1381
  reset: W,
1381
- preview: ae
1382
- }), (b, X) => x(O).initialized.value ? (F(), L(Ae, {
1382
+ preview: oe
1383
+ }), (b, X) => _(O).initialized.value ? (F(), L(De, {
1383
1384
  key: 1,
1384
1385
  onResolve: v
1385
1386
  }, {
@@ -1387,10 +1388,10 @@ defineExpose({
1387
1388
  J("div", At, [
1388
1389
  J("div", Et, [
1389
1390
  R(b.$slots, "header", {}, () => [
1390
- h.hiddenHeader ? De("", !0) : (F(), L(x(o), {
1391
+ h.hiddenHeader ? Se("", !0) : (F(), L(_(o), {
1391
1392
  key: 0,
1392
- onPreview: ae,
1393
- onSave: oe
1393
+ onPreview: oe,
1394
+ onSave: ne
1394
1395
  }, {
1395
1396
  header: P(() => [
1396
1397
  R(b.$slots, "header-prefix")
@@ -1417,9 +1418,9 @@ defineExpose({
1417
1418
  J("div", {
1418
1419
  class: Te(["epic-split-view-container", { "hidden-header": b.hiddenHeader }])
1419
1420
  }, [
1420
- T(x(t)),
1421
- T(x(r)),
1422
- T(x(l))
1421
+ T(_(t)),
1422
+ T(_(r)),
1423
+ T(_(l))
1423
1424
  ], 2),
1424
1425
  T(St, {
1425
1426
  ref_key: "previewRef",
@@ -1429,14 +1430,14 @@ defineExpose({
1429
1430
  ]),
1430
1431
  fallback: P(() => [
1431
1432
  J("div", It, [
1432
- T(x(i))
1433
+ T(_(i))
1433
1434
  ])
1434
1435
  ]),
1435
1436
  _: 3
1436
- })) : (F(), he("div", Dt));
1437
+ })) : (F(), pe("div", Dt));
1437
1438
  }
1438
- }), kt = {
1439
- component: async () => await import("./index-DLXCQOpE.js"),
1439
+ }), Ct = {
1440
+ component: async () => await import("./index-nkzQQCaI.js"),
1440
1441
  defaultSchema: {
1441
1442
  label: "代码编辑器",
1442
1443
  type: "monacoEditor",
@@ -1464,7 +1465,7 @@ defineExpose({
1464
1465
  ]
1465
1466
  },
1466
1467
  bindModel: "model-value"
1467
- }, Ct = {
1468
+ }, kt = {
1468
1469
  component: async () => await import("./index-DiDIFoTk.js"),
1469
1470
  defaultSchema: {
1470
1471
  label: "页面",
@@ -1486,29 +1487,29 @@ defineExpose({
1486
1487
  }
1487
1488
  };
1488
1489
  function xt(e) {
1489
- e.component("EInputSize", async () => await import("./index-C4sdhgF2.js")), e.component("EColEditor", async () => await import("./index-R1sGzPDh.js")), e.component("EActionEditor", async () => await import("./index-zFyk0fsI.js")), e.component("ERuleEditor", async () => await import("./index-BcAPkz_3.js")), e.component("EOptionsEditor", async () => await import("./index-BcRau_iO.js")), e.component("ENode", async () => await import("./index-DMO6svHk.js")), e.component("EDataSource", async () => await import("./index-CCTMCqiz.js")), e.registerActivitybar({
1490
+ e.component("EInputSize", async () => await import("./index-C4sdhgF2.js")), e.component("EColEditor", async () => await import("./index-CRL8hmqv.js")), e.component("EActionEditor", async () => await import("./index-CbEEZFLc.js")), e.component("ERuleEditor", async () => await import("./index-By8RSEAs.js")), e.component("EOptionsEditor", async () => await import("./index-DzoVPXjq.js")), e.component("ENode", async () => await import("./index-8CeSyRAe.js")), e.component("EDataSource", async () => await import("./index-CCTMCqiz.js")), e.registerActivitybar({
1490
1491
  id: "component_view",
1491
1492
  title: "组件",
1492
1493
  icon: "icon--epic--extension-outline",
1493
- component: async () => await import("./index-8kRf0Tni.js")
1494
+ component: async () => await import("./index-Dxl77FFb.js")
1494
1495
  }), e.registerRightSidebar({
1495
1496
  id: "attribute_view",
1496
1497
  title: "属性",
1497
- component: async () => await import("./attributeView-BHuhrlM5.js")
1498
+ component: async () => await import("./attributeView-Ck-ShAfN.js")
1498
1499
  }), e.registerRightSidebar({
1499
1500
  id: "style_view",
1500
1501
  title: "样式",
1501
- component: async () => await import("./styleView-Dq9MseMf.js")
1502
- }), [kt, Ct].forEach((n) => {
1502
+ component: async () => await import("./styleView-D-po6qQi.js")
1503
+ }), [Ct, kt].forEach((n) => {
1503
1504
  e.registerComponent(n);
1504
1505
  });
1505
1506
  }
1506
1507
  xt(O);
1507
1508
  export {
1508
1509
  ze as A,
1509
- te as B,
1510
+ ee as B,
1510
1511
  We as C,
1511
- ee as D,
1512
+ j as D,
1512
1513
  Le as E,
1513
1514
  gt as F,
1514
1515
  mt as G,
@@ -1525,7 +1526,7 @@ export {
1525
1526
  Tt as h,
1526
1527
  Wt as i,
1527
1528
  Bt as j,
1528
- le as k,
1529
+ re as k,
1529
1530
  Rt as l,
1530
1531
  N as m,
1531
1532
  Lt as n,
@@ -1534,11 +1535,11 @@ export {
1534
1535
  Xe as q,
1535
1536
  Kt as r,
1536
1537
  Ot as s,
1537
- Ie as t,
1538
- ue as u,
1538
+ Ee as t,
1539
+ le as u,
1539
1540
  He as v,
1540
1541
  Ut as w,
1541
- Ee as x,
1542
+ Ae as x,
1542
1543
  Je as y,
1543
1544
  Ft as z
1544
1545
  };