epic-designer-gold 0.0.33 → 0.0.35

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 (33) hide show
  1. package/dist/{attributeView-DVqMH1xY.js → attributeView-BuU8Ajxc.js} +1 -1
  2. package/dist/{attributeView-CkX6fubE.cjs → attributeView-n7qIXP7S.cjs} +1 -1
  3. package/dist/{index-DWA3Pa6_.cjs → index--mXdf_N_.cjs} +1 -1
  4. package/dist/{index-BGKInHWa.js → index-AT5ltRGN.js} +1 -1
  5. package/dist/index-B0dJIMij.cjs +10 -0
  6. package/dist/{index-BvRS3i9N.cjs → index-B1hinJbh.cjs} +1 -1
  7. package/dist/{index-Bl9bHpGb.cjs → index-B2BO1iqb.cjs} +1 -1
  8. package/dist/{index-BffcOK9E.cjs → index-BqrNcAYd.cjs} +1 -1
  9. package/dist/{index-CKl_FM23.cjs → index-C4wq_cwc.cjs} +1 -1
  10. package/dist/{index-CYyckZuN.js → index-CF3fYMNt.js} +1 -1
  11. package/dist/{index-QcfCoknU.js → index-CbVJE-r7.js} +479 -461
  12. package/dist/{index-DQBowkLQ.js → index-CfqYk0Cm.js} +1 -1
  13. package/dist/{index-i26diW3P.cjs → index-CueBqJva.cjs} +1 -1
  14. package/dist/index-D7xfe3p6.js +4 -0
  15. package/dist/{index-BqPBE6Y2.cjs → index-DMWZmwY3.cjs} +1 -1
  16. package/dist/{index-CY8bzSIr.js → index-DluF22Iv.js} +1 -1
  17. package/dist/{index-C7Rkr11-.cjs → index-Dxs27XfA.cjs} +1 -1
  18. package/dist/{index-B07zwTz2.js → index-I369bEhX.js} +1 -1
  19. package/dist/{index-C8_p36X3.js → index-QWJHIAu8.js} +1 -1
  20. package/dist/{index-bup0iSFb.js → index-XbBcyR0q.js} +1 -1
  21. package/dist/index.cjs +1 -1
  22. package/dist/index.js +1 -1
  23. package/dist/sign-BCmA2v-3.cjs +1 -0
  24. package/dist/{sign-d-TCl0NS.js → sign-CSv8hClp.js} +31 -32
  25. package/dist/style.css +1 -1
  26. package/dist/{styleView-DNbMFObZ.js → styleView-3R3fJCVy.js} +1 -1
  27. package/dist/{styleView-D_DJWtjt.cjs → styleView-CMN7E_-A.cjs} +1 -1
  28. package/dist/ui/elementPlus/index.cjs +1 -1
  29. package/dist/ui/elementPlus/index.js +1 -1
  30. package/package.json +1 -1
  31. package/dist/index-rlyOYH5_.cjs +0 -10
  32. package/dist/index-zlm7L3aS.js +0 -4
  33. package/dist/sign-CpJ83zt4.cjs +0 -1
