epic-designer-gold 0.0.22 → 0.0.24

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 (47) hide show
  1. package/dist/{attributeView-B8JS7SiW.cjs → attributeView-BSDAcGr-.cjs} +1 -1
  2. package/dist/{attributeView-oIH3-2FN.js → attributeView-Bz43SH5k.js} +8 -8
  3. package/dist/index-79-_PiUp.js +213 -0
  4. package/dist/index-B5dOTX9c.cjs +1 -0
  5. package/dist/{index-nhr7ps1e.js → index-BA8b7URG.js} +1 -1
  6. package/dist/index-BXjAqIhc.js +665 -0
  7. package/dist/{index-Bwmb5sha.cjs → index-BlhSSPRn.cjs} +1 -1
  8. package/dist/{index-rby8nugJ.cjs → index-BqRnThy4.cjs} +1 -1
  9. package/dist/{index-CrGWYheb.js → index-BqVHIRpW.js} +1 -1
  10. package/dist/{index-C5XNe5wE.js → index-BqkkpMMv.js} +1 -1
  11. package/dist/index-C5buJETv.js +4 -0
  12. package/dist/index-C_98Qusp.cjs +10 -0
  13. package/dist/index-Cc2pSWZA.cjs +1 -0
  14. package/dist/{index-Bts_xVeS.cjs → index-Cjz6Uuh1.cjs} +1 -1
  15. package/dist/{index-DiMAGPRY.js → index-D2XUpDv0.js} +1 -1
  16. package/dist/index-D4aHRq8_.cjs +1 -0
  17. package/dist/{index-CwXlSYIH.cjs → index-D8TH-5-y.cjs} +1 -1
  18. package/dist/index-DFc_FT_D.js +675 -0
  19. package/dist/{index-DitKpeDV.cjs → index-Dd63RYpy.cjs} +1 -1
  20. package/dist/{index-C5yhSYKA.js → index-Df-u4kqP.js} +235 -248
  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-BDUqyY8T.cjs → styleView-7qHQlM8R.cjs} +1 -1
  25. package/dist/{styleView-CtfATcTc.js → styleView-Dqnk80Tm.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/core/components/designer/src/modules/attributeView/eventView.vue.d.ts +0 -2
  30. package/dist/core/components/designer/src/modules/outline/outline.vue.d.ts +0 -2
  31. package/dist/core/components/designer/src/modules/sourceCode/index.vue.d.ts +0 -2
  32. package/dist/eventView-BL4A2PVd.cjs +0 -1
  33. package/dist/eventView-Ed_9JLnx.js +0 -64
  34. package/dist/index-05ByfwQb.js +0 -432
  35. package/dist/index-BUkdmwKe.cjs +0 -10
  36. package/dist/index-Bt6BXCcr.cjs +0 -1
  37. package/dist/index-CjrdkSiN.js +0 -682
  38. package/dist/index-CqdmlJ1d.cjs +0 -1
  39. package/dist/index-DWW8LGvj.js +0 -41
  40. package/dist/index-DZIjd60A.js +0 -4
  41. package/dist/index-D_CH15dJ.cjs +0 -1
  42. package/dist/index-DskzasEn.js +0 -216
  43. package/dist/index-GJSr_nl7.cjs +0 -1
  44. package/dist/outline-CJSEUbgc.cjs +0 -1
  45. package/dist/outline-yy4pIEi3.js +0 -54
  46. package/dist/tree.vue_vue_type_script_setup_true_lang-RWTXU6lO.cjs +0 -1
  47. package/dist/tree.vue_vue_type_script_setup_true_lang-uR4G8wa_.js +0 -242
@@ -1,6 +1,6 @@
1
- import { ref as S, reactive as Z, defineComponent as G, openBlock as M, createBlock as L, unref as _, mergeProps as me, withCtx as P, renderSlot as R, getCurrentInstance as ne, inject as H, watch as V, useAttrs as xe, provide as $, shallowRef as Pe, computed as U, watchEffect as se, onUnmounted as Se, resolveComponent as Ve, resolveDynamicComponent as Oe, createVNode as T, createCommentVNode as Ae, useSlots as Fe, createElementBlock as he, Suspense as De, createElementVNode as J, Fragment as Me, 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 F, 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,9 +31,9 @@ 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
- return (o.field || o.input) && !((r = (t = F.getComponentConfingByType(o.type)) == null ? void 0 : t.editConstraints) != null && r.fixedField) && (o.field = o.id), o;
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
  });
