epic-designer-gold 0.0.39 → 0.0.40

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 (39) hide show
  1. package/dist/{attributeView-CWoguTGM.cjs → attributeView-BjvAO4_R.cjs} +1 -1
  2. package/dist/{attributeView-CGtxobMF.js → attributeView-PbDEjn8T.js} +1 -1
  3. package/dist/form-2lbtG-zj.js +74 -0
  4. package/dist/form-BM53wx9g.cjs +1 -0
  5. package/dist/{index-DBRz4gi5.js → index-5datIIzJ.js} +1 -1
  6. package/dist/{index-DCoUYKRW.cjs → index-BUBtVoa0.cjs} +1 -1
  7. package/dist/{index-Bj6zKw82.js → index-BZQLip5V.js} +443 -440
  8. package/dist/{index-B7Uy532l.cjs → index-C2ioP4Qy.cjs} +1 -1
  9. package/dist/{index-BBNxCX9U.cjs → index-C3hWImRT.cjs} +1 -1
  10. package/dist/{index-DFP-9KaA.js → index-C95DVYrN.js} +1 -1
  11. package/dist/{index-wxDrmXkw.js → index-CE7JKdc3.js} +1 -1
  12. package/dist/index-Cpm-oLdy.js +4 -0
  13. package/dist/{index-F-tQsU_8.cjs → index-CzOycR7-.cjs} +1 -1
  14. package/dist/index-D3RJLUGU.cjs +10 -0
  15. package/dist/{index-Dan8DnTn.cjs → index-DHHX2mwy.cjs} +1 -1
  16. package/dist/{index-ChGNJr_v.cjs → index-DQjDcBV5.cjs} +1 -1
  17. package/dist/{index-DU0OYNvy.cjs → index-Da3mrdHZ.cjs} +1 -1
  18. package/dist/{index-CDzXkVHK.js → index-Da8OPaOM.js} +2 -2
  19. package/dist/{index-C7VY8nRX.js → index-DxkPriDk.js} +1 -1
  20. package/dist/{index-DWKirflC.js → index-l1DO3QH_.js} +1 -1
  21. package/dist/{index-9xlsE_Mf.cjs → index-l4brKgI9.cjs} +1 -1
  22. package/dist/{index-BALf0q8e.js → index-laQFS5Nd.js} +1 -1
  23. package/dist/index.cjs +1 -1
  24. package/dist/index.js +1 -1
  25. package/dist/sign-BS8owiJT.cjs +1 -0
  26. package/dist/sign-DZvUIxel.js +155 -0
  27. package/dist/style.css +1 -1
  28. package/dist/{styleView-BHaWjsLQ.js → styleView-LX_E7EFf.js} +1 -1
  29. package/dist/{styleView-BgoSZRkZ.cjs → styleView-oaDQbGne.cjs} +1 -1
  30. package/dist/ui/elementPlus/index.cjs +1 -1
  31. package/dist/ui/elementPlus/index.js +8 -8
  32. package/dist/{uploadImage-CYV7X1sG.js → uploadImage-tLXX1j6A.js} +12 -12
  33. package/package.json +1 -1
  34. package/dist/form-6cUK-Ari.js +0 -72
  35. package/dist/form-CthzLIgs.cjs +0 -1
  36. package/dist/index-9eiypGfJ.cjs +0 -10
  37. package/dist/index-By5d6rRB.js +0 -4
  38. package/dist/sign-BCmA2v-3.cjs +0 -1
  39. package/dist/sign-CSv8hClp.js +0 -149
@@ -1,4 +1,4 @@
1
- import { ref as _, reactive as j, defineComponent as ee, openBlock as N, createBlock as K, unref as R, mergeProps as pe, withCtx as $, renderSlot as T, getCurrentInstance as ae, inject as Q, watch as k, useAttrs as Pe, provide as L, shallowRef as Oe, computed as z, watchEffect as le, onUnmounted as Se, resolveComponent as Ve, resolveDynamicComponent as Fe, createVNode as H, createCommentVNode as De, useSlots as Me, createElementBlock as me, Suspense as Ae, createElementVNode as Z, Fragment as Re, renderList as $e, nextTick as ne, effectScope as ke, isRef as Be, getCurrentScope as Ne, onScopeDispose as Ue, onMounted as he, normalizeClass as Te, toRaw as ge } from "vue";
1
+ import { ref as P, reactive as j, defineComponent as ee, openBlock as k, createBlock as K, unref as R, mergeProps as pe, withCtx as $, renderSlot as T, getCurrentInstance as ae, inject as Q, watch as N, useAttrs as Pe, provide as L, shallowRef as Oe, computed as J, watchEffect as le, onUnmounted as Se, resolveComponent as Ve, resolveDynamicComponent as Fe, createTextVNode as Me, toDisplayString as Re, createVNode as H, createCommentVNode as De, useSlots as $e, createElementBlock as me, Suspense as Ae, createElementVNode as Z, Fragment as Ne, renderList as Be, nextTick as ne, effectScope as ke, isRef as Ue, getCurrentScope as Te, onScopeDispose as Le, onMounted as he, normalizeClass as ze, toRaw as ye } from "vue";
2
2
  import { p as B, E as re, a as we, l as X } from "./axios-ITY6Uw7A.js";
3
3
  function ie(e = 10) {
4
4
  const r = "abcdefghijklmnopqrstuvwxyz0123456789";
@@ -9,25 +9,25 @@ function ie(e = 10) {
9
9
  }
10
10
  return o;
11
11
  }