@@ -1,6 +1,6 @@
1
- import { ref as D, reactive as Z, defineComponent as G, openBlock as M, createBlock as L, unref as _, mergeProps as fe, withCtx as P, renderSlot as R, getCurrentInstance as ne, inject as H, watch as V, useAttrs as _e, provide as $, shallowRef as Pe, computed as U, watchEffect as re, onUnmounted as be, resolveComponent as Ve, resolveDynamicComponent as Oe, createVNode as T, createCommentVNode as Se, useSlots as Fe, createElementBlock as pe, 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 me, normalizeClass as Te, toRaw as ge } from "vue";
2
- import { p as F, E as ee, a as we, l as q } from "./axios-ITY6Uw7A.js";
3
- function se(e = 10) {
1
+ import { ref as A, reactive as Y, defineComponent as X, openBlock as N, createBlock as J, unref as V, mergeProps as pe, withCtx as M, renderSlot as B, getCurrentInstance as se, inject as Z, watch as R, useAttrs as _e, provide as U, shallowRef as Pe, computed as L, watchEffect as le, onUnmounted as be, resolveComponent as Oe, resolveDynamicComponent as Ve, createVNode as z, createCommentVNode as Se, useSlots as Fe, createElementBlock as me, Suspense as De, createElementVNode as H, Fragment as Me, renderList as Re, nextTick as ee, effectScope as $e, isRef as Ne, getCurrentScope as Be, onScopeDispose as Ue, onMounted as he, normalizeClass as Te, toRaw as ge } from "vue";
2
+ import { p as $, E as ae, a as we, l as Q } from "./axios-ITY6Uw7A.js";
3
+ function ie(e = 10) {
4
4
  const a = "abcdefghijklmnopqrstuvwxyz0123456789";
5
5
  let o = "";
6
6
  for (let t = 0; t < e; t++) {
@@ -12,35 +12,35 @@ function se(e = 10) {
12
12
  function Le(e) {
13
13
  return e.charAt(0).toUpperCase() + e.slice(1);
14
14
  }
15
- function N(e, a = /* @__PURE__ */ new WeakMap()) {
15
+ function T(e, a = /* @__PURE__ */ new WeakMap()) {
16
16
  if (typeof e != "object" || e === null)
17
17
  return e;
18
18
  if (a.has(e))
19
19
  return a.get(e);
20
20
  if (Array.isArray(e)) {
21
- const t = e.map((n) => N(n, a));
21
+ const t = e.map((n) => T(n, a));
22
22
  return a.set(e, t), t;
23
23
  }
24
24
  const o = {};
25
25
  return a.set(e, o), Object.keys(e).forEach((t) => {
26
- o[t] = N(e[t], a);
26
+ o[t] = T(e[t], a);
27
27
  }), o;
28
28
  }
29
- function Vt(e) {
30
- const [a] = We([N(e)], (o) => {
29
+ function Ot(e) {
30
+ const [a] = We([T(e)], (o) => {
31
31
  var n, r;
32
32
  const t = {
33
33
  ...o,
34
- id: `${o.type}_${se(8)}`
34
+ id: `${o.type}_${ie(8)}`
35
35
  };
36
- return (t.field || t.input) && !((r = (n = F.getComponentConfingByType(t.type)) == null ? void 0 : n.editConstraints) != null && r.fixedField) && (t.field = t.id), t;
36
+ return (t.field || t.input) && !((r = (n = $.getComponentConfingByType(t.type)) == null ? void 0 : n.editConstraints) != null && r.fixedField) && (t.field = t.id), t;
37
37
  });
38
38
  return a;
39
39
  }
40
- function z(e, a, o = !0) {
40
+ function K(e, a, o = !0) {
41
41
  for (const [t, n] of Object.entries(a)) {
42
42
  let r = e == null ? void 0 : e[t];
43
- r && n && typeof r == "object" && typeof n == "object" ? (Array.isArray(r) && !Array.isArray(n) ? r = e[t] = {} : !Array.isArray(r) && Array.isArray(n) && (r = e[t] = []), z(r, n, o)) : e[t] = n;
43
+ r && n && typeof r == "object" && typeof n == "object" ? (Array.isArray(r) && !Array.isArray(n) ? r = e[t] = {} : !Array.isArray(r) && Array.isArray(n) && (r = e[t] = []), K(r, n, o)) : e[t] = n;
44
44
  }
45
45
  o && Object.keys(e).reverse().forEach((t) => {
46
46
  a.hasOwnProperty(t) || (Array.isArray(e) ? e.splice(Number(t), 1) : delete e[t]);
@@ -63,7 +63,7 @@ function Ae(e, a, o = [], t = /* @__PURE__ */ new WeakMap()) {
63
63
  };
64
64
  return JSON.stringify(n(e)) === JSON.stringify(n(a));
65
65
  }
66
- function Je(e, a) {
66
+ function ze(e, a) {
67
67
  const o = [];
68
68
  let t = !1;
69
69
  function n(r) {
@@ -78,7 +78,7 @@ function Je(e, a) {
78
78
  }
79
79
  return e.forEach(n), t || console.error(`没有查询到id为${a}的节点`), o;
80
80
  }
81
- function Ot(e, a, o) {
81
+ function Vt(e, a, o) {
82
82
  const t = a.split(".");
83
83
  let n = e;
84
84
  for (let r = 0; r < t.length; r++) {
@@ -98,10 +98,10 @@ function Ft(e, a, o) {
98
98
  return n[t[t.length - 1]] = o, e;
99
99
  }
100
100
  function Mt(e, a = "default") {
101
- return ze(e, a).map((t) => t.field);
101
+ return Je(e, a).map((t) => t.field);
102
102
  }
103
- function ze(e, a = "default") {
104
- const o = te(
103
+ function Je(e, a = "default") {
104
+ const o = re(
105
105
  e,
106
106
  (n) => {
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 re(
113
113
  (o == null ? void 0 : o.children) ?? [],
114
114
  (n) => !!n.input,
115
115
  !1,
116
116
  (n) => n.type !== "subform"
117
117
  );
118
118
  }
119
- function te(e, a, o = !1, t) {
119
+ function re(e, a, o = !1, t) {
120
120
  const n = [], r = [...e];
121
121
  for (; r.length; ) {
122
122
  const l = r.pop();
@@ -135,12 +135,12 @@ function We(e, a, o) {
135
135
  if (n != null && n.children && (!o || o(n)) && t.push(...n.children), n != null && n.slots && (!o || o(n)))
136
136
  for (let r in n.slots)
137
137
  t.push(...n.slots[r]);
138
- z(n, a(n));
138
+ K(n, a(n));
139
139
  }
140
140
  return e;
141
141
  }
142
142
  function Rt(e, a) {
143
- const o = te(
143
+ const o = re(
144
144
  e,
145
145
  (t) => t.id === a,
146
146
  !0
@@ -152,7 +152,7 @@ function Rt(e, a) {
152
152
  function $t(e, a) {
153
153
  const o = [{ type: "", children: e }];
154
154
  let t = 0, n = null;
155
- if (te(
155
+ if (re(
156
156
  o,
157
157
  (r) => {
158
158
  if (n = r.children ?? null, !n) {
@@ -205,7 +205,7 @@ function Nt(e) {
205
205
  size: e.config.size || "middle"
206
206
  },
207
207
  children: [],
208
- id: "form_" + se()
208
+ id: "form_" + ie()
209
209
  }
210
210
  ],
211
211
  componentProps: {
@@ -217,20 +217,20 @@ function Nt(e) {
217
217
  ],
218
218
  script: e.script || ""
219
219
  };
220
- return a.schemas[0].children[0].children = j(e.list), a;
220
+ return a.schemas[0].children[0].children = oe(e.list), a;
221
221
  }
222
- function j(e, a) {
222
+ function oe(e, a) {
223
223
  return e.map((o) => {
224
224
  var u, w, h;
225
225
  let t = o.type ?? "";
226
- const n = o.options ?? {}, r = (s, y) => {
227
- t === s && (t = y, n.defaultValue && (n.defaultValue = JSON.parse(n.defaultValue)));
226
+ const n = o.options ?? {}, r = (s, v) => {
227
+ t === s && (t = v, n.defaultValue && (n.defaultValue = JSON.parse(n.defaultValue)));
228
228
  };
229
229
  if (r("uploadImg", "upload-image"), r("uploadFile", "upload-file"), t === "date" && n.range && (n.type = "daterange", delete n.range), (t === "date" || t === "time") && (n.valueFormat = n.format), t === "textarea") {
230
- const { minRows: s, maxRows: y } = n;
231
- n.autoSize = { minRows: s, maxRows: y }, delete n.minRows, delete n.maxRows;
230
+ const { minRows: s, maxRows: v } = n;
231
+ n.autoSize = { minRows: s, maxRows: v }, delete n.minRows, delete n.maxRows;
232
232
  }
233
- t === "number" && !n.precision && delete n.precision, n.width && (n.style = { width: n.width }, delete n.width), t === "grid" && (t = "row"), a && a.type === "grid" && (t = "col", n.span = o.span, o.key = se());
233
+ t === "number" && !n.precision && delete n.precision, n.width && (n.style = { width: n.width }, delete n.width), t === "grid" && (t = "row"), a && a.type === "grid" && (t = "col", n.span = o.span, o.key = ie());
234
234
  const l = {
235
235
  label: o.label,
236
236
  type: t,
@@ -255,7 +255,7 @@ function j(e, a) {
255
255
  "color-picker",
256
256
  "upload-file",
257
257
  "upload-image"
258
- ].includes(t) && (l.input = !0, ((w = (u = o.rules) == null ? void 0 : u[0]) == null ? void 0 : w.required) === !1 && o.rules.shift(), ((h = o.rules) == null ? void 0 : h.length) > 0 && (l.rules = o.rules)), o.list && (l.children = j(o.list, o)), o.columns && (l.children = j(o.columns, o)), o.trs && (l.children = j(o.trs, o)), o.tds && (l.children = j(o.tds, o)), l;
258
+ ].includes(t) && (l.input = !0, ((w = (u = o.rules) == null ? void 0 : u[0]) == null ? void 0 : w.required) === !1 && o.rules.shift(), ((h = o.rules) == null ? void 0 : h.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
261
  function Bt(e, a) {
@@ -267,108 +267,108 @@ function Bt(e, a) {
267
267
  };
268
268
  }
269
269
  function Ee() {
270
- const e = D({}), a = D({}), o = D(!1), t = D([]), n = Z({});
270
+ const e = A({}), a = A({}), o = A(!1), t = A([]), n = Y({});
271
271
  function r(m) {
272
272
  return e.value[m];
273
273
  }
274
- function l(m, g) {
275
- e.value[m] = g;
274
+ function l(m, y) {
275
+ e.value[m] = y;
276
276
  }
277
277
  function i(m) {
278
278
  delete e.value[m];
279
279
  }
280
- function u(m, g = !1) {
281
- const v = Object.entries(F.publicMethods).reduce(
282
- (I, [O, B]) => (I[O] = B.handler, I),
280
+ function u(m, y = !1) {
281
+ const b = Object.entries($.publicMethods).reduce(
282
+ (x, [D, _]) => (x[D] = _.handler, x),
283
283
  {}
284
284
  );
285
285
  try {
286
286
  new Function(`const epic = this;${m}`).bind({
287
- ...v,
287
+ ...b,
288
288
  getComponent: r,
289
289
  find: r,
290
290
  defineExpose: w,
291
- publicMethods: v,
292
- pluginManager: F
291
+ publicMethods: b,
292
+ pluginManager: $
293
293
  })();
294
- } catch (I) {
295
- g && console.error("[epic:自定义函数]异常:", I);
294
+ } catch (x) {
295
+ y && console.error("[epic:自定义函数]异常:", x);
296
296
  }
297
297
  }
298
298
  function w(m) {
299
299
  m != null && (a.value = m);
300
300
  }
301
- function h(m, ...g) {
301
+ function h(m, ...y) {
302
302
  if (!m || m.length === 0) {
303
303
  console.warn("未提供任何动作");
304
304
  return;
305
305
  }
306
- m.forEach((v) => {
307
- const I = v.args ? JSON.parse(v.args) : g;
308
- switch (v.type) {
306
+ m.forEach((b) => {
307
+ const x = b.args ? JSON.parse(b.args) : y;
308
+ switch (b.type) {
309
309
  case "public":
310
- s(v, I);
310
+ s(b, x);
311
311
  break;
312
312
  case "custom":
313
- y(v, I);
313
+ v(b, x);
314
314
  break;
315
315
  case "component":
316
- d(v, I);
316
+ d(b, x);
317
317
  break;
318
318
  default:
319
- console.warn(`未知的动作类型: ${v.type}`);
319
+ console.warn(`未知的动作类型: ${b.type}`);
320
320
  break;
321
321
  }
322
322
  });
323
323
  }
324
- function s(m, g) {
325
- var v;
324
+ function s(m, y) {
325
+ var b;
326
326
  try {
327
- (v = F.publicMethods[m.methodName]) == null || v.handler(...g);
328
- } catch (I) {
329
- console.error(`[Epic:公共函数(${m.methodName})]执行异常:`, I);
327
+ (b = $.publicMethods[m.methodName]) == null || b.handler(...y);
328
+ } catch (x) {
329
+ console.error(`[Epic:公共函数(${m.methodName})]执行异常:`, x);
330
330
  }
331
331
  }
332
- function y(m, g) {
333
- var v, I;
332
+ function v(m, y) {
333
+ var b, x;
334
334
  try {
335
- (I = (v = a.value)[m.methodName]) == null || I.call(v, ...g);
336
- } catch (O) {
337
- console.error(`[Epic:自定义函数(${m.methodName})]执行异常:`, O);
335
+ (x = (b = a.value)[m.methodName]) == null || x.call(b, ...y);
336
+ } catch (D) {
337
+ console.error(`[Epic:自定义函数(${m.methodName})]执行异常:`, D);
338
338
  }
339
339
  }
340
- function d(m, g) {
341
- const v = m.componentId != null && r(m.componentId);
342
- if (!v) {
340
+ function d(m, y) {
341
+ const b = m.componentId != null && r(m.componentId);
342
+ if (!b) {
343
343
  console.warn(`[Epic:组件${m.componentId}]未找到`);
344
344
  return;
345
345
  }
346
346
  try {
347
- v[m.methodName](...g);
348
- } catch (I) {
349
- console.error(`[Epic:组件${m.componentId}函数(${m.methodName})]执行异常:`, I);
347
+ b[m.methodName](...y);
348
+ } catch (x) {
349
+ console.error(`[Epic:组件${m.componentId}函数(${m.methodName})]执行异常:`, x);
350
350
  }
351
351
  }
352
- function f(m = !0) {
352
+ function p(m = !0) {
353
353
  o.value = m;
354
354
  }
355
355
  function c(m) {
356
- const g = te(m, () => !0);
357
- t.value = g.map((v) => v.id);
356
+ const y = re(m, () => !0);
357
+ t.value = y.map((b) => b.id);
358
358
  }
359
- function A(m, g = "default") {
360
- if (n[g]) {
361
- const v = n[g];
362
- z(m, v);
359
+ function E(m, y = "default") {
360
+ if (n[y]) {
361
+ const b = n[y];
362
+ K(m, b);
363
363
  }
364
- n[g] = m;
364
+ n[y] = m;
365
365
  }
366
- function x(m, g = "default") {
367
- if (n[g]) {
368
- z(n[g], m, !1);
366
+ function F(m, y = "default") {
367
+ if (n[y]) {
368
+ K(n[y], m, !1);
369
369
  return;
370
370
  }
371
- n[g] = m;
371
+ n[y] = m;
372
372
  }
373
373
  return {
374
374
  componentInstances: e,
@@ -376,8 +376,8 @@ function Ee() {
376
376
  isDesignMode: o,
377
377
  defaultComponentIds: t,
378
378
  forms: n,
379
- addFormData: A,
380
- setFormData: x,
379
+ addFormData: E,
380
+ setFormData: F,
381
381
  getComponentInstance: r,
382
382
  // 简化查询函数, 推荐使用
383
383
  find: r,
@@ -385,12 +385,12 @@ function Ee() {
385
385
  removeComponentInstance: i,
386
386
  setMethods: u,
387
387
  doActions: h,
388
- setDesignMode: f,
388
+ setDesignMode: p,
389
389
  setDefaultComponentIds: c
390
390
  };
391
391
  }
392
392
  function He() {
393
- const e = D([]), a = D([]), o = D(null);
393
+ const e = A([]), a = A([]), o = A(null);
394
394
  let t = 0;
395
395
  function n(u, w = "插入组件") {
396
396
  const h = Date.now();
@@ -424,7 +424,7 @@ function He() {
424
424
  reset: i
425
425
  };
426
426
  }
427
- const Ke = /* @__PURE__ */ G({
427
+ const Ke = /* @__PURE__ */ X({
428
428
  __name: "dynamicFormItem",
429
429
  props: {
430
430
  hasFormItem: { type: Boolean },
@@ -432,22 +432,22 @@ const Ke = /* @__PURE__ */ G({
432
432
  },
433
433
  emits: ["updateFormItemRef"],
434
434
  setup(e, { emit: a }) {
435
- const o = F.getComponent("form-item"), t = e, n = a, r = D(), l = () => {
435
+ const o = $.getComponent("form-item"), t = e, n = a, r = A(), l = () => {
436
436
  n("updateFormItemRef", r.value);
437
437
  };
438
- return (i, u) => t.hasFormItem ? (M(), L(_(o), fe({
438
+ return (i, u) => t.hasFormItem ? (N(), J(V(o), pe({
439
439
  key: 0,
440
440
  ref_key: "formItemRef",
441
441
  ref: r,
442
442
  onVnodeMounted: l
443
443
  }, t.formItemProps), {
444
- default: P(() => [
445
- R(i.$slots, "default")
444
+ default: M(() => [
445
+ B(i.$slots, "default")
446
446
  ]),
447
447
  _: 3
448
- }, 16, ["onVnodeMounted"])) : R(i.$slots, "default", { key: 1 });
448
+ }, 16, ["onVnodeMounted"])) : B(i.$slots, "default", { key: 1 });
449
449
  }
450
- }), qe = /* @__PURE__ */ G({
450
+ }), qe = /* @__PURE__ */ X({
451
451
  name: "ENode",
452
452
  __name: "node",
453
453
  props: {
@@ -462,19 +462,19 @@ const Ke = /* @__PURE__ */ G({
462
462
  },
463
463
  emits: ["update:modelValue", "change", "update:dynamicId"],
464
464
  setup(e, { emit: a }) {
465
- const { proxy: o } = ne(), t = e, n = D(null);
466
- let r = H("formData", Z({}));
467
- const l = H("slots", {}), i = H("pageManager", {}), u = H("disabled", { value: !1 }), w = H("ruleFieldPrefix", null), h = H("resetFormData", !1);
468
- let s = Z(N(t.componentSchema));
469
- f();
470
- async function y(p) {
471
- if (["cascader", "checkbox", "select", "radio"].includes(p.type) && p.componentProps.dynamicId && t.sourceDateUrl) {
465
+ const { proxy: o } = se(), t = e, n = A(null);
466
+ let r = Z("formData", Y({}));
467
+ const l = Z("slots", {}), i = Z("pageManager", {}), u = Z("disabled", { value: !1 }), w = Z("ruleFieldPrefix", null), h = Z("resetFormData", !1);
468
+ let s = Y(T(t.componentSchema));
469
+ p();
470
+ async function v(f) {
471
+ if (["cascader", "checkbox", "select", "radio"].includes(f.type) && f.componentProps.dynamicId && t.sourceDateUrl) {
472
472
  const S = (await we({
473
473
  // || "http://192.168.28.205:3000/dev-api/data-source
474
474
  url: t.sourceDateUrl,
475
475
  method: "get",
476
476
  params: {
477
- id: p.componentProps.dynamicId
477
+ id: f.componentProps.dynamicId
478
478
  }
479
479
  })).data.data;
480
480
  let C = await we({
@@ -485,108 +485,108 @@ const Ke = /* @__PURE__ */ G({
485
485
  headers: JSON.parse(S.headers)
486
486
  });
487
487
  if (S && (S != null && S.dataPath)) {
488
- const Ce = S.dataPath.split(".").reduce((ke, xe) => ke[xe], C.data);
489
- p.componentProps.options = d(Ce, S.dataKey, S.dataValue);
488
+ const ke = S.dataPath.split(".").reduce((xe, Ce) => xe[Ce], C.data);
489
+ f.componentProps.options = d(ke, S.dataKey, S.dataValue);
490
490
  } else
491
- p.componentProps.options = d(C.data, S.dataKey, S.dataValue);
492
- return p;
491
+ f.componentProps.options = d(C.data, S.dataKey, S.dataValue);
492
+ return f;
493
493
  }
494
- return p;
494
+ return f;
495
495
  }
496
- function d(p, E, k) {
497
- return p && Object.prototype.toString.call(p) === "[object Array]" ? p.map((S) => S.children && S.children.length ? {
498
- label: S[E],
499
- value: S[k] + "",
500
- children: d(S.children, E, k)
496
+ function d(f, k, P) {
497
+ return f && Object.prototype.toString.call(f) === "[object Array]" ? f.map((S) => S.children && S.children.length ? {
498
+ label: S[k],
499
+ value: S[P] + "",
500
+ children: d(S.children, k, P)
501
501
  } : {
502
- label: S[E],
503
- value: S[k] + ""
502
+ label: S[k],
503
+ value: S[P] + ""
504
504
  }) : [];
505
505
  }
506
- V(
506
+ R(
507
507
  () => t.componentSchema,
508
- (p) => {
509
- Ae(s, p, ["children"]) || (z(s, N(p)), f());
508
+ (f) => {
509
+ Ae(s, f, ["children"]) || (K(s, T(f)), p());
510
510
  },
511
511
  {
512
512
  deep: !0
513
513
  }
514
514
  );
515
- function f() {
515
+ function p() {
516
516
  i.isDesignMode.value && typeof s.field == "string" && (s.field += "-design-mode");
517
517
  }
518
518
  (t.resetFormData || h) && (r = {});
519
- const c = a, A = D(), x = D(), m = (p) => {
520
- x.value = p;
521
- }, g = _e();
522
- Object.keys(g).length && $("nodeAttrs", g);
523
- const v = Pe(null), I = U(() => {
524
- var p, E;
525
- 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;
526
- }), O = U(() => {
519
+ const c = a, E = A(), F = A(), m = (f) => {
520
+ F.value = f;
521
+ }, y = _e();
522
+ Object.keys(y).length && U("nodeAttrs", y);
523
+ const b = Pe(null), x = L(() => {
524
+ var f, k;
525
+ return (f = s.componentProps) != null && f.hidden ? !1 : typeof s.show == "boolean" ? s.show : ((k = s.show) == null ? void 0 : k.call(s, { values: r })) ?? !0;
526
+ }), D = L(() => {
527
527
  var S;
528
- const p = I.value && ((S = s.rules) == null ? void 0 : S.map((C) => ({
528
+ const f = x.value && ((S = s.rules) == null ? void 0 : S.map((C) => ({
529
529
  ...C,
530
530
  validator: C.validator && i.funcs.value[C.validator]
531
531
  // 自定义校验函数
532
532
  })));
533
- let E = s.field;
534
- t.ruleField ? E = t.ruleField : w && s.field && (E = N(w), E.push(s.field));
535
- const k = {
533
+ let k = s.field;
534
+ t.ruleField ? k = t.ruleField : w && s.field && (k = T(w), k.push(s.field));
535
+ const P = {
536
536
  ...s,
537
- rules: p,
538
- rule: p,
539
- field: E
537
+ rules: f,
538
+ rule: f,
539
+ field: k
540
540
  };
541
- return k.children && delete k.children, k;
542
- }), B = U(() => {
543
- var k, S;
544
- const p = ((k = W.value) == null ? void 0 : k.bindModel) ?? "modelValue", E = {};
541
+ return P.children && delete P.children, P;
542
+ }), _ = L(() => {
543
+ var P, S;
544
+ const f = ((P = O.value) == null ? void 0 : P.bindModel) ?? "modelValue", k = {};
545
545
  return s.on && Object.keys(s.on).forEach((C) => {
546
- E[`on${Le(C)}`] = (...ye) => i.doActions(s.on[C], ...ye);
546
+ k[`on${Le(C)}`] = (...ye) => i.doActions(s.on[C], ...ye);
547
547
  }), {
548
548
  ...t,
549
549
  ...s.componentProps,
550
550
  disabled: (u == null ? void 0 : u.value) || ((S = s.componentProps) == null ? void 0 : S.disabled),
551
- bindModel: p,
552
- ...E
551
+ bindModel: f,
552
+ ...k
553
553
  };
554
- }), W = U(() => F.getComponentConfingByType(s.type) ?? null);
555
- re(() => {
554
+ }), O = L(() => $.getComponentConfingByType(s.type) ?? null);
555
+ le(() => {
556
556
  n.value = t.modelValue ?? r[s.field ?? ""];
557
- }), V(
557
+ }), R(
558
558
  () => n.value,
559
559
  () => {
560
- n.value !== (t.modelValue ?? r[s.field ?? ""]) && b(n.value);
560
+ n.value !== (t.modelValue ?? r[s.field ?? ""]) && g(n.value);
561
561
  }
562
- ), V(
563
- () => A.value,
562
+ ), R(
563
+ () => E.value,
564
564
  () => {
565
- oe();
565
+ I();
566
566
  },
567
567
  { immediate: !0 }
568
568
  );
569
- function oe() {
570
- var E;
571
- const p = A.value || o;
572
- s.id && p && (s.input && (p.setValue = b, p.getValue = () => r[s.field] || t.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));
569
+ function I() {
570
+ var k;
571
+ const f = E.value || o;
572
+ s.id && f && (s.input && (f.setValue = g, f.getValue = () => r[s.field] || t.modelValue), f.setAttr = (P, S) => (s.componentProps || (s.componentProps = {}), s.componentProps[P] = S), f.getAttr = (P) => s.componentProps[P], i.addComponentInstance(s.id, f), (k = O.value) != null && k.defaultSchema.input && s.noFormItem !== !0 && F.value && i.addComponentInstance(s.id + "formItem", F.value));
573
573
  }
574
- function ce() {
575
- var p;
576
- s.id && (i.removeComponentInstance(s.id), (p = W.value) != null && p.defaultSchema.input && s.noFormItem !== !0 && i.removeComponentInstance(s.id + "formItem"));
574
+ function te() {
575
+ var f;
576
+ s.id && (i.removeComponentInstance(s.id), (f = O.value) != null && f.defaultSchema.input && s.noFormItem !== !0 && i.removeComponentInstance(s.id + "formItem"));
577
577
  }
578
- async function ae() {
579
- var E, k, S;
580
- if (s = await y(s), typeof ((E = s.componentProps) == null ? void 0 : E.defaultValue) < "u") {
581
- const C = i.isDesignMode.value ? (k = s.componentProps) == null ? void 0 : k.defaultValue : r[s.field] ?? ((S = s.componentProps) == null ? void 0 : S.defaultValue);
582
- b(N(C));
578
+ async function q() {
579
+ var k, P, S;
580
+ if (s = await v(s), typeof ((k = s.componentProps) == null ? void 0 : k.defaultValue) < "u") {
581
+ const C = i.isDesignMode.value ? (P = s.componentProps) == null ? void 0 : P.defaultValue : r[s.field] ?? ((S = s.componentProps) == null ? void 0 : S.defaultValue);
582
+ g(T(C));
583
583
  }
584
584
  if (s.type === "slot") {
585
585
  const C = s.slotName;
586
586
  if (!C) return;
587
- v.value = G({
587
+ b.value = X({
588
588
  setup() {
589
- return () => R(l, C, {
589
+ return () => B(l, C, {
590
590
  componentSchema: s,
591
591
  model: r
592
592
  });
@@ -594,73 +594,73 @@ const Ke = /* @__PURE__ */ G({
594
594
  });
595
595
  return;
596
596
  }
597
- const p = F.getComponent(s.type);
598
- if (!p) {
597
+ const f = $.getComponent(s.type);
598
+ if (!f) {
599
599
  console.error(`组件${s.type}未注册`);
600
600
  return;
601
601
  }
602
- if (typeof p == "function") {
603
- const C = await p();
604
- v.value = C.default ?? C;
602
+ if (typeof f == "function") {
603
+ const C = await f();
604
+ b.value = C.default ?? C;
605
605
  } else
606
- v.value = p;
606
+ b.value = f;
607
607
  }
608
- function b(p) {
609
- c("update:modelValue", p), c("change", p), s.field && (r[s.field] = p), ee.emit("updateformData" + t.id, r);
608
+ function g(f) {
609
+ c("update:modelValue", f), c("change", f), s.field && (r[s.field] = f), ae.emit("updateformData" + t.id, r);
610
610
  }
611
- function X(p) {
612
- c("update:dynamicId", p);
611
+ function W(f) {
612
+ c("update:dynamicId", f);
613
613
  }
614
- let ve = null;
615
- return V(
614
+ let ne = null;
615
+ return R(
616
616
  () => s,
617
- async (p) => {
618
- const E = JSON.stringify({
619
- ...p,
617
+ async (f) => {
618
+ const k = JSON.stringify({
619
+ ...f,
620
620
  children: void 0,
621
621
  componentProps: {
622
- ...p.componentProps,
622
+ ...f.componentProps,
623
623
  options: null
624
624
  }
625
625
  });
626
- if (E === ve)
626
+ if (k === ne)
627
627
  return !1;
628
- ve = E, ae();
628
+ ne = k, q();
629
629
  },
630
630
  {
631
631
  immediate: !0,
632
632
  deep: !0
633
633
  }
634
- ), be(ce), (p, E) => {
634
+ ), be(te), (f, k) => {
635
635
  var S;
636
- const k = Ve("ENode");
637
- return v.value && I.value ? (M(), L(Ke, {
636
+ const P = Oe("ENode");
637
+ return b.value && x.value ? (N(), J(Ke, {
638
638
  key: 0,
639
- hasFormItem: _(s).noFormItem !== !0 && ((S = W.value) == null ? void 0 : S.defaultSchema.input),
640
- formItemProps: O.value,
639
+ hasFormItem: V(s).noFormItem !== !0 && ((S = O.value) == null ? void 0 : S.defaultSchema.input),
640
+ formItemProps: D.value,
641
641
  onUpdateFormItemRef: m
642
642
  }, {
643
- default: P(() => [
644
- (M(), L(Oe(v.value), fe({
643
+ default: M(() => [
644
+ (N(), J(Ve(b.value), pe({
645
645
  ref_key: "componentInstance",
646
- ref: A,
647
- onVnodeMounted: oe,
648
- model: _(r)
649
- }, { ...B.value }, {
650
- [B.value.bindModel]: n.value,
651
- ["onUpdate:" + B.value.bindModel]: E[0] || (E[0] = (C) => n.value = C),
652
- [`onUpdate:${B.value.bindModel}` || ""]: b,
653
- "onUpdate:dynamicId": X
646
+ ref: E,
647
+ onVnodeMounted: I,
648
+ model: V(r)
649
+ }, { ..._.value }, {
650
+ [_.value.bindModel]: n.value,
651
+ ["onUpdate:" + _.value.bindModel]: k[0] || (k[0] = (C) => n.value = C),
652
+ [`onUpdate:${_.value.bindModel}` || ""]: g,
653
+ "onUpdate:dynamicId": W
654
654
  }), {
655
- node: P((C) => [
656
- T(k, fe({
655
+ node: M((C) => [
656
+ z(P, pe({
657
657
  id: t.id
658
658
  }, C, {
659
659
  sourceDateUrl: t.sourceDateUrl
660
660
  }), null, 16, ["id", "sourceDateUrl"])
661
661
  ]),
662
- "edit-node": P(() => [
663
- R(p.$slots, "edit-node")
662
+ "edit-node": M(() => [
663
+ B(f.$slots, "edit-node")
664
664
  ]),
665
665
  _: 3
666
666
  }, 16, ["model"]))
@@ -671,14 +671,14 @@ const Ke = /* @__PURE__ */ G({
671
671
  }
672
672
  });
673
673
  function Ze() {
674
- const e = D(!1), a = Ee(), o = D({});
674
+ const e = A(!1), a = Ee(), o = A({});
675
675
  function t() {
676
676
  return new Promise((d) => {
677
677
  if (e.value)
678
678
  d();
679
679
  else {
680
- const f = V(e, () => {
681
- f(), d();
680
+ const p = R(e, () => {
681
+ p(), d();
682
682
  });
683
683
  }
684
684
  });
@@ -686,43 +686,43 @@ function Ze() {
686
686
  async function n(d = "default") {
687
687
  var c;
688
688
  await t();
689
- const f = (c = o.value) == null ? void 0 : c[d];
690
- if (!f) throw new Error(`表单 [name=${d}] 不存在`);
691
- return f;
689
+ const p = (c = o.value) == null ? void 0 : c[d];
690
+ if (!p) throw new Error(`表单 [name=${d}] 不存在`);
691
+ return p;
692
692
  }
693
- async function r(d, f) {
693
+ async function r(d, p) {
694
694
  const c = await n(d);
695
- return N(await f(c));
695
+ return T(await p(c));
696
696
  }
697
697
  async function l(d = "default") {
698
- return await r(d, (f) => f.getData());
698
+ return await r(d, (p) => p.getData());
699
699
  }
700
- function i(d, f = "default") {
701
- var A;
702
- a.setFormData(d, f);
703
- const c = (A = o.value) == null ? void 0 : A[f];
700
+ function i(d, p = "default") {
701
+ var E;
702
+ a.setFormData(d, p);
703
+ const c = (E = o.value) == null ? void 0 : E[p];
704
704
  c == null || c.clearValidate();
705
705
  }
706
706
  async function u(d = "default") {
707
- return await r(d, async (f) => (await f.validate(), await f.getData()));
707
+ return await r(d, async (p) => (await p.validate(), await p.getData()));
708
708
  }
709
709
  async function w(d) {
710
710
  await t();
711
- const f = {};
711
+ const p = {};
712
712
  for (const c in o.value) {
713
- const A = o.value[c];
714
- A && (f[c] = N(await d(A)));
713
+ const E = o.value[c];
714
+ E && (p[c] = T(await d(E)));
715
715
  }
716
- return f;
716
+ return p;
717
717
  }
718
718
  async function h() {
719
719
  return await w((d) => d.getData());
720
720
  }
721
721
  function s(d) {
722
- for (const f in d)
723
- i(d[f], f);
722
+ for (const p in d)
723
+ i(d[p], p);
724
724
  }
725
- async function y() {
725
+ async function v() {
726
726
  return await w(async (d) => (await d.validate(), await d.getData()));
727
727
  }
728
728
  return {
@@ -734,14 +734,14 @@ function Ze() {
734
734
  validate: u,
735
735
  getForms: h,
736
736
  setForms: s,
737
- validateAll: y,
737
+ validateAll: v,
738
738
  getFormInstance: n
739
739
  };
740
740
  }
741
741
  const Ge = {
742
742
  key: 0,
743
743
  class: "epic-loading-box"
744
- }, Qe = { class: "epic-builder-main" }, Ye = { class: "epic-loading-box" }, Xe = /* @__PURE__ */ G({
744
+ }, Qe = { class: "epic-builder-main" }, Ye = { class: "epic-loading-box" }, Xe = /* @__PURE__ */ X({
745
745
  __name: "builder",
746
746
  props: {
747
747
  pageSchema: {},
@@ -752,47 +752,65 @@ const Ge = {
752
752
  },
753
753
  emits: ["change", "ready"],
754
754
  setup(e, { expose: a, emit: o }) {
755
- const t = q(() => import("./index-DgcFxYFp.js")), n = o, { ready: r, pageManager: l, forms: i, getData: u, setData: w, validate: h, getForms: s, setForms: y, validateAll: d, getFormInstance: f } = Ze(), c = e, A = Z({
755
+ const t = Q(() => import("./index-DgcFxYFp.js")), n = o, { ready: r, pageManager: l, forms: i, getData: u, setData: w, validate: h, getForms: s, setForms: v, validateAll: d, getFormInstance: p } = Ze(), c = e, E = Y({
756
756
  schemas: []
757
757
  });
758
- V(
758
+ R(
759
759
  () => c.pageSchema,
760
- (v) => {
761
- z(A, v);
760
+ (D) => {
761
+ K(E, D);
762
762
  },
763
763
  {
764
764
  immediate: !0,
765
765
  deep: !0
766
766
  }
767
- ), V(
767
+ ), R(
768
768
  () => c.formData,
769
- (v) => {
770
- v && w(v);
769
+ (D) => {
770
+ if (D) {
771
+ let _ = m(D);
772
+ console.log("%c [ data1 ]-79", "font-size:13px; background:pink; color:#bf2c9f;", _), w(_);
773
+ }
771
774
  },
772
775
  {
773
776
  immediate: !0,
774
777
  deep: !0
775
778
  }
776
- ), V(
777
- () => A.script,
778
- (v) => {
779
- v && l.setMethods(v, !0);
779
+ );
780
+ function F(D) {
781
+ let _ = [];
782
+ return D.forEach((O) => {
783
+ O.children && (_ = [..._, ...F(O.children)]), _.push(O);
784
+ }), _;
785
+ }
786
+ function m(D) {
787
+ let _ = F(c.pageSchema.schemas[0].children);
788
+ return console.log("%c [ res ]-100", "font-size:13px; background:pink; color:#bf2c9f;", _), Object.keys(D).forEach((O) => {
789
+ var q, g, W, ne, f;
790
+ const I = _.find((k) => k.field === O), te = ["datetimerange", "daterange", "monthrange", "dates"];
791
+ (I && (I == null ? void 0 : I.type) === "checkbox" || (I == null ? void 0 : I.type) === "select" && ((q = I == null ? void 0 : I.componentProps) != null && q.multiple) || (I == null ? void 0 : I.type) === "cascader" && ((W = (g = I == null ? void 0 : I.componentProps) == null ? void 0 : g.props) != null && W.multiple) || (I == null ? void 0 : I.type) === "date" && te.includes((ne = I == null ? void 0 : I.componentProps) == null ? void 0 : ne.type)) && typeof D[O] == "string" && (D[O] = (f = D[O]) == null ? void 0 : f.split(","));
792
+ }), D;
793
+ }
794
+ R(
795
+ () => E.script,
796
+ (D) => {
797
+ D && l.setMethods(D, !0);
780
798
  },
781
799
  {
782
800
  immediate: !0
783
801
  }
784
- ), $("slots", Fe()), $("pageManager", l), $("forms", i), $("pageSchema", A), $(
802
+ ), U("slots", Fe()), U("pageManager", l), U("forms", i), U("pageSchema", E), U(
785
803
  "disabled",
786
- U(() => c.disabled)
804
+ L(() => c.disabled)
787
805
  );
788
- const x = ne(), m = x == null ? void 0 : x.proxy;
789
- function g() {
790
- Y(() => {
791
- r.value = !0, n("ready", l), m && l.addComponentInstance("builder", m);
806
+ const y = se(), b = y == null ? void 0 : y.proxy;
807
+ function x() {
808
+ ee(() => {
809
+ r.value = !0, n("ready", l), b && l.addComponentInstance("builder", b);
792
810
  });
793
811
  }
794
- return ee.on("updateformData" + c.id, (v) => {
795
- n("change", v);
812
+ return ae.on("updateformData" + c.id, (D) => {
813
+ n("change", D);
796
814
  }), a({
797
815
  ready: r,
798
816
  pageManager: l,
@@ -800,33 +818,33 @@ const Ge = {
800
818
  setData: w,
801
819
  validate: h,
802
820
  getForms: s,
803
- setForms: y,
821
+ setForms: v,
804
822
  validateAll: d,
805
- getFormInstance: f
806
- }), (v, I) => _(F).initialized.value ? (M(), L(De, {
823
+ getFormInstance: p
824
+ }), (D, _) => V($).initialized.value ? (N(), J(De, {
807
825
  key: 1,
808
- onResolve: g
826
+ onResolve: x
809
827
  }, {
810
- default: P(() => [
811
- J("div", Qe, [
812
- (M(!0), pe(Me, null, Re(A.schemas, (O, B) => (M(), L(_(qe), {
828
+ default: M(() => [
829
+ H("div", Qe, [
830
+ (N(!0), me(Me, null, Re(E.schemas, (O, I) => (N(), J(V(qe), {
813
831
  id: c.id,
814
- key: B,
832
+ key: I,
815
833
  sourceDateUrl: c.sourceDateUrl,
816
834
  componentSchema: O
817
835
  }, null, 8, ["id", "sourceDateUrl", "componentSchema"]))), 128))
818
836
  ])
819
837
  ]),
820
- fallback: P(() => [
821
- J("div", Ye, [
822
- T(_(t))
838
+ fallback: M(() => [
839
+ H("div", Ye, [
840
+ z(V(t))
823
841
  ])
824
842
  ]),
825
843
  _: 1
826
- })) : (M(), pe("div", Ge));
844
+ })) : (N(), me("div", Ge));
827
845
  }
828
846
  });
829
- function he(e) {
847
+ function ve(e) {
830
848
  return Be() ? (Ue(e), !0) : !1;
831
849
  }
832
850
  function je(e) {
@@ -834,68 +852,68 @@ function je(e) {
834
852
  const n = () => {
835
853
  a -= 1, t && a <= 0 && (t.stop(), o = void 0, t = void 0);
836
854
  };
837
- return (...r) => (a += 1, t || (t = $e(!0), o = t.run(() => e(...r))), he(n), o);
855
+ return (...r) => (a += 1, t || (t = $e(!0), o = t.run(() => e(...r))), ve(n), o);
838
856
  }
839
- function Q(e) {
840
- return typeof e == "function" ? e() : _(e);
857
+ function j(e) {
858
+ return typeof e == "function" ? e() : V(e);
841
859
  }
842
860
  const et = typeof window < "u" && typeof document < "u";
843
861
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
844
862
  const tt = (e) => typeof e < "u", nt = Object.prototype.toString, ot = (e) => nt.call(e) === "[object Object]", at = () => {
845
863
  };
846
864
  function rt(e) {
847
- return ne();
865
+ return se();
848
866
  }
849
867
  function st(e, a = !0, o) {
850
- rt() ? me(e, o) : a ? e() : Y(e);
868
+ rt() ? he(e, o) : a ? e() : ee(e);
851
869
  }
852
870
  function lt(e = !1, a = {}) {
853
871
  const {
854
872
  truthyValue: o = !0,
855
873
  falsyValue: t = !1
856
- } = a, n = Ne(e), r = D(e);
874
+ } = a, n = Ne(e), r = A(e);
857
875
  function l(i) {
858
876
  if (arguments.length)
859
877
  return r.value = i, r.value;
860
878
  {
861
- const u = Q(o);
862
- return r.value = r.value === u ? Q(t) : u, r.value;
879
+ const u = j(o);
880
+ return r.value = r.value === u ? j(t) : u, r.value;
863
881
  }
864
882
  }
865
883
  return n ? l : [r, l];
866
884
  }
867
885
  function Ut(e, a, o) {
868
- const t = V(e, (...n) => (Y(() => t()), a(...n)), o);
886
+ const t = R(e, (...n) => (ee(() => t()), a(...n)), o);
869
887
  return t;
870
888
  }
871
- const le = et ? window : void 0;
872
- function K(e) {
889
+ const ce = et ? window : void 0;
890
+ function G(e) {
873
891
  var a;
874
- const o = Q(e);
892
+ const o = j(e);
875
893
  return (a = o == null ? void 0 : o.$el) != null ? a : o;
876
894
  }
877
895
  function it(...e) {
878
896
  let a, o, t, n;
879
- if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([o, t, n] = e, a = le) : [a, o, t, n] = e, !a)
897
+ if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([o, t, n] = e, a = ce) : [a, o, t, n] = e, !a)
880
898
  return at;
881
899
  Array.isArray(o) || (o = [o]), Array.isArray(t) || (t = [t]);
882
900
  const r = [], l = () => {
883
901
  r.forEach((h) => h()), r.length = 0;
884
- }, i = (h, s, y, d) => (h.addEventListener(s, y, d), () => h.removeEventListener(s, y, d)), u = V(
885
- () => [K(a), Q(n)],
902
+ }, i = (h, s, v, d) => (h.addEventListener(s, v, d), () => h.removeEventListener(s, v, d)), u = R(
903
+ () => [G(a), j(n)],
886
904
  ([h, s]) => {
887
905
  if (l(), !h)
888
906
  return;
889
- const y = ot(s) ? { ...s } : s;
907
+ const v = ot(s) ? { ...s } : s;
890
908
  r.push(
891
- ...o.flatMap((d) => t.map((f) => i(h, d, f, y)))
909
+ ...o.flatMap((d) => t.map((p) => i(h, d, p, v)))
892
910
  );
893
911
  },
894
912
  { immediate: !0, flush: "post" }
895
913
  ), w = () => {
896
914
  u(), l();
897
915
  };
898
- return he(w), w;
916
+ return ve(w), w;
899
917
  }
900
918
  function ct(e) {
901
919
  return typeof e == "function" ? e : typeof e == "string" ? (a) => a.key === e : Array.isArray(e) ? (a) => e.includes(a.key) : () => !0;
@@ -904,88 +922,88 @@ function Ie(...e) {
904
922
  let a, o, t = {};
905
923
  e.length === 3 ? (a = e[0], o = e[1], t = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (a = !0, o = e[0], t = e[1]) : (a = e[0], o = e[1]) : (a = !0, o = e[0]);
906
924
  const {
907
- target: n = le,
925
+ target: n = ce,
908
926
  eventName: r = "keydown",
909
927
  passive: l = !1,
910
928
  dedupe: i = !1
911
929
  } = t, u = ct(a);
912
930
  return it(n, r, (h) => {
913
- h.repeat && Q(i) || u(h) && o(h);
931
+ h.repeat && j(i) || u(h) && o(h);
914
932
  }, l);
915
933
  }
916
- function ue(e, a, o = {}) {
934
+ function de(e, a, o = {}) {
917
935
  return Ie(e, a, { ...o, eventName: "keydown" });
918
936
  }
919
- function de(e, a, o = {}) {
937
+ function fe(e, a, o = {}) {
920
938
  return Ie(e, a, { ...o, eventName: "keyup" });
921
939
  }
922
940
  function ut() {
923
- const e = D(!1), a = ne();
924
- return a && me(() => {
941
+ const e = A(!1), a = se();
942
+ return a && he(() => {
925
943
  e.value = !0;
926
944
  }, a), e;
927
945
  }
928
946
  function dt(e) {
929
947
  const a = ut();
930
- return U(() => (a.value, !!e()));
948
+ return L(() => (a.value, !!e()));
931
949
  }
932
950
  function ft(e) {
933
951
  return JSON.parse(JSON.stringify(e));
934
952
  }
935
953
  function pt(e, a, o = {}) {
936
- const { window: t = le, ...n } = o;
954
+ const { window: t = ce, ...n } = o;
937
955
  let r;
938
956
  const l = dt(() => t && "ResizeObserver" in t), i = () => {
939
957
  r && (r.disconnect(), r = void 0);
940
- }, u = U(() => {
941
- const s = Q(e);
942
- return Array.isArray(s) ? s.map((y) => K(y)) : [K(s)];
943
- }), w = V(
958
+ }, u = L(() => {
959
+ const s = j(e);
960
+ return Array.isArray(s) ? s.map((v) => G(v)) : [G(s)];
961
+ }), w = R(
944
962
  u,
945
963
  (s) => {
946
964
  if (i(), l.value && t) {
947
965
  r = new ResizeObserver(a);
948
- for (const y of s)
949
- y && r.observe(y, n);
966
+ for (const v of s)
967
+ v && r.observe(v, n);
950
968
  }
951
969
  },
952
970
  { immediate: !0, flush: "post" }
953
971
  ), h = () => {
954
972
  i(), w();
955
973
  };
956
- return he(h), {
974
+ return ve(h), {
957
975
  isSupported: l,
958
976
  stop: h
959
977
  };
960
978
  }
961
979
  function Tt(e, a = { width: 0, height: 0 }, o = {}) {
962
- const { window: t = le, box: n = "content-box" } = o, r = U(() => {
963
- var s, y;
964
- return (y = (s = K(e)) == null ? void 0 : s.namespaceURI) == null ? void 0 : y.includes("svg");
965
- }), l = D(a.width), i = D(a.height), { stop: u } = pt(
980
+ const { window: t = ce, box: n = "content-box" } = o, r = L(() => {
981
+ var s, v;
982
+ return (v = (s = G(e)) == null ? void 0 : s.namespaceURI) == null ? void 0 : v.includes("svg");
983
+ }), l = A(a.width), i = A(a.height), { stop: u } = pt(
966
984
  e,
967
985
  ([s]) => {
968
- const y = n === "border-box" ? s.borderBoxSize : n === "content-box" ? s.contentBoxSize : s.devicePixelContentBoxSize;
986
+ const v = n === "border-box" ? s.borderBoxSize : n === "content-box" ? s.contentBoxSize : s.devicePixelContentBoxSize;
969
987
  if (t && r.value) {
970
- const d = K(e);
988
+ const d = G(e);
971
989
  if (d) {
972
- const f = d.getBoundingClientRect();
973
- l.value = f.width, i.value = f.height;
990
+ const p = d.getBoundingClientRect();
991
+ l.value = p.width, i.value = p.height;
974
992
  }
975
- } else if (y) {
976
- const d = Array.isArray(y) ? y : [y];
977
- l.value = d.reduce((f, { inlineSize: c }) => f + c, 0), i.value = d.reduce((f, { blockSize: c }) => f + c, 0);
993
+ } else if (v) {
994
+ const d = Array.isArray(v) ? v : [v];
995
+ l.value = d.reduce((p, { inlineSize: c }) => p + c, 0), i.value = d.reduce((p, { blockSize: c }) => p + c, 0);
978
996
  } else
979
997
  l.value = s.contentRect.width, i.value = s.contentRect.height;
980
998
  },
981
999
  o
982
1000
  );
983
1001
  st(() => {
984
- const s = K(e);
1002
+ const s = G(e);
985
1003
  s && (l.value = "offsetWidth" in s ? s.offsetWidth : a.width, i.value = "offsetHeight" in s ? s.offsetHeight : a.height);
986
1004
  });
987
- const w = V(
988
- () => K(e),
1005
+ const w = R(
1006
+ () => G(e),
989
1007
  (s) => {
990
1008
  l.value = s ? a.width : 0, i.value = s ? a.height : 0;
991
1009
  }
@@ -1007,50 +1025,50 @@ function Lt(e, a, o, t = {}) {
1007
1025
  eventName: w,
1008
1026
  deep: h = !1,
1009
1027
  defaultValue: s,
1010
- shouldEmit: y
1011
- } = t, d = ne(), f = o || (d == null ? void 0 : d.emit) || ((n = d == null ? void 0 : d.$emit) == null ? void 0 : n.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));
1028
+ shouldEmit: v
1029
+ } = t, d = se(), p = o || (d == null ? void 0 : d.emit) || ((n = d == null ? void 0 : d.$emit) == null ? void 0 : n.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));
1012
1030
  let c = w;
1013
1031
  a || (a = "modelValue"), c = c || `update:${a.toString()}`;
1014
- const A = (g) => i ? typeof i == "function" ? i(g) : ft(g) : g, x = () => tt(e[a]) ? A(e[a]) : s, m = (g) => {
1015
- y ? y(g) && f(c, g) : f(c, g);
1032
+ const E = (y) => i ? typeof i == "function" ? i(y) : ft(y) : y, F = () => tt(e[a]) ? E(e[a]) : s, m = (y) => {
1033
+ v ? v(y) && p(c, y) : p(c, y);
1016
1034
  };
1017
1035
  if (u) {
1018
- const g = x(), v = D(g);
1019
- let I = !1;
1020
- return V(
1036
+ const y = F(), b = A(y);
1037
+ let x = !1;
1038
+ return R(
1021
1039
  () => e[a],
1022
- (O) => {
1023
- I || (I = !0, v.value = A(O), Y(() => I = !1));
1040
+ (D) => {
1041
+ x || (x = !0, b.value = E(D), ee(() => x = !1));
1024
1042
  }
1025
- ), V(
1026
- v,
1027
- (O) => {
1028
- !I && (O !== e[a] || h) && m(O);
1043
+ ), R(
1044
+ b,
1045
+ (D) => {
1046
+ !x && (D !== e[a] || h) && m(D);
1029
1047
  },
1030
1048
  { deep: h }
1031
- ), v;
1049
+ ), b;
1032
1050
  } else
1033
- return U({
1051
+ return L({
1034
1052
  get() {
1035
- return x();
1053
+ return F();
1036
1054
  },
1037
- set(g) {
1038
- m(g);
1055
+ set(y) {
1056
+ m(y);
1039
1057
  }
1040
1058
  });
1041
1059
  }
1042
- function Jt() {
1043
- const { isDark: e } = ie(), a = lt(e);
1060
+ function zt() {
1061
+ const { isDark: e } = ue(), a = lt(e);
1044
1062
  return {
1045
1063
  isDark: e,
1046
1064
  toggleDark: a
1047
1065
  };
1048
1066
  }
1049
1067
  function mt() {
1050
- const e = D(!1);
1051
- return me(() => {
1068
+ const e = A(!1);
1069
+ return he(() => {
1052
1070
  ht(e), vt(e);
1053
- }), V(
1071
+ }), R(
1054
1072
  () => e.value,
1055
1073
  () => {
1056
1074
  e.value ? document.documentElement.classList.add("dark") : document.documentElement.classList.remove("dark");
@@ -1079,7 +1097,7 @@ function vt(e) {
1079
1097
  });
1080
1098
  }
1081
1099
  function yt() {
1082
- const e = D(1), a = D(!1), { isDark: o } = mt(), { pressSpace: t, pressShift: n, pressCtrl: r } = gt();
1100
+ const e = A(1), a = A(!1), { isDark: o } = mt(), { pressSpace: t, pressShift: n, pressCtrl: r } = gt();
1083
1101
  return {
1084
1102
  canvasScale: e,
1085
1103
  pressSpace: t,
@@ -1089,25 +1107,25 @@ function yt() {
1089
1107
  isDark: o
1090
1108
  };
1091
1109
  }
1092
- const ie = je(yt);
1110
+ const ue = je(yt);
1093
1111
  function gt() {
1094
- const e = D(!1), a = D(!1), o = D(!1);
1095
- return ue(" ", () => {
1112
+ const e = A(!1), a = A(!1), o = A(!1);
1113
+ return de(" ", () => {
1096
1114
  e.value = !0;
1097
- }), de(" ", () => {
1115
+ }), fe(" ", () => {
1098
1116
  e.value = !1;
1099
- }), ue("Shift", (t) => {
1117
+ }), de("Shift", (t) => {
1100
1118
  t.preventDefault(), a.value = !0;
1101
- }), de("Shift", () => {
1119
+ }), fe("Shift", () => {
1102
1120
  a.value = !1;
1103
- }), ue("Control", (t) => {
1121
+ }), de("Control", (t) => {
1104
1122
  t.preventDefault(), o.value = !0;
1105
- }), de("Control", () => {
1123
+ }), fe("Control", () => {
1106
1124
  o.value = !1;
1107
1125
  }), { pressSpace: e, pressShift: a, pressCtrl: o };
1108
1126
  }
1109
- function zt(e) {
1110
- const { pressSpace: a } = ie(), o = new Image(1, 1);
1127
+ function Jt(e) {
1128
+ const { pressSpace: a } = ue(), o = new Image(1, 1);
1111
1129
  o.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==";
1112
1130
  let t = 0, n = 0;
1113
1131
  function r(u) {
@@ -1126,7 +1144,7 @@ function zt(e) {
1126
1144
  return { handleElementDragStart: r, handleElementDrag: l, handleElementDragEnd: i };
1127
1145
  }
1128
1146
  function Wt(e) {
1129
- const { pressCtrl: a, canvasScale: o, disabledZoom: t } = ie();
1147
+ const { pressCtrl: a, canvasScale: o, disabledZoom: t } = ue();
1130
1148
  function n(r) {
1131
1149
  if (!a.value || t.value)
1132
1150
  return;
@@ -1134,7 +1152,7 @@ function Wt(e) {
1134
1152
  let l = 0;
1135
1153
  r.deltaY < 0 ? l = o.value + 0.05 : l = o.value - 0.05, !(l > 150 || l < 0.5) && (o.value = l);
1136
1154
  }
1137
- return V(
1155
+ return R(
1138
1156
  () => o.value,
1139
1157
  (r) => {
1140
1158
  e.value && !t.value && (e.value.style.transform = `scale(${r})`);
@@ -1154,29 +1172,29 @@ function Ht(e, a = 16.66) {
1154
1172
  stopTimedQuery: n
1155
1173
  };
1156
1174
  }
1157
- const wt = { class: "min-w-750px rounded" }, bt = { class: "h-full rounded" }, St = /* @__PURE__ */ G({
1175
+ const wt = { class: "min-w-750px rounded" }, bt = { class: "h-full rounded" }, St = /* @__PURE__ */ X({
1158
1176
  __name: "index",
1159
1177
  setup(e, { expose: a }) {
1160
- const o = F.getComponent("monacoEditor"), t = F.getComponent("modal"), n = D(null), r = D(!1), l = D(!1), i = D({}), u = H("pageSchema"), w = D(null), h = D("");
1178
+ const o = $.getComponent("monacoEditor"), t = $.getComponent("modal"), n = A(null), r = A(!1), l = A(!1), i = A({}), u = Z("pageSchema"), w = A(null), h = A("");
1161
1179
  function s() {
1162
1180
  l.value = !1;
1163
1181
  }
1164
- function y() {
1182
+ function v() {
1165
1183
  r.value = !1;
1166
1184
  }
1167
1185
  function d() {
1168
- r.value = !0, h.value = se();
1186
+ r.value = !0, h.value = ie();
1169
1187
  }
1170
- async function f() {
1188
+ async function p() {
1171
1189
  try {
1172
1190
  let c = await w.value.validateAll();
1173
1191
  if (!Object.keys(c).length) {
1174
1192
  alert("请添加表单组件后再尝试!");
1175
1193
  return;
1176
1194
  }
1177
- Object.keys(c).length === 1 && (c = c.default), i.value = JSON.stringify(c, null, 2), Y(() => {
1178
- var A;
1179
- (A = n.value) == null || A.setValue(i.value);
1195
+ Object.keys(c).length === 1 && (c = c.default), i.value = JSON.stringify(c, null, 2), ee(() => {
1196
+ var E;
1197
+ (E = n.value) == null || E.setValue(i.value);
1180
1198
  }), l.value = !0;
1181
1199
  } catch (c) {
1182
1200
  console.error(c);
@@ -1184,36 +1202,36 @@ const wt = { class: "min-w-750px rounded" }, bt = { class: "h-full rounded" }, S
1184
1202
  }
1185
1203
  return a({
1186
1204
  handleOpen: d
1187
- }), (c, A) => (M(), L(_(t), {
1205
+ }), (c, E) => (N(), J(V(t), {
1188
1206
  modelValue: r.value,
1189
- "onUpdate:modelValue": A[1] || (A[1] = (x) => r.value = x),
1207
+ "onUpdate:modelValue": E[1] || (E[1] = (F) => r.value = F),
1190
1208
  title: "预览",
1191
1209
  class: "w-900px",
1192
1210
  width: "900px",
1193
- onClose: y,
1194
- onOk: f,
1211
+ onClose: v,
1212
+ onOk: p,
1195
1213
  okText: "表单数据"
1196
1214
  }, {
1197
- default: P(() => [
1198
- J("div", wt, [
1199
- (M(), L(_(Xe), {
1215
+ default: M(() => [
1216
+ H("div", wt, [
1217
+ (N(), J(V(Xe), {
1200
1218
  key: h.value,
1201
1219
  ref_key: "kb",
1202
1220
  ref: w,
1203
- "page-schema": _(u)
1221
+ "page-schema": V(u)
1204
1222
  }, null, 8, ["page-schema"])),
1205
- T(_(t), {
1223
+ z(V(t), {
1206
1224
  modelValue: l.value,
1207
- "onUpdate:modelValue": A[0] || (A[0] = (x) => l.value = x),
1225
+ "onUpdate:modelValue": E[0] || (E[0] = (F) => l.value = F),
1208
1226
  title: "表单数据",
1209
1227
  class: "w-860px",
1210
1228
  width: "860px",
1211
1229
  onClose: s,
1212
1230
  onOk: s
1213
1231
  }, {
1214
- default: P(() => [
1215
- J("div", bt, [
1216
- T(_(o), {
1232
+ default: M(() => [
1233
+ H("div", bt, [
1234
+ z(V(o), {
1217
1235
  ref_key: "monacoEditorRef",
1218
1236
  ref: n,
1219
1237
  autoToggleTheme: "",
@@ -1233,7 +1251,7 @@ const wt = { class: "min-w-750px rounded" }, bt = { class: "h-full rounded" }, S
1233
1251
  }), Dt = {
1234
1252
  key: 0,
1235
1253
  class: "epic-loading-box"
1236
- }, At = { class: "epic-designer-main" }, Et = { class: "epic-header-container" }, It = { class: "epic-loading-box" }, Kt = /* @__PURE__ */ G({
1254
+ }, At = { class: "epic-designer-main" }, Et = { class: "epic-header-container" }, It = { class: "epic-loading-box" }, Kt = /* @__PURE__ */ X({
1237
1255
  __name: "designer",
1238
1256
  props: {
1239
1257
  disabledZoom: { type: Boolean, default: !1 },
@@ -1256,7 +1274,7 @@ const wt = { class: "min-w-750px rounded" }, bt = { class: "h-full rounded" }, S
1256
1274
  "updateSourceData"
1257
1275
  ],
1258
1276
  setup(e, { expose: a, emit: o }) {
1259
- const t = q(() => import("./index-C-XUgjda.js")), n = q(() => import("./index-ASoFJnMl.js")), r = q(() => import("./index-B07zwTz2.js")), l = q(() => import("./index-ooVzYa5L.js")), i = q(() => import("./index-DgcFxYFp.js")), u = Ee(), w = He(), h = e;
1277
+ const t = Q(() => import("./index-C-XUgjda.js")), n = Q(() => import("./index-ASoFJnMl.js")), r = Q(() => import("./index-I369bEhX.js")), l = Q(() => import("./index-ooVzYa5L.js")), i = Q(() => import("./index-DgcFxYFp.js")), u = Ee(), w = He(), h = e;
1260
1278
  let s = {
1261
1279
  schemas: [
1262
1280
  {
@@ -1303,148 +1321,148 @@ defineExpose({
1303
1321
  test
1304
1322
  })`
1305
1323
  };
1306
- re(() => {
1324
+ le(() => {
1307
1325
  if (h.defaultSchema) {
1308
1326
  s = h.defaultSchema;
1309
1327
  return;
1310
1328
  }
1311
- h.source && F.setSourceData(h.source), h.formMode && (s.schemas = F.formSchemas);
1329
+ h.source && $.setSourceData(h.source), h.formMode && (s.schemas = $.formSchemas);
1312
1330
  }), u.setDesignMode(), u.setDefaultComponentIds(s.schemas);
1313
- const y = o, d = D(null), f = Z({
1331
+ const v = o, d = A(null), p = Y({
1314
1332
  checkedNode: null,
1315
1333
  hoverNode: null,
1316
1334
  disableHover: !1,
1317
1335
  matched: []
1318
- }), c = Z({
1336
+ }), c = Y({
1319
1337
  schemas: [],
1320
1338
  script: s.script
1321
- }), { disabledZoom: A } = ie();
1322
- re(() => {
1323
- A.value = h.disabledZoom;
1324
- }), re(() => {
1325
- const b = c.script;
1326
- b && b !== "" && u.setMethods(b);
1327
- }), $("pageSchema", c), $("revoke", w), $("pageManager", u), $(
1339
+ }), { disabledZoom: E } = ue();
1340
+ le(() => {
1341
+ E.value = h.disabledZoom;
1342
+ }), le(() => {
1343
+ const g = c.script;
1344
+ g && g !== "" && u.setMethods(g);
1345
+ }), U("pageSchema", c), U("revoke", w), U("pageManager", u), U(
1328
1346
  "designerProps",
1329
- U(() => h)
1330
- ), $("designer", {
1347
+ L(() => h)
1348
+ ), U("designer", {
1331
1349
  setCheckedNode: m,
1332
- setHoverNode: g,
1333
- setDisableHover: I,
1334
- handleToggleDeviceMode: ce,
1335
- reset: W,
1336
- state: f
1337
- }), ee.on("saveSourceData", (b) => {
1338
- y("saveSourceData", b);
1339
- }), ee.on("deleteSourceData", (b) => {
1340
- y("deleteSourceData", b);
1341
- }), ee.on("updateSourceData", (b) => {
1342
- y("updateSourceData", b);
1350
+ setHoverNode: y,
1351
+ setDisableHover: x,
1352
+ handleToggleDeviceMode: te,
1353
+ reset: O,
1354
+ state: p
1355
+ }), ae.on("saveSourceData", (g) => {
1356
+ v("saveSourceData", g);
1357
+ }), ae.on("deleteSourceData", (g) => {
1358
+ v("deleteSourceData", g);
1359
+ }), ae.on("updateSourceData", (g) => {
1360
+ v("updateSourceData", g);
1343
1361
  });
1344
- function x() {
1345
- c.schemas = N(s.schemas), m(c.schemas[0]), w.push(c.schemas, "初始化撤销功能");
1362
+ function F() {
1363
+ c.schemas = T(s.schemas), m(c.schemas[0]), w.push(c.schemas, "初始化撤销功能");
1346
1364
  }
1347
- async function m(b = c.schemas[0]) {
1348
- f.checkedNode = b, f.matched = Je(c.schemas, b.id);
1365
+ async function m(g = c.schemas[0]) {
1366
+ p.checkedNode = g, p.matched = ze(c.schemas, g.id);
1349
1367
  }
1350
- async function g(b = null) {
1351
- var X;
1352
- if (!b || f.disableHover)
1353
- return f.hoverNode = null, !1;
1354
- if ((b == null ? void 0 : b.id) === ((X = f.hoverNode) == null ? void 0 : X.id))
1368
+ async function y(g = null) {
1369
+ var W;
1370
+ if (!g || p.disableHover)
1371
+ return p.hoverNode = null, !1;
1372
+ if ((g == null ? void 0 : g.id) === ((W = p.hoverNode) == null ? void 0 : W.id))
1355
1373
  return !1;
1356
- f.hoverNode = b;
1374
+ p.hoverNode = g;
1357
1375
  }
1358
- function v() {
1359
- Y(() => {
1360
- y("ready", { pageManager: u });
1376
+ function b() {
1377
+ ee(() => {
1378
+ v("ready", { pageManager: u });
1361
1379
  });
1362
1380
  }
1363
- async function I(b = !1) {
1364
- f.disableHover = b;
1381
+ async function x(g = !1) {
1382
+ p.disableHover = g;
1365
1383
  }
1366
- function O(b) {
1367
- z(c, N(b));
1384
+ function D(g) {
1385
+ K(c, T(g));
1368
1386
  }
1369
- function B() {
1387
+ function _() {
1370
1388
  return ge(c);
1371
1389
  }
1372
- function W() {
1373
- Ae(c.schemas, s.schemas) && c.script === s.script || (z(c.schemas, s.schemas), c.script = s.script, m(c.schemas[0]), w.push(c.schemas, "重置操作"), y("reset", c));
1390
+ function O() {
1391
+ Ae(c.schemas, s.schemas) && c.script === s.script || (K(c.schemas, s.schemas), c.script = s.script, m(c.schemas[0]), w.push(c.schemas, "重置操作"), v("reset", c));
1374
1392
  }
1375
- function oe() {
1376
- y("save", ge(c));
1393
+ function I() {
1394
+ v("save", ge(c));
1377
1395
  }
1378
- function ce(b) {
1379
- y("toggleDeviceMode", b);
1396
+ function te(g) {
1397
+ v("toggleDeviceMode", g);
1380
1398
  }
1381
- function ae() {
1399
+ function q() {
1382
1400
  d.value.handleOpen();
1383
1401
  }
1384
- return x(), a({
1402
+ return F(), a({
1385
1403
  revoke: w,
1386
- setData: O,
1387
- getData: B,
1388
- reset: W,
1389
- preview: ae
1390
- }), (b, X) => _(F).initialized.value ? (M(), L(De, {
1404
+ setData: D,
1405
+ getData: _,
1406
+ reset: O,
1407
+ preview: q
1408
+ }), (g, W) => V($).initialized.value ? (N(), J(De, {
1391
1409
  key: 1,
1392
- onResolve: v
1410
+ onResolve: b
1393
1411
  }, {
1394
- default: P(() => [
1395
- J("div", At, [
1396
- J("div", Et, [
1397
- R(b.$slots, "header", {}, () => [
1398
- h.hiddenHeader ? Se("", !0) : (M(), L(_(t), {
1412
+ default: M(() => [
1413
+ H("div", At, [
1414
+ H("div", Et, [
1415
+ B(g.$slots, "header", {}, () => [
1416
+ h.hiddenHeader ? Se("", !0) : (N(), J(V(t), {
1399
1417
  key: 0,
1400
- onPreview: ae,
1401
- onSave: oe
1418
+ onPreview: q,
1419
+ onSave: I
1402
1420
  }, {
1403
- header: P(() => [
1404
- R(b.$slots, "header-prefix")
1421
+ header: M(() => [
1422
+ B(g.$slots, "header-prefix")
1405
1423
  ]),
1406
- prefix: P(() => [
1407
- R(b.$slots, "header-prefix")
1424
+ prefix: M(() => [
1425
+ B(g.$slots, "header-prefix")
1408
1426
  ]),
1409
- title: P(() => [
1410
- R(b.$slots, "header-title")
1427
+ title: M(() => [
1428
+ B(g.$slots, "header-title")
1411
1429
  ]),
1412
- "right-prefix": P(() => [
1413
- R(b.$slots, "header-right-prefix")
1430
+ "right-prefix": M(() => [
1431
+ B(g.$slots, "header-right-prefix")
1414
1432
  ]),
1415
- "right-action": P(() => [
1416
- R(b.$slots, "header-right-action")
1433
+ "right-action": M(() => [
1434
+ B(g.$slots, "header-right-action")
1417
1435
  ]),
1418
- "right-suffix": P(() => [
1419
- R(b.$slots, "header-right-suffix")
1436
+ "right-suffix": M(() => [
1437
+ B(g.$slots, "header-right-suffix")
1420
1438
  ]),
1421
1439
  _: 3
1422
1440
  }))
1423
1441
  ])
1424
1442
  ]),
1425
- J("div", {
1426
- class: Te(["epic-split-view-container", { "hidden-header": b.hiddenHeader }])
1443
+ H("div", {
1444
+ class: Te(["epic-split-view-container", { "hidden-header": g.hiddenHeader }])
1427
1445
  }, [
1428
- T(_(n)),
1429
- T(_(r)),
1430
- T(_(l))
1446
+ z(V(n)),
1447
+ z(V(r)),
1448
+ z(V(l))
1431
1449
  ], 2),
1432
- T(St, {
1450
+ z(St, {
1433
1451
  ref_key: "previewRef",
1434
1452
  ref: d
1435
1453
  }, null, 512)
1436
1454
  ])
1437
1455
  ]),
1438
- fallback: P(() => [
1439
- J("div", It, [
1440
- T(_(i))
1456
+ fallback: M(() => [
1457
+ H("div", It, [
1458
+ z(V(i))
1441
1459
  ])
1442
1460
  ]),
1443
1461
  _: 3
1444
- })) : (M(), pe("div", Dt));
1462
+ })) : (N(), me("div", Dt));
1445
1463
  }
1446
- }), Ct = {
1447
- component: async () => await import("./index-DQBowkLQ.js"),
1464
+ }), kt = {
1465
+ component: async () => await import("./index-CfqYk0Cm.js"),
1448
1466
  defaultSchema: {
1449
1467
  label: "代码编辑器",
1450
1468
  type: "monacoEditor",
@@ -1472,7 +1490,7 @@ defineExpose({
1472
1490
  ]
1473
1491
  },
1474
1492
  bindModel: "model-value"
1475
- }, kt = {
1493
+ }, xt = {
1476
1494
  component: async () => await import("./index-DiDIFoTk.js"),
1477
1495
  defaultSchema: {
1478
1496
  label: "页面",
@@ -1493,12 +1511,12 @@ defineExpose({
1493
1511
  ]
1494
1512
  }
1495
1513
  };
1496
- function xt(e) {
1497
- e.component("EInputSize", async () => await import("./index-C4sdhgF2.js")), e.component("EColEditor", async () => await import("./index-BGKInHWa.js")), e.component("EActionEditor", async () => await import("./index-bup0iSFb.js")), e.component("ERuleEditor", async () => await import("./index-C8_p36X3.js")), e.component("EOptionsEditor", async () => await import("./index-CYyckZuN.js")), e.component("ENode", async () => await import("./index-zlm7L3aS.js")), e.component("EDataSource", async () => await import("./index-CCTMCqiz.js")), e.registerActivitybar({
1514
+ function Ct(e) {
1515
+ e.component("EInputSize", async () => await import("./index-C4sdhgF2.js")), e.component("EColEditor", async () => await import("./index-AT5ltRGN.js")), e.component("EActionEditor", async () => await import("./index-XbBcyR0q.js")), e.component("ERuleEditor", async () => await import("./index-QWJHIAu8.js")), e.component("EOptionsEditor", async () => await import("./index-CF3fYMNt.js")), e.component("ENode", async () => await import("./index-D7xfe3p6.js")), e.component("EDataSource", async () => await import("./index-CCTMCqiz.js")), e.registerActivitybar({
1498
1516
  id: "component_view",
1499
1517
  title: "组件",
1500
1518
  icon: "icon--epic--extension-outline",
1501
- component: async () => await import("./index-CY8bzSIr.js")
1519
+ component: async () => await import("./index-DluF22Iv.js")
1502
1520
  }), e.registerActivitybar({
1503
1521
  id: "outline_view",
1504
1522
  title: "大纲",
@@ -1507,21 +1525,21 @@ function xt(e) {
1507
1525
  }), e.registerRightSidebar({
1508
1526
  id: "attribute_view",
1509
1527
  title: "属性",
1510
- component: async () => await import("./attributeView-DVqMH1xY.js")
1528
+ component: async () => await import("./attributeView-BuU8Ajxc.js")
1511
1529
  }), e.registerRightSidebar({
1512
1530
  id: "style_view",
1513
1531
  title: "样式",
1514
- component: async () => await import("./styleView-DNbMFObZ.js")
1515
- }), [Ct, kt].forEach((o) => {
1532
+ component: async () => await import("./styleView-3R3fJCVy.js")
1533
+ }), [kt, xt].forEach((o) => {
1516
1534
  e.registerComponent(o);
1517
1535
  });
1518
1536
  }
1519
- xt(F);
1537
+ Ct($);
1520
1538
  export {
1521
- ze as A,
1522
- te as B,
1539
+ Je as A,
1540
+ re as B,
1523
1541
  We as C,
1524
- j as D,
1542
+ oe as D,
1525
1543
  Le as E,
1526
1544
  gt as F,
1527
1545
  mt as G,
@@ -1531,27 +1549,27 @@ export {
1531
1549
  Ht as a,
1532
1550
  pt as b,
1533
1551
  Nt as c,
1534
- z as d,
1535
- zt as e,
1552
+ K as d,
1553
+ Jt as e,
1536
1554
  $t as f,
1537
- Vt as g,
1555
+ Ot as g,
1538
1556
  Tt as h,
1539
1557
  Wt as i,
1540
1558
  Bt as j,
1541
- se as k,
1559
+ ie as k,
1542
1560
  Rt as l,
1543
- N as m,
1561
+ T as m,
1544
1562
  Lt as n,
1545
- Ot as o,
1546
- Jt as p,
1563
+ Vt as o,
1564
+ zt as p,
1547
1565
  Xe as q,
1548
1566
  Kt as r,
1549
1567
  Ft as s,
1550
1568
  Ee as t,
1551
- ie as u,
1569
+ ue as u,
1552
1570
  He as v,
1553
1571
  Ut as w,
1554
1572
  Ae as x,
1555
- Je as y,
1573
+ ze as y,
1556
1574
  Mt as z
1557
1575
  };