epic-designer-gold 0.0.41 → 0.0.43

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 (70) hide show
  1. package/dist/attributeView-B1dGeNqh.cjs +1 -0
  2. package/dist/{attributeView-DPFdUi2O.js → attributeView-CZCnJzem.js} +2 -2
  3. package/dist/form-6cUK-Ari.js +72 -0
  4. package/dist/form-CthzLIgs.cjs +1 -0
  5. package/dist/index--Z-KkjaM.cjs +10 -0
  6. package/dist/{index-C4sdhgF2.js → index-0GtpyUBx.js} +1 -1
  7. package/dist/{index-CCTMCqiz.js → index-0zDuNn0Q.js} +140 -137
  8. package/dist/{index-DeY6yw0s.cjs → index-B94gFPf3.cjs} +1 -1
  9. package/dist/index-BAEFJCS6.cjs +1 -0
  10. package/dist/{index-C-XUgjda.js → index-BKDRMrcc.js} +1 -1
  11. package/dist/index-BSLudrcT.cjs +1 -0
  12. package/dist/index-BenbgJD8.cjs +1 -0
  13. package/dist/{index-CbiXuuBq.js → index-BgE9tuf3.js} +1 -1
  14. package/dist/{index-98NOkcrB.cjs → index-CAMBquNl.cjs} +1 -1
  15. package/dist/index-CNQjMEUG.js +4 -0
  16. package/dist/index-Cb6-t5Kc.cjs +1 -0
  17. package/dist/index-CuTee7Tg.cjs +1 -0
  18. package/dist/index-CucdgcqX.cjs +1 -0
  19. package/dist/index-D0-2aoOb.js +56 -0
  20. package/dist/index-D1woeC4G.cjs +1 -0
  21. package/dist/index-DEBUq5pN.cjs +1 -0
  22. package/dist/{index-Cd9n7QSg.js → index-DI7c5Qs-.js} +3 -3
  23. package/dist/{index-ooVzYa5L.js → index-DNeYX6HK.js} +1 -1
  24. package/dist/{index-BnYEEWhA.js → index-DnjKGXr6.js} +263 -259
  25. package/dist/{index-B0pq3LvX.js → index-DrZsGTyO.js} +2 -2
  26. package/dist/{index-BdghL1e1.js → index-DuwrzlDl.js} +2 -2
  27. package/dist/index-HNPgHrkl.cjs +1 -0
  28. package/dist/{index-Bm_2TXSs.js → index-Ut_dcMcZ.js} +64 -59
  29. package/dist/{index-ASoFJnMl.js → index-XUQ1VGQg.js} +1 -1
  30. package/dist/{index-fHt4-rMq.js → index-aykMHA5o.js} +2 -2
  31. package/dist/index-fy6-gwUQ.cjs +1 -0
  32. package/dist/index-sKJ91s0r.cjs +1 -0
  33. package/dist/index.cjs +1 -1
  34. package/dist/index.js +2 -2
  35. package/dist/js.cookie-BH1G_HRi.cjs +6 -0
  36. package/dist/{axios-ITY6Uw7A.js → js.cookie-oHpRFPCO.js} +604 -532
  37. package/dist/outline-6Qt3qlWm.cjs +1 -0
  38. package/dist/{outline-yy4pIEi3.js → outline-CNayBNNC.js} +2 -2
  39. package/dist/sign-Bfrdd-6m.cjs +1 -0
  40. package/dist/{sign-DZvUIxel.js → sign-CJJd-ctq.js} +33 -32
  41. package/dist/style.css +1 -1
  42. package/dist/styleView-Cu6z6iIV.cjs +1 -0
  43. package/dist/{styleView-BC3ElYAX.js → styleView-Dh_hk7Lc.js} +2 -2
  44. package/dist/tree.vue_vue_type_script_setup_true_lang-BjjL_VlR.cjs +1 -0
  45. package/dist/{tree.vue_vue_type_script_setup_true_lang-uR4G8wa_.js → tree.vue_vue_type_script_setup_true_lang-BntCm43E.js} +1 -1
  46. package/dist/ui/elementPlus/index.cjs +1 -1
  47. package/dist/ui/elementPlus/index.js +212 -224
  48. package/package.json +1 -1
  49. package/dist/attributeView-BqbSwDZ-.cjs +0 -1
  50. package/dist/axios-CYGTE3lR.cjs +0 -6
  51. package/dist/form-2lbtG-zj.js +0 -74
  52. package/dist/form-BM53wx9g.cjs +0 -1
  53. package/dist/index-1afOcXnV.cjs +0 -1
  54. package/dist/index-B03W7FZR.cjs +0 -1
  55. package/dist/index-BJlPL6eL.cjs +0 -1
  56. package/dist/index-BMLwTmDA.cjs +0 -1
  57. package/dist/index-Bjg8-hj_.cjs +0 -1
  58. package/dist/index-C6ceZM1C.cjs +0 -1
  59. package/dist/index-CDp439PR.cjs +0 -10
  60. package/dist/index-CRSk-fAu.cjs +0 -1
  61. package/dist/index-D9mE7-Ar.js +0 -71
  62. package/dist/index-DUwQsRO_.cjs +0 -1
  63. package/dist/index-DpzLP1Zp.cjs +0 -1
  64. package/dist/index-DqXlNyYv.js +0 -4
  65. package/dist/index-FyzG-Fup.cjs +0 -1
  66. package/dist/index-RaG5yFdp.cjs +0 -1
  67. package/dist/outline-CJSEUbgc.cjs +0 -1
  68. package/dist/sign-BS8owiJT.cjs +0 -1
  69. package/dist/styleView-DT4vsrXY.cjs +0 -1
  70. package/dist/tree.vue_vue_type_script_setup_true_lang-RWTXU6lO.cjs +0 -1
@@ -1,5 +1,5 @@
1
- import { ref as _, reactive as j, defineComponent as ee, openBlock as k, createBlock as K, unref as R, mergeProps as pe, withCtx as $, renderSlot as T, getCurrentInstance as ae, inject as Q, watch as N, useAttrs as Pe, provide as L, shallowRef as Oe, computed as J, watchEffect as le, onUnmounted as Se, resolveComponent as Ve, resolveDynamicComponent as Fe, createVNode as H, createCommentVNode as De, useSlots as Me, createElementBlock as me, Suspense as Ae, createElementVNode as Z, Fragment as Re, renderList as $e, nextTick as ne, effectScope as Ne, isRef as Be, getCurrentScope as ke, onScopeDispose as Ue, onMounted as he, normalizeClass as Te, toRaw as ye } from "vue";
2
- import { p as B, E as re, a as we, l as X } from "./axios-ITY6Uw7A.js";
1
+ import { ref as _, reactive as j, defineComponent as ee, openBlock as T, createBlock as K, unref as R, mergeProps as pe, withCtx as $, renderSlot as k, getCurrentInstance as ae, inject as Q, watch as B, useAttrs as Oe, provide as L, shallowRef as Ve, computed as J, watchEffect as le, onUnmounted as De, resolveComponent as Fe, resolveDynamicComponent as Me, createVNode as H, createCommentVNode as Ae, useSlots as Re, createElementBlock as me, Suspense as Ee, createElementVNode as Z, Fragment as $e, renderList as Be, nextTick as ne, effectScope as Ne, isRef as Te, getCurrentScope as Ue, onScopeDispose as ke, onMounted as he, normalizeClass as Le, toRaw as ye } from "vue";
2
+ import { p as N, E as re, a as we, b as Se, l as X } from "./js.cookie-oHpRFPCO.js";
3
3
  function ie(e = 10) {
4
4
  const r = "abcdefghijklmnopqrstuvwxyz0123456789";
5
5
  let o = "";
@@ -9,7 +9,7 @@ function ie(e = 10) {
9
9
  }
10
10
  return o;
11
11
  }
12
- function Le(e) {
12
+ function ze(e) {
13
13
  return e.charAt(0).toUpperCase() + e.slice(1);
14
14
  }
15
15
  function z(e, r = /* @__PURE__ */ new WeakMap()) {
@@ -26,14 +26,14 @@ function z(e, r = /* @__PURE__ */ new WeakMap()) {
26
26
  o[t] = z(e[t], r);
27
27
  }), o;
28
28
  }