12
- function Le(e) {
12
+ function Je(e) {
13
13
  return e.charAt(0).toUpperCase() + e.slice(1);
14
14
  }
15
- function J(e, r = /* @__PURE__ */ new WeakMap()) {
15
+ function z(e, r = /* @__PURE__ */ new WeakMap()) {
16
16
  if (typeof e != "object" || e === null)
17
17
  return e;
18
18
  if (r.has(e))
19
19
  return r.get(e);
20
20
  if (Array.isArray(e)) {
21
- const t = e.map((n) => J(n, r));
21
+ const t = e.map((n) => z(n, r));
22
22
  return r.set(e, t), t;
23
23
  }
24
24
  const o = {};
25
25
  return r.set(e, o), Object.keys(e).forEach((t) => {
26
- o[t] = J(e[t], r);
26
+ o[t] = z(e[t], r);
27
27
  }), o;
28
28
  }
29
- function Vt(e) {
30
- const [r] = We([J(e)], (o) => {
29
+ function Mt(e) {
30
+ const [r] = Ke([z(e)], (o) => {
31
31
  var n, s;
32
32
  const t = {
33
33
  ...o,
@@ -54,16 +54,16 @@ function Ee(e, r, o = [], t = /* @__PURE__ */ new WeakMap()) {
54
54
  if (t.has(s))
55
55
  return "[Circular]";
56
56
  t.set(s, !0);
57
- const l = Object.keys(s).sort(), c = {};
57
+ const l = Object.keys(s).sort(), u = {};
58
58
  return l.forEach((f) => {
59
- o.includes(f) || (c[f] = n(s[f]));
60
- }), t.delete(s), c;
59
+ o.includes(f) || (u[f] = n(s[f]));
60
+ }), t.delete(s), u;
61
61
  } else
62
62
  return s;
63
63
  };
64
64
  return JSON.stringify(n(e)) === JSON.stringify(n(r));
65
65
  }
66
- function Je(e, r) {
66
+ function We(e, r) {
67
67
  const o = [];
68
68
  let t = !1;
69
69
  function n(s) {
@@ -72,13 +72,13 @@ function Je(e, r) {
72
72
  ;
73
73
  if (!t && s.slots)
74
74
  for (let l in s.slots)
75
- for (let c = 0; c < s.slots[l].length && (n(s.slots[l][c]), !t); c++)
75
+ for (let u = 0; u < s.slots[l].length && (n(s.slots[l][u]), !t); u++)
76
76
  ;
77
77
  t || o.pop();
78
78
  }
79
79
  return e.forEach(n), t || console.error(`没有查询到id为${r}的节点`), o;
80
80
  }
81
- function Ft(e, r, o) {
81
+ function Rt(e, r, o) {
82
82
  const t = r.split(".");
83
83
  let n = e;
84
84
  for (let s = 0; s < t.length; s++) {
@@ -88,7 +88,7 @@ function Ft(e, r, o) {
88
88
  }
89
89
  return n === void 0 ? o : n;
90
90
  }
91
- function Mt(e, r, o) {
91
+ function $t(e, r, o) {
92
92
  const t = r.replace(/\[(\d+)\]/g, ".$1").split(".").filter(Boolean);
93
93
  let n = e;
94
94
  for (let s = 0; s < t.length - 1; s++) {
@@ -97,10 +97,10 @@ function Mt(e, r, o) {
97
97
  }
98
98
  return n[t[t.length - 1]] = o, e;
99
99
  }
100
- function Rt(e, r = "default") {
101
- return ze(e, r).map((t) => t.field);
100
+ function Nt(e, r = "default") {
101
+ return He(e, r).map((t) => t.field);
102
102
  }
103
- function ze(e, r = "default") {
103
+ function He(e, r = "default") {
104
104
  const o = se(
105
105
  e,
106
106
  (n) => {
@@ -121,14 +121,14 @@ function se(e, r, o = !1, t) {
121
121
  for (; s.length; ) {
122
122
  const l = s.pop();
123
123
  if (l != null && l.children && (!t || t(l)) && s.push(...l.children), l != null && l.slots && (!t || t(l)))
124
- for (let c in l.slots)
125
- s.push(...l.slots[c]);
124
+ for (let u in l.slots)
125
+ s.push(...l.slots[u]);
126
126
  if (r(l) && (n.push(l), o))
127
127
  return l;
128
128
  }
129
129
  return o ? !1 : n;
130
130
  }
131
- function We(e, r, o) {
131
+ function Ke(e, r, o) {
132
132
  const t = [...e];
133
133
  for (; t.length; ) {
134
134
  const n = t.pop();
@@ -139,7 +139,7 @@ function We(e, r, o) {
139
139
  }
140
140
  return e;
141
141
  }
142
- function $t(e, r) {
142
+ function Bt(e, r) {
143
143
  const o = se(
144
144
  e,
145
145
  (t) => t.id === r,
@@ -159,9 +159,9 @@ function kt(e, r) {
159
159
  if (s != null && s.slots)
160
160
  for (let l in s.slots) {
161
161
  n = s.slots[l];
162
- for (let c = 0; c < n.length; c++)
163
- if (n[c].id === r)
164
- return t = c, !0;
162
+ for (let u = 0; u < n.length; u++)
163
+ if (n[u].id === r)
164
+ return t = u, !0;
165
165
  }
166
166
  return !1;
167
167
  }
@@ -179,7 +179,7 @@ function kt(e, r) {
179
179
  index: t
180
180
  };
181
181
  }
182
- function Bt(e) {
182
+ function Ut(e) {
183
183
  const r = {
184
184
  schemas: [
185
185
  {
@@ -221,14 +221,14 @@ function Bt(e) {
221
221
  }
222
222
  function oe(e, r) {
223
223
  return e.map((o) => {
224
- var f, I, g;
224
+ var f, I, w;
225
225
  let t = o.type ?? "";
226
- const n = o.options ?? {}, s = (a, D) => {
227
- t === a && (t = D, n.defaultValue && (n.defaultValue = JSON.parse(n.defaultValue)));
226
+ const n = o.options ?? {}, s = (a, E) => {
227
+ t === a && (t = E, n.defaultValue && (n.defaultValue = JSON.parse(n.defaultValue)));
228
228
  };
229
229
  if (s("uploadImg", "upload-image"), s("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: a, maxRows: D } = n;
231
- n.autoSize = { minRows: a, maxRows: D }, delete n.minRows, delete n.maxRows;
230
+ const { minRows: a, maxRows: E } = n;
231
+ n.autoSize = { minRows: a, maxRows: E }, delete n.minRows, delete n.maxRows;
232
232
  }
233
233
  t === "number" && !n.precision && delete n.precision, n.width && (n.style = { width: n.width }, delete n.width), t === "grid" && (t = "row"), r && r.type === "grid" && (t = "col", n.span = o.span, o.key = ie());
234
234
  const l = {
@@ -255,10 +255,10 @@ function oe(e, r) {
255
255
  "color-picker",
256
256
  "upload-file",
257
257
  "upload-image"
258
- ].includes(t) && (l.input = !0, ((I = (f = o.rules) == null ? void 0 : f[0]) == null ? void 0 : I.required) === !1 && o.rules.shift(), ((g = o.rules) == null ? void 0 : g.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;
258
+ ].includes(t) && (l.input = !0, ((I = (f = o.rules) == null ? void 0 : f[0]) == null ? void 0 : I.required) === !1 && o.rules.shift(), ((w = o.rules) == null ? void 0 : w.length) > 0 && (l.rules = o.rules)), o.list && (l.children = oe(o.list, o)), o.columns && (l.children = oe(o.columns, o)), o.trs && (l.children = oe(o.trs, o)), o.tds && (l.children = oe(o.tds, o)), l;
259
259
  });
260
260
  }
261
- function Nt(e, r) {
261
+ function Tt(e, r) {
262
262
  let o = null;
263
263
  return (...t) => {
264
264
  o && clearTimeout(o), o = setTimeout(() => {
@@ -266,85 +266,85 @@ function Nt(e, r) {
266
266
  }, r);
267
267
  };
268
268
  }
269
- function be() {
270
- const e = _({}), r = _({}), o = _(!1), t = _([]), n = j({});
269
+ function xe() {
270
+ const e = P({}), r = P({}), o = P(!1), t = P([]), n = j({});
271
271
  function s(h) {
272
272
  return e.value[h];
273
273
  }
274
- function l(h, S) {
275
- e.value[h] = S;
274
+ function l(h, D) {
275
+ e.value[h] = D;
276
276
  }
277
- function c(h) {
277
+ function u(h) {
278
278
  delete e.value[h];
279
279
  }
280
- function f(h, S = !1) {
281
- const A = Object.entries(B.publicMethods).reduce(
280
+ function f(h, D = !1) {
281
+ const x = Object.entries(B.publicMethods).reduce(
282
282
  (C, [i, F]) => (C[i] = F.handler, C),
283
283
  {}
284
284
  );
285
285
  try {
286
286
  new Function(`const epic = this;${h}`).bind({
287
- ...A,
287
+ ...x,
288
288
  getComponent: s,
289
289
  find: s,
290
290
  defineExpose: I,
291
- publicMethods: A,
291
+ publicMethods: x,
292
292
  pluginManager: B
293
293
  })();
294
294
  } catch (C) {
295
- S && console.error("[epic:自定义函数]异常:", C);
295
+ D && console.error("[epic:自定义函数]异常:", C);
296
296
  }
297
297
  }
298
298
  function I(h) {
299
299
  h != null && (r.value = h);
300
300
  }
301
- function g(h, ...S) {
301
+ function w(h, ...D) {
302
302
  if (!h || h.length === 0) {
303
303
  console.warn("未提供任何动作");
304
304
  return;
305
305
  }
306
- h.forEach((A) => {
307
- const C = A.args ? JSON.parse(A.args) : S;
308
- switch (A.type) {
306
+ h.forEach((x) => {
307
+ const C = x.args ? JSON.parse(x.args) : D;
308
+ switch (x.type) {
309
309
  case "public":
310
- a(A, C);
310
+ a(x, C);
311
311
  break;
312
312
  case "custom":
313
- D(A, C);
313
+ E(x, C);
314
314
  break;
315
315
  case "component":
316
- p(A, C);
316
+ p(x, C);
317
317
  break;
318
318
  default:
319
- console.warn(`未知的动作类型: ${A.type}`);
319
+ console.warn(`未知的动作类型: ${x.type}`);
320
320
  break;
321
321
  }
322
322
  });
323
323
  }
324
- function a(h, S) {
325
- var A;
324
+ function a(h, D) {
325
+ var x;
326
326
  try {
327
- (A = B.publicMethods[h.methodName]) == null || A.handler(...S);
327
+ (x = B.publicMethods[h.methodName]) == null || x.handler(...D);
328
328
  } catch (C) {
329
329
  console.error(`[Epic:公共函数(${h.methodName})]执行异常:`, C);
330
330
  }
331
331
  }
332
- function D(h, S) {
333
- var A, C;
332
+ function E(h, D) {
333
+ var x, C;
334
334
  try {
335
- (C = (A = r.value)[h.methodName]) == null || C.call(A, ...S);
335
+ (C = (x = r.value)[h.methodName]) == null || C.call(x, ...D);
336
336
  } catch (i) {
337
337
  console.error(`[Epic:自定义函数(${h.methodName})]执行异常:`, i);
338
338
  }
339
339
  }
340
- function p(h, S) {
341
- const A = h.componentId != null && s(h.componentId);
342
- if (!A) {
340
+ function p(h, D) {
341
+ const x = h.componentId != null && s(h.componentId);
342
+ if (!x) {
343
343
  console.warn(`[Epic:组件${h.componentId}]未找到`);
344
344
  return;
345
345
  }
346
346
  try {
347
- A[h.methodName](...S);
347
+ x[h.methodName](...D);
348
348
  } catch (C) {
349
349
  console.error(`[Epic:组件${h.componentId}函数(${h.methodName})]执行异常:`, C);
350
350
  }
@@ -352,23 +352,23 @@ function be() {
352
352
  function v(h = !0) {
353
353
  o.value = h;
354
354
  }
355
- function u(h) {
356
- const S = se(h, () => !0);
357
- t.value = S.map((A) => A.id);
355
+ function d(h) {
356
+ const D = se(h, () => !0);
357
+ t.value = D.map((x) => x.id);
358
358
  }
359
- function O(h, S = "default") {
360
- if (n[S]) {
361
- const A = n[S];
362
- G(h, A);
359
+ function O(h, D = "default") {
360
+ if (n[D]) {
361
+ const x = n[D];
362
+ G(h, x);
363
363
  }
364
- n[S] = h;
364
+ n[D] = h;
365
365
  }
366
- function M(h, S = "default") {
367
- if (n[S]) {
368
- G(n[S], h, !1);
366
+ function M(h, D = "default") {
367
+ if (n[D]) {
368
+ G(n[D], h, !1);
369
369
  return;
370
370
  }
371
- n[S] = h;
371
+ n[D] = h;
372
372
  }
373
373
  return {
374
374
  componentInstances: e,
@@ -382,19 +382,19 @@ function be() {
382
382
  // 简化查询函数, 推荐使用
383
383
  find: s,
384
384
  addComponentInstance: l,
385
- removeComponentInstance: c,
385
+ removeComponentInstance: u,
386
386
  setMethods: f,
387
- doActions: g,
387
+ doActions: w,
388
388
  setDesignMode: v,
389
- setDefaultComponentIds: u
389
+ setDefaultComponentIds: d
390
390
  };
391
391
  }
392
- function He() {
393
- const e = _([]), r = _([]), o = _(null);
392
+ function qe() {
393
+ const e = P([]), r = P([]), o = P(null);
394
394
  let t = 0;
395
395
  function n(f, I = "插入组件") {
396
- const g = Date.now();
397
- t + 150 > g || (t = g, o.value != null && (e.value.push(o.value), r.value.splice(0, r.value.length)), o.value = {
396
+ const w = Date.now();
397
+ t + 150 > w || (t = w, o.value != null && (e.value.push(o.value), r.value.splice(0, r.value.length)), o.value = {
398
398
  type: I,
399
399
  componentSchema: JSON.stringify(f)
400
400
  }, e.value.length > 60 && e.value.unshift());
@@ -411,7 +411,7 @@ function He() {
411
411
  const f = r.value.pop();
412
412
  return o.value != null && e.value.push(o.value), o.value = f, JSON.parse(f.componentSchema);
413
413
  }
414
- function c() {
414
+ function u() {
415
415
  e.value = [], r.value = [], o.value = null;
416
416
  }
417
417
  return {
@@ -421,10 +421,10 @@ function He() {
421
421
  push: n,
422
422
  undo: s,
423
423
  redo: l,
424
- reset: c
424
+ reset: u
425
425
  };
426
426
  }
427
- const Ke = /* @__PURE__ */ ee({
427
+ const Ze = /* @__PURE__ */ ee({
428
428
  __name: "dynamicFormItem",
429
429
  props: {
430
430
  hasFormItem: { type: Boolean },
@@ -432,22 +432,22 @@ const Ke = /* @__PURE__ */ ee({
432
432
  },
433
433
  emits: ["updateFormItemRef"],
434
434
  setup(e, { emit: r }) {
435
- const o = B.getComponent("form-item"), t = e, n = r, s = _(), l = () => {
435
+ const o = B.getComponent("form-item"), t = e, n = r, s = P(), l = () => {
436
436
  n("updateFormItemRef", s.value);
437
437
  };
438
- return (c, f) => t.hasFormItem ? (N(), K(R(o), pe({
438
+ return (u, f) => t.hasFormItem ? (k(), K(R(o), pe({
439
439
  key: 0,
440
440
  ref_key: "formItemRef",
441
441
  ref: s,
442
442
  onVnodeMounted: l
443
443
  }, t.formItemProps), {
444
444
  default: $(() => [
445
- T(c.$slots, "default")
445
+ T(u.$slots, "default")
446
446
  ]),
447
447
  _: 3
448
- }, 16, ["onVnodeMounted"])) : T(c.$slots, "default", { key: 1 });
448
+ }, 16, ["onVnodeMounted"])) : T(u.$slots, "default", { key: 1 });
449
449
  }
450
- }), qe = /* @__PURE__ */ ee({
450
+ }), Ge = /* @__PURE__ */ ee({
451
451
  name: "ENode",
452
452
  __name: "node",
453
453
  props: {
@@ -462,12 +462,14 @@ const Ke = /* @__PURE__ */ ee({
462
462
  },
463
463
  emits: ["update:modelValue", "change", "update:dynamicId"],
464
464
  setup(e, { emit: r }) {
465
- const { proxy: o } = ae(), t = e, n = _(null);
465
+ const { proxy: o } = ae(), t = e, n = P(null);
466
466
  let s = Q("formData", j({}));
467
- const l = Q("slots", {}), c = Q("pageManager", {}), f = Q("disabled", { value: !1 }), I = Q("ruleFieldPrefix", null), g = Q("resetFormData", !1);
468
- let a = j(J(t.componentSchema));
467
+ const l = Q("slots", {}), u = Q("pageManager", {}), f = Q("disabled", { value: !1 });
468
+ console.log("%c [ disabled ]-101", "font-size:13px; background:pink; color:#bf2c9f;", f.value);
469
+ const I = Q("ruleFieldPrefix", null), w = Q("resetFormData", !1);
470
+ let a = j(z(t.componentSchema));
469
471
  v();
470
- async function D(m) {
472
+ async function E(m) {
471
473
  if (["cascader", "checkbox", "select", "radio"].includes(m.type) && m.componentProps.dynamicId && t.sourceDateUrl) {
472
474
  const y = (await we({
473
475
  // || "http://192.168.28.205:3000/dev-api/data-source
@@ -477,7 +479,7 @@ const Ke = /* @__PURE__ */ ee({
477
479
  id: m.componentProps.dynamicId
478
480
  }
479
481
  })).data.data;
480
- let P = await we({
482
+ let _ = await we({
481
483
  url: y.url,
482
484
  method: y.method,
483
485
  data: JSON.parse(y.body),
@@ -485,108 +487,108 @@ const Ke = /* @__PURE__ */ ee({
485
487
  headers: JSON.parse(y.headers)
486
488
  });
487
489
  if (y && (y != null && y.dataPath)) {
488
- const xe = y.dataPath.split(".").reduce((Ce, _e) => Ce[_e], P.data);
489
- m.componentProps.options = p(xe, y.dataKey, y.dataValue);
490
+ const be = y.dataPath.split(".").reduce((Ce, _e) => Ce[_e], _.data);
491
+ m.componentProps.options = p(be, y.dataKey, y.dataValue);
490
492
  } else
491
- m.componentProps.options = p(P.data, y.dataKey, y.dataValue);
493
+ m.componentProps.options = p(_.data, y.dataKey, y.dataValue);
492
494
  return m;
493
495
  }
494
496
  return m;
495
497
  }
496
- function p(m, x, V) {
498
+ function p(m, b, V) {
497
499
  return m && Object.prototype.toString.call(m) === "[object Array]" ? m.map((y) => y.children && y.children.length ? {
498
- label: y[x],
500
+ label: y[b],
499
501
  value: y[V] + "",
500
- children: p(y.children, x, V)
502
+ children: p(y.children, b, V)
501
503
  } : {
502
- label: y[x],
504
+ label: y[b],
503
505
  value: y[V] + ""
504
506
  }) : [];
505
507
  }
506
- k(
508
+ N(
507
509
  () => t.componentSchema,
508
510
  (m) => {
509
- Ee(a, m, ["children"]) || (G(a, J(m)), v());
511
+ Ee(a, m, ["children"]) || (G(a, z(m)), v());
510
512
  },
511
513
  {
512
514
  deep: !0
513
515
  }
514
516
  );
515
517
  function v() {
516
- c.isDesignMode.value && typeof a.field == "string" && (a.field += "-design-mode");
518
+ u.isDesignMode.value && typeof a.field == "string" && (a.field += "-design-mode");
517
519
  }
518
- (t.resetFormData || g) && (s = {});
519
- const u = r, O = _(), M = _(), h = (m) => {
520
+ (t.resetFormData || w) && (s = {});
521
+ const d = r, O = P(), M = P(), h = (m) => {
520
522
  M.value = m;
521
- }, S = Pe();
522
- Object.keys(S).length && L("nodeAttrs", S);
523
- const A = Oe(null), C = z(() => {
524
- var m, x;
525
- return (m = a.componentProps) != null && m.hidden ? !1 : typeof a.show == "boolean" ? a.show : ((x = a.show) == null ? void 0 : x.call(a, { values: s })) ?? !0;
526
- }), i = z(() => {
523
+ }, D = Pe();
524
+ Object.keys(D).length && L("nodeAttrs", D);
525
+ const x = Oe(null), C = J(() => {
526
+ var m, b;
527
+ return (m = a.componentProps) != null && m.hidden ? !1 : typeof a.show == "boolean" ? a.show : ((b = a.show) == null ? void 0 : b.call(a, { values: s })) ?? !0;
528
+ }), i = J(() => {
527
529
  var y;
528
- const m = C.value && ((y = a.rules) == null ? void 0 : y.map((P) => ({
529
- ...P,
530
- validator: P.validator && c.funcs.value[P.validator]
530
+ const m = C.value && ((y = a.rules) == null ? void 0 : y.map((_) => ({
531
+ ..._,
532
+ validator: _.validator && u.funcs.value[_.validator]
531
533
  // 自定义校验函数
532
534
  })));
533
- let x = a.field;
534
- t.ruleField ? x = t.ruleField : I && a.field && (x = J(I), x.push(a.field));
535
+ let b = a.field;
536
+ t.ruleField ? b = t.ruleField : I && a.field && (b = z(I), b.push(a.field));
535
537
  const V = {
536
538
  ...a,
537
539
  rules: m,
538
540
  rule: m,
539
- field: x
541
+ field: b
540
542
  };
541
543
  return V.children && delete V.children, V;
542
- }), F = z(() => {
544
+ }), F = J(() => {
543
545
  var V, y;
544
- const m = ((V = b.value) == null ? void 0 : V.bindModel) ?? "modelValue", x = {};
545
- return a.on && Object.keys(a.on).forEach((P) => {
546
- x[`on${Le(P)}`] = (...ye) => c.doActions(a.on[P], ...ye);
546
+ const m = ((V = A.value) == null ? void 0 : V.bindModel) ?? "modelValue", b = {};
547
+ return a.on && Object.keys(a.on).forEach((_) => {
548
+ b[`on${Je(_)}`] = (...ge) => u.doActions(a.on[_], ...ge);
547
549
  }), {
548
550
  ...t,
549
551
  ...a.componentProps,
550
552
  disabled: (f == null ? void 0 : f.value) || ((y = a.componentProps) == null ? void 0 : y.disabled),
551
553
  bindModel: m,
552
- ...x
554
+ ...b
553
555
  };
554
- }), b = z(() => B.getComponentConfingByType(a.type) ?? null);
556
+ }), A = J(() => B.getComponentConfingByType(a.type) ?? null);
555
557
  le(() => {
556
558
  n.value = t.modelValue ?? s[a.field ?? ""];
557
- }), k(
559
+ }), N(
558
560
  () => n.value,
559
561
  () => {
560
- n.value !== (t.modelValue ?? s[a.field ?? ""]) && w(n.value);
562
+ n.value !== (t.modelValue ?? s[a.field ?? ""]) && S(n.value);
561
563
  }
562
- ), k(
564
+ ), N(
563
565
  () => O.value,
564
566
  () => {
565
- d();
567
+ c();
566
568
  },
567
569
  { immediate: !0 }
568
570
  );
569
- function d() {
570
- var x;
571
+ function c() {
572
+ var b;
571
573
  const m = O.value || o;
572
- a.id && m && (a.input && (m.setValue = w, m.getValue = () => s[a.field] || t.modelValue), m.setAttr = (V, y) => (a.componentProps || (a.componentProps = {}), a.componentProps[V] = y), m.getAttr = (V) => a.componentProps[V], c.addComponentInstance(a.id, m), (x = b.value) != null && x.defaultSchema.input && a.noFormItem !== !0 && M.value && c.addComponentInstance(a.id + "formItem", M.value));
574
+ a.id && m && (a.input && (m.setValue = S, m.getValue = () => s[a.field] || t.modelValue), m.setAttr = (V, y) => (a.componentProps || (a.componentProps = {}), a.componentProps[V] = y), m.getAttr = (V) => a.componentProps[V], u.addComponentInstance(a.id, m), (b = A.value) != null && b.defaultSchema.input && a.noFormItem !== !0 && M.value && u.addComponentInstance(a.id + "formItem", M.value));
573
575
  }
574
- function E() {
576
+ function g() {
575
577
  var m;
576
- a.id && (c.removeComponentInstance(a.id), (m = b.value) != null && m.defaultSchema.input && a.noFormItem !== !0 && c.removeComponentInstance(a.id + "formItem"));
578
+ a.id && (u.removeComponentInstance(a.id), (m = A.value) != null && m.defaultSchema.input && a.noFormItem !== !0 && u.removeComponentInstance(a.id + "formItem"));
577
579
  }
578
580
  async function W() {
579
- var x, V, y;
580
- if (a = await D(a), typeof ((x = a.componentProps) == null ? void 0 : x.defaultValue) < "u") {
581
- const P = c.isDesignMode.value ? (V = a.componentProps) == null ? void 0 : V.defaultValue : s[a.field] ?? ((y = a.componentProps) == null ? void 0 : y.defaultValue);
582
- w(J(P));
581
+ var b, V, y;
582
+ if (a = await E(a), typeof ((b = a.componentProps) == null ? void 0 : b.defaultValue) < "u") {
583
+ const _ = u.isDesignMode.value ? (V = a.componentProps) == null ? void 0 : V.defaultValue : s[a.field] ?? ((y = a.componentProps) == null ? void 0 : y.defaultValue);
584
+ S(z(_));
583
585
  }
584
586
  if (a.type === "slot") {
585
- const P = a.slotName;
586
- if (!P) return;
587
- A.value = ee({
587
+ const _ = a.slotName;
588
+ if (!_) return;
589
+ x.value = ee({
588
590
  setup() {
589
- return () => T(l, P, {
591
+ return () => T(l, _, {
590
592
  componentSchema: a,
591
593
  model: s
592
594
  });
@@ -600,22 +602,22 @@ const Ke = /* @__PURE__ */ ee({
600
602
  return;
601
603
  }
602
604
  if (typeof m == "function") {
603
- const P = await m();
604
- A.value = P.default ?? P;
605
+ const _ = await m();
606
+ x.value = _.default ?? _;
605
607
  } else
606
- A.value = m;
608
+ x.value = m;
607
609
  }
608
- function w(m) {
609
- u("update:modelValue", m), u("change", m), a.field && (s[a.field] = m), re.emit("updateformData" + t.id, s);
610
+ function S(m) {
611
+ d("update:modelValue", m), d("change", m), a.field && (s[a.field] = m), re.emit("updateformData" + t.id, s);
610
612
  }
611
613
  function U(m) {
612
- u("update:dynamicId", m);
614
+ d("update:dynamicId", m);
613
615
  }
614
616
  let q = null;
615
- return k(
617
+ return N(
616
618
  () => a,
617
619
  async (m) => {
618
- const x = JSON.stringify({
620
+ const b = JSON.stringify({
619
621
  ...m,
620
622
  children: void 0,
621
623
  componentProps: {
@@ -623,39 +625,40 @@ const Ke = /* @__PURE__ */ ee({
623
625
  options: null
624
626
  }
625
627
  });
626
- if (x === q)
628
+ if (b === q)
627
629
  return !1;
628
- q = x, W();
630
+ q = b, W();
629
631
  },
630
632
  {
631
633
  immediate: !0,
632
634
  deep: !0
633
635
  }
634
- ), Se(E), (m, x) => {
636
+ ), Se(g), (m, b) => {
635
637
  var y;
636
638
  const V = Ve("ENode");
637
- return A.value && C.value ? (N(), K(Ke, {
639
+ return x.value && C.value ? (k(), K(Ze, {
638
640
  key: 0,
639
- hasFormItem: R(a).noFormItem !== !0 && ((y = b.value) == null ? void 0 : y.defaultSchema.input),
641
+ hasFormItem: R(a).noFormItem !== !0 && ((y = A.value) == null ? void 0 : y.defaultSchema.input),
640
642
  formItemProps: i.value,
641
643
  onUpdateFormItemRef: h
642
644
  }, {
643
645
  default: $(() => [
644
- (N(), K(Fe(A.value), pe({
646
+ (k(), K(Fe(x.value), pe({
645
647
  ref_key: "componentInstance",
646
648
  ref: O,
647
- onVnodeMounted: d,
649
+ onVnodeMounted: c,
648
650
  model: R(s)
649
651
  }, { ...F.value }, {
650
652
  [F.value.bindModel]: n.value,
651
- ["onUpdate:" + F.value.bindModel]: x[0] || (x[0] = (P) => n.value = P),
652
- [`onUpdate:${F.value.bindModel}` || ""]: w,
653
+ ["onUpdate:" + F.value.bindModel]: b[0] || (b[0] = (_) => n.value = _),
654
+ [`onUpdate:${F.value.bindModel}` || ""]: S,
653
655
  "onUpdate:dynamicId": U
654
656
  }), {
655
- node: $((P) => [
657
+ node: $((_) => [
658
+ Me(Re(_) + " ", 1),
656
659
  H(V, pe({
657
660
  id: t.id
658
- }, P, {
661
+ }, _, {
659
662
  sourceDateUrl: t.sourceDateUrl
660
663
  }), null, 16, ["id", "sourceDateUrl"])
661
664
  ]),
@@ -670,54 +673,54 @@ const Ke = /* @__PURE__ */ ee({
670
673
  };
671
674
  }
672
675
  });
673
- function Ze() {
674
- const e = _(!1), r = be(), o = _({});
676
+ function Qe() {
677
+ const e = P(!1), r = xe(), o = P({});
675
678
  function t() {
676
679
  return new Promise((p) => {
677
680
  if (e.value)
678
681
  p();
679
682
  else {
680
- const v = k(e, () => {
683
+ const v = N(e, () => {
681
684
  v(), p();
682
685
  });
683
686
  }
684
687
  });
685
688
  }
686
689
  async function n(p = "default") {
687
- var u;
690
+ var d;
688
691
  await t();
689
- const v = (u = o.value) == null ? void 0 : u[p];
692
+ const v = (d = o.value) == null ? void 0 : d[p];
690
693
  if (!v) throw new Error(`表单 [name=${p}] 不存在`);
691
694
  return v;
692
695
  }
693
696
  async function s(p, v) {
694
- const u = await n(p);
695
- return J(await v(u));
697
+ const d = await n(p);
698
+ return z(await v(d));
696
699
  }
697
700
  async function l(p = "default") {
698
701
  return await s(p, (v) => v.getData());
699
702
  }
700
- function c(p, v = "default", u = void 0) {
703
+ function u(p, v = "default", d = void 0) {
701
704
  var O, M;
702
- if (u && Object.keys(u).length) {
705
+ if (d && Object.keys(d).length) {
703
706
  let h = function(i) {
704
707
  let F = [];
705
- return i.forEach((b) => {
706
- b.children && (F = [...F, ...h(b.children)]), F.push(b);
708
+ return i.forEach((A) => {
709
+ A.children && (F = [...F, ...h(A.children)]), F.push(A);
707
710
  }), F;
708
- }, A = function(i) {
709
- var b;
710
- let F = h((b = u == null ? void 0 : u.schemas[0]) == null ? void 0 : b.children);
711
- return Object.keys(i).forEach((d) => {
712
- var w, U, q, m, x, V, y;
713
- const E = F.find((P) => P.field === d), W = ["datetimerange", "daterange", "monthrange", "dates"];
714
- (E && (E == null ? void 0 : E.type) === "checkbox" || (E == null ? void 0 : E.type) === "select" && ((w = E == null ? void 0 : E.componentProps) != null && w.multiple) || (E == null ? void 0 : E.type) === "cascader" && !((q = (U = E == null ? void 0 : E.componentProps) == null ? void 0 : U.props) != null && q.multiple) || (E == null ? void 0 : E.type) === "date" && W.includes((m = E == null ? void 0 : E.componentProps) == null ? void 0 : m.type)) && typeof i[d] == "string" ? i[d] = (x = i[d]) == null ? void 0 : x.split(",") : (E == null ? void 0 : E.type) === "cascader" && ((y = (V = E == null ? void 0 : E.componentProps) == null ? void 0 : V.props) != null && y.multiple) && typeof i[d] == "string" ? (i[d].indexOf(";") > -1 ? i[d] = i[d].split(";").map((P) => P.split(",")) : i[d] = i[d].split(","), i[d].indexOf(";") > -1 ? i[d] = i[d].split(";").map((P) => P.split(",")) : i[d] = i[d].split(",")) : ((E == null ? void 0 : E.type) === "upload-image" || (E == null ? void 0 : E.type) === "upload-file") && typeof i[d] == "string" && (i[d] = i[d].split(",").map((P) => ({
715
- url: P,
716
- name: P
717
- })));
711
+ }, x = function(i) {
712
+ var A;
713
+ let F = h((A = d == null ? void 0 : d.schemas[0]) == null ? void 0 : A.children);
714
+ return Object.keys(i).forEach((c) => {
715
+ var S, U, q, m, b, V, y;
716
+ const g = F.find((_) => _.field === c), W = ["datetimerange", "daterange", "monthrange", "dates"];
717
+ (g && (g == null ? void 0 : g.type) === "checkbox" || (g == null ? void 0 : g.type) === "select" && ((S = g == null ? void 0 : g.componentProps) != null && S.multiple) || (g == null ? void 0 : g.type) === "cascader" && !((q = (U = g == null ? void 0 : g.componentProps) == null ? void 0 : U.props) != null && q.multiple) || (g == null ? void 0 : g.type) === "date" && W.includes((m = g == null ? void 0 : g.componentProps) == null ? void 0 : m.type)) && typeof i[c] == "string" ? i[c] = (b = i[c]) == null ? void 0 : b.split(",") : (g == null ? void 0 : g.type) === "cascader" && ((y = (V = g == null ? void 0 : g.componentProps) == null ? void 0 : V.props) != null && y.multiple) && typeof i[c] == "string" ? (i[c].indexOf(";") > -1 ? i[c] = i[c].split(";").map((_) => _.split(",")) : i[c] = i[c].split(","), i[c].indexOf(";") > -1 ? i[c] = i[c].split(";").map((_) => _.split(",")) : i[c] = i[c].split(",")) : ((g == null ? void 0 : g.type) === "upload-image" || (g == null ? void 0 : g.type) === "upload-file") && typeof i[c] == "string" ? i[c] = i[c].split(",").map((_) => ({
718
+ url: _,
719
+ name: _
720
+ })) : (g == null ? void 0 : g.type) === "number" || (g == null ? void 0 : g.type) === "slider" ? i[c] = Number(i[c]) : (g == null ? void 0 : g.type) === "switch" && (i[c] = i[c].indexOf("true") > -1);
718
721
  }), i;
719
722
  }(p);
720
- r.setFormData(A, v);
723
+ r.setFormData(x, v);
721
724
  const C = (O = o.value) == null ? void 0 : O[v];
722
725
  C == null || C.clearValidate();
723
726
  } else {
@@ -732,20 +735,20 @@ function Ze() {
732
735
  async function I(p) {
733
736
  await t();
734
737
  const v = {};
735
- for (const u in o.value) {
736
- const O = o.value[u];
737
- O && (v[u] = J(await p(O)));
738
+ for (const d in o.value) {
739
+ const O = o.value[d];
740
+ O && (v[d] = z(await p(O)));
738
741
  }
739
742
  return v;
740
743
  }
741
- async function g() {
744
+ async function w() {
742
745
  return await I((p) => p.getData());
743
746
  }
744
747
  function a(p) {
745
748
  for (const v in p)
746
- c(p[v], v);
749
+ u(p[v], v);
747
750
  }
748
- async function D() {
751
+ async function E() {
749
752
  return await I(async (p) => (await p.validate(), await p.getData()));
750
753
  }
751
754
  return {
@@ -753,18 +756,18 @@ function Ze() {
753
756
  pageManager: r,
754
757
  forms: o,
755
758
  getData: l,
756
- setData: c,
759
+ setData: u,
757
760
  validate: f,
758
- getForms: g,
761
+ getForms: w,
759
762
  setForms: a,
760
- validateAll: D,
763
+ validateAll: E,
761
764
  getFormInstance: n
762
765
  };
763
766
  }
764
- const Ge = {
767
+ const Ye = {
765
768
  key: 0,
766
769
  class: "epic-loading-box"
767
- }, Qe = { class: "epic-builder-main" }, Ye = { class: "epic-loading-box" }, Xe = /* @__PURE__ */ ee({
770
+ }, Xe = { class: "epic-builder-main" }, je = { class: "epic-loading-box" }, et = /* @__PURE__ */ ee({
768
771
  __name: "builder",
769
772
  props: {
770
773
  pageSchema: {},
@@ -775,11 +778,11 @@ const Ge = {
775
778
  },
776
779
  emits: ["change", "ready"],
777
780
  setup(e, { expose: r, emit: o }) {
778
- const t = X(() => import("./index-DgcFxYFp.js")), n = o, { ready: s, pageManager: l, forms: c, getData: f, setData: I, validate: g, getForms: a, setForms: D, validateAll: p, getFormInstance: v } = Ze(), u = e, O = j({
781
+ const t = X(() => import("./index-DgcFxYFp.js")), n = o, { ready: s, pageManager: l, forms: u, getData: f, setData: I, validate: w, getForms: a, setForms: E, validateAll: p, getFormInstance: v } = Qe(), d = e, O = j({
779
782
  schemas: []
780
783
  });
781
- k(
782
- () => u.pageSchema,
784
+ N(
785
+ () => d.pageSchema,
783
786
  (i) => {
784
787
  G(O, i);
785
788
  },
@@ -787,8 +790,8 @@ const Ge = {
787
790
  immediate: !0,
788
791
  deep: !0
789
792
  }
790
- ), k(
791
- () => u.formData,
793
+ ), N(
794
+ () => d.formData,
792
795
  (i) => {
793
796
  if (i) {
794
797
  let F = h(i);
@@ -802,22 +805,22 @@ const Ge = {
802
805
  );
803
806
  function M(i) {
804
807
  let F = [];
805
- return i.forEach((b) => {
806
- b.children && (F = [...F, ...M(b.children)]), F.push(b);
808
+ return i.forEach((A) => {
809
+ A.children && (F = [...F, ...M(A.children)]), F.push(A);
807
810
  }), F;
808
811
  }
809
812
  function h(i) {
810
- let F = M(u.pageSchema.schemas[0].children);
811
- return Object.keys(i).forEach((b) => {
812
- var W, w, U, q, m, x, V;
813
- const d = F.find((y) => y.field === b), E = ["datetimerange", "daterange", "monthrange", "dates"];
814
- (d && (d == null ? void 0 : d.type) === "checkbox" || (d == null ? void 0 : d.type) === "select" && ((W = d == null ? void 0 : d.componentProps) != null && W.multiple) || (d == null ? void 0 : d.type) === "cascader" && !((U = (w = d == null ? void 0 : d.componentProps) == null ? void 0 : w.props) != null && U.multiple) || (d == null ? void 0 : d.type) === "date" && E.includes((q = d == null ? void 0 : d.componentProps) == null ? void 0 : q.type)) && typeof i[b] == "string" ? i[b] = (m = i[b]) == null ? void 0 : m.split(",") : (d == null ? void 0 : d.type) === "cascader" && ((V = (x = d == null ? void 0 : d.componentProps) == null ? void 0 : x.props) != null && V.multiple) && typeof i[b] == "string" ? (i[b].indexOf(";") > -1 ? i[b] = i[b].split(";").map((y) => y.split(",")) : i[b] = i[b].split(","), i[b].indexOf(";") > -1 ? i[b] = i[b].split(";").map((y) => y.split(",")) : i[b] = i[b].split(",")) : ((d == null ? void 0 : d.type) === "upload-image" || (d == null ? void 0 : d.type) === "upload-file") && typeof i[b] == "string" && (i[b] = i[b].split(",").map((y) => ({
813
+ let F = M(d.pageSchema.schemas[0].children);
814
+ return Object.keys(i).forEach((A) => {
815
+ var W, S, U, q, m, b, V;
816
+ const c = F.find((y) => y.field === A), g = ["datetimerange", "daterange", "monthrange", "dates"];
817
+ (c && (c == null ? void 0 : c.type) === "checkbox" || (c == null ? void 0 : c.type) === "select" && ((W = c == null ? void 0 : c.componentProps) != null && W.multiple) || (c == null ? void 0 : c.type) === "cascader" && !((U = (S = c == null ? void 0 : c.componentProps) == null ? void 0 : S.props) != null && U.multiple) || (c == null ? void 0 : c.type) === "date" && g.includes((q = c == null ? void 0 : c.componentProps) == null ? void 0 : q.type)) && typeof i[A] == "string" ? i[A] = (m = i[A]) == null ? void 0 : m.split(",") : (c == null ? void 0 : c.type) === "cascader" && ((V = (b = c == null ? void 0 : c.componentProps) == null ? void 0 : b.props) != null && V.multiple) && typeof i[A] == "string" ? (i[A].indexOf(";") > -1 ? i[A] = i[A].split(";").map((y) => y.split(",")) : i[A] = i[A].split(","), i[A].indexOf(";") > -1 ? i[A] = i[A].split(";").map((y) => y.split(",")) : i[A] = i[A].split(",")) : ((c == null ? void 0 : c.type) === "upload-image" || (c == null ? void 0 : c.type) === "upload-file") && typeof i[A] == "string" ? i[A] = i[A].split(",").map((y) => ({
815
818
  url: y,
816
819
  name: y
817
- })));
820
+ })) : (c == null ? void 0 : c.type) === "number" || (c == null ? void 0 : c.type) === "slider" ? i[A] = Number(i[A]) : (c == null ? void 0 : c.type) === "switch" && (i[A] = i[A].indexOf("true") > -1);
818
821
  }), i;
819
822
  }
820
- k(
823
+ N(
821
824
  () => O.script,
822
825
  (i) => {
823
826
  i && l.setMethods(i, !0);
@@ -825,55 +828,55 @@ const Ge = {
825
828
  {
826
829
  immediate: !0
827
830
  }
828
- ), L("slots", Me()), L("pageManager", l), L("forms", c), L("pageSchema", O), L(
831
+ ), L("slots", $e()), L("pageManager", l), L("forms", u), L("pageSchema", O), L(
829
832
  "disabled",
830
- z(() => u.disabled)
833
+ J(() => d.disabled)
831
834
  );
832
- const S = ae(), A = S == null ? void 0 : S.proxy;
835
+ const D = ae(), x = D == null ? void 0 : D.proxy;
833
836
  function C() {
834
837
  ne(() => {
835
- s.value = !0, n("ready", l), A && l.addComponentInstance("builder", A);
838
+ s.value = !0, n("ready", l), x && l.addComponentInstance("builder", x);
836
839
  });
837
840
  }
838
- return re.on("updateformData" + u.id, (i) => {
841
+ return re.on("updateformData" + d.id, (i) => {
839
842
  n("change", i);
840
843
  }), r({
841
844
  ready: s,
842
845
  pageManager: l,
843
846
  getData: f,
844
847
  setData: I,
845
- validate: g,
848
+ validate: w,
846
849
  getForms: a,
847
- setForms: D,
850
+ setForms: E,
848
851
  validateAll: p,
849
852
  getFormInstance: v
850
- }), (i, F) => R(B).initialized.value ? (N(), K(Ae, {
853
+ }), (i, F) => R(B).initialized.value ? (k(), K(Ae, {
851
854
  key: 1,
852
855
  onResolve: C
853
856
  }, {
854
857
  default: $(() => [
855
- Z("div", Qe, [
856
- (N(!0), me(Re, null, $e(O.schemas, (b, d) => (N(), K(R(qe), {
857
- id: u.id,
858
- key: d,
859
- sourceDateUrl: u.sourceDateUrl,
860
- componentSchema: b
858
+ Z("div", Xe, [
859
+ (k(!0), me(Ne, null, Be(O.schemas, (A, c) => (k(), K(R(Ge), {
860
+ id: d.id,
861
+ key: c,
862
+ sourceDateUrl: d.sourceDateUrl,
863
+ componentSchema: A
861
864
  }, null, 8, ["id", "sourceDateUrl", "componentSchema"]))), 128))
862
865
  ])
863
866
  ]),
864
867
  fallback: $(() => [
865
- Z("div", Ye, [
868
+ Z("div", je, [
866
869
  H(R(t))
867
870
  ])
868
871
  ]),
869
872
  _: 1
870
- })) : (N(), me("div", Ge));
873
+ })) : (k(), me("div", Ye));
871
874
  }
872
875
  });
873
876
  function ve(e) {
874
- return Ne() ? (Ue(e), !0) : !1;
877
+ return Te() ? (Le(e), !0) : !1;
875
878
  }
876
- function je(e) {
879
+ function tt(e) {
877
880
  let r = 0, o, t;
878
881
  const n = () => {
879
882
  r -= 1, t && r <= 0 && (t.stop(), o = void 0, t = void 0);
@@ -883,24 +886,24 @@ function je(e) {
883
886
  function te(e) {
884
887
  return typeof e == "function" ? e() : R(e);
885
888
  }
886
- const et = typeof window < "u" && typeof document < "u";
889
+ const nt = typeof window < "u" && typeof document < "u";
887
890
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
888
- const tt = (e) => typeof e < "u", nt = Object.prototype.toString, ot = (e) => nt.call(e) === "[object Object]", rt = () => {
891
+ const ot = (e) => typeof e < "u", rt = Object.prototype.toString, st = (e) => rt.call(e) === "[object Object]", at = () => {
889
892
  };
890
- function st(e) {
893
+ function lt(e) {
891
894
  return ae();
892
895
  }
893
- function at(e, r = !0, o) {
894
- st() ? he(e, o) : r ? e() : ne(e);
896
+ function it(e, r = !0, o) {
897
+ lt() ? he(e, o) : r ? e() : ne(e);
895
898
  }
896
- function lt(e = !1, r = {}) {
899
+ function ct(e = !1, r = {}) {
897
900
  const {
898
901
  truthyValue: o = !0,
899
902
  falsyValue: t = !1
900
- } = r, n = Be(e), s = _(e);
901
- function l(c) {
903
+ } = r, n = Ue(e), s = P(e);
904
+ function l(u) {
902
905
  if (arguments.length)
903
- return s.value = c, s.value;
906
+ return s.value = u, s.value;
904
907
  {
905
908
  const f = te(o);
906
909
  return s.value = s.value === f ? te(t) : f, s.value;
@@ -908,31 +911,31 @@ function lt(e = !1, r = {}) {
908
911
  }
909
912
  return n ? l : [s, l];
910
913
  }
911
- function Ut(e, r, o) {
912
- const t = k(e, (...n) => (ne(() => t()), r(...n)), o);
914
+ function Lt(e, r, o) {
915
+ const t = N(e, (...n) => (ne(() => t()), r(...n)), o);
913
916
  return t;
914
917
  }
915
- const ce = et ? window : void 0;
918
+ const ce = nt ? window : void 0;
916
919
  function Y(e) {
917
920
  var r;
918
921
  const o = te(e);
919
922
  return (r = o == null ? void 0 : o.$el) != null ? r : o;
920
923
  }
921
- function it(...e) {
924
+ function ut(...e) {
922
925
  let r, o, t, n;
923
926
  if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([o, t, n] = e, r = ce) : [r, o, t, n] = e, !r)
924
- return rt;
927
+ return at;
925
928
  Array.isArray(o) || (o = [o]), Array.isArray(t) || (t = [t]);
926
929
  const s = [], l = () => {
927
- s.forEach((g) => g()), s.length = 0;
928
- }, c = (g, a, D, p) => (g.addEventListener(a, D, p), () => g.removeEventListener(a, D, p)), f = k(
930
+ s.forEach((w) => w()), s.length = 0;
931
+ }, u = (w, a, E, p) => (w.addEventListener(a, E, p), () => w.removeEventListener(a, E, p)), f = N(
929
932
  () => [Y(r), te(n)],
930
- ([g, a]) => {
931
- if (l(), !g)
933
+ ([w, a]) => {
934
+ if (l(), !w)
932
935
  return;
933
- const D = ot(a) ? { ...a } : a;
936
+ const E = st(a) ? { ...a } : a;
934
937
  s.push(
935
- ...o.flatMap((p) => t.map((v) => c(g, p, v, D)))
938
+ ...o.flatMap((p) => t.map((v) => u(w, p, v, E)))
936
939
  );
937
940
  },
938
941
  { immediate: !0, flush: "post" }
@@ -941,7 +944,7 @@ function it(...e) {
941
944
  };
942
945
  return ve(I), I;
943
946
  }
944
- function ct(e) {
947
+ function dt(e) {
945
948
  return typeof e == "function" ? e : typeof e == "string" ? (r) => r.key === e : Array.isArray(e) ? (r) => e.includes(r.key) : () => !0;
946
949
  }
947
950
  function Ie(...e) {
@@ -951,10 +954,10 @@ function Ie(...e) {
951
954
  target: n = ce,
952
955
  eventName: s = "keydown",
953
956
  passive: l = !1,
954
- dedupe: c = !1
955
- } = t, f = ct(r);
956
- return it(n, s, (g) => {
957
- g.repeat && te(c) || f(g) && o(g);
957
+ dedupe: u = !1
958
+ } = t, f = dt(r);
959
+ return ut(n, s, (w) => {
960
+ w.repeat && te(u) || f(w) && o(w);
958
961
  }, l);
959
962
  }
960
963
  function de(e, r, o = {}) {
@@ -963,138 +966,138 @@ function de(e, r, o = {}) {
963
966
  function fe(e, r, o = {}) {
964
967
  return Ie(e, r, { ...o, eventName: "keyup" });
965
968
  }
966
- function ut() {
967
- const e = _(!1), r = ae();
969
+ function ft() {
970
+ const e = P(!1), r = ae();
968
971
  return r && he(() => {
969
972
  e.value = !0;
970
973
  }, r), e;
971
974
  }
972
- function dt(e) {
973
- const r = ut();
974
- return z(() => (r.value, !!e()));
975
+ function pt(e) {
976
+ const r = ft();
977
+ return J(() => (r.value, !!e()));
975
978
  }
976
- function ft(e) {
979
+ function mt(e) {
977
980
  return JSON.parse(JSON.stringify(e));
978
981
  }
979
- function pt(e, r, o = {}) {
982
+ function ht(e, r, o = {}) {
980
983
  const { window: t = ce, ...n } = o;
981
984
  let s;
982
- const l = dt(() => t && "ResizeObserver" in t), c = () => {
985
+ const l = pt(() => t && "ResizeObserver" in t), u = () => {
983
986
  s && (s.disconnect(), s = void 0);
984
- }, f = z(() => {
987
+ }, f = J(() => {
985
988
  const a = te(e);
986
- return Array.isArray(a) ? a.map((D) => Y(D)) : [Y(a)];
987
- }), I = k(
989
+ return Array.isArray(a) ? a.map((E) => Y(E)) : [Y(a)];
990
+ }), I = N(
988
991
  f,
989
992
  (a) => {
990
- if (c(), l.value && t) {
993
+ if (u(), l.value && t) {
991
994
  s = new ResizeObserver(r);
992
- for (const D of a)
993
- D && s.observe(D, n);
995
+ for (const E of a)
996
+ E && s.observe(E, n);
994
997
  }
995
998
  },
996
999
  { immediate: !0, flush: "post" }
997
- ), g = () => {
998
- c(), I();
1000
+ ), w = () => {
1001
+ u(), I();
999
1002
  };
1000
- return ve(g), {
1003
+ return ve(w), {
1001
1004
  isSupported: l,
1002
- stop: g
1005
+ stop: w
1003
1006
  };
1004
1007
  }
1005
- function Tt(e, r = { width: 0, height: 0 }, o = {}) {
1006
- const { window: t = ce, box: n = "content-box" } = o, s = z(() => {
1007
- var a, D;
1008
- return (D = (a = Y(e)) == null ? void 0 : a.namespaceURI) == null ? void 0 : D.includes("svg");
1009
- }), l = _(r.width), c = _(r.height), { stop: f } = pt(
1008
+ function zt(e, r = { width: 0, height: 0 }, o = {}) {
1009
+ const { window: t = ce, box: n = "content-box" } = o, s = J(() => {
1010
+ var a, E;
1011
+ return (E = (a = Y(e)) == null ? void 0 : a.namespaceURI) == null ? void 0 : E.includes("svg");
1012
+ }), l = P(r.width), u = P(r.height), { stop: f } = ht(
1010
1013
  e,
1011
1014
  ([a]) => {
1012
- const D = n === "border-box" ? a.borderBoxSize : n === "content-box" ? a.contentBoxSize : a.devicePixelContentBoxSize;
1015
+ const E = n === "border-box" ? a.borderBoxSize : n === "content-box" ? a.contentBoxSize : a.devicePixelContentBoxSize;
1013
1016
  if (t && s.value) {
1014
1017
  const p = Y(e);
1015
1018
  if (p) {
1016
1019
  const v = p.getBoundingClientRect();
1017
- l.value = v.width, c.value = v.height;
1020
+ l.value = v.width, u.value = v.height;
1018
1021
  }
1019
- } else if (D) {
1020
- const p = Array.isArray(D) ? D : [D];
1021
- l.value = p.reduce((v, { inlineSize: u }) => v + u, 0), c.value = p.reduce((v, { blockSize: u }) => v + u, 0);
1022
+ } else if (E) {
1023
+ const p = Array.isArray(E) ? E : [E];
1024
+ l.value = p.reduce((v, { inlineSize: d }) => v + d, 0), u.value = p.reduce((v, { blockSize: d }) => v + d, 0);
1022
1025
  } else
1023
- l.value = a.contentRect.width, c.value = a.contentRect.height;
1026
+ l.value = a.contentRect.width, u.value = a.contentRect.height;
1024
1027
  },
1025
1028
  o
1026
1029
  );
1027
- at(() => {
1030
+ it(() => {
1028
1031
  const a = Y(e);
1029
- a && (l.value = "offsetWidth" in a ? a.offsetWidth : r.width, c.value = "offsetHeight" in a ? a.offsetHeight : r.height);
1032
+ a && (l.value = "offsetWidth" in a ? a.offsetWidth : r.width, u.value = "offsetHeight" in a ? a.offsetHeight : r.height);
1030
1033
  });
1031
- const I = k(
1034
+ const I = N(
1032
1035
  () => Y(e),
1033
1036
  (a) => {
1034
- l.value = a ? r.width : 0, c.value = a ? r.height : 0;
1037
+ l.value = a ? r.width : 0, u.value = a ? r.height : 0;
1035
1038
  }
1036
1039
  );
1037
- function g() {
1040
+ function w() {
1038
1041
  f(), I();
1039
1042
  }
1040
1043
  return {
1041
1044
  width: l,
1042
- height: c,
1043
- stop: g
1045
+ height: u,
1046
+ stop: w
1044
1047
  };
1045
1048
  }
1046
- function Lt(e, r, o, t = {}) {
1049
+ function Jt(e, r, o, t = {}) {
1047
1050
  var n, s, l;
1048
1051
  const {
1049
- clone: c = !1,
1052
+ clone: u = !1,
1050
1053
  passive: f = !1,
1051
1054
  eventName: I,
1052
- deep: g = !1,
1055
+ deep: w = !1,
1053
1056
  defaultValue: a,
1054
- shouldEmit: D
1057
+ shouldEmit: E
1055
1058
  } = t, p = ae(), v = o || (p == null ? void 0 : p.emit) || ((n = p == null ? void 0 : p.$emit) == null ? void 0 : n.bind(p)) || ((l = (s = p == null ? void 0 : p.proxy) == null ? void 0 : s.$emit) == null ? void 0 : l.bind(p == null ? void 0 : p.proxy));
1056
- let u = I;
1057
- r || (r = "modelValue"), u = u || `update:${r.toString()}`;
1058
- const O = (S) => c ? typeof c == "function" ? c(S) : ft(S) : S, M = () => tt(e[r]) ? O(e[r]) : a, h = (S) => {
1059
- D ? D(S) && v(u, S) : v(u, S);
1059
+ let d = I;
1060
+ r || (r = "modelValue"), d = d || `update:${r.toString()}`;
1061
+ const O = (D) => u ? typeof u == "function" ? u(D) : mt(D) : D, M = () => ot(e[r]) ? O(e[r]) : a, h = (D) => {
1062
+ E ? E(D) && v(d, D) : v(d, D);
1060
1063
  };
1061
1064
  if (f) {
1062
- const S = M(), A = _(S);
1065
+ const D = M(), x = P(D);
1063
1066
  let C = !1;
1064
- return k(
1067
+ return N(
1065
1068
  () => e[r],
1066
1069
  (i) => {
1067
- C || (C = !0, A.value = O(i), ne(() => C = !1));
1070
+ C || (C = !0, x.value = O(i), ne(() => C = !1));
1068
1071
  }
1069
- ), k(
1070
- A,
1072
+ ), N(
1073
+ x,
1071
1074
  (i) => {
1072
- !C && (i !== e[r] || g) && h(i);
1075
+ !C && (i !== e[r] || w) && h(i);
1073
1076
  },
1074
- { deep: g }
1075
- ), A;
1077
+ { deep: w }
1078
+ ), x;
1076
1079
  } else
1077
- return z({
1080
+ return J({
1078
1081
  get() {
1079
1082
  return M();
1080
1083
  },
1081
- set(S) {
1082
- h(S);
1084
+ set(D) {
1085
+ h(D);
1083
1086
  }
1084
1087
  });
1085
1088
  }
1086
- function Jt() {
1087
- const { isDark: e } = ue(), r = lt(e);
1089
+ function Wt() {
1090
+ const { isDark: e } = ue(), r = ct(e);
1088
1091
  return {
1089
1092
  isDark: e,
1090
1093
  toggleDark: r
1091
1094
  };
1092
1095
  }
1093
- function mt() {
1094
- const e = _(!1);
1096
+ function vt() {
1097
+ const e = P(!1);
1095
1098
  return he(() => {
1096
- ht(e), vt(e);
1097
- }), k(
1099
+ gt(e), yt(e);
1100
+ }), N(
1098
1101
  () => e.value,
1099
1102
  () => {
1100
1103
  e.value ? document.documentElement.classList.add("dark") : document.documentElement.classList.remove("dark");
@@ -1103,11 +1106,11 @@ function mt() {
1103
1106
  isDark: e
1104
1107
  };
1105
1108
  }
1106
- function ht(e) {
1109
+ function gt(e) {
1107
1110
  var r = document.documentElement;
1108
1111
  r && (r.classList.contains("dark") ? e.value = !0 : e.value = !1);
1109
1112
  }
1110
- function vt(e) {
1113
+ function yt(e) {
1111
1114
  var r = document.querySelector("html"), o = new MutationObserver(function(t) {
1112
1115
  for (var n of t)
1113
1116
  if (n.type === "attributes" && n.attributeName === "class") {
@@ -1122,8 +1125,8 @@ function vt(e) {
1122
1125
  o.disconnect();
1123
1126
  });
1124
1127
  }
1125
- function yt() {
1126
- const e = _(1), r = _(!1), { isDark: o } = mt(), { pressSpace: t, pressShift: n, pressCtrl: s } = gt();
1128
+ function wt() {
1129
+ const e = P(1), r = P(!1), { isDark: o } = vt(), { pressSpace: t, pressShift: n, pressCtrl: s } = St();
1127
1130
  return {
1128
1131
  canvasScale: e,
1129
1132
  pressSpace: t,
@@ -1133,9 +1136,9 @@ function yt() {
1133
1136
  isDark: o
1134
1137
  };
1135
1138
  }
1136
- const ue = je(yt);
1137
- function gt() {
1138
- const e = _(!1), r = _(!1), o = _(!1);
1139
+ const ue = tt(wt);
1140
+ function St() {
1141
+ const e = P(!1), r = P(!1), o = P(!1);
1139
1142
  return de(" ", () => {
1140
1143
  e.value = !0;
1141
1144
  }), fe(" ", () => {
@@ -1150,7 +1153,7 @@ function gt() {
1150
1153
  o.value = !1;
1151
1154
  }), { pressSpace: e, pressShift: r, pressCtrl: o };
1152
1155
  }
1153
- function zt(e) {
1156
+ function Ht(e) {
1154
1157
  const { pressSpace: r } = ue(), o = new Image(1, 1);
1155
1158
  o.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==";
1156
1159
  let t = 0, n = 0;
@@ -1161,15 +1164,15 @@ function zt(e) {
1161
1164
  function l(f) {
1162
1165
  if (f.preventDefault(), !f.x || !f.y || !r.value)
1163
1166
  return;
1164
- const I = f.x - t, g = f.y - n;
1165
- t = f.x, n = f.y, e.value && (e.value.scrollTop -= g, e.value.scrollLeft -= I);
1167
+ const I = f.x - t, w = f.y - n;
1168
+ t = f.x, n = f.y, e.value && (e.value.scrollTop -= w, e.value.scrollLeft -= I);
1166
1169
  }
1167
- function c() {
1170
+ function u() {
1168
1171
  r.value = !1;
1169
1172
  }
1170
- return { handleElementDragStart: s, handleElementDrag: l, handleElementDragEnd: c };
1173
+ return { handleElementDragStart: s, handleElementDrag: l, handleElementDragEnd: u };
1171
1174
  }
1172
- function Wt(e) {
1175
+ function Kt(e) {
1173
1176
  const { pressCtrl: r, canvasScale: o, disabledZoom: t } = ue();
1174
1177
  function n(s) {
1175
1178
  if (!r.value || t.value)
@@ -1178,14 +1181,14 @@ function Wt(e) {
1178
1181
  let l = 0;
1179
1182
  s.deltaY < 0 ? l = o.value + 0.05 : l = o.value - 0.05, !(l > 150 || l < 0.5) && (o.value = l);
1180
1183
  }
1181
- return k(
1184
+ return N(
1182
1185
  () => o.value,
1183
1186
  (s) => {
1184
1187
  e.value && !t.value && (e.value.style.transform = `scale(${s})`);
1185
1188
  }
1186
1189
  ), { handleZoom: n, canvasScale: o };
1187
1190
  }
1188
- function Ht(e, r = 16.66) {
1191
+ function qt(e, r = 16.66) {
1189
1192
  let o;
1190
1193
  function t() {
1191
1194
  n(), o = window.setInterval(e, r);
@@ -1198,50 +1201,50 @@ function Ht(e, r = 16.66) {
1198
1201
  stopTimedQuery: n
1199
1202
  };
1200
1203
  }
1201
- const wt = { class: "min-w-750px rounded" }, St = { class: "h-full rounded" }, Dt = /* @__PURE__ */ ee({
1204
+ const Dt = { class: "min-w-750px rounded" }, At = { class: "h-full rounded" }, Et = /* @__PURE__ */ ee({
1202
1205
  __name: "index",
1203
1206
  setup(e, { expose: r }) {
1204
- const o = B.getComponent("monacoEditor"), t = B.getComponent("modal"), n = _(null), s = _(!1), l = _(!1), c = _({}), f = Q("pageSchema"), I = _(null), g = _("");
1207
+ const o = B.getComponent("monacoEditor"), t = B.getComponent("modal"), n = P(null), s = P(!1), l = P(!1), u = P({}), f = Q("pageSchema"), I = P(null), w = P("");
1205
1208
  function a() {
1206
1209
  l.value = !1;
1207
1210
  }
1208
- function D() {
1211
+ function E() {
1209
1212
  s.value = !1;
1210
1213
  }
1211
1214
  function p() {
1212
- s.value = !0, g.value = ie();
1215
+ s.value = !0, w.value = ie();
1213
1216
  }
1214
1217
  async function v() {
1215
1218
  try {
1216
- let u = await I.value.validateAll();
1217
- if (!Object.keys(u).length) {
1219
+ let d = await I.value.validateAll();
1220
+ if (!Object.keys(d).length) {
1218
1221
  alert("请添加表单组件后再尝试!");
1219
1222
  return;
1220
1223
  }
1221
- Object.keys(u).length === 1 && (u = u.default), c.value = JSON.stringify(u, null, 2), ne(() => {
1224
+ Object.keys(d).length === 1 && (d = d.default), u.value = JSON.stringify(d, null, 2), ne(() => {
1222
1225
  var O;
1223
- (O = n.value) == null || O.setValue(c.value);
1226
+ (O = n.value) == null || O.setValue(u.value);
1224
1227
  }), l.value = !0;
1225
- } catch (u) {
1226
- console.error(u);
1228
+ } catch (d) {
1229
+ console.error(d);
1227
1230
  }
1228
1231
  }
1229
1232
  return r({
1230
1233
  handleOpen: p
1231
- }), (u, O) => (N(), K(R(t), {
1234
+ }), (d, O) => (k(), K(R(t), {
1232
1235
  modelValue: s.value,
1233
1236
  "onUpdate:modelValue": O[1] || (O[1] = (M) => s.value = M),
1234
1237
  title: "预览",
1235
1238
  class: "w-900px",
1236
1239
  width: "900px",
1237
- onClose: D,
1240
+ onClose: E,
1238
1241
  onOk: v,
1239
1242
  okText: "表单数据"
1240
1243
  }, {
1241
1244
  default: $(() => [
1242
- Z("div", wt, [
1243
- (N(), K(R(Xe), {
1244
- key: g.value,
1245
+ Z("div", Dt, [
1246
+ (k(), K(R(et), {
1247
+ key: w.value,
1245
1248
  ref_key: "kb",
1246
1249
  ref: I,
1247
1250
  "page-schema": R(f)
@@ -1256,14 +1259,14 @@ const wt = { class: "min-w-750px rounded" }, St = { class: "h-full rounded" }, D
1256
1259
  onOk: a
1257
1260
  }, {
1258
1261
  default: $(() => [
1259
- Z("div", St, [
1262
+ Z("div", At, [
1260
1263
  H(R(o), {
1261
1264
  ref_key: "monacoEditorRef",
1262
1265
  ref: n,
1263
1266
  autoToggleTheme: "",
1264
1267
  readOnly: "",
1265
1268
  class: "h-full editor",
1266
- "model-value": c.value
1269
+ "model-value": u.value
1267
1270
  }, null, 8, ["model-value"])
1268
1271
  ])
1269
1272
  ]),
@@ -1274,10 +1277,10 @@ const wt = { class: "min-w-750px rounded" }, St = { class: "h-full rounded" }, D
1274
1277
  _: 1
1275
1278
  }, 8, ["modelValue"]));
1276
1279
  }
1277
- }), At = {
1280
+ }), xt = {
1278
1281
  key: 0,
1279
1282
  class: "epic-loading-box"
1280
- }, Et = { class: "epic-designer-main" }, bt = { class: "epic-header-container" }, It = { class: "epic-loading-box" }, Kt = /* @__PURE__ */ ee({
1283
+ }, It = { class: "epic-designer-main" }, bt = { class: "epic-header-container" }, Ct = { class: "epic-loading-box" }, Zt = /* @__PURE__ */ ee({
1281
1284
  __name: "designer",
1282
1285
  props: {
1283
1286
  disabledZoom: { type: Boolean, default: !1 },
@@ -1300,7 +1303,7 @@ const wt = { class: "min-w-750px rounded" }, St = { class: "h-full rounded" }, D
1300
1303
  "updateSourceData"
1301
1304
  ],
1302
1305
  setup(e, { expose: r, emit: o }) {
1303
- const t = X(() => import("./index-C-XUgjda.js")), n = X(() => import("./index-ASoFJnMl.js")), s = X(() => import("./index-BALf0q8e.js")), l = X(() => import("./index-ooVzYa5L.js")), c = X(() => import("./index-DgcFxYFp.js")), f = be(), I = He(), g = e;
1306
+ const t = X(() => import("./index-C-XUgjda.js")), n = X(() => import("./index-ASoFJnMl.js")), s = X(() => import("./index-laQFS5Nd.js")), l = X(() => import("./index-ooVzYa5L.js")), u = X(() => import("./index-DgcFxYFp.js")), f = xe(), I = qe(), w = e;
1304
1307
  let a = {
1305
1308
  schemas: [
1306
1309
  {
@@ -1348,79 +1351,79 @@ defineExpose({
1348
1351
  })`
1349
1352
  };
1350
1353
  le(() => {
1351
- if (g.defaultSchema) {
1352
- a = g.defaultSchema;
1354
+ if (w.defaultSchema) {
1355
+ a = w.defaultSchema;
1353
1356
  return;
1354
1357
  }
1355
- g.source && B.setSourceData(g.source), g.formMode && (a.schemas = B.formSchemas);
1358
+ w.source && B.setSourceData(w.source), w.formMode && (a.schemas = B.formSchemas);
1356
1359
  }), f.setDesignMode(), f.setDefaultComponentIds(a.schemas);
1357
- const D = o, p = _(null), v = j({
1360
+ const E = o, p = P(null), v = j({
1358
1361
  checkedNode: null,
1359
1362
  hoverNode: null,
1360
1363
  disableHover: !1,
1361
1364
  matched: []
1362
- }), u = j({
1365
+ }), d = j({
1363
1366
  schemas: [],
1364
1367
  script: a.script
1365
1368
  }), { disabledZoom: O } = ue();
1366
1369
  le(() => {
1367
- O.value = g.disabledZoom;
1370
+ O.value = w.disabledZoom;
1368
1371
  }), le(() => {
1369
- const w = u.script;
1370
- w && w !== "" && f.setMethods(w);
1371
- }), L("pageSchema", u), L("revoke", I), L("pageManager", f), L(
1372
+ const S = d.script;
1373
+ S && S !== "" && f.setMethods(S);
1374
+ }), L("pageSchema", d), L("revoke", I), L("pageManager", f), L(
1372
1375
  "designerProps",
1373
- z(() => g)
1376
+ J(() => w)
1374
1377
  ), L("designer", {
1375
1378
  setCheckedNode: h,
1376
- setHoverNode: S,
1379
+ setHoverNode: D,
1377
1380
  setDisableHover: C,
1378
- handleToggleDeviceMode: E,
1379
- reset: b,
1381
+ handleToggleDeviceMode: g,
1382
+ reset: A,
1380
1383
  state: v
1381
- }), re.on("saveSourceData", (w) => {
1382
- D("saveSourceData", w);
1383
- }), re.on("deleteSourceData", (w) => {
1384
- D("deleteSourceData", w);
1385
- }), re.on("updateSourceData", (w) => {
1386
- D("updateSourceData", w);
1384
+ }), re.on("saveSourceData", (S) => {
1385
+ E("saveSourceData", S);
1386
+ }), re.on("deleteSourceData", (S) => {
1387
+ E("deleteSourceData", S);
1388
+ }), re.on("updateSourceData", (S) => {
1389
+ E("updateSourceData", S);
1387
1390
  });
1388
1391
  function M() {
1389
- u.schemas = J(a.schemas), h(u.schemas[0]), I.push(u.schemas, "初始化撤销功能");
1392
+ d.schemas = z(a.schemas), h(d.schemas[0]), I.push(d.schemas, "初始化撤销功能");
1390
1393
  }
1391
- async function h(w = u.schemas[0]) {
1392
- v.checkedNode = w, v.matched = Je(u.schemas, w.id);
1394
+ async function h(S = d.schemas[0]) {
1395
+ v.checkedNode = S, v.matched = We(d.schemas, S.id);
1393
1396
  }
1394
- async function S(w = null) {
1397
+ async function D(S = null) {
1395
1398
  var U;
1396
- if (!w || v.disableHover)
1399
+ if (!S || v.disableHover)
1397
1400
  return v.hoverNode = null, !1;
1398
- if ((w == null ? void 0 : w.id) === ((U = v.hoverNode) == null ? void 0 : U.id))
1401
+ if ((S == null ? void 0 : S.id) === ((U = v.hoverNode) == null ? void 0 : U.id))
1399
1402
  return !1;
1400
- v.hoverNode = w;
1403
+ v.hoverNode = S;
1401
1404
  }
1402
- function A() {
1405
+ function x() {
1403
1406
  ne(() => {
1404
- D("ready", { pageManager: f });
1407
+ E("ready", { pageManager: f });
1405
1408
  });
1406
1409
  }
1407
- async function C(w = !1) {
1408
- v.disableHover = w;
1410
+ async function C(S = !1) {
1411
+ v.disableHover = S;
1409
1412
  }
1410
- function i(w) {
1411
- G(u, J(w));
1413
+ function i(S) {
1414
+ G(d, z(S));
1412
1415
  }
1413
1416
  function F() {
1414
- return ge(u);
1417
+ return ye(d);
1415
1418
  }
1416
- function b() {
1417
- Ee(u.schemas, a.schemas) && u.script === a.script || (G(u.schemas, a.schemas), u.script = a.script, h(u.schemas[0]), I.push(u.schemas, "重置操作"), D("reset", u));
1419
+ function A() {
1420
+ Ee(d.schemas, a.schemas) && d.script === a.script || (G(d.schemas, a.schemas), d.script = a.script, h(d.schemas[0]), I.push(d.schemas, "重置操作"), E("reset", d));
1418
1421
  }
1419
- function d() {
1420
- D("save", ge(u));
1422
+ function c() {
1423
+ E("save", ye(d));
1421
1424
  }
1422
- function E(w) {
1423
- D("toggleDeviceMode", w);
1425
+ function g(S) {
1426
+ E("toggleDeviceMode", S);
1424
1427
  }
1425
1428
  function W() {
1426
1429
  p.value.handleOpen();
@@ -1429,66 +1432,66 @@ defineExpose({
1429
1432
  revoke: I,
1430
1433
  setData: i,
1431
1434
  getData: F,
1432
- reset: b,
1435
+ reset: A,
1433
1436
  preview: W
1434
- }), (w, U) => R(B).initialized.value ? (N(), K(Ae, {
1437
+ }), (S, U) => R(B).initialized.value ? (k(), K(Ae, {
1435
1438
  key: 1,
1436
- onResolve: A
1439
+ onResolve: x
1437
1440
  }, {
1438
1441
  default: $(() => [
1439
- Z("div", Et, [
1442
+ Z("div", It, [
1440
1443
  Z("div", bt, [
1441
- T(w.$slots, "header", {}, () => [
1442
- g.hiddenHeader ? De("", !0) : (N(), K(R(t), {
1444
+ T(S.$slots, "header", {}, () => [
1445
+ w.hiddenHeader ? De("", !0) : (k(), K(R(t), {
1443
1446
  key: 0,
1444
1447
  onPreview: W,
1445
- onSave: d
1448
+ onSave: c
1446
1449
  }, {
1447
1450
  header: $(() => [
1448
- T(w.$slots, "header-prefix")
1451
+ T(S.$slots, "header-prefix")
1449
1452
  ]),
1450
1453
  prefix: $(() => [
1451
- T(w.$slots, "header-prefix")
1454
+ T(S.$slots, "header-prefix")
1452
1455
  ]),
1453
1456
  title: $(() => [
1454
- T(w.$slots, "header-title")
1457
+ T(S.$slots, "header-title")
1455
1458
  ]),
1456
1459
  "right-prefix": $(() => [
1457
- T(w.$slots, "header-right-prefix")
1460
+ T(S.$slots, "header-right-prefix")
1458
1461
  ]),
1459
1462
  "right-action": $(() => [
1460
- T(w.$slots, "header-right-action")
1463
+ T(S.$slots, "header-right-action")
1461
1464
  ]),
1462
1465
  "right-suffix": $(() => [
1463
- T(w.$slots, "header-right-suffix")
1466
+ T(S.$slots, "header-right-suffix")
1464
1467
  ]),
1465
1468
  _: 3
1466
1469
  }))
1467
1470
  ])
1468
1471
  ]),
1469
1472
  Z("div", {
1470
- class: Te(["epic-split-view-container", { "hidden-header": w.hiddenHeader }])
1473
+ class: ze(["epic-split-view-container", { "hidden-header": S.hiddenHeader }])
1471
1474
  }, [
1472
1475
  H(R(n)),
1473
1476
  H(R(s)),
1474
1477
  H(R(l))
1475
1478
  ], 2),
1476
- H(Dt, {
1479
+ H(Et, {
1477
1480
  ref_key: "previewRef",
1478
1481
  ref: p
1479
1482
  }, null, 512)
1480
1483
  ])
1481
1484
  ]),
1482
1485
  fallback: $(() => [
1483
- Z("div", It, [
1484
- H(R(c))
1486
+ Z("div", Ct, [
1487
+ H(R(u))
1485
1488
  ])
1486
1489
  ]),
1487
1490
  _: 3
1488
- })) : (N(), me("div", At));
1491
+ })) : (k(), me("div", xt));
1489
1492
  }
1490
- }), xt = {
1491
- component: async () => await import("./index-DFP-9KaA.js"),
1493
+ }), _t = {
1494
+ component: async () => await import("./index-C95DVYrN.js"),
1492
1495
  defaultSchema: {
1493
1496
  label: "代码编辑器",
1494
1497
  type: "monacoEditor",
@@ -1516,7 +1519,7 @@ defineExpose({
1516
1519
  ]
1517
1520
  },
1518
1521
  bindModel: "model-value"
1519
- }, Ct = {
1522
+ }, Pt = {
1520
1523
  component: async () => await import("./index-DiDIFoTk.js"),
1521
1524
  defaultSchema: {
1522
1525
  label: "页面",
@@ -1537,12 +1540,12 @@ defineExpose({
1537
1540
  ]
1538
1541
  }
1539
1542
  };
1540
- function _t(e) {
1541
- e.component("EInputSize", async () => await import("./index-C4sdhgF2.js")), e.component("EColEditor", async () => await import("./index-CDzXkVHK.js")), e.component("EActionEditor", async () => await import("./index-DWKirflC.js")), e.component("ERuleEditor", async () => await import("./index-C7VY8nRX.js")), e.component("EOptionsEditor", async () => await import("./index-wxDrmXkw.js")), e.component("ENode", async () => await import("./index-By5d6rRB.js")), e.component("EDataSource", async () => await import("./index-CCTMCqiz.js")), e.registerActivitybar({
1543
+ function Ot(e) {
1544
+ e.component("EInputSize", async () => await import("./index-C4sdhgF2.js")), e.component("EColEditor", async () => await import("./index-Da8OPaOM.js")), e.component("EActionEditor", async () => await import("./index-l1DO3QH_.js")), e.component("ERuleEditor", async () => await import("./index-DxkPriDk.js")), e.component("EOptionsEditor", async () => await import("./index-CE7JKdc3.js")), e.component("ENode", async () => await import("./index-Cpm-oLdy.js")), e.component("EDataSource", async () => await import("./index-CCTMCqiz.js")), e.registerActivitybar({
1542
1545
  id: "component_view",
1543
1546
  title: "组件",
1544
1547
  icon: "icon--epic--extension-outline",
1545
- component: async () => await import("./index-DBRz4gi5.js")
1548
+ component: async () => await import("./index-5datIIzJ.js")
1546
1549
  }), e.registerActivitybar({
1547
1550
  id: "outline_view",
1548
1551
  title: "大纲",
@@ -1551,51 +1554,51 @@ function _t(e) {
1551
1554
  }), e.registerRightSidebar({
1552
1555
  id: "attribute_view",
1553
1556
  title: "属性",
1554
- component: async () => await import("./attributeView-CGtxobMF.js")
1557
+ component: async () => await import("./attributeView-PbDEjn8T.js")
1555
1558
  }), e.registerRightSidebar({
1556
1559
  id: "style_view",
1557
1560
  title: "样式",
1558
- component: async () => await import("./styleView-BHaWjsLQ.js")
1559
- }), [xt, Ct].forEach((o) => {
1561
+ component: async () => await import("./styleView-LX_E7EFf.js")
1562
+ }), [_t, Pt].forEach((o) => {
1560
1563
  e.registerComponent(o);
1561
1564
  });
1562
1565
  }
1563
- _t(B);
1566
+ Ot(B);
1564
1567
  export {
1565
- ze as A,
1568
+ He as A,
1566
1569
  se as B,
1567
- We as C,
1570
+ Ke as C,
1568
1571
  oe as D,
1569
- Le as E,
1570
- gt as F,
1571
- mt as G,
1572
- ht as H,
1573
- yt as I,
1574
- qe as _,
1575
- Ht as a,
1576
- pt as b,
1577
- Bt as c,
1572
+ Je as E,
1573
+ St as F,
1574
+ vt as G,
1575
+ gt as H,
1576
+ wt as I,
1577
+ Ge as _,
1578
+ qt as a,
1579
+ ht as b,
1580
+ Ut as c,
1578
1581
  G as d,
1579
- zt as e,
1582
+ Ht as e,
1580
1583
  kt as f,
1581
- Vt as g,
1582
- Tt as h,
1583
- Wt as i,
1584
- Nt as j,
1584
+ Mt as g,
1585
+ zt as h,
1586
+ Kt as i,
1587
+ Tt as j,
1585
1588
  ie as k,
1586
- $t as l,
1587
- J as m,
1588
- Lt as n,
1589
- Ft as o,
1590
- Jt as p,
1591
- Xe as q,
1592
- Kt as r,
1593
- Mt as s,
1594
- be as t,
1589
+ Bt as l,
1590
+ z as m,
1591
+ Jt as n,
1592
+ Rt as o,
1593
+ Wt as p,
1594
+ et as q,
1595
+ Zt as r,
1596
+ $t as s,
1597
+ xe as t,
1595
1598
  ue as u,
1596
- He as v,
1597
- Ut as w,
1599
+ qe as v,
1600
+ Lt as w,
1598
1601
  Ee as x,
1599
- Je as y,
1600
- Rt as z
1602
+ We as y,
1603
+ Nt as z
1601
1604
  };