38
38
  return a;
39
39
  }
@@ -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);
@@ -78,7 +78,7 @@ function Je(e, a) {
78
78
  }
79
79
  return e.forEach(t), o || console.error(`没有查询到id为${a}的节点`), n;
80
80
  }
81
- function Ot(e, a, n) {
81
+ function Mt(e, a, n) {
82
82
  const o = a.split(".");
83
83
  let t = e;
84
84
  for (let r = 0; r < o.length; r++) {
@@ -88,7 +88,7 @@ function Ot(e, a, n) {
88
88
  }
89
89
  return t === void 0 ? n : t;
90
90
  }
91
- function Ft(e, a, n) {
91
+ function Ot(e, a, n) {
92
92
  const o = a.replace(/\[(\d+)\]/g, ".$1").split(".").filter(Boolean);
93
93
  let t = e;
94
94
  for (let r = 0; r < o.length - 1; r++) {
@@ -97,11 +97,11 @@ function Ft(e, a, n) {
97
97
  }
98
98
  return t[o[o.length - 1]] = n, e;
99
99
  }
100
- function Mt(e, a = "default") {
100
+ 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,9 +217,9 @@ 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
224
  var c, w, h;
225
225
  let o = n.type ?? "";
@@ -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 = (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 = 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
  }
@@ -278,8 +278,8 @@ function Ie() {
278
278
  delete e.value[m];
279
279
  }
280
280
  function c(m, g = !1) {
281
- const v = Object.entries(F.publicMethods).reduce(
282
- (E, [O, B]) => (E[O] = B.handler, E),
281
+ const v = Object.entries(O.publicMethods).reduce(
282
+ (I, [M, B]) => (I[M] = B.handler, I),
283
283
  {}
284
284
  );
285
285
  try {
@@ -289,10 +289,10 @@ function Ie() {
289
289
  find: r,
290
290
  defineExpose: w,
291
291
  publicMethods: v,
292
- pluginManager: F
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}`);
@@ -324,17 +324,17 @@ function Ie() {
324
324
  function s(m, g) {
325
325
  var v;
326
326
  try {
327
- (v = F.publicMethods[m.methodName]) == null || v.handler(...g);
328
- } catch (E) {
329
- console.error(`[Epic:公共函数(${m.methodName})]执行异常:`, E);
327
+ (v = O.publicMethods[m.methodName]) == null || v.handler(...g);
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);
336
- } catch (O) {
337
- console.error(`[Epic:自定义函数(${m.methodName})]执行异常:`, O);
335
+ (I = (v = a.value)[m.methodName]) == null || I.call(v, ...g);
336
+ } catch (M) {
337
+ console.error(`[Epic:自定义函数(${m.methodName})]执行异常:`, M);
338
338
  }
339
339
  }
340
340
  function d(m, g) {
@@ -345,15 +345,15 @@ 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
355
  function u(m) {
356
- const g = te(m, () => !0);
356
+ const g = ee(m, () => !0);
357
357
  o.value = g.map((v) => v.id);
358
358
  }
359
359
  function A(m, g = "default") {
@@ -363,7 +363,7 @@ function Ie() {
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;
@@ -377,7 +377,7 @@ function Ie() {
377
377
  defaultComponentIds: o,
378
378
  forms: t,
379
379
  addFormData: A,
380
- setFormData: C,
380
+ setFormData: x,
381
381
  getComponentInstance: r,
382
382
  // 简化查询函数, 推荐使用
383
383
  find: r,
@@ -390,7 +390,7 @@ function Ie() {
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
395
  function t(c, w = "插入组件") {
396
396
  const h = Date.now();
@@ -432,10 +432,10 @@ const Ke = /* @__PURE__ */ G({
432
432
  },
433
433
  emits: ["updateFormItemRef"],
434
434
  setup(e, { emit: a }) {
435
- const n = F.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, c) => o.hasFormItem ? (M(), L(_(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
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 D = (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: D.url,
481
- method: D.method,
482
- data: JSON.parse(D.body),
483
- params: JSON.parse(D.params),
484
- headers: JSON.parse(D.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 (D && (D != null && D.dataPath)) {
487
- const Ce = D.dataPath.split(".").reduce((re, _e) => re[_e], k.data);
488
- p.componentProps.options = d(Ce).map((re) => ({
489
- label: re[D.dataKey],
490
- value: re[D.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[D.dataKey],
495
- value: j[D.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 u = a, A = S(), C = S(), m = (p) => {
518
- C.value = p;
519
- }, g = xe();
518
+ const u = a, A = D(), x = D(), m = (p) => {
519
+ x.value = p;
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;
524
- }), O = U(() => {
525
- var D;
526
- const p = E.value && ((D = s.rules) == null ? void 0 : D.map((k) => ({
527
- ...k,
528
- validator: k.validator && i.funcs.value[k.validator]
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;
525
+ }), M = U(() => {
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 x = {
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 x.children && delete x.children, x;
540
+ return k.children && delete k.children, k;
540
541
  }), B = U(() => {
541
- var x, D;
542
- const p = ((x = W.value) == null ? void 0 : x.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: (c == null ? void 0 : c.value) || ((D = s.componentProps) == null ? void 0 : D.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
- }), W = U(() => F.getComponentConfingByType(s.type) ?? null);
553
- se(() => {
553
+ }), W = U(() => O.getComponentConfingByType(s.type) ?? null);
554
+ ae(() => {
554
555
  t.value = o.modelValue ?? r[s.field ?? ""];
555
556
  }), V(
556
557
  () => t.value,
@@ -560,31 +561,31 @@ const Ke = /* @__PURE__ */ G({
560
561
  ), V(
561
562
  () => A.value,
562
563
  () => {
563
- oe();
564
+ ne();
564
565
  },
565
566
  { immediate: !0 }
566
567
  );
567
- function oe() {
568
- var I;
568
+ function ne() {
569
+ var E;
569
570
  const p = A.value || n;
570
- s.id && p && (s.input && (p.setValue = b, p.getValue = () => r[s.field] || o.modelValue), p.setAttr = (x, D) => (s.componentProps || (s.componentProps = {}), s.componentProps[x] = D), p.getAttr = (x) => s.componentProps[x], i.addComponentInstance(s.id, p), (I = W.value) != null && I.defaultSchema.input && s.noFormItem !== !0 && C.value && i.addComponentInstance(s.id + "formItem", C.value));
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 ue() {
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, x, D;
578
- if (s = await y(s), typeof ((I = s.componentProps) == null ? void 0 : I.defaultValue) < "u") {
579
- const k = i.isDesignMode.value ? (x = s.componentProps) == null ? void 0 : x.defaultValue : r[s.field] ?? ((D = s.componentProps) == null ? void 0 : D.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
  });
@@ -592,14 +593,14 @@ const Ke = /* @__PURE__ */ G({
592
593
  });
593
594
  return;
594
595
  }
595
- const p = F.getComponent(s.type);
596
+ const p = O.getComponent(s.type);
596
597
  if (!p) {
597
598
  console.error(`组件${s.type}未注册`);
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
  }
@@ -609,11 +610,11 @@ const Ke = /* @__PURE__ */ G({
609
610
  function X(p) {
610
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(ue), (p, I) => {
633
- var D;
634
- const x = Ve("ENode");
635
- return v.value && E.value ? (M(), 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: _(s).noFormItem !== !0 && ((D = W.value) == null ? void 0 : D.defaultSchema.input),
638
- formItemProps: O.value,
638
+ hasFormItem: _(s).noFormItem !== !0 && ((S = W.value) == null ? void 0 : S.defaultSchema.input),
639
+ formItemProps: M.value,
639
640
  onUpdateFormItemRef: m
640
641
  }, {
641
642
  default: P(() => [
642
- (M(), L(Oe(v.value), me({
643
+ (F(), L(Me(v.value), fe({
643
644
  ref_key: "componentInstance",
644
645
  ref: A,
645
- onVnodeMounted: oe,
646
+ onVnodeMounted: ne,
646
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(x, 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"])) : Ae("", !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)
@@ -776,11 +777,11 @@ const Ge = {
776
777
  {
777
778
  immediate: !0
778
779
  }
779
- ), $("slots", Fe()), $("pageManager", l), $("forms", i), $("pageSchema", A), $(
780
+ ), $("slots", Oe()), $("pageManager", l), $("forms", i), $("pageSchema", A), $(
780
781
  "disabled",
781
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);
@@ -796,16 +797,16 @@ const Ge = {
796
797
  setForms: y,
797
798
  validateAll: d,
798
799
  getFormInstance: f
799
- }), (v, E) => _(F).initialized.value ? (M(), L(De, {
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
- (M(!0), he(Me, null, Re(A.schemas, (O, B) => (M(), L(_(qe), {
806
+ (F(!0), pe(Fe, null, Re(A.schemas, (M, B) => (F(), L(_(qe), {
806
807
  key: B,
807
808
  sourceDateUrl: u.sourceDateUrl,
808
- componentSchema: O
809
+ componentSchema: M
809
810
  }, null, 8, ["sourceDateUrl", "componentSchema"]))), 128))
810
811
  ])
811
812
  ]),
@@ -815,10 +816,10 @@ const Ge = {
815
816
  ])
816
817
  ]),
817
818
  _: 1
818
- })) : (M(), 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,7 +827,7 @@ 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
833
  return typeof e == "function" ? e() : _(e);
@@ -836,16 +837,16 @@ 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;
@@ -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,7 +869,7 @@ 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 = () => {
@@ -887,16 +888,16 @@ function it(...e) {
887
888
  ), w = () => {
888
889
  c(), l();
889
890
  };
890
- return ye(w), w;
891
+ return he(w), w;
891
892
  }
892
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
@@ -905,15 +906,15 @@ function ke(...e) {
905
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
915
  function ut() {
915
- const e = S(!1), a = ne();
916
- return a && ve(() => {
916
+ const e = D(!1), a = te();
917
+ return a && me(() => {
917
918
  e.value = !0;
918
919
  }, a), e;
919
920
  }
@@ -925,7 +926,7 @@ 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);
@@ -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: c } = 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;
@@ -1000,31 +1001,31 @@ function Lt(e, a, n, o = {}) {
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
+ } = 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));
1004
1005
  let u = w;
1005
1006
  a || (a = "modelValue"), u = u || `update:${a.toString()}`;
1006
- const A = (g) => i ? typeof i == "function" ? i(g) : ft(g) : g, C = () => tt(e[a]) ? A(e[a]) : s, m = (g) => {
1007
+ const A = (g) => i ? typeof i == "function" ? i(g) : ft(g) : g, x = () => tt(e[a]) ? A(e[a]) : s, m = (g) => {
1007
1008
  y ? y(g) && f(u, g) : f(u, g);
1008
1009
  };
1009
1010
  if (c) {
1010
- const g = C(), v = S(g);
1011
- let E = !1;
1011
+ const g = x(), v = D(g);
1012
+ let I = !1;
1012
1013
  return V(
1013
1014
  () => e[a],
1014
- (O) => {
1015
- E || (E = !0, v.value = A(O), Y(() => E = !1));
1015
+ (M) => {
1016
+ I || (I = !0, v.value = A(M), Y(() => I = !1));
1016
1017
  }
1017
1018
  ), V(
1018
1019
  v,
1019
- (O) => {
1020
- !E && (O !== e[a] || h) && m(O);
1020
+ (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 } = ce(), 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,25 +1082,25 @@ function yt() {
1081
1082
  isDark: n
1082
1083
  };
1083
1084
  }
1084
- const ce = 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 } = ce(), 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
1106
  function r(c) {
@@ -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 } = ce();
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 = F.getComponent("monacoEditor"), o = F.getComponent("modal"), t = S(null), r = S(!1), l = S(!1), i = S({}), c = 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,7 +1158,7 @@ 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 {
@@ -1176,9 +1177,9 @@ const wt = { class: "min-w-750px rounded" }, bt = { class: "h-full rounded" }, S
1176
1177
  }
1177
1178
  return a({
1178
1179
  handleOpen: d
1179
- }), (u, A) => (M(), L(_(o), {
1180
+ }), (u, A) => (F(), L(_(o), {
1180
1181
  modelValue: r.value,
1181
- "onUpdate:modelValue": A[1] || (A[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,7 +1189,7 @@ 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
- (M(), L(_(Xe), {
1192
+ (F(), L(_(Xe), {
1192
1193
  key: h.value,
1193
1194
  ref_key: "kb",
1194
1195
  ref: w,
@@ -1196,7 +1197,7 @@ const wt = { class: "min-w-750px rounded" }, bt = { class: "h-full rounded" }, S
1196
1197
  }, null, 8, ["page-schema"])),
1197
1198
  T(_(o), {
1198
1199
  modelValue: l.value,
1199
- "onUpdate:modelValue": A[0] || (A[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",
@@ -1222,10 +1223,10 @@ const wt = { class: "min-w-750px rounded" }, bt = { class: "h-full rounded" }, S
1222
1223
  _: 1
1223
1224
  }, 8, ["modelValue"]));
1224
1225
  }
1225
- }), At = {
1226
+ }), Dt = {
1226
1227
  key: 0,
1227
1228
  class: "epic-loading-box"
1228
- }, Dt = { class: "epic-designer-main" }, Et = { class: "epic-header-container" }, It = { class: "epic-loading-box" }, Kt = /* @__PURE__ */ G({
1229
+ }, At = { class: "epic-designer-main" }, Et = { class: "epic-header-container" }, It = { class: "epic-loading-box" }, Kt = /* @__PURE__ */ G({
1229
1230
  __name: "designer",
1230
1231
  props: {
1231
1232
  disabledZoom: { type: Boolean, default: !1 },
@@ -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-CjrdkSiN.js")), l = q(() => import("./index-ooVzYa5L.js")), i = q(() => import("./index-DgcFxYFp.js")), c = Ie(), w = He(), h = e;
1252
+ const o = q(() => import("./index-C-XUgjda.js")), t = q(() => import("./index-ASoFJnMl.js")), r = q(() => import("./index-DFc_FT_D.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,14 +1296,14 @@ 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
- h.source && F.setSourceData(h.source), h.formMode && (s.schemas = F.formSchemas);
1304
+ h.source && O.setSourceData(h.source), h.formMode && (s.schemas = O.formSchemas);
1304
1305
  }), c.setDesignMode(), c.setDefaultComponentIds(s.schemas);
1305
- const y = n, d = S(null), f = Z({
1306
+ const y = n, d = D(null), f = Z({
1306
1307
  checkedNode: null,
1307
1308
  hoverNode: null,
1308
1309
  disableHover: !1,
@@ -1310,10 +1311,10 @@ defineExpose({
1310
1311
  }), u = Z({
1311
1312
  schemas: [],
1312
1313
  script: s.script
1313
- }), { disabledZoom: A } = ce();
1314
- se(() => {
1314
+ }), { disabledZoom: A } = le();
1315
+ ae(() => {
1315
1316
  A.value = h.disabledZoom;
1316
- }), se(() => {
1317
+ }), ae(() => {
1317
1318
  const b = u.script;
1318
1319
  b && b !== "" && c.setMethods(b);
1319
1320
  }), $("pageSchema", u), $("revoke", w), $("pageManager", c), $(
@@ -1322,18 +1323,18 @@ defineExpose({
1322
1323
  ), $("designer", {
1323
1324
  setCheckedNode: m,
1324
1325
  setHoverNode: g,
1325
- setDisableHover: E,
1326
- handleToggleDeviceMode: ue,
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
+ function x() {
1337
1338
  u.schemas = N(s.schemas), m(u.schemas[0]), w.push(u.schemas, "初始化撤销功能");
1338
1339
  }
1339
1340
  async function m(b = u.schemas[0]) {
@@ -1352,45 +1353,45 @@ defineExpose({
1352
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
- function O(b) {
1359
+ function M(b) {
1359
1360
  z(u, N(b));
1360
1361
  }
1361
1362
  function B() {
1362
- return we(u);
1363
+ return ge(u);
1363
1364
  }
1364
1365
  function W() {
1365
- Ee(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
+ 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(u));
1368
+ function ne() {
1369
+ y("save", ge(u));
1369
1370
  }
1370
- function ue(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
- setData: O,
1379
+ setData: M,
1379
1380
  getData: B,
1380
1381
  reset: W,
1381
- preview: ae
1382
- }), (b, X) => _(F).initialized.value ? (M(), L(De, {
1382
+ preview: oe
1383
+ }), (b, X) => _(O).initialized.value ? (F(), L(De, {
1383
1384
  key: 1,
1384
1385
  onResolve: v
1385
1386
  }, {
1386
1387
  default: P(() => [
1387
- J("div", Dt, [
1388
+ J("div", At, [
1388
1389
  J("div", Et, [
1389
1390
  R(b.$slots, "header", {}, () => [
1390
- h.hiddenHeader ? Ae("", !0) : (M(), L(_(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")
@@ -1433,10 +1434,10 @@ defineExpose({
1433
1434
  ])
1434
1435
  ]),
1435
1436
  _: 3
1436
- })) : (M(), he("div", At));
1437
+ })) : (F(), pe("div", Dt));
1437
1438
  }
1438
- }), kt = {
1439
- component: async () => await import("./index-DiMAGPRY.js"),
1439
+ }), Ct = {
1440
+ component: async () => await import("./index-D2XUpDv0.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: "页面",
@@ -1485,44 +1486,30 @@ defineExpose({
1485
1486
  ]
1486
1487
  }
1487
1488
  };
1488
- function _t(e) {
1489
- e.component("EInputSize", async () => await import("./index-C4sdhgF2.js")), e.component("EColEditor", async () => await import("./index-C5XNe5wE.js")), e.component("EActionEditor", async () => await import("./index-05ByfwQb.js")), e.component("ERuleEditor", async () => await import("./index-CrGWYheb.js")), e.component("EOptionsEditor", async () => await import("./index-DskzasEn.js")), e.component("ENode", async () => await import("./index-DZIjd60A.js")), e.component("EDataSource", async () => await import("./index-CCTMCqiz.js")), e.registerActivitybar({
1489
+ function xt(e) {
1490
+ e.component("EInputSize", async () => await import("./index-C4sdhgF2.js")), e.component("EColEditor", async () => await import("./index-BqkkpMMv.js")), e.component("EActionEditor", async () => await import("./index-BXjAqIhc.js")), e.component("ERuleEditor", async () => await import("./index-BqVHIRpW.js")), e.component("EOptionsEditor", async () => await import("./index-79-_PiUp.js")), e.component("ENode", async () => await import("./index-C5buJETv.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-nhr7ps1e.js")
1494
- }), e.registerActivitybar({
1495
- id: "sound_code_view",
1496
- title: "源码",
1497
- icon: "icon--epic--sdk-outline-rounded",
1498
- component: async () => await import("./index-DWW8LGvj.js")
1499
- }), e.registerActivitybar({
1500
- id: "outline_view",
1501
- title: "大纲",
1502
- icon: "icon--epic--account-tree-outline-rounded",
1503
- component: async () => await import("./outline-yy4pIEi3.js")
1494
+ component: async () => await import("./index-BA8b7URG.js")
1504
1495
  }), e.registerRightSidebar({
1505
1496
  id: "attribute_view",
1506
1497
  title: "属性",
1507
- component: async () => await import("./attributeView-oIH3-2FN.js")
1498
+ component: async () => await import("./attributeView-Bz43SH5k.js")
1508
1499
  }), e.registerRightSidebar({
1509
1500
  id: "style_view",
1510
1501
  title: "样式",
1511
- component: async () => await import("./styleView-CtfATcTc.js")
1512
- }), e.registerRightSidebar({
1513
- id: "event_view",
1514
- title: "事件",
1515
- component: async () => await import("./eventView-Ed_9JLnx.js")
1516
- }), [kt, Ct].forEach((n) => {
1502
+ component: async () => await import("./styleView-Dqnk80Tm.js")
1503
+ }), [Ct, kt].forEach((n) => {
1517
1504
  e.registerComponent(n);
1518
1505
  });
1519
1506
  }
1520
- _t(F);
1507
+ xt(O);
1521
1508
  export {
1522
1509
  ze as A,
1523
- te as B,
1510
+ ee as B,
1524
1511
  We as C,
1525
- ee as D,
1512
+ j as D,
1526
1513
  Le as E,
1527
1514
  gt as F,
1528
1515
  mt as G,
@@ -1539,20 +1526,20 @@ export {
1539
1526
  Tt as h,
1540
1527
  Wt as i,
1541
1528
  Bt as j,
1542
- le as k,
1529
+ re as k,
1543
1530
  Rt as l,
1544
1531
  N as m,
1545
1532
  Lt as n,
1546
- Ee as o,
1547
- Ot as p,
1548
- Jt as q,
1549
- Xe as r,
1550
- Ft as s,
1551
- Kt as t,
1552
- ce as u,
1553
- Ie as v,
1533
+ Mt as o,
1534
+ Jt as p,
1535
+ Xe as q,
1536
+ Kt as r,
1537
+ Ot as s,
1538
+ Ee as t,
1539
+ le as u,
1540
+ He as v,
1554
1541
  Ut as w,
1555
- He as x,
1542
+ Ae as x,
1556
1543
  Je as y,
1557
- Mt as z
1544
+ Ft as z
1558
1545
  };