29
- function Vt(e) {
30
- const [r] = We([z(e)], (o) => {
29
+ function Ft(e) {
30
+ const [r] = He([z(e)], (o) => {
31
31
  var n, s;
32
32
  const t = {
33
33
  ...o,
34
34
  id: `${o.type}_${ie(8)}`
35
35
  };
36
- return (t.field || t.input) && !((s = (n = B.getComponentConfingByType(t.type)) == null ? void 0 : n.editConstraints) != null && s.fixedField) && (t.field = t.id), t;
36
+ return (t.field || t.input) && !((s = (n = N.getComponentConfingByType(t.type)) == null ? void 0 : n.editConstraints) != null && s.fixedField) && (t.field = t.id), t;
37
37
  });
38
38
  return r;
39
39
  }
@@ -46,7 +46,7 @@ function G(e, r, o = !0) {
46
46
  r.hasOwnProperty(t) || (Array.isArray(e) ? e.splice(Number(t), 1) : delete e[t]);
47
47
  });
48
48
  }
49
- function Ee(e, r, o = [], t = /* @__PURE__ */ new WeakMap()) {
49
+ function xe(e, r, o = [], t = /* @__PURE__ */ new WeakMap()) {
50
50
  const n = (s) => {
51
51
  if (Array.isArray(s))
52
52
  return s.map(n);
@@ -63,7 +63,7 @@ function Ee(e, r, o = [], t = /* @__PURE__ */ new WeakMap()) {
63
63
  };
64
64
  return JSON.stringify(n(e)) === JSON.stringify(n(r));
65
65
  }
66
- function ze(e, r) {
66
+ function Je(e, r) {
67
67
  const o = [];
68
68
  let t = !1;
69
69
  function n(s) {
@@ -78,7 +78,7 @@ function ze(e, r) {
78
78
  }
79
79
  return e.forEach(n), t || console.error(`没有查询到id为${r}的节点`), o;
80
80
  }
81
- function Ft(e, r, o) {
81
+ function Mt(e, r, o) {
82
82
  const t = r.split(".");
83
83
  let n = e;
84
84
  for (let s = 0; s < t.length; s++) {
@@ -88,7 +88,7 @@ function Ft(e, r, o) {
88
88
  }
89
89
  return n === void 0 ? o : n;
90
90
  }
91
- function Mt(e, r, o) {
91
+ function Rt(e, r, o) {
92
92
  const t = r.replace(/\[(\d+)\]/g, ".$1").split(".").filter(Boolean);
93
93
  let n = e;
94
94
  for (let s = 0; s < t.length - 1; s++) {
@@ -97,10 +97,10 @@ function Mt(e, r, o) {
97
97
  }
98
98
  return n[t[t.length - 1]] = o, e;
99
99
  }
100
- function Rt(e, r = "default") {
101
- return Je(e, r).map((t) => t.field);
100
+ function $t(e, r = "default") {
101
+ return We(e, r).map((t) => t.field);
102
102
  }
103
- function Je(e, r = "default") {
103
+ function We(e, r = "default") {
104
104
  const o = se(
105
105
  e,
106
106
  (n) => {
@@ -128,7 +128,7 @@ function se(e, r, o = !1, t) {
128
128
  }
129
129
  return o ? !1 : n;
130
130
  }
131
- function We(e, r, o) {
131
+ function He(e, r, o) {
132
132
  const t = [...e];
133
133
  for (; t.length; ) {
134
134
  const n = t.pop();
@@ -139,7 +139,7 @@ function We(e, r, o) {
139
139
  }
140
140
  return e;
141
141
  }
142
- function $t(e, r) {
142
+ function Bt(e, r) {
143
143
  const o = se(
144
144
  e,
145
145
  (t) => t.id === r,
@@ -179,7 +179,7 @@ function Nt(e, r) {
179
179
  index: t
180
180
  };
181
181
  }
182
- function Bt(e) {
182
+ function Tt(e) {
183
183
  const r = {
184
184
  schemas: [
185
185
  {
@@ -258,7 +258,7 @@ function oe(e, r) {
258
258
  ].includes(t) && (l.input = !0, ((I = (f = o.rules) == null ? void 0 : f[0]) == null ? void 0 : I.required) === !1 && o.rules.shift(), ((w = o.rules) == null ? void 0 : w.length) > 0 && (l.rules = o.rules)), o.list && (l.children = oe(o.list, o)), o.columns && (l.children = oe(o.columns, o)), o.trs && (l.children = oe(o.trs, o)), o.tds && (l.children = oe(o.tds, o)), l;
259
259
  });
260
260
  }
261
- function kt(e, r) {
261
+ function Ut(e, r) {
262
262
  let o = null;
263
263
  return (...t) => {
264
264
  o && clearTimeout(o), o = setTimeout(() => {
@@ -266,19 +266,19 @@ function kt(e, r) {
266
266
  }, r);
267
267
  };
268
268
  }
269
- function xe() {
269
+ function Ie() {
270
270
  const e = _({}), r = _({}), o = _(!1), t = _([]), n = j({});
271
271
  function s(h) {
272
272
  return e.value[h];
273
273
  }
274
- function l(h, D) {
275
- e.value[h] = D;
274
+ function l(h, A) {
275
+ e.value[h] = A;
276
276
  }
277
277
  function u(h) {
278
278
  delete e.value[h];
279
279
  }
280
- function f(h, D = !1) {
281
- const x = Object.entries(B.publicMethods).reduce(
280
+ function f(h, A = !1) {
281
+ const x = Object.entries(N.publicMethods).reduce(
282
282
  (C, [i, F]) => (C[i] = F.handler, C),
283
283
  {}
284
284
  );
@@ -289,22 +289,22 @@ function xe() {
289
289
  find: s,
290
290
  defineExpose: I,
291
291
  publicMethods: x,
292
- pluginManager: B
292
+ pluginManager: N
293
293
  })();
294
294
  } catch (C) {
295
- D && console.error("[epic:自定义函数]异常:", C);
295
+ A && console.error("[epic:自定义函数]异常:", C);
296
296
  }
297
297
  }
298
298
  function I(h) {
299
299
  h != null && (r.value = h);
300
300
  }
301
- function w(h, ...D) {
301
+ function w(h, ...A) {
302
302
  if (!h || h.length === 0) {
303
303
  console.warn("未提供任何动作");
304
304
  return;
305
305
  }
306
306
  h.forEach((x) => {
307
- const C = x.args ? JSON.parse(x.args) : D;
307
+ const C = x.args ? JSON.parse(x.args) : A;
308
308
  switch (x.type) {
309
309
  case "public":
310
310
  a(x, C);
@@ -321,30 +321,30 @@ function xe() {
321
321
  }
322
322
  });
323
323
  }
324
- function a(h, D) {
324
+ function a(h, A) {
325
325
  var x;
326
326
  try {
327
- (x = B.publicMethods[h.methodName]) == null || x.handler(...D);
327
+ (x = N.publicMethods[h.methodName]) == null || x.handler(...A);
328
328
  } catch (C) {
329
329
  console.error(`[Epic:公共函数(${h.methodName})]执行异常:`, C);
330
330
  }
331
331
  }
332
- function E(h, D) {
332
+ function E(h, A) {
333
333
  var x, C;
334
334
  try {
335
- (C = (x = r.value)[h.methodName]) == null || C.call(x, ...D);
335
+ (C = (x = r.value)[h.methodName]) == null || C.call(x, ...A);
336
336
  } catch (i) {
337
337
  console.error(`[Epic:自定义函数(${h.methodName})]执行异常:`, i);
338
338
  }
339
339
  }
340
- function p(h, D) {
340
+ function p(h, A) {
341
341
  const x = h.componentId != null && s(h.componentId);
342
342
  if (!x) {
343
343
  console.warn(`[Epic:组件${h.componentId}]未找到`);
344
344
  return;
345
345
  }
346
346
  try {
347
- x[h.methodName](...D);
347
+ x[h.methodName](...A);
348
348
  } catch (C) {
349
349
  console.error(`[Epic:组件${h.componentId}函数(${h.methodName})]执行异常:`, C);
350
350
  }
@@ -353,22 +353,22 @@ function xe() {
353
353
  o.value = h;
354
354
  }
355
355
  function d(h) {
356
- const D = se(h, () => !0);
357
- t.value = D.map((x) => x.id);
356
+ const A = se(h, () => !0);
357
+ t.value = A.map((x) => x.id);
358
358
  }
359
- function O(h, D = "default") {
360
- if (n[D]) {
361
- const x = n[D];
359
+ function O(h, A = "default") {
360
+ if (n[A]) {
361
+ const x = n[A];
362
362
  G(h, x);
363
363
  }
364
- n[D] = h;
364
+ n[A] = h;
365
365
  }
366
- function M(h, D = "default") {
367
- if (n[D]) {
368
- G(n[D], h, !1);
366
+ function M(h, A = "default") {
367
+ if (n[A]) {
368
+ G(n[A], h, !1);
369
369
  return;
370
370
  }
371
- n[D] = h;
371
+ n[A] = h;
372
372
  }
373
373
  return {
374
374
  componentInstances: e,
@@ -389,7 +389,7 @@ function xe() {
389
389
  setDefaultComponentIds: d
390
390
  };
391
391
  }
392
- function He() {
392
+ function Ke() {
393
393
  const e = _([]), r = _([]), o = _(null);
394
394
  let t = 0;
395
395
  function n(f, I = "插入组件") {
@@ -424,7 +424,7 @@ function He() {
424
424
  reset: u
425
425
  };
426
426
  }
427
- const Ke = /* @__PURE__ */ ee({
427
+ const qe = /* @__PURE__ */ ee({
428
428
  __name: "dynamicFormItem",
429
429
  props: {
430
430
  hasFormItem: { type: Boolean },
@@ -432,22 +432,22 @@ const Ke = /* @__PURE__ */ ee({
432
432
  },
433
433
  emits: ["updateFormItemRef"],
434
434
  setup(e, { emit: r }) {
435
- const o = B.getComponent("form-item"), t = e, n = r, s = _(), l = () => {
435
+ const o = N.getComponent("form-item"), t = e, n = r, s = _(), l = () => {
436
436
  n("updateFormItemRef", s.value);
437
437
  };
438
- return (u, f) => t.hasFormItem ? (k(), K(R(o), pe({
438
+ return (u, f) => t.hasFormItem ? (T(), K(R(o), pe({
439
439
  key: 0,
440
440
  ref_key: "formItemRef",
441
441
  ref: s,
442
442
  onVnodeMounted: l
443
443
  }, t.formItemProps), {
444
444
  default: $(() => [
445
- T(u.$slots, "default")
445
+ k(u.$slots, "default")
446
446
  ]),
447
447
  _: 3
448
- }, 16, ["onVnodeMounted"])) : T(u.$slots, "default", { key: 1 });
448
+ }, 16, ["onVnodeMounted"])) : k(u.$slots, "default", { key: 1 });
449
449
  }
450
- }), qe = /* @__PURE__ */ ee({
450
+ }), Ze = /* @__PURE__ */ ee({
451
451
  name: "ENode",
452
452
  __name: "node",
453
453
  props: {
@@ -464,9 +464,7 @@ const Ke = /* @__PURE__ */ ee({
464
464
  setup(e, { emit: r }) {
465
465
  const { proxy: o } = ae(), t = e, n = _(null);
466
466
  let s = Q("formData", j({}));
467
- const l = Q("slots", {}), u = Q("pageManager", {}), f = Q("disabled", { value: !1 });
468
- console.log("%c [ disabled ]-101", "font-size:13px; background:pink; color:#bf2c9f;", f.value);
469
- const I = Q("ruleFieldPrefix", null), w = Q("resetFormData", !1);
467
+ const l = Q("slots", {}), u = Q("pageManager", {}), f = Q("disabled", { value: !1 }), I = Q("ruleFieldPrefix", null), w = Q("resetFormData", !1);
470
468
  let a = j(z(t.componentSchema));
471
469
  v();
472
470
  async function E(m) {
@@ -477,6 +475,9 @@ const Ke = /* @__PURE__ */ ee({
477
475
  method: "get",
478
476
  params: {
479
477
  id: m.componentProps.dynamicId
478
+ },
479
+ headers: {
480
+ Authorization: "Bearer " + Se.get("Admin-Token")
480
481
  }
481
482
  })).data.data;
482
483
  let P = await we({
@@ -484,11 +485,14 @@ const Ke = /* @__PURE__ */ ee({
484
485
  method: y.method,
485
486
  data: JSON.parse(y.body),
486
487
  params: JSON.parse(y.params),
487
- headers: JSON.parse(y.headers)
488
+ headers: {
489
+ ...JSON.parse(y.headers),
490
+ Authorization: "Bearer " + Se.get("Admin-Token")
491
+ }
488
492
  });
489
493
  if (y && (y != null && y.dataPath)) {
490
- const be = y.dataPath.split(".").reduce((Ce, _e) => Ce[_e], P.data);
491
- m.componentProps.options = p(be, y.dataKey, y.dataValue);
494
+ const Ce = y.dataPath.split(".").reduce((_e, Pe) => _e[Pe], P.data);
495
+ m.componentProps.options = p(Ce, y.dataKey, y.dataValue);
492
496
  } else
493
497
  m.componentProps.options = p(P.data, y.dataKey, y.dataValue);
494
498
  return m;
@@ -505,10 +509,10 @@ const Ke = /* @__PURE__ */ ee({
505
509
  value: y[V] + ""
506
510
  }) : [];
507
511
  }
508
- N(
512
+ B(
509
513
  () => t.componentSchema,
510
514
  (m) => {
511
- Ee(a, m, ["children"]) || (G(a, z(m)), v());
515
+ xe(a, m, ["children"]) || (G(a, z(m)), v());
512
516
  },
513
517
  {
514
518
  deep: !0
@@ -520,9 +524,9 @@ const Ke = /* @__PURE__ */ ee({
520
524
  (t.resetFormData || w) && (s = {});
521
525
  const d = r, O = _(), M = _(), h = (m) => {
522
526
  M.value = m;
523
- }, D = Pe();
524
- Object.keys(D).length && L("nodeAttrs", D);
525
- const x = Oe(null), C = J(() => {
527
+ }, A = Oe();
528
+ Object.keys(A).length && L("nodeAttrs", A);
529
+ const x = Ve(null), C = J(() => {
526
530
  var m, b;
527
531
  return (m = a.componentProps) != null && m.hidden ? !1 : typeof a.show == "boolean" ? a.show : ((b = a.show) == null ? void 0 : b.call(a, { values: s })) ?? !0;
528
532
  }), i = J(() => {
@@ -543,9 +547,9 @@ const Ke = /* @__PURE__ */ ee({
543
547
  return V.children && delete V.children, V;
544
548
  }), F = J(() => {
545
549
  var V, y;
546
- const m = ((V = A.value) == null ? void 0 : V.bindModel) ?? "modelValue", b = {};
550
+ const m = ((V = S.value) == null ? void 0 : V.bindModel) ?? "modelValue", b = {};
547
551
  return a.on && Object.keys(a.on).forEach((P) => {
548
- b[`on${Le(P)}`] = (...ge) => u.doActions(a.on[P], ...ge);
552
+ b[`on${ze(P)}`] = (...ge) => u.doActions(a.on[P], ...ge);
549
553
  }), {
550
554
  ...t,
551
555
  ...a.componentProps,
@@ -553,15 +557,15 @@ const Ke = /* @__PURE__ */ ee({
553
557
  bindModel: m,
554
558
  ...b
555
559
  };
556
- }), A = J(() => B.getComponentConfingByType(a.type) ?? null);
560
+ }), S = J(() => N.getComponentConfingByType(a.type) ?? null);
557
561
  le(() => {
558
562
  n.value = t.modelValue ?? s[a.field ?? ""];
559
- }), N(
563
+ }), B(
560
564
  () => n.value,
561
565
  () => {
562
- n.value !== (t.modelValue ?? s[a.field ?? ""]) && S(n.value);
566
+ n.value !== (t.modelValue ?? s[a.field ?? ""]) && D(n.value);
563
567
  }
564
- ), N(
568
+ ), B(
565
569
  () => O.value,
566
570
  () => {
567
571
  c();
@@ -571,24 +575,24 @@ const Ke = /* @__PURE__ */ ee({
571
575
  function c() {
572
576
  var b;
573
577
  const m = O.value || o;
574
- a.id && m && (a.input && (m.setValue = S, m.getValue = () => s[a.field] || t.modelValue), m.setAttr = (V, y) => (a.componentProps || (a.componentProps = {}), a.componentProps[V] = y), m.getAttr = (V) => a.componentProps[V], u.addComponentInstance(a.id, m), (b = A.value) != null && b.defaultSchema.input && a.noFormItem !== !0 && M.value && u.addComponentInstance(a.id + "formItem", M.value));
578
+ a.id && m && (a.input && (m.setValue = D, m.getValue = () => s[a.field] || t.modelValue), m.setAttr = (V, y) => (a.componentProps || (a.componentProps = {}), a.componentProps[V] = y), m.getAttr = (V) => a.componentProps[V], u.addComponentInstance(a.id, m), (b = S.value) != null && b.defaultSchema.input && a.noFormItem !== !0 && M.value && u.addComponentInstance(a.id + "formItem", M.value));
575
579
  }
576
580
  function g() {
577
581
  var m;
578
- a.id && (u.removeComponentInstance(a.id), (m = A.value) != null && m.defaultSchema.input && a.noFormItem !== !0 && u.removeComponentInstance(a.id + "formItem"));
582
+ a.id && (u.removeComponentInstance(a.id), (m = S.value) != null && m.defaultSchema.input && a.noFormItem !== !0 && u.removeComponentInstance(a.id + "formItem"));
579
583
  }
580
584
  async function W() {
581
585
  var b, V, y;
582
586
  if (a = await E(a), typeof ((b = a.componentProps) == null ? void 0 : b.defaultValue) < "u") {
583
587
  const P = u.isDesignMode.value ? (V = a.componentProps) == null ? void 0 : V.defaultValue : s[a.field] ?? ((y = a.componentProps) == null ? void 0 : y.defaultValue);
584
- S(z(P));
588
+ D(z(P));
585
589
  }
586
590
  if (a.type === "slot") {
587
591
  const P = a.slotName;
588
592
  if (!P) return;
589
593
  x.value = ee({
590
594
  setup() {
591
- return () => T(l, P, {
595
+ return () => k(l, P, {
592
596
  componentSchema: a,
593
597
  model: s
594
598
  });
@@ -596,7 +600,7 @@ const Ke = /* @__PURE__ */ ee({
596
600
  });
597
601
  return;
598
602
  }
599
- const m = B.getComponent(a.type);
603
+ const m = N.getComponent(a.type);
600
604
  if (!m) {
601
605
  console.error(`组件${a.type}未注册`);
602
606
  return;
@@ -607,14 +611,14 @@ const Ke = /* @__PURE__ */ ee({
607
611
  } else
608
612
  x.value = m;
609
613
  }
610
- function S(m) {
614
+ function D(m) {
611
615
  d("update:modelValue", m), d("change", m), a.field && (s[a.field] = m), re.emit("updateformData" + t.id, s);
612
616
  }
613
617
  function U(m) {
614
618
  d("update:dynamicId", m);
615
619
  }
616
620
  let q = null;
617
- return N(
621
+ return B(
618
622
  () => a,
619
623
  async (m) => {
620
624
  const b = JSON.stringify({
@@ -633,17 +637,17 @@ const Ke = /* @__PURE__ */ ee({
633
637
  immediate: !0,
634
638
  deep: !0
635
639
  }
636
- ), Se(g), (m, b) => {
640
+ ), De(g), (m, b) => {
637
641
  var y;
638
- const V = Ve("ENode");
639
- return x.value && C.value ? (k(), K(Ke, {
642
+ const V = Fe("ENode");
643
+ return x.value && C.value ? (T(), K(qe, {
640
644
  key: 0,
641
- hasFormItem: R(a).noFormItem !== !0 && ((y = A.value) == null ? void 0 : y.defaultSchema.input),
645
+ hasFormItem: R(a).noFormItem !== !0 && ((y = S.value) == null ? void 0 : y.defaultSchema.input),
642
646
  formItemProps: i.value,
643
647
  onUpdateFormItemRef: h
644
648
  }, {
645
649
  default: $(() => [
646
- (k(), K(Fe(x.value), pe({
650
+ (T(), K(Me(x.value), pe({
647
651
  ref_key: "componentInstance",
648
652
  ref: O,
649
653
  onVnodeMounted: c,
@@ -651,7 +655,7 @@ const Ke = /* @__PURE__ */ ee({
651
655
  }, { ...F.value }, {
652
656
  [F.value.bindModel]: n.value,
653
657
  ["onUpdate:" + F.value.bindModel]: b[0] || (b[0] = (P) => n.value = P),
654
- [`onUpdate:${F.value.bindModel}` || ""]: S,
658
+ [`onUpdate:${F.value.bindModel}` || ""]: D,
655
659
  "onUpdate:dynamicId": U
656
660
  }), {
657
661
  node: $((P) => [
@@ -662,24 +666,24 @@ const Ke = /* @__PURE__ */ ee({
662
666
  }), null, 16, ["id", "sourceDateUrl"])
663
667
  ]),
664
668
  "edit-node": $(() => [
665
- T(m.$slots, "edit-node")
669
+ k(m.$slots, "edit-node")
666
670
  ]),
667
671
  _: 3
668
672
  }, 16, ["model"]))
669
673
  ]),
670
674
  _: 3
671
- }, 8, ["hasFormItem", "formItemProps"])) : De("", !0);
675
+ }, 8, ["hasFormItem", "formItemProps"])) : Ae("", !0);
672
676
  };
673
677
  }
674
678
  });
675
- function Ze() {
676
- const e = _(!1), r = xe(), o = _({});
679
+ function Ge() {
680
+ const e = _(!1), r = Ie(), o = _({});
677
681
  function t() {
678
682
  return new Promise((p) => {
679
683
  if (e.value)
680
684
  p();
681
685
  else {
682
- const v = N(e, () => {
686
+ const v = B(e, () => {
683
687
  v(), p();
684
688
  });
685
689
  }
@@ -704,19 +708,19 @@ function Ze() {
704
708
  if (d && Object.keys(d).length) {
705
709
  let h = function(i) {
706
710
  let F = [];
707
- return i.forEach((A) => {
708
- A.children && (F = [...F, ...h(A.children)]), F.push(A);
711
+ return i.forEach((S) => {
712
+ S.children && (F = [...F, ...h(S.children)]), F.push(S);
709
713
  }), F;
710
714
  }, x = function(i) {
711
- var A;
712
- let F = h((A = d == null ? void 0 : d.schemas[0]) == null ? void 0 : A.children);
715
+ var S;
716
+ let F = h((S = d == null ? void 0 : d.schemas[0]) == null ? void 0 : S.children);
713
717
  return Object.keys(i).forEach((c) => {
714
- var S, U, q, m, b, V, y;
718
+ var D, U, q, m, b, V, y;
715
719
  const g = F.find((P) => P.field === c), W = ["datetimerange", "daterange", "monthrange", "dates"];
716
- (g && (g == null ? void 0 : g.type) === "checkbox" || (g == null ? void 0 : g.type) === "select" && ((S = g == null ? void 0 : g.componentProps) != null && S.multiple) || (g == null ? void 0 : g.type) === "cascader" && !((q = (U = g == null ? void 0 : g.componentProps) == null ? void 0 : U.props) != null && q.multiple) || (g == null ? void 0 : g.type) === "date" && W.includes((m = g == null ? void 0 : g.componentProps) == null ? void 0 : m.type)) && typeof i[c] == "string" ? i[c] = (b = i[c]) == null ? void 0 : b.split(",") : (g == null ? void 0 : g.type) === "cascader" && ((y = (V = g == null ? void 0 : g.componentProps) == null ? void 0 : V.props) != null && y.multiple) && typeof i[c] == "string" ? (i[c].indexOf(";") > -1 ? i[c] = i[c].split(";").map((P) => P.split(",")) : i[c] = i[c].split(","), i[c].indexOf(";") > -1 ? i[c] = i[c].split(";").map((P) => P.split(",")) : i[c] = i[c].split(",")) : ((g == null ? void 0 : g.type) === "upload-image" || (g == null ? void 0 : g.type) === "upload-file") && typeof i[c] == "string" ? i[c] = i[c].split(",").map((P) => ({
720
+ (g && (g == null ? void 0 : g.type) === "checkbox" || (g == null ? void 0 : g.type) === "select" && ((D = g == null ? void 0 : g.componentProps) != null && D.multiple) || (g == null ? void 0 : g.type) === "cascader" && !((q = (U = g == null ? void 0 : g.componentProps) == null ? void 0 : U.props) != null && q.multiple) || (g == null ? void 0 : g.type) === "date" && W.includes((m = g == null ? void 0 : g.componentProps) == null ? void 0 : m.type)) && typeof i[c] == "string" ? i[c] = (b = i[c]) == null ? void 0 : b.split(",") : (g == null ? void 0 : g.type) === "cascader" && ((y = (V = g == null ? void 0 : g.componentProps) == null ? void 0 : V.props) != null && y.multiple) && typeof i[c] == "string" ? (i[c].indexOf(";") > -1 ? i[c] = i[c].split(";").map((P) => P.split(",")) : i[c] = i[c].split(","), i[c].indexOf(";") > -1 ? i[c] = i[c].split(";").map((P) => P.split(",")) : i[c] = i[c].split(",")) : ((g == null ? void 0 : g.type) === "upload-image" || (g == null ? void 0 : g.type) === "upload-file") && typeof i[c] == "string" ? i[c] = i[c].split(",").map((P) => ({
717
721
  url: P,
718
722
  name: P
719
- })) : (g == null ? void 0 : g.type) === "number" || (g == null ? void 0 : g.type) === "slider" ? i[c] = Number(i[c]) : (g == null ? void 0 : g.type) === "switch" && (i[c] = i[c].indexOf("true") > -1);
723
+ })) : (g == null ? void 0 : g.type) === "number" || (g == null ? void 0 : g.type) === "slider" ? i[c] = Number(i[c]) : (g == null ? void 0 : g.type) === "switch" && (i[c] = typeof i[c] == "boolean" ? i[c] : i[c].indexOf("true") > -1);
720
724
  }), i;
721
725
  }(p);
722
726
  r.setFormData(x, v);
@@ -763,10 +767,10 @@ function Ze() {
763
767
  getFormInstance: n
764
768
  };
765
769
  }
766
- const Ge = {
770
+ const Qe = {
767
771
  key: 0,
768
772
  class: "epic-loading-box"
769
- }, Qe = { class: "epic-builder-main" }, Ye = { class: "epic-loading-box" }, Xe = /* @__PURE__ */ ee({
773
+ }, Ye = { class: "epic-builder-main" }, Xe = { class: "epic-loading-box" }, je = /* @__PURE__ */ ee({
770
774
  __name: "builder",
771
775
  props: {
772
776
  pageSchema: {},
@@ -777,10 +781,10 @@ const Ge = {
777
781
  },
778
782
  emits: ["change", "ready"],
779
783
  setup(e, { expose: r, emit: o }) {
780
- const t = X(() => import("./index-DgcFxYFp.js")), n = o, { ready: s, pageManager: l, forms: u, getData: f, setData: I, validate: w, getForms: a, setForms: E, validateAll: p, getFormInstance: v } = Ze(), d = e, O = j({
784
+ const t = X(() => import("./index-DgcFxYFp.js")), n = o, { ready: s, pageManager: l, forms: u, getData: f, setData: I, validate: w, getForms: a, setForms: E, validateAll: p, getFormInstance: v } = Ge(), d = e, O = j({
781
785
  schemas: []
782
786
  });
783
- N(
787
+ B(
784
788
  () => d.pageSchema,
785
789
  (i) => {
786
790
  G(O, i);
@@ -789,7 +793,7 @@ const Ge = {
789
793
  immediate: !0,
790
794
  deep: !0
791
795
  }
792
- ), N(
796
+ ), B(
793
797
  () => d.formData,
794
798
  (i) => {
795
799
  if (i) {
@@ -804,22 +808,22 @@ const Ge = {
804
808
  );
805
809
  function M(i) {
806
810
  let F = [];
807
- return i.forEach((A) => {
808
- A.children && (F = [...F, ...M(A.children)]), F.push(A);
811
+ return i.forEach((S) => {
812
+ S.children && (F = [...F, ...M(S.children)]), F.push(S);
809
813
  }), F;
810
814
  }
811
815
  function h(i) {
812
816
  let F = M(d.pageSchema.schemas[0].children);
813
- return Object.keys(i).forEach((A) => {
814
- var W, S, U, q, m, b, V;
815
- const c = F.find((y) => y.field === A), g = ["datetimerange", "daterange", "monthrange", "dates"];
816
- (c && (c == null ? void 0 : c.type) === "checkbox" || (c == null ? void 0 : c.type) === "select" && ((W = c == null ? void 0 : c.componentProps) != null && W.multiple) || (c == null ? void 0 : c.type) === "cascader" && !((U = (S = c == null ? void 0 : c.componentProps) == null ? void 0 : S.props) != null && U.multiple) || (c == null ? void 0 : c.type) === "date" && g.includes((q = c == null ? void 0 : c.componentProps) == null ? void 0 : q.type)) && typeof i[A] == "string" ? i[A] = (m = i[A]) == null ? void 0 : m.split(",") : (c == null ? void 0 : c.type) === "cascader" && ((V = (b = c == null ? void 0 : c.componentProps) == null ? void 0 : b.props) != null && V.multiple) && typeof i[A] == "string" ? (i[A].indexOf(";") > -1 ? i[A] = i[A].split(";").map((y) => y.split(",")) : i[A] = i[A].split(","), i[A].indexOf(";") > -1 ? i[A] = i[A].split(";").map((y) => y.split(",")) : i[A] = i[A].split(",")) : ((c == null ? void 0 : c.type) === "upload-image" || (c == null ? void 0 : c.type) === "upload-file") && typeof i[A] == "string" ? i[A] = i[A].split(",").map((y) => ({
817
+ return Object.keys(i).forEach((S) => {
818
+ var W, D, U, q, m, b, V;
819
+ const c = F.find((y) => y.field === S), g = ["datetimerange", "daterange", "monthrange", "dates"];
820
+ (c && (c == null ? void 0 : c.type) === "checkbox" || (c == null ? void 0 : c.type) === "select" && ((W = c == null ? void 0 : c.componentProps) != null && W.multiple) || (c == null ? void 0 : c.type) === "cascader" && !((U = (D = c == null ? void 0 : c.componentProps) == null ? void 0 : D.props) != null && U.multiple) || (c == null ? void 0 : c.type) === "date" && g.includes((q = c == null ? void 0 : c.componentProps) == null ? void 0 : q.type)) && typeof i[S] == "string" ? i[S] = (m = i[S]) == null ? void 0 : m.split(",") : (c == null ? void 0 : c.type) === "cascader" && ((V = (b = c == null ? void 0 : c.componentProps) == null ? void 0 : b.props) != null && V.multiple) && typeof i[S] == "string" ? (i[S].indexOf(";") > -1 ? i[S] = i[S].split(";").map((y) => y.split(",")) : i[S] = i[S].split(","), i[S].indexOf(";") > -1 ? i[S] = i[S].split(";").map((y) => y.split(",")) : i[S] = i[S].split(",")) : ((c == null ? void 0 : c.type) === "upload-image" || (c == null ? void 0 : c.type) === "upload-file") && typeof i[S] == "string" ? i[S] = i[S].split(",").map((y) => ({
817
821
  url: y,
818
822
  name: y
819
- })) : (c == null ? void 0 : c.type) === "number" || (c == null ? void 0 : c.type) === "slider" ? i[A] = Number(i[A]) : (c == null ? void 0 : c.type) === "switch" && (i[A] = i[A].indexOf("true") > -1);
823
+ })) : (c == null ? void 0 : c.type) === "number" || (c == null ? void 0 : c.type) === "slider" ? i[S] = Number(i[S]) : (c == null ? void 0 : c.type) === "switch" && (i[S] = typeof i[S] == "boolean" ? i[S] : i[S].indexOf("true") > -1);
820
824
  }), i;
821
825
  }
822
- N(
826
+ B(
823
827
  () => O.script,
824
828
  (i) => {
825
829
  i && l.setMethods(i, !0);
@@ -827,11 +831,11 @@ const Ge = {
827
831
  {
828
832
  immediate: !0
829
833
  }
830
- ), L("slots", Me()), L("pageManager", l), L("forms", u), L("pageSchema", O), L(
834
+ ), L("slots", Re()), L("pageManager", l), L("forms", u), L("pageSchema", O), L(
831
835
  "disabled",
832
836
  J(() => d.disabled)
833
837
  );
834
- const D = ae(), x = D == null ? void 0 : D.proxy;
838
+ const A = ae(), x = A == null ? void 0 : A.proxy;
835
839
  function C() {
836
840
  ne(() => {
837
841
  s.value = !0, n("ready", l), x && l.addComponentInstance("builder", x);
@@ -849,33 +853,33 @@ const Ge = {
849
853
  setForms: E,
850
854
  validateAll: p,
851
855
  getFormInstance: v
852
- }), (i, F) => R(B).initialized.value ? (k(), K(Ae, {
856
+ }), (i, F) => R(N).initialized.value ? (T(), K(Ee, {
853
857
  key: 1,
854
858
  onResolve: C
855
859
  }, {
856
860
  default: $(() => [
857
- Z("div", Qe, [
858
- (k(!0), me(Re, null, $e(O.schemas, (A, c) => (k(), K(R(qe), {
861
+ Z("div", Ye, [
862
+ (T(!0), me($e, null, Be(O.schemas, (S, c) => (T(), K(R(Ze), {
859
863
  id: d.id,
860
864
  key: c,
861
865
  sourceDateUrl: d.sourceDateUrl,
862
- componentSchema: A
866
+ componentSchema: S
863
867
  }, null, 8, ["id", "sourceDateUrl", "componentSchema"]))), 128))
864
868
  ])
865
869
  ]),
866
870
  fallback: $(() => [
867
- Z("div", Ye, [
871
+ Z("div", Xe, [
868
872
  H(R(t))
869
873
  ])
870
874
  ]),
871
875
  _: 1
872
- })) : (k(), me("div", Ge));
876
+ })) : (T(), me("div", Qe));
873
877
  }
874
878
  });
875
879
  function ve(e) {
876
- return ke() ? (Ue(e), !0) : !1;
880
+ return Ue() ? (ke(e), !0) : !1;
877
881
  }
878
- function je(e) {
882
+ function et(e) {
879
883
  let r = 0, o, t;
880
884
  const n = () => {
881
885
  r -= 1, t && r <= 0 && (t.stop(), o = void 0, t = void 0);
@@ -885,21 +889,21 @@ function je(e) {
885
889
  function te(e) {
886
890
  return typeof e == "function" ? e() : R(e);
887
891
  }
888
- const et = typeof window < "u" && typeof document < "u";
892
+ const tt = typeof window < "u" && typeof document < "u";
889
893
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
890
- const tt = (e) => typeof e < "u", nt = Object.prototype.toString, ot = (e) => nt.call(e) === "[object Object]", rt = () => {
894
+ const nt = (e) => typeof e < "u", ot = Object.prototype.toString, rt = (e) => ot.call(e) === "[object Object]", st = () => {
891
895
  };
892
- function st(e) {
896
+ function at(e) {
893
897
  return ae();
894
898
  }
895
- function at(e, r = !0, o) {
896
- st() ? he(e, o) : r ? e() : ne(e);
899
+ function lt(e, r = !0, o) {
900
+ at() ? he(e, o) : r ? e() : ne(e);
897
901
  }
898
- function lt(e = !1, r = {}) {
902
+ function it(e = !1, r = {}) {
899
903
  const {
900
904
  truthyValue: o = !0,
901
905
  falsyValue: t = !1
902
- } = r, n = Be(e), s = _(e);
906
+ } = r, n = Te(e), s = _(e);
903
907
  function l(u) {
904
908
  if (arguments.length)
905
909
  return s.value = u, s.value;
@@ -910,29 +914,29 @@ function lt(e = !1, r = {}) {
910
914
  }
911
915
  return n ? l : [s, l];
912
916
  }
913
- function Ut(e, r, o) {
914
- const t = N(e, (...n) => (ne(() => t()), r(...n)), o);
917
+ function kt(e, r, o) {
918
+ const t = B(e, (...n) => (ne(() => t()), r(...n)), o);
915
919
  return t;
916
920
  }
917
- const ce = et ? window : void 0;
921
+ const ce = tt ? window : void 0;
918
922
  function Y(e) {
919
923
  var r;
920
924
  const o = te(e);
921
925
  return (r = o == null ? void 0 : o.$el) != null ? r : o;
922
926
  }
923
- function it(...e) {
927
+ function ct(...e) {
924
928
  let r, o, t, n;
925
929
  if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([o, t, n] = e, r = ce) : [r, o, t, n] = e, !r)
926
- return rt;
930
+ return st;
927
931
  Array.isArray(o) || (o = [o]), Array.isArray(t) || (t = [t]);
928
932
  const s = [], l = () => {
929
933
  s.forEach((w) => w()), s.length = 0;
930
- }, u = (w, a, E, p) => (w.addEventListener(a, E, p), () => w.removeEventListener(a, E, p)), f = N(
934
+ }, u = (w, a, E, p) => (w.addEventListener(a, E, p), () => w.removeEventListener(a, E, p)), f = B(
931
935
  () => [Y(r), te(n)],
932
936
  ([w, a]) => {
933
937
  if (l(), !w)
934
938
  return;
935
- const E = ot(a) ? { ...a } : a;
939
+ const E = rt(a) ? { ...a } : a;
936
940
  s.push(
937
941
  ...o.flatMap((p) => t.map((v) => u(w, p, v, E)))
938
942
  );
@@ -943,10 +947,10 @@ function it(...e) {
943
947
  };
944
948
  return ve(I), I;
945
949
  }
946
- function ct(e) {
950
+ function ut(e) {
947
951
  return typeof e == "function" ? e : typeof e == "string" ? (r) => r.key === e : Array.isArray(e) ? (r) => e.includes(r.key) : () => !0;
948
952
  }
949
- function Ie(...e) {
953
+ function be(...e) {
950
954
  let r, o, t = {};
951
955
  e.length === 3 ? (r = e[0], o = e[1], t = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (r = !0, o = e[0], t = e[1]) : (r = e[0], o = e[1]) : (r = !0, o = e[0]);
952
956
  const {
@@ -954,39 +958,39 @@ function Ie(...e) {
954
958
  eventName: s = "keydown",
955
959
  passive: l = !1,
956
960
  dedupe: u = !1
957
- } = t, f = ct(r);
958
- return it(n, s, (w) => {
961
+ } = t, f = ut(r);
962
+ return ct(n, s, (w) => {
959
963
  w.repeat && te(u) || f(w) && o(w);
960
964
  }, l);
961
965
  }
962
966
  function de(e, r, o = {}) {
963
- return Ie(e, r, { ...o, eventName: "keydown" });
967
+ return be(e, r, { ...o, eventName: "keydown" });
964
968
  }
965
969
  function fe(e, r, o = {}) {
966
- return Ie(e, r, { ...o, eventName: "keyup" });
970
+ return be(e, r, { ...o, eventName: "keyup" });
967
971
  }
968
- function ut() {
972
+ function dt() {
969
973
  const e = _(!1), r = ae();
970
974
  return r && he(() => {
971
975
  e.value = !0;
972
976
  }, r), e;
973
977
  }
974
- function dt(e) {
975
- const r = ut();
978
+ function ft(e) {
979
+ const r = dt();
976
980
  return J(() => (r.value, !!e()));
977
981
  }
978
- function ft(e) {
982
+ function pt(e) {
979
983
  return JSON.parse(JSON.stringify(e));
980
984
  }
981
- function pt(e, r, o = {}) {
985
+ function mt(e, r, o = {}) {
982
986
  const { window: t = ce, ...n } = o;
983
987
  let s;
984
- const l = dt(() => t && "ResizeObserver" in t), u = () => {
988
+ const l = ft(() => t && "ResizeObserver" in t), u = () => {
985
989
  s && (s.disconnect(), s = void 0);
986
990
  }, f = J(() => {
987
991
  const a = te(e);
988
992
  return Array.isArray(a) ? a.map((E) => Y(E)) : [Y(a)];
989
- }), I = N(
993
+ }), I = B(
990
994
  f,
991
995
  (a) => {
992
996
  if (u(), l.value && t) {
@@ -1004,11 +1008,11 @@ function pt(e, r, o = {}) {
1004
1008
  stop: w
1005
1009
  };
1006
1010
  }
1007
- function Tt(e, r = { width: 0, height: 0 }, o = {}) {
1011
+ function Lt(e, r = { width: 0, height: 0 }, o = {}) {
1008
1012
  const { window: t = ce, box: n = "content-box" } = o, s = J(() => {
1009
1013
  var a, E;
1010
1014
  return (E = (a = Y(e)) == null ? void 0 : a.namespaceURI) == null ? void 0 : E.includes("svg");
1011
- }), l = _(r.width), u = _(r.height), { stop: f } = pt(
1015
+ }), l = _(r.width), u = _(r.height), { stop: f } = mt(
1012
1016
  e,
1013
1017
  ([a]) => {
1014
1018
  const E = n === "border-box" ? a.borderBoxSize : n === "content-box" ? a.contentBoxSize : a.devicePixelContentBoxSize;
@@ -1026,11 +1030,11 @@ function Tt(e, r = { width: 0, height: 0 }, o = {}) {
1026
1030
  },
1027
1031
  o
1028
1032
  );
1029
- at(() => {
1033
+ lt(() => {
1030
1034
  const a = Y(e);
1031
1035
  a && (l.value = "offsetWidth" in a ? a.offsetWidth : r.width, u.value = "offsetHeight" in a ? a.offsetHeight : r.height);
1032
1036
  });
1033
- const I = N(
1037
+ const I = B(
1034
1038
  () => Y(e),
1035
1039
  (a) => {
1036
1040
  l.value = a ? r.width : 0, u.value = a ? r.height : 0;
@@ -1045,7 +1049,7 @@ function Tt(e, r = { width: 0, height: 0 }, o = {}) {
1045
1049
  stop: w
1046
1050
  };
1047
1051
  }
1048
- function Lt(e, r, o, t = {}) {
1052
+ function zt(e, r, o, t = {}) {
1049
1053
  var n, s, l;
1050
1054
  const {
1051
1055
  clone: u = !1,
@@ -1057,18 +1061,18 @@ function Lt(e, r, o, t = {}) {
1057
1061
  } = t, p = ae(), v = o || (p == null ? void 0 : p.emit) || ((n = p == null ? void 0 : p.$emit) == null ? void 0 : n.bind(p)) || ((l = (s = p == null ? void 0 : p.proxy) == null ? void 0 : s.$emit) == null ? void 0 : l.bind(p == null ? void 0 : p.proxy));
1058
1062
  let d = I;
1059
1063
  r || (r = "modelValue"), d = d || `update:${r.toString()}`;
1060
- const O = (D) => u ? typeof u == "function" ? u(D) : ft(D) : D, M = () => tt(e[r]) ? O(e[r]) : a, h = (D) => {
1061
- E ? E(D) && v(d, D) : v(d, D);
1064
+ const O = (A) => u ? typeof u == "function" ? u(A) : pt(A) : A, M = () => nt(e[r]) ? O(e[r]) : a, h = (A) => {
1065
+ E ? E(A) && v(d, A) : v(d, A);
1062
1066
  };
1063
1067
  if (f) {
1064
- const D = M(), x = _(D);
1068
+ const A = M(), x = _(A);
1065
1069
  let C = !1;
1066
- return N(
1070
+ return B(
1067
1071
  () => e[r],
1068
1072
  (i) => {
1069
1073
  C || (C = !0, x.value = O(i), ne(() => C = !1));
1070
1074
  }
1071
- ), N(
1075
+ ), B(
1072
1076
  x,
1073
1077
  (i) => {
1074
1078
  !C && (i !== e[r] || w) && h(i);
@@ -1080,23 +1084,23 @@ function Lt(e, r, o, t = {}) {
1080
1084
  get() {
1081
1085
  return M();
1082
1086
  },
1083
- set(D) {
1084
- h(D);
1087
+ set(A) {
1088
+ h(A);
1085
1089
  }
1086
1090
  });
1087
1091
  }
1088
- function zt() {
1089
- const { isDark: e } = ue(), r = lt(e);
1092
+ function Jt() {
1093
+ const { isDark: e } = ue(), r = it(e);
1090
1094
  return {
1091
1095
  isDark: e,
1092
1096
  toggleDark: r
1093
1097
  };
1094
1098
  }
1095
- function mt() {
1099
+ function ht() {
1096
1100
  const e = _(!1);
1097
1101
  return he(() => {
1098
- ht(e), vt(e);
1099
- }), N(
1102
+ vt(e), gt(e);
1103
+ }), B(
1100
1104
  () => e.value,
1101
1105
  () => {
1102
1106
  e.value ? document.documentElement.classList.add("dark") : document.documentElement.classList.remove("dark");
@@ -1105,11 +1109,11 @@ function mt() {
1105
1109
  isDark: e
1106
1110
  };
1107
1111
  }
1108
- function ht(e) {
1112
+ function vt(e) {
1109
1113
  var r = document.documentElement;
1110
1114
  r && (r.classList.contains("dark") ? e.value = !0 : e.value = !1);
1111
1115
  }
1112
- function vt(e) {
1116
+ function gt(e) {
1113
1117
  var r = document.querySelector("html"), o = new MutationObserver(function(t) {
1114
1118
  for (var n of t)
1115
1119
  if (n.type === "attributes" && n.attributeName === "class") {
@@ -1120,12 +1124,12 @@ function vt(e) {
1120
1124
  o.observe(r, {
1121
1125
  attributes: !0,
1122
1126
  attributeFilter: ["class"]
1123
- }), Se(() => {
1127
+ }), De(() => {
1124
1128
  o.disconnect();
1125
1129
  });
1126
1130
  }
1127
- function gt() {
1128
- const e = _(1), r = _(!1), { isDark: o } = mt(), { pressSpace: t, pressShift: n, pressCtrl: s } = yt();
1131
+ function yt() {
1132
+ const e = _(1), r = _(!1), { isDark: o } = ht(), { pressSpace: t, pressShift: n, pressCtrl: s } = wt();
1129
1133
  return {
1130
1134
  canvasScale: e,
1131
1135
  pressSpace: t,
@@ -1135,8 +1139,8 @@ function gt() {
1135
1139
  isDark: o
1136
1140
  };
1137
1141
  }
1138
- const ue = je(gt);
1139
- function yt() {
1142
+ const ue = et(yt);
1143
+ function wt() {
1140
1144
  const e = _(!1), r = _(!1), o = _(!1);
1141
1145
  return de(" ", () => {
1142
1146
  e.value = !0;
@@ -1152,7 +1156,7 @@ function yt() {
1152
1156
  o.value = !1;
1153
1157
  }), { pressSpace: e, pressShift: r, pressCtrl: o };
1154
1158
  }
1155
- function Jt(e) {
1159
+ function Wt(e) {
1156
1160
  const { pressSpace: r } = ue(), o = new Image(1, 1);
1157
1161
  o.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==";
1158
1162
  let t = 0, n = 0;
@@ -1171,7 +1175,7 @@ function Jt(e) {
1171
1175
  }
1172
1176
  return { handleElementDragStart: s, handleElementDrag: l, handleElementDragEnd: u };
1173
1177
  }
1174
- function Wt(e) {
1178
+ function Ht(e) {
1175
1179
  const { pressCtrl: r, canvasScale: o, disabledZoom: t } = ue();
1176
1180
  function n(s) {
1177
1181
  if (!r.value || t.value)
@@ -1180,14 +1184,14 @@ function Wt(e) {
1180
1184
  let l = 0;
1181
1185
  s.deltaY < 0 ? l = o.value + 0.05 : l = o.value - 0.05, !(l > 150 || l < 0.5) && (o.value = l);
1182
1186
  }
1183
- return N(
1187
+ return B(
1184
1188
  () => o.value,
1185
1189
  (s) => {
1186
1190
  e.value && !t.value && (e.value.style.transform = `scale(${s})`);
1187
1191
  }
1188
1192
  ), { handleZoom: n, canvasScale: o };
1189
1193
  }
1190
- function Ht(e, r = 16.66) {
1194
+ function Kt(e, r = 16.66) {
1191
1195
  let o;
1192
1196
  function t() {
1193
1197
  n(), o = window.setInterval(e, r);
@@ -1200,10 +1204,10 @@ function Ht(e, r = 16.66) {
1200
1204
  stopTimedQuery: n
1201
1205
  };
1202
1206
  }
1203
- const wt = { class: "min-w-750px rounded" }, St = { class: "h-full rounded" }, Dt = /* @__PURE__ */ ee({
1207
+ const St = { class: "min-w-750px rounded" }, Dt = { class: "h-full rounded" }, At = /* @__PURE__ */ ee({
1204
1208
  __name: "index",
1205
1209
  setup(e, { expose: r }) {
1206
- const o = B.getComponent("monacoEditor"), t = B.getComponent("modal"), n = _(null), s = _(!1), l = _(!1), u = _({}), f = Q("pageSchema"), I = _(null), w = _("");
1210
+ const o = N.getComponent("monacoEditor"), t = N.getComponent("modal"), n = _(null), s = _(!1), l = _(!1), u = _({}), f = Q("pageSchema"), I = _(null), w = _("");
1207
1211
  function a() {
1208
1212
  l.value = !1;
1209
1213
  }
@@ -1230,7 +1234,7 @@ const wt = { class: "min-w-750px rounded" }, St = { class: "h-full rounded" }, D
1230
1234
  }
1231
1235
  return r({
1232
1236
  handleOpen: p
1233
- }), (d, O) => (k(), K(R(t), {
1237
+ }), (d, O) => (T(), K(R(t), {
1234
1238
  modelValue: s.value,
1235
1239
  "onUpdate:modelValue": O[1] || (O[1] = (M) => s.value = M),
1236
1240
  title: "预览",
@@ -1241,8 +1245,8 @@ const wt = { class: "min-w-750px rounded" }, St = { class: "h-full rounded" }, D
1241
1245
  okText: "表单数据"
1242
1246
  }, {
1243
1247
  default: $(() => [
1244
- Z("div", wt, [
1245
- (k(), K(R(Xe), {
1248
+ Z("div", St, [
1249
+ (T(), K(R(je), {
1246
1250
  key: w.value,
1247
1251
  ref_key: "kb",
1248
1252
  ref: I,
@@ -1258,7 +1262,7 @@ const wt = { class: "min-w-750px rounded" }, St = { class: "h-full rounded" }, D
1258
1262
  onOk: a
1259
1263
  }, {
1260
1264
  default: $(() => [
1261
- Z("div", St, [
1265
+ Z("div", Dt, [
1262
1266
  H(R(o), {
1263
1267
  ref_key: "monacoEditorRef",
1264
1268
  ref: n,
@@ -1276,10 +1280,10 @@ const wt = { class: "min-w-750px rounded" }, St = { class: "h-full rounded" }, D
1276
1280
  _: 1
1277
1281
  }, 8, ["modelValue"]));
1278
1282
  }
1279
- }), At = {
1283
+ }), Et = {
1280
1284
  key: 0,
1281
1285
  class: "epic-loading-box"
1282
- }, Et = { class: "epic-designer-main" }, xt = { class: "epic-header-container" }, It = { class: "epic-loading-box" }, Kt = /* @__PURE__ */ ee({
1286
+ }, xt = { class: "epic-designer-main" }, It = { class: "epic-header-container" }, bt = { class: "epic-loading-box" }, qt = /* @__PURE__ */ ee({
1283
1287
  __name: "designer",
1284
1288
  props: {
1285
1289
  disabledZoom: { type: Boolean, default: !1 },
@@ -1302,7 +1306,7 @@ const wt = { class: "min-w-750px rounded" }, St = { class: "h-full rounded" }, D
1302
1306
  "updateSourceData"
1303
1307
  ],
1304
1308
  setup(e, { expose: r, emit: o }) {
1305
- const t = X(() => import("./index-C-XUgjda.js")), n = X(() => import("./index-ASoFJnMl.js")), s = X(() => import("./index-fHt4-rMq.js")), l = X(() => import("./index-ooVzYa5L.js")), u = X(() => import("./index-DgcFxYFp.js")), f = xe(), I = He(), w = e;
1309
+ const t = X(() => import("./index-BKDRMrcc.js")), n = X(() => import("./index-XUQ1VGQg.js")), s = X(() => import("./index-aykMHA5o.js")), l = X(() => import("./index-DNeYX6HK.js")), u = X(() => import("./index-DgcFxYFp.js")), f = Ie(), I = Ke(), w = e;
1306
1310
  let a = {
1307
1311
  schemas: [
1308
1312
  {
@@ -1354,7 +1358,7 @@ defineExpose({
1354
1358
  a = w.defaultSchema;
1355
1359
  return;
1356
1360
  }
1357
- w.source && B.setSourceData(w.source), w.formMode && (a.schemas = B.formSchemas);
1361
+ w.source && N.setSourceData(w.source), w.formMode && (a.schemas = N.formSchemas);
1358
1362
  }), f.setDesignMode(), f.setDefaultComponentIds(a.schemas);
1359
1363
  const E = o, p = _(null), v = j({
1360
1364
  checkedNode: null,
@@ -1368,61 +1372,61 @@ defineExpose({
1368
1372
  le(() => {
1369
1373
  O.value = w.disabledZoom;
1370
1374
  }), le(() => {
1371
- const S = d.script;
1372
- S && S !== "" && f.setMethods(S);
1375
+ const D = d.script;
1376
+ D && D !== "" && f.setMethods(D);
1373
1377
  }), L("pageSchema", d), L("revoke", I), L("pageManager", f), L(
1374
1378
  "designerProps",
1375
1379
  J(() => w)
1376
1380
  ), L("designer", {
1377
1381
  setCheckedNode: h,
1378
- setHoverNode: D,
1382
+ setHoverNode: A,
1379
1383
  setDisableHover: C,
1380
1384
  handleToggleDeviceMode: g,
1381
- reset: A,
1385
+ reset: S,
1382
1386
  state: v
1383
- }), re.on("saveSourceData", (S) => {
1384
- E("saveSourceData", S);
1385
- }), re.on("deleteSourceData", (S) => {
1386
- E("deleteSourceData", S);
1387
- }), re.on("updateSourceData", (S) => {
1388
- E("updateSourceData", S);
1387
+ }), re.on("saveSourceData", (D) => {
1388
+ E("saveSourceData", D);
1389
+ }), re.on("deleteSourceData", (D) => {
1390
+ E("deleteSourceData", D);
1391
+ }), re.on("updateSourceData", (D) => {
1392
+ E("updateSourceData", D);
1389
1393
  });
1390
1394
  function M() {
1391
1395
  d.schemas = z(a.schemas), h(d.schemas[0]), I.push(d.schemas, "初始化撤销功能");
1392
1396
  }
1393
- async function h(S = d.schemas[0]) {
1394
- v.checkedNode = S, v.matched = ze(d.schemas, S.id);
1397
+ async function h(D = d.schemas[0]) {
1398
+ v.checkedNode = D, v.matched = Je(d.schemas, D.id);
1395
1399
  }
1396
- async function D(S = null) {
1400
+ async function A(D = null) {
1397
1401
  var U;
1398
- if (!S || v.disableHover)
1402
+ if (!D || v.disableHover)
1399
1403
  return v.hoverNode = null, !1;
1400
- if ((S == null ? void 0 : S.id) === ((U = v.hoverNode) == null ? void 0 : U.id))
1404
+ if ((D == null ? void 0 : D.id) === ((U = v.hoverNode) == null ? void 0 : U.id))
1401
1405
  return !1;
1402
- v.hoverNode = S;
1406
+ v.hoverNode = D;
1403
1407
  }
1404
1408
  function x() {
1405
1409
  ne(() => {
1406
1410
  E("ready", { pageManager: f });
1407
1411
  });
1408
1412
  }
1409
- async function C(S = !1) {
1410
- v.disableHover = S;
1413
+ async function C(D = !1) {
1414
+ v.disableHover = D;
1411
1415
  }
1412
- function i(S) {
1413
- G(d, z(S));
1416
+ function i(D) {
1417
+ G(d, z(D));
1414
1418
  }
1415
1419
  function F() {
1416
1420
  return ye(d);
1417
1421
  }
1418
- function A() {
1419
- Ee(d.schemas, a.schemas) && d.script === a.script || (G(d.schemas, a.schemas), d.script = a.script, h(d.schemas[0]), I.push(d.schemas, "重置操作"), E("reset", d));
1422
+ function S() {
1423
+ xe(d.schemas, a.schemas) && d.script === a.script || (G(d.schemas, a.schemas), d.script = a.script, h(d.schemas[0]), I.push(d.schemas, "重置操作"), E("reset", d));
1420
1424
  }
1421
1425
  function c() {
1422
1426
  E("save", ye(d));
1423
1427
  }
1424
- function g(S) {
1425
- E("toggleDeviceMode", S);
1428
+ function g(D) {
1429
+ E("toggleDeviceMode", D);
1426
1430
  }
1427
1431
  function W() {
1428
1432
  p.value.handleOpen();
@@ -1431,66 +1435,66 @@ defineExpose({
1431
1435
  revoke: I,
1432
1436
  setData: i,
1433
1437
  getData: F,
1434
- reset: A,
1438
+ reset: S,
1435
1439
  preview: W
1436
- }), (S, U) => R(B).initialized.value ? (k(), K(Ae, {
1440
+ }), (D, U) => R(N).initialized.value ? (T(), K(Ee, {
1437
1441
  key: 1,
1438
1442
  onResolve: x
1439
1443
  }, {
1440
1444
  default: $(() => [
1441
- Z("div", Et, [
1442
- Z("div", xt, [
1443
- T(S.$slots, "header", {}, () => [
1444
- w.hiddenHeader ? De("", !0) : (k(), K(R(t), {
1445
+ Z("div", xt, [
1446
+ Z("div", It, [
1447
+ k(D.$slots, "header", {}, () => [
1448
+ w.hiddenHeader ? Ae("", !0) : (T(), K(R(t), {
1445
1449
  key: 0,
1446
1450
  onPreview: W,
1447
1451
  onSave: c
1448
1452
  }, {
1449
1453
  header: $(() => [
1450
- T(S.$slots, "header-prefix")
1454
+ k(D.$slots, "header-prefix")
1451
1455
  ]),
1452
1456
  prefix: $(() => [
1453
- T(S.$slots, "header-prefix")
1457
+ k(D.$slots, "header-prefix")
1454
1458
  ]),
1455
1459
  title: $(() => [
1456
- T(S.$slots, "header-title")
1460
+ k(D.$slots, "header-title")
1457
1461
  ]),
1458
1462
  "right-prefix": $(() => [
1459
- T(S.$slots, "header-right-prefix")
1463
+ k(D.$slots, "header-right-prefix")
1460
1464
  ]),
1461
1465
  "right-action": $(() => [
1462
- T(S.$slots, "header-right-action")
1466
+ k(D.$slots, "header-right-action")
1463
1467
  ]),
1464
1468
  "right-suffix": $(() => [
1465
- T(S.$slots, "header-right-suffix")
1469
+ k(D.$slots, "header-right-suffix")
1466
1470
  ]),
1467
1471
  _: 3
1468
1472
  }))
1469
1473
  ])
1470
1474
  ]),
1471
1475
  Z("div", {
1472
- class: Te(["epic-split-view-container", { "hidden-header": S.hiddenHeader }])
1476
+ class: Le(["epic-split-view-container", { "hidden-header": D.hiddenHeader }])
1473
1477
  }, [
1474
1478
  H(R(n)),
1475
1479
  H(R(s)),
1476
1480
  H(R(l))
1477
1481
  ], 2),
1478
- H(Dt, {
1482
+ H(At, {
1479
1483
  ref_key: "previewRef",
1480
1484
  ref: p
1481
1485
  }, null, 512)
1482
1486
  ])
1483
1487
  ]),
1484
1488
  fallback: $(() => [
1485
- Z("div", It, [
1489
+ Z("div", bt, [
1486
1490
  H(R(u))
1487
1491
  ])
1488
1492
  ]),
1489
1493
  _: 3
1490
- })) : (k(), me("div", At));
1494
+ })) : (T(), me("div", Et));
1491
1495
  }
1492
- }), bt = {
1493
- component: async () => await import("./index-CbiXuuBq.js"),
1496
+ }), Ct = {
1497
+ component: async () => await import("./index-BgE9tuf3.js"),
1494
1498
  defaultSchema: {
1495
1499
  label: "代码编辑器",
1496
1500
  type: "monacoEditor",
@@ -1518,7 +1522,7 @@ defineExpose({
1518
1522
  ]
1519
1523
  },
1520
1524
  bindModel: "model-value"
1521
- }, Ct = {
1525
+ }, _t = {
1522
1526
  component: async () => await import("./index-DiDIFoTk.js"),
1523
1527
  defaultSchema: {
1524
1528
  label: "页面",
@@ -1539,65 +1543,65 @@ defineExpose({
1539
1543
  ]
1540
1544
  }
1541
1545
  };
1542
- function _t(e) {
1543
- e.component("EInputSize", async () => await import("./index-C4sdhgF2.js")), e.component("EColEditor", async () => await import("./index-D9mE7-Ar.js")), e.component("EActionEditor", async () => await import("./index-Cd9n7QSg.js")), e.component("ERuleEditor", async () => await import("./index-B0pq3LvX.js")), e.component("EOptionsEditor", async () => await import("./index-Bm_2TXSs.js")), e.component("ENode", async () => await import("./index-DqXlNyYv.js")), e.component("EDataSource", async () => await import("./index-CCTMCqiz.js")), e.registerActivitybar({
1546
+ function Pt(e) {
1547
+ e.component("EInputSize", async () => await import("./index-0GtpyUBx.js")), e.component("EColEditor", async () => await import("./index-D0-2aoOb.js")), e.component("EActionEditor", async () => await import("./index-DI7c5Qs-.js")), e.component("ERuleEditor", async () => await import("./index-DrZsGTyO.js")), e.component("EOptionsEditor", async () => await import("./index-Ut_dcMcZ.js")), e.component("ENode", async () => await import("./index-CNQjMEUG.js")), e.component("EDataSource", async () => await import("./index-0zDuNn0Q.js")), e.registerActivitybar({
1544
1548
  id: "component_view",
1545
1549
  title: "组件",
1546
1550
  icon: "icon--epic--extension-outline",
1547
- component: async () => await import("./index-BdghL1e1.js")
1551
+ component: async () => await import("./index-DuwrzlDl.js")
1548
1552
  }), e.registerActivitybar({
1549
1553
  id: "outline_view",
1550
1554
  title: "大纲",
1551
1555
  icon: "icon--epic--account-tree-outline-rounded",
1552
- component: async () => await import("./outline-yy4pIEi3.js")
1556
+ component: async () => await import("./outline-CNayBNNC.js")
1553
1557
  }), e.registerRightSidebar({
1554
1558
  id: "attribute_view",
1555
1559
  title: "属性",
1556
- component: async () => await import("./attributeView-DPFdUi2O.js")
1560
+ component: async () => await import("./attributeView-CZCnJzem.js")
1557
1561
  }), e.registerRightSidebar({
1558
1562
  id: "style_view",
1559
1563
  title: "样式",
1560
- component: async () => await import("./styleView-BC3ElYAX.js")
1561
- }), [bt, Ct].forEach((o) => {
1564
+ component: async () => await import("./styleView-Dh_hk7Lc.js")
1565
+ }), [Ct, _t].forEach((o) => {
1562
1566
  e.registerComponent(o);
1563
1567
  });
1564
1568
  }
1565
- _t(B);
1569
+ Pt(N);
1566
1570
  export {
1567
- Je as A,
1571
+ We as A,
1568
1572
  se as B,
1569
- We as C,
1573
+ He as C,
1570
1574
  oe as D,
1571
- Le as E,
1572
- yt as F,
1573
- mt as G,
1574
- ht as H,
1575
- gt as I,
1576
- qe as _,
1577
- Ht as a,
1578
- pt as b,
1579
- Bt as c,
1575
+ ze as E,
1576
+ wt as F,
1577
+ ht as G,
1578
+ vt as H,
1579
+ yt as I,
1580
+ Ze as _,
1581
+ Kt as a,
1582
+ mt as b,
1583
+ Tt as c,
1580
1584
  G as d,
1581
- Jt as e,
1585
+ Wt as e,
1582
1586
  Nt as f,
1583
- Vt as g,
1584
- Tt as h,
1585
- Wt as i,
1586
- kt as j,
1587
+ Ft as g,
1588
+ Lt as h,
1589
+ Ht as i,
1590
+ Ut as j,
1587
1591
  ie as k,
1588
- $t as l,
1592
+ Bt as l,
1589
1593
  z as m,
1590
- Lt as n,
1591
- Ft as o,
1592
- zt as p,
1593
- Xe as q,
1594
- Kt as r,
1595
- Mt as s,
1596
- xe as t,
1594
+ zt as n,
1595
+ Mt as o,
1596
+ Jt as p,
1597
+ je as q,
1598
+ qt as r,
1599
+ Rt as s,
1600
+ Ie as t,
1597
1601
  ue as u,
1598
- He as v,
1599
- Ut as w,
1600
- Ee as x,
1601
- ze as y,
1602
- Rt as z
1602
+ Ke as v,
1603
+ kt as w,
1604
+ xe as x,
1605
+ Je as y,
1606
+ $t as z
1603
1607
  };