epic-designer-gold 1.0.19 → 1.0.21

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-CU3Dk0My.cjs → attributeView-B6m9Ugo7.cjs} +1 -1
  2. package/dist/{attributeView-HxhlCLw0.js → attributeView-CKTyCnOV.js} +1 -1
  3. package/dist/col-B1GUMkMK.cjs +1 -0
  4. package/dist/col-D4hvKfJ6.js +31 -0
  5. package/dist/core/extensions/ESourceDataSelect/index.vue.d.ts +23 -0
  6. package/dist/{index-BX7CK_AK.cjs → index-B3YX3dM8.cjs} +1 -1
  7. package/dist/{index-B_mrUGQ2.js → index-BQsbaew2.js} +1 -1
  8. package/dist/{index-wnM1cDL1.cjs → index-BUy9UtUU.cjs} +1 -1
  9. package/dist/{index-RXn2MvOX.cjs → index-BX-xUakg.cjs} +1 -1
  10. package/dist/{index-CyWcwJUU.cjs → index-Bd31VLwK.cjs} +1 -1
  11. package/dist/{index-9vCzllbk.cjs → index-Bt5-ufJn.cjs} +1 -1
  12. package/dist/{index-CpleWjYN.js → index-CG7oVWkZ.js} +1 -1
  13. package/dist/index-CKtym_o1.cjs +1 -0
  14. package/dist/{index-BE1w9DhI.js → index-CiHMFeXK.js} +177 -174
  15. package/dist/{index-CNF2_p-m.cjs → index-DeZxYu-f.cjs} +1 -1
  16. package/dist/{index-CAUVcvJK.js → index-DfbpNxzy.js} +1 -1
  17. package/dist/index-Dg1yARBw.js +35 -0
  18. package/dist/{index-xiA__w61.js → index-HCyeGVWN.js} +1 -1
  19. package/dist/{index-I1yxSuJN.js → index-KH-3G9c2.js} +1 -1
  20. package/dist/index-OuuVQWVQ.js +4 -0
  21. package/dist/{index-Dt5ghoRX.cjs → index-V0ErjLAa.cjs} +1 -1
  22. package/dist/index-qb-xohCc.cjs +10 -0
  23. package/dist/{index-CInzk-Ex.js → index-v0MBVmR0.js} +1 -1
  24. package/dist/index.cjs +1 -1
  25. package/dist/index.js +1 -1
  26. package/dist/selectPage-D4jGyEa2.js +163 -0
  27. package/dist/selectPage-Dy9Qj-zX.cjs +1 -0
  28. package/dist/style.css +1 -1
  29. package/dist/{styleView-BF3bqKOa.js → styleView-Dc1Uvy2W.js} +1 -1
  30. package/dist/{styleView-Bi6JYW5u.cjs → styleView-HRlIalXM.cjs} +1 -1
  31. package/dist/ui/elementPlus/index.cjs +1 -1
  32. package/dist/ui/elementPlus/index.js +216 -100
  33. package/dist/ui/elementPlus/select-page/index.d.ts +3 -0
  34. package/dist/ui/elementPlus/select-page/selectPage.vue.d.ts +78 -0
  35. package/package.json +1 -1
  36. package/dist/col-C4lVVBzC.cjs +0 -1
  37. package/dist/col-DcVPBKEc.js +0 -31
  38. package/dist/index-DsURseKq.js +0 -4
  39. package/dist/index-SCeJAHnE.cjs +0 -10
@@ -1,4 +1,4 @@
1
- import { ref as C, reactive as re, defineComponent as le, openBlock as H, createBlock as Y, unref as R, mergeProps as be, withCtx as T, renderSlot as K, getCurrentInstance as ue, inject as ne, watch as B, useAttrs as Re, provide as Z, shallowRef as Ue, computed as W, watchEffect as he, onUnmounted as $e, resolveComponent as Te, resolveDynamicComponent as Be, createVNode as Q, createCommentVNode as Ne, useSlots as Le, createElementBlock as Ee, Suspense as Fe, createElementVNode as k, Fragment as Je, renderList as ze, nextTick as ce, effectScope as He, isRef as Ke, getCurrentScope as Ze, onScopeDispose as We, onMounted as Ae, normalizeClass as Ge, toRaw as Ie } from "vue";
1
+ import { ref as P, reactive as re, defineComponent as le, openBlock as H, createBlock as Y, unref as R, mergeProps as be, withCtx as T, renderSlot as K, getCurrentInstance as ue, inject as ne, watch as B, useAttrs as Re, provide as Z, shallowRef as Ue, computed as W, watchEffect as he, onUnmounted as $e, resolveComponent as Te, resolveDynamicComponent as Be, createVNode as Q, createCommentVNode as Ne, useSlots as Le, createElementBlock as Ee, Suspense as Fe, createElementVNode as k, Fragment as Je, renderList as ze, nextTick as ce, effectScope as He, isRef as Ke, getCurrentScope as Ze, onScopeDispose as We, onMounted as Ae, normalizeClass as Ge, toRaw as Ie } from "vue";
2
2
  import { p as z, f as Qe, d as ae, a as G, b as Ve, c as Ye, E as j, l as se, g as qe, e as Xe } from "./pluginManager-BCnrHPYv.js";
3
3
  import { a as pe, u as Oe } from "./index-B1s67XDZ.js";
4
4
  import { a as _e } from "./axios-CXDYiOMX.js";
@@ -10,9 +10,9 @@ function Lt(e, n) {
10
10
  }, n);
11
11
  };
12
12
  }
13
- function Ce() {
14
- const e = C({}), n = C({}), s = C(!1), r = C([]), c = re({});
15
- function i(p) {
13
+ function Pe() {
14
+ const e = P({}), n = P({}), s = P(!1), r = P([]), c = re({});
15
+ function a(p) {
16
16
  return e.value[p];
17
17
  }
18
18
  function w(p, D) {
@@ -23,20 +23,20 @@ function Ce() {
23
23
  }
24
24
  function h(p, D = !1) {
25
25
  const I = Object.entries(z.publicMethods).reduce(
26
- (P, [m, U]) => (P[m] = U.handler, P),
26
+ (C, [m, U]) => (C[m] = U.handler, C),
27
27
  {}
28
28
  );
29
29
  try {
30
30
  new Function(`const epic = this;${p}`).bind({
31
31
  ...I,
32
- getComponent: i,
33
- find: i,
32
+ getComponent: a,
33
+ find: a,
34
34
  defineExpose: N,
35
35
  publicMethods: I,
36
36
  pluginManager: z
37
37
  })();
38
- } catch (P) {
39
- D && console.error("[epic:自定义函数]异常:", P);
38
+ } catch (C) {
39
+ D && console.error("[epic:自定义函数]异常:", C);
40
40
  }
41
41
  }
42
42
  function N(p) {
@@ -48,16 +48,16 @@ function Ce() {
48
48
  return;
49
49
  }
50
50
  p.forEach((I) => {
51
- const P = I.args ? JSON.parse(I.args) : D;
51
+ const C = I.args ? JSON.parse(I.args) : D;
52
52
  switch (I.type) {
53
53
  case "public":
54
- t(I, P);
54
+ t(I, C);
55
55
  break;
56
56
  case "custom":
57
- x(I, P);
57
+ x(I, C);
58
58
  break;
59
59
  case "component":
60
- d(I, P);
60
+ d(I, C);
61
61
  break;
62
62
  default:
63
63
  console.warn(`未知的动作类型: ${I.type}`);
@@ -69,28 +69,28 @@ function Ce() {
69
69
  var I;
70
70
  try {
71
71
  (I = z.publicMethods[p.methodName]) == null || I.handler(...D);
72
- } catch (P) {
73
- console.error(`[Epic:公共函数(${p.methodName})]执行异常:`, P);
72
+ } catch (C) {
73
+ console.error(`[Epic:公共函数(${p.methodName})]执行异常:`, C);
74
74
  }
75
75
  }
76
76
  function x(p, D) {
77
- var I, P;
77
+ var I, C;
78
78
  try {
79
- (P = (I = n.value)[p.methodName]) == null || P.call(I, ...D);
79
+ (C = (I = n.value)[p.methodName]) == null || C.call(I, ...D);
80
80
  } catch (m) {
81
81
  console.error(`[Epic:自定义函数(${p.methodName})]执行异常:`, m);
82
82
  }
83
83
  }
84
84
  function d(p, D) {
85
- const I = p.componentId != null && i(p.componentId);
85
+ const I = p.componentId != null && a(p.componentId);
86
86
  if (!I) {
87
87
  console.warn(`[Epic:组件${p.componentId}]未找到`);
88
88
  return;
89
89
  }
90
90
  try {
91
91
  I[p.methodName](...D);
92
- } catch (P) {
93
- console.error(`[Epic:组件${p.componentId}函数(${p.methodName})]执行异常:`, P);
92
+ } catch (C) {
93
+ console.error(`[Epic:组件${p.componentId}函数(${p.methodName})]执行异常:`, C);
94
94
  }
95
95
  }
96
96
  function S(p = !0) {
@@ -122,9 +122,9 @@ function Ce() {
122
122
  forms: c,
123
123
  addFormData: E,
124
124
  setFormData: M,
125
- getComponentInstance: i,
125
+ getComponentInstance: a,
126
126
  // 简化查询函数, 推荐使用
127
- find: i,
127
+ find: a,
128
128
  addComponentInstance: w,
129
129
  removeComponentInstance: g,
130
130
  setMethods: h,
@@ -134,7 +134,7 @@ function Ce() {
134
134
  };
135
135
  }
136
136
  function ke() {
137
- const e = C([]), n = C([]), s = C(null);
137
+ const e = P([]), n = P([]), s = P(null);
138
138
  let r = 0;
139
139
  function c(h, N = "插入组件") {
140
140
  const O = Date.now();
@@ -143,7 +143,7 @@ function ke() {
143
143
  componentSchema: JSON.stringify(h)
144
144
  }, e.value.length > 60 && e.value.unshift());
145
145
  }
146
- function i() {
146
+ function a() {
147
147
  if (e.value.length === 0)
148
148
  return !1;
149
149
  const h = e.value.pop();
@@ -163,7 +163,7 @@ function ke() {
163
163
  undoList: n,
164
164
  currentRecord: s,
165
165
  push: c,
166
- undo: i,
166
+ undo: a,
167
167
  redo: w,
168
168
  reset: g
169
169
  };
@@ -176,13 +176,13 @@ const je = /* @__PURE__ */ le({
176
176
  },
177
177
  emits: ["updateFormItemRef"],
178
178
  setup(e, { emit: n }) {
179
- const s = z.getComponent("form-item"), r = e, c = n, i = C(), w = () => {
180
- c("updateFormItemRef", i.value);
179
+ const s = z.getComponent("form-item"), r = e, c = n, a = P(), w = () => {
180
+ c("updateFormItemRef", a.value);
181
181
  };
182
182
  return (g, h) => r.hasFormItem ? (H(), Y(R(s), be({
183
183
  key: 0,
184
184
  ref_key: "formItemRef",
185
- ref: i,
185
+ ref: a,
186
186
  onVnodeMounted: w
187
187
  }, r.formItemProps), {
188
188
  default: T(() => [
@@ -206,8 +206,8 @@ const je = /* @__PURE__ */ le({
206
206
  },
207
207
  emits: ["update:modelValue", "change", "update:dynamicId"],
208
208
  setup(e, { emit: n }) {
209
- const { proxy: s } = ue(), r = e, c = C(null);
210
- let i = ne("formData", re({}));
209
+ const { proxy: s } = ue(), r = e, c = P(null);
210
+ let a = ne("formData", re({}));
211
211
  const w = ne("slots", {}), g = ne("pageManager", {}), h = ne("disabled", { value: !1 }), N = ne("ruleFieldPrefix", null), O = ne("resetFormData", !1);
212
212
  let t = re(G(r.componentSchema));
213
213
  S();
@@ -273,17 +273,17 @@ const je = /* @__PURE__ */ le({
273
273
  function S() {
274
274
  g.isDesignMode.value && typeof t.field == "string" && (t.field += "-design-mode");
275
275
  }
276
- (r.resetFormData || O) && (i = {});
277
- const y = n, E = C(), M = C(), p = (o) => {
276
+ (r.resetFormData || O) && (a = {});
277
+ const y = n, E = P(), M = P(), p = (o) => {
278
278
  M.value = o;
279
279
  }, D = Re();
280
280
  Object.keys(D).length && Z("nodeAttrs", D);
281
- const I = Ue(null), P = W(() => {
281
+ const I = Ue(null), C = W(() => {
282
282
  var o, l;
283
- return (o = t.componentProps) != null && o.hidden ? !1 : typeof t.show == "boolean" ? t.show : ((l = t.show) == null ? void 0 : l.call(t, { values: i })) ?? !0;
283
+ return (o = t.componentProps) != null && o.hidden ? !1 : typeof t.show == "boolean" ? t.show : ((l = t.show) == null ? void 0 : l.call(t, { values: a })) ?? !0;
284
284
  }), m = W(() => {
285
285
  var u;
286
- const o = P.value && ((u = t.rules) == null ? void 0 : u.map((_) => ({
286
+ const o = C.value && ((u = t.rules) == null ? void 0 : u.map((_) => ({
287
287
  ..._,
288
288
  validator: _.validator && g.funcs.value[_.validator]
289
289
  // 自定义校验函数
@@ -302,6 +302,9 @@ const je = /* @__PURE__ */ le({
302
302
  const o = (($ = L.value) == null ? void 0 : $.bindModel) ?? "modelValue", l = {};
303
303
  return t.on && Object.keys(t.on).forEach((J) => {
304
304
  l[`on${Ye(J)}`] = (...q) => g.doActions(t.on[J], ...q);
305
+ }), t.type === "selectpage" && (t.componentProps.defaultData = {
306
+ value: a[t.field],
307
+ label: a[a[t.field]]
305
308
  }), {
306
309
  ...r,
307
310
  ...t.componentProps,
@@ -312,11 +315,11 @@ const je = /* @__PURE__ */ le({
312
315
  };
313
316
  }), L = W(() => z.getComponentConfingByType(t.type) ?? null);
314
317
  he(() => {
315
- c.value = r.modelValue ?? i[t.field ?? ""];
318
+ c.value = r.modelValue ?? a[t.field ?? ""];
316
319
  }), B(
317
320
  () => c.value,
318
321
  () => {
319
- c.value !== (r.modelValue ?? i[t.field ?? ""]) && a(c.value);
322
+ c.value !== (r.modelValue ?? a[t.field ?? ""]) && i(c.value);
320
323
  }
321
324
  ), B(
322
325
  () => E.value,
@@ -328,7 +331,7 @@ const je = /* @__PURE__ */ le({
328
331
  function A() {
329
332
  var l;
330
333
  const o = E.value || s;
331
- t.id && o && ((t.input || t.type === "table" && t.field || t.type === "card" && t.field && t.multiple) && (o.setValue = a, o.getValue = () => i[t.field] || r.modelValue), o.setAttr = ($, u) => (t.componentProps || (t.componentProps = {}), t.componentProps[$] = u), o.getAttr = ($) => t.componentProps[$], g.addComponentInstance(t.id, o), (l = L.value) != null && l.defaultSchema.input && t.noFormItem !== !0 && M.value && g.addComponentInstance(t.id + "formItem", M.value));
334
+ t.id && o && ((t.input || t.type === "table" && t.field || t.type === "card" && t.field && t.multiple) && (o.setValue = i, o.getValue = () => a[t.field] || r.modelValue), o.setAttr = ($, u) => (t.componentProps || (t.componentProps = {}), t.componentProps[$] = u), o.getAttr = ($) => t.componentProps[$], g.addComponentInstance(t.id, o), (l = L.value) != null && l.defaultSchema.input && t.noFormItem !== !0 && M.value && g.addComponentInstance(t.id + "formItem", M.value));
332
335
  }
333
336
  function v() {
334
337
  var o;
@@ -337,8 +340,8 @@ const je = /* @__PURE__ */ le({
337
340
  async function ee() {
338
341
  var l, $, u;
339
342
  if (t = await x(t), typeof ((l = t.componentProps) == null ? void 0 : l.defaultValue) < "u") {
340
- const _ = g.isDesignMode.value ? ($ = t.componentProps) == null ? void 0 : $.defaultValue : i[t.field] ?? ((u = t.componentProps) == null ? void 0 : u.defaultValue);
341
- a(G(_));
343
+ const _ = g.isDesignMode.value ? ($ = t.componentProps) == null ? void 0 : $.defaultValue : a[t.field] ?? ((u = t.componentProps) == null ? void 0 : u.defaultValue);
344
+ i(G(_));
342
345
  }
343
346
  if (t.type === "slot") {
344
347
  const _ = t.slotName;
@@ -347,7 +350,7 @@ const je = /* @__PURE__ */ le({
347
350
  setup() {
348
351
  return () => K(w, _, {
349
352
  componentSchema: t,
350
- model: i
353
+ model: a
351
354
  });
352
355
  }
353
356
  });
@@ -365,12 +368,12 @@ const je = /* @__PURE__ */ le({
365
368
  I.value = o;
366
369
  }
367
370
  function f(o) {
368
- console.log("%c [ v ]-449", "font-size:13px; background:pink; color:#bf2c9f;", i), Object.prototype.toString.call(o), Object.prototype.toString.call(o) === "[object Array]" ? o.forEach((l) => {
369
- i[l.value] = l.label;
370
- }) : i[o.value] = o.label, r.id ? j.emit("updateformData" + r.id, i) : j.emit("updateformData", i);
371
+ console.log("%c [ v ]-462", "font-size:13px; background:pink; color:#bf2c9f;", o), Object.prototype.toString.call(o) === "[object Array]" ? o.forEach((l) => {
372
+ a[l.value] = l.label;
373
+ }) : a[o.value] = o.label, r.id ? j.emit("updateformData" + r.id, a) : j.emit("updateformData", a);
371
374
  }
372
- function a(o) {
373
- y("update:modelValue", o), y("change", o), t.field && (i[t.field] = o), r.id ? j.emit("updateformData" + r.id, i) : j.emit("updateformData", i);
375
+ function i(o) {
376
+ y("update:modelValue", o), y("change", o), t.field && (a[t.field] = o), r.id ? j.emit("updateformData" + r.id, a) : j.emit("updateformData", a);
374
377
  }
375
378
  function F(o) {
376
379
  y("update:dynamicId", o);
@@ -398,7 +401,7 @@ const je = /* @__PURE__ */ le({
398
401
  ), $e(v), (o, l) => {
399
402
  var u;
400
403
  const $ = Te("ENode");
401
- return I.value && P.value ? (H(), Y(je, {
404
+ return I.value && C.value ? (H(), Y(je, {
402
405
  key: 0,
403
406
  hasFormItem: R(t).noFormItem !== !0 && ((u = L.value) == null ? void 0 : u.defaultSchema.input),
404
407
  formItemProps: m.value,
@@ -409,11 +412,11 @@ const je = /* @__PURE__ */ le({
409
412
  ref_key: "componentInstance",
410
413
  ref: E,
411
414
  onVnodeMounted: A,
412
- model: R(i)
415
+ model: R(a)
413
416
  }, { ...U.value }, {
414
417
  [U.value.bindModel]: c.value,
415
418
  ["onUpdate:" + U.value.bindModel]: l[0] || (l[0] = (_) => c.value = _),
416
- [`onUpdate:${U.value.bindModel}` || ""]: a,
419
+ [`onUpdate:${U.value.bindModel}` || ""]: i,
417
420
  "onUpdate:modelValueLabel": f,
418
421
  "onUpdate:dynamicId": F
419
422
  }), {
@@ -436,7 +439,7 @@ const je = /* @__PURE__ */ le({
436
439
  }
437
440
  });
438
441
  function tt() {
439
- const e = C(!1), n = Ce(), s = C({});
442
+ const e = P(!1), n = Pe(), s = P({});
440
443
  function r() {
441
444
  return new Promise((d) => {
442
445
  if (e.value)
@@ -455,12 +458,12 @@ function tt() {
455
458
  if (!S) throw new Error(`表单 [name=${d}] 不存在`);
456
459
  return S;
457
460
  }
458
- async function i(d, S) {
461
+ async function a(d, S) {
459
462
  const y = await c(d);
460
463
  return G(await S(y));
461
464
  }
462
465
  async function w(d = "default") {
463
- return await i(d, (S) => S.getData());
466
+ return await a(d, (S) => S.getData());
464
467
  }
465
468
  function g(d, S = "default", y = void 0) {
466
469
  var E, M;
@@ -474,9 +477,9 @@ function tt() {
474
477
  var L;
475
478
  let U = p((L = y == null ? void 0 : y.schemas[0]) == null ? void 0 : L.children);
476
479
  return Object.keys(m).forEach((A) => {
477
- var f, a, F, V, o, l, $;
480
+ var f, i, F, V, o, l, $;
478
481
  const v = U.find((u) => u.field === A), ee = ["datetimerange", "daterange", "monthrange", "dates"];
479
- if ((v && (v == null ? void 0 : v.type) === "checkbox" || (v == null ? void 0 : v.type) === "select" && ((f = v == null ? void 0 : v.componentProps) != null && f.multiple) || (v == null ? void 0 : v.type) === "cascader" && !((F = (a = v == null ? void 0 : v.componentProps) == null ? void 0 : a.props) != null && F.multiple) || (v == null ? void 0 : v.type) === "date" && ee.includes((V = v == null ? void 0 : v.componentProps) == null ? void 0 : V.type)) && typeof m[A] == "string")
482
+ if ((v && (v == null ? void 0 : v.type) === "checkbox" || (v == null ? void 0 : v.type) === "select" && ((f = v == null ? void 0 : v.componentProps) != null && f.multiple) || (v == null ? void 0 : v.type) === "cascader" && !((F = (i = v == null ? void 0 : v.componentProps) == null ? void 0 : i.props) != null && F.multiple) || (v == null ? void 0 : v.type) === "date" && ee.includes((V = v == null ? void 0 : v.componentProps) == null ? void 0 : V.type)) && typeof m[A] == "string")
480
483
  m[A] = (o = m[A]) == null ? void 0 : o.split(",");
481
484
  else if ((v == null ? void 0 : v.type) === "cascader" && (($ = (l = v == null ? void 0 : v.componentProps) == null ? void 0 : l.props) != null && $.multiple) && typeof m[A] == "string")
482
485
  m[A].indexOf(";") === -1 && m[A].indexOf(";") === -1 ? m[A][m[A]] : m[A].indexOf(";") > -1 ? m[A] = m[A].split(";").map((u) => u.split(",")) : m[A].indexOf(";") === -1 ? m[A] = m[A].split(",") : m[A].indexOf(";") > -1 ? m[A] = m[A].split(";").map((u) => u.split(",")) : m[A].indexOf(";") === -1 && (m[A] = m[A].split(","));
@@ -492,8 +495,8 @@ function tt() {
492
495
  }), m;
493
496
  }(d);
494
497
  n.setFormData(I, S);
495
- const P = (E = s.value) == null ? void 0 : E[S];
496
- P == null || P.clearValidate();
498
+ const C = (E = s.value) == null ? void 0 : E[S];
499
+ C == null || C.clearValidate();
497
500
  } else {
498
501
  n.setFormData(d, S);
499
502
  const p = (M = s.value) == null ? void 0 : M[S];
@@ -501,7 +504,7 @@ function tt() {
501
504
  }
502
505
  }
503
506
  async function h(d = "default") {
504
- return await i(d, async (S) => (await S.validate(), await S.getData()));
507
+ return await a(d, async (S) => (await S.validate(), await S.getData()));
505
508
  }
506
509
  async function N(d) {
507
510
  await r();
@@ -549,7 +552,7 @@ const nt = {
549
552
  },
550
553
  emits: ["change", "ready"],
551
554
  setup(e, { expose: n, emit: s }) {
552
- const r = se(() => import("./index-DgcFxYFp.js")), c = s, i = C([]), w = C({}), { ready: g, pageManager: h, forms: N, getData: O, setData: t, validate: x, getForms: d, setForms: S, validateAll: y, getFormInstance: E } = tt(), M = e, p = re({
555
+ const r = se(() => import("./index-DgcFxYFp.js")), c = s, a = P([]), w = P({}), { ready: g, pageManager: h, forms: N, getData: O, setData: t, validate: x, getForms: d, setForms: S, validateAll: y, getFormInstance: E } = tt(), M = e, p = re({
553
556
  schemas: []
554
557
  });
555
558
  B(
@@ -565,8 +568,8 @@ const nt = {
565
568
  () => M.formData,
566
569
  (f) => {
567
570
  if (f) {
568
- let a = L(f);
569
- w.value = a, t(a);
571
+ let i = L(f);
572
+ w.value = i, t(i);
570
573
  }
571
574
  },
572
575
  {
@@ -575,12 +578,12 @@ const nt = {
575
578
  }
576
579
  );
577
580
  function D(f) {
578
- let a = [];
581
+ let i = [];
579
582
  return f.forEach((F) => {
580
- F.children && (a = [...a, ...D(F.children)]), a.push(F);
581
- }), a;
583
+ F.children && (i = [...i, ...D(F.children)]), i.push(F);
584
+ }), i;
582
585
  }
583
- function I(f, a) {
586
+ function I(f, i) {
584
587
  function F(o) {
585
588
  return JSON.parse(JSON.stringify(o));
586
589
  }
@@ -594,53 +597,53 @@ const nt = {
594
597
  const $ = F(o);
595
598
  return Array.isArray($.children) && ($.children = $.children.map((u) => V(u, l)).flat()), $;
596
599
  }
597
- return f.map((o) => V(o, a)).flat();
600
+ return f.map((o) => V(o, i)).flat();
598
601
  }
599
- function P(f, a = "", F = { root: 0 }) {
600
- const V = a || "root";
601
- return a || (F.root = 0), F[V] === void 0 && (F[V] = 0), f.map((o) => {
602
+ function C(f, i = "", F = { root: 0 }) {
603
+ const V = i || "root";
604
+ return i || (F.root = 0), F[V] === void 0 && (F[V] = 0), f.map((o) => {
602
605
  o.field && (o.oldField = JSON.parse(JSON.stringify(o.field)));
603
606
  const l = { ...o };
604
607
  if (o.type === "card") {
605
608
  const $ = o.field || "";
606
- o.multiple ? (l.field = a ? `${a}.${$}[${F[V]}]` : `${$}[${F[V]}]`, F[V]++) : o.field && a && (l.field = `${a}.${$}`);
607
- const u = l.field || a;
609
+ o.multiple ? (l.field = i ? `${i}.${$}[${F[V]}]` : `${$}[${F[V]}]`, F[V]++) : o.field && i && (l.field = `${i}.${$}`);
610
+ const u = l.field || i;
608
611
  F[u] = 0;
609
- } else o.field && a && (l.field = `${a}.${o.field}`);
610
- return o.children && (l.children = P(o.children, l.field || a, F)), l;
612
+ } else o.field && i && (l.field = `${i}.${o.field}`);
613
+ return o.children && (l.children = C(o.children, l.field || i, F)), l;
611
614
  });
612
615
  }
613
- function m(f, a, F = "", V = {}) {
616
+ function m(f, i, F = "", V = {}) {
614
617
  const o = F || "root";
615
618
  return V[o] === void 0 && (V[o] = 0), f.forEach((l) => {
616
619
  const $ = l.field || "";
617
620
  let u = F ? `${F}.${$}` : `${$}`;
618
- l.type === "card" && l.multiple ? (typeof a[u][`${V[o]}`] == "object" ? Object.keys(a[u][`${V[o]}`]).forEach((_) => {
619
- a[`${u}[${V[o]}].${_}`] = a[u][`${V[o]}`][_];
620
- }) : a[`${u}[${V[o]}]`] = a[u][`${V[o]}`], l.children && (l.children = m(
621
+ l.type === "card" && l.multiple ? (typeof i[u][`${V[o]}`] == "object" ? Object.keys(i[u][`${V[o]}`]).forEach((_) => {
622
+ i[`${u}[${V[o]}].${_}`] = i[u][`${V[o]}`][_];
623
+ }) : i[`${u}[${V[o]}]`] = i[u][`${V[o]}`], l.children && (l.children = m(
621
624
  l.children,
622
- a,
625
+ i,
623
626
  `${u}[${V[o]}]` || F,
624
627
  V
625
- )), V[o]++) : l.children && (l.children = m(l.children, a, F, V));
626
- }), V[o] = 0, a;
628
+ )), V[o]++) : l.children && (l.children = m(l.children, i, F, V));
629
+ }), V[o] = 0, i;
627
630
  }
628
- function U(f, a, F) {
629
- let V = m(G(f), G(a));
631
+ function U(f, i, F) {
632
+ let V = m(G(f), G(i));
630
633
  return {
631
- obj: P(f),
634
+ obj: C(f),
632
635
  dataObj: V
633
636
  };
634
637
  }
635
638
  function L(f) {
636
- let a = D(M.pageSchema.schemas[0].children);
637
- i.value = a.filter((l) => l.type === "card" && l.multiple);
639
+ let i = D(M.pageSchema.schemas[0].children);
640
+ a.value = i.filter((l) => l.type === "card" && l.multiple);
638
641
  const F = I(M.pageSchema.schemas[0].children, f);
639
- let { obj: V, dataObj: o } = U(F, f, i.value);
642
+ let { obj: V, dataObj: o } = U(F, f, a.value);
640
643
  return f = o, M.pageSchema.schemas[0].children = V, Object.keys(f).forEach((l) => {
641
644
  var $, u, _, J, q, de, fe;
642
645
  if (l.indexOf("@") < 0) {
643
- const b = a.find((X) => X.field === l), Me = ["datetimerange", "daterange", "monthrange", "dates"];
646
+ const b = i.find((X) => X.field === l), Me = ["datetimerange", "daterange", "monthrange", "dates"];
644
647
  if ((b && (b == null ? void 0 : b.type) === "checkbox" || (b == null ? void 0 : b.type) === "select" && (($ = b == null ? void 0 : b.componentProps) != null && $.multiple) || (b == null ? void 0 : b.type) === "cascader" && !((_ = (u = b == null ? void 0 : b.componentProps) == null ? void 0 : u.props) != null && _.multiple) || (b == null ? void 0 : b.type) === "date" && Me.includes((J = b == null ? void 0 : b.componentProps) == null ? void 0 : J.type)) && typeof f[l] == "string")
645
648
  f[l] = (q = f[l]) == null ? void 0 : q.split(",");
646
649
  else if ((b == null ? void 0 : b.type) === "cascader" && ((fe = (de = b == null ? void 0 : b.componentProps) == null ? void 0 : de.props) != null && fe.multiple) && typeof f[l] == "string")
@@ -687,7 +690,7 @@ const nt = {
687
690
  setForms: S,
688
691
  validateAll: y,
689
692
  getFormInstance: E
690
- }), (f, a) => R(z).initialized.value ? (H(), Y(Fe, {
693
+ }), (f, i) => R(z).initialized.value ? (H(), Y(Fe, {
691
694
  key: 1,
692
695
  onResolve: ee
693
696
  }, {
@@ -718,7 +721,7 @@ function lt(e) {
718
721
  const c = () => {
719
722
  n -= 1, r && n <= 0 && (r.stop(), s = void 0, r = void 0);
720
723
  };
721
- return (...i) => (n += 1, r || (r = He(!0), s = r.run(() => e(...i))), xe(c), s);
724
+ return (...a) => (n += 1, r || (r = He(!0), s = r.run(() => e(...a))), xe(c), s);
722
725
  }
723
726
  function ie(e) {
724
727
  return typeof e == "function" ? e() : R(e);
@@ -737,16 +740,16 @@ function mt(e = !1, n = {}) {
737
740
  const {
738
741
  truthyValue: s = !0,
739
742
  falsyValue: r = !1
740
- } = n, c = Ke(e), i = C(e);
743
+ } = n, c = Ke(e), a = P(e);
741
744
  function w(g) {
742
745
  if (arguments.length)
743
- return i.value = g, i.value;
746
+ return a.value = g, a.value;
744
747
  {
745
748
  const h = ie(s);
746
- return i.value = i.value === h ? ie(r) : h, i.value;
749
+ return a.value = a.value === h ? ie(r) : h, a.value;
747
750
  }
748
751
  }
749
- return c ? w : [i, w];
752
+ return c ? w : [a, w];
750
753
  }
751
754
  function Jt(e, n, s) {
752
755
  const r = B(e, (...c) => (ce(() => r()), n(...c)), s);
@@ -763,15 +766,15 @@ function ht(...e) {
763
766
  if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([s, r, c] = e, n = ve) : [n, s, r, c] = e, !n)
764
767
  return dt;
765
768
  Array.isArray(s) || (s = [s]), Array.isArray(r) || (r = [r]);
766
- const i = [], w = () => {
767
- i.forEach((O) => O()), i.length = 0;
769
+ const a = [], w = () => {
770
+ a.forEach((O) => O()), a.length = 0;
768
771
  }, g = (O, t, x, d) => (O.addEventListener(t, x, d), () => O.removeEventListener(t, x, d)), h = B(
769
772
  () => [oe(n), ie(c)],
770
773
  ([O, t]) => {
771
774
  if (w(), !O)
772
775
  return;
773
776
  const x = ut(t) ? { ...t } : t;
774
- i.push(
777
+ a.push(
775
778
  ...s.flatMap((d) => r.map((S) => g(O, d, S, x)))
776
779
  );
777
780
  },
@@ -784,27 +787,27 @@ function ht(...e) {
784
787
  function vt(e) {
785
788
  return typeof e == "function" ? e : typeof e == "string" ? (n) => n.key === e : Array.isArray(e) ? (n) => e.includes(n.key) : () => !0;
786
789
  }
787
- function Pe(...e) {
790
+ function Ce(...e) {
788
791
  let n, s, r = {};
789
792
  e.length === 3 ? (n = e[0], s = e[1], r = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (n = !0, s = e[0], r = e[1]) : (n = e[0], s = e[1]) : (n = !0, s = e[0]);
790
793
  const {
791
794
  target: c = ve,
792
- eventName: i = "keydown",
795
+ eventName: a = "keydown",
793
796
  passive: w = !1,
794
797
  dedupe: g = !1
795
798
  } = r, h = vt(n);
796
- return ht(c, i, (O) => {
799
+ return ht(c, a, (O) => {
797
800
  O.repeat && ie(g) || h(O) && s(O);
798
801
  }, w);
799
802
  }
800
803
  function we(e, n, s = {}) {
801
- return Pe(e, n, { ...s, eventName: "keydown" });
804
+ return Ce(e, n, { ...s, eventName: "keydown" });
802
805
  }
803
806
  function Se(e, n, s = {}) {
804
- return Pe(e, n, { ...s, eventName: "keyup" });
807
+ return Ce(e, n, { ...s, eventName: "keyup" });
805
808
  }
806
809
  function gt() {
807
- const e = C(!1), n = ue();
810
+ const e = P(!1), n = ue();
808
811
  return n && Ae(() => {
809
812
  e.value = !0;
810
813
  }, n), e;
@@ -818,9 +821,9 @@ function wt(e) {
818
821
  }
819
822
  function St(e, n, s = {}) {
820
823
  const { window: r = ve, ...c } = s;
821
- let i;
824
+ let a;
822
825
  const w = yt(() => r && "ResizeObserver" in r), g = () => {
823
- i && (i.disconnect(), i = void 0);
826
+ a && (a.disconnect(), a = void 0);
824
827
  }, h = W(() => {
825
828
  const t = ie(e);
826
829
  return Array.isArray(t) ? t.map((x) => oe(x)) : [oe(t)];
@@ -828,9 +831,9 @@ function St(e, n, s = {}) {
828
831
  h,
829
832
  (t) => {
830
833
  if (g(), w.value && r) {
831
- i = new ResizeObserver(n);
834
+ a = new ResizeObserver(n);
832
835
  for (const x of t)
833
- x && i.observe(x, c);
836
+ x && a.observe(x, c);
834
837
  }
835
838
  },
836
839
  { immediate: !0, flush: "post" }
@@ -843,14 +846,14 @@ function St(e, n, s = {}) {
843
846
  };
844
847
  }
845
848
  function zt(e, n = { width: 0, height: 0 }, s = {}) {
846
- const { window: r = ve, box: c = "content-box" } = s, i = W(() => {
849
+ const { window: r = ve, box: c = "content-box" } = s, a = W(() => {
847
850
  var t, x;
848
851
  return (x = (t = oe(e)) == null ? void 0 : t.namespaceURI) == null ? void 0 : x.includes("svg");
849
- }), w = C(n.width), g = C(n.height), { stop: h } = St(
852
+ }), w = P(n.width), g = P(n.height), { stop: h } = St(
850
853
  e,
851
854
  ([t]) => {
852
855
  const x = c === "border-box" ? t.borderBoxSize : c === "content-box" ? t.contentBoxSize : t.devicePixelContentBoxSize;
853
- if (r && i.value) {
856
+ if (r && a.value) {
854
857
  const d = oe(e);
855
858
  if (d) {
856
859
  const S = d.getBoundingClientRect();
@@ -884,7 +887,7 @@ function zt(e, n = { width: 0, height: 0 }, s = {}) {
884
887
  };
885
888
  }
886
889
  function Ht(e, n, s, r = {}) {
887
- var c, i, w;
890
+ var c, a, w;
888
891
  const {
889
892
  clone: g = !1,
890
893
  passive: h = !1,
@@ -892,24 +895,24 @@ function Ht(e, n, s, r = {}) {
892
895
  deep: O = !1,
893
896
  defaultValue: t,
894
897
  shouldEmit: x
895
- } = r, d = ue(), S = s || (d == null ? void 0 : d.emit) || ((c = d == null ? void 0 : d.$emit) == null ? void 0 : c.bind(d)) || ((w = (i = d == null ? void 0 : d.proxy) == null ? void 0 : i.$emit) == null ? void 0 : w.bind(d == null ? void 0 : d.proxy));
898
+ } = r, d = ue(), S = s || (d == null ? void 0 : d.emit) || ((c = d == null ? void 0 : d.$emit) == null ? void 0 : c.bind(d)) || ((w = (a = d == null ? void 0 : d.proxy) == null ? void 0 : a.$emit) == null ? void 0 : w.bind(d == null ? void 0 : d.proxy));
896
899
  let y = N;
897
900
  n || (n = "modelValue"), y = y || `update:${n.toString()}`;
898
901
  const E = (D) => g ? typeof g == "function" ? g(D) : wt(D) : D, M = () => it(e[n]) ? E(e[n]) : t, p = (D) => {
899
902
  x ? x(D) && S(y, D) : S(y, D);
900
903
  };
901
904
  if (h) {
902
- const D = M(), I = C(D);
903
- let P = !1;
905
+ const D = M(), I = P(D);
906
+ let C = !1;
904
907
  return B(
905
908
  () => e[n],
906
909
  (m) => {
907
- P || (P = !0, I.value = E(m), ce(() => P = !1));
910
+ C || (C = !0, I.value = E(m), ce(() => C = !1));
908
911
  }
909
912
  ), B(
910
913
  I,
911
914
  (m) => {
912
- !P && (m !== e[n] || O) && p(m);
915
+ !C && (m !== e[n] || O) && p(m);
913
916
  },
914
917
  { deep: O }
915
918
  ), I;
@@ -931,7 +934,7 @@ function Kt() {
931
934
  };
932
935
  }
933
936
  function Dt() {
934
- const e = C(!1);
937
+ const e = P(!1);
935
938
  return Ae(() => {
936
939
  bt(e), Et(e);
937
940
  }), B(
@@ -951,8 +954,8 @@ function Et(e) {
951
954
  var n = document.querySelector("html"), s = new MutationObserver(function(r) {
952
955
  for (var c of r)
953
956
  if (c.type === "attributes" && c.attributeName === "class") {
954
- const i = c.target;
955
- new Array(...i.classList).includes("dark") ? e.value = !0 : e.value = !1;
957
+ const a = c.target;
958
+ new Array(...a.classList).includes("dark") ? e.value = !0 : e.value = !1;
956
959
  }
957
960
  });
958
961
  s.observe(n, {
@@ -963,19 +966,19 @@ function Et(e) {
963
966
  });
964
967
  }
965
968
  function At() {
966
- const e = C(1), n = C(!1), { isDark: s } = Dt(), { pressSpace: r, pressShift: c, pressCtrl: i } = Ot();
969
+ const e = P(1), n = P(!1), { isDark: s } = Dt(), { pressSpace: r, pressShift: c, pressCtrl: a } = Ot();
967
970
  return {
968
971
  canvasScale: e,
969
972
  pressSpace: r,
970
973
  pressShift: c,
971
- pressCtrl: i,
974
+ pressCtrl: a,
972
975
  disabledZoom: n,
973
976
  isDark: s
974
977
  };
975
978
  }
976
979
  const ge = lt(At);
977
980
  function Ot() {
978
- const e = C(!1), n = C(!1), s = C(!1);
981
+ const e = P(!1), n = P(!1), s = P(!1);
979
982
  return we(" ", () => {
980
983
  e.value = !0;
981
984
  }), Se(" ", () => {
@@ -994,7 +997,7 @@ function Zt(e) {
994
997
  const { pressSpace: n } = ge(), s = new Image(1, 1);
995
998
  s.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==";
996
999
  let r = 0, c = 0;
997
- function i(h) {
1000
+ function a(h) {
998
1001
  var N;
999
1002
  n.value && (r = h.x, c = h.y, (N = h.dataTransfer) == null || N.setDragImage(document.createElement("div"), 0, 0));
1000
1003
  }
@@ -1007,21 +1010,21 @@ function Zt(e) {
1007
1010
  function g() {
1008
1011
  n.value = !1;
1009
1012
  }
1010
- return { handleElementDragStart: i, handleElementDrag: w, handleElementDragEnd: g };
1013
+ return { handleElementDragStart: a, handleElementDrag: w, handleElementDragEnd: g };
1011
1014
  }
1012
1015
  function Wt(e) {
1013
1016
  const { pressCtrl: n, canvasScale: s, disabledZoom: r } = ge();
1014
- function c(i) {
1017
+ function c(a) {
1015
1018
  if (!n.value || r.value)
1016
1019
  return;
1017
- i.preventDefault();
1020
+ a.preventDefault();
1018
1021
  let w = 0;
1019
- i.deltaY < 0 ? w = s.value + 0.05 : w = s.value - 0.05, !(w > 150 || w < 0.5) && (s.value = w);
1022
+ a.deltaY < 0 ? w = s.value + 0.05 : w = s.value - 0.05, !(w > 150 || w < 0.5) && (s.value = w);
1020
1023
  }
1021
1024
  return B(
1022
1025
  () => s.value,
1023
- (i) => {
1024
- e.value && !r.value && (e.value.style.transform = `scale(${i})`);
1026
+ (a) => {
1027
+ e.value && !r.value && (e.value.style.transform = `scale(${a})`);
1025
1028
  }
1026
1029
  ), { handleZoom: c, canvasScale: s };
1027
1030
  }
@@ -1041,15 +1044,15 @@ function Gt(e, n = 16.66) {
1041
1044
  const xt = { class: "min-w-750px rounded" }, It = { class: "h-full rounded" }, _t = /* @__PURE__ */ le({
1042
1045
  __name: "index",
1043
1046
  setup(e, { expose: n }) {
1044
- const s = z.getComponent("monacoEditor"), r = z.getComponent("modal"), c = C(null), i = C(!1), w = C(!1), g = C({}), h = ne("pageSchema"), N = C(null), O = C("");
1047
+ const s = z.getComponent("monacoEditor"), r = z.getComponent("modal"), c = P(null), a = P(!1), w = P(!1), g = P({}), h = ne("pageSchema"), N = P(null), O = P("");
1045
1048
  function t() {
1046
1049
  w.value = !1;
1047
1050
  }
1048
1051
  function x() {
1049
- i.value = !1;
1052
+ a.value = !1;
1050
1053
  }
1051
1054
  function d() {
1052
- i.value = !0, O.value = qe();
1055
+ a.value = !0, O.value = qe();
1053
1056
  }
1054
1057
  async function S() {
1055
1058
  try {
@@ -1069,8 +1072,8 @@ const xt = { class: "min-w-750px rounded" }, It = { class: "h-full rounded" }, _
1069
1072
  return n({
1070
1073
  handleOpen: d
1071
1074
  }), (y, E) => (H(), Y(R(r), {
1072
- modelValue: i.value,
1073
- "onUpdate:modelValue": E[1] || (E[1] = (M) => i.value = M),
1075
+ modelValue: a.value,
1076
+ "onUpdate:modelValue": E[1] || (E[1] = (M) => a.value = M),
1074
1077
  title: "预览",
1075
1078
  class: "w-900px",
1076
1079
  width: "900px",
@@ -1140,7 +1143,7 @@ const xt = { class: "min-w-750px rounded" }, It = { class: "h-full rounded" }, _
1140
1143
  "updateSourceData"
1141
1144
  ],
1142
1145
  setup(e, { expose: n, emit: s }) {
1143
- const { t: r } = Oe(), c = se(() => import("./index-IGxCNti8.js")), i = se(() => import("./index-WkZdU_zw.js")), w = se(() => import("./index-CpleWjYN.js")), g = se(() => import("./index-Cln9MN7u.js")), h = se(() => import("./index-DgcFxYFp.js")), N = Ce(), O = ke(), t = e;
1146
+ const { t: r } = Oe(), c = se(() => import("./index-IGxCNti8.js")), a = se(() => import("./index-WkZdU_zw.js")), w = se(() => import("./index-CG7oVWkZ.js")), g = se(() => import("./index-Cln9MN7u.js")), h = se(() => import("./index-DgcFxYFp.js")), N = Pe(), O = ke(), t = e;
1144
1147
  let x = {
1145
1148
  schemas: [
1146
1149
  {
@@ -1194,7 +1197,7 @@ defineExpose({
1194
1197
  }
1195
1198
  t.source && z.setSourceData(t.source), t.formMode && (x.schemas = z.formSchemas);
1196
1199
  }), N.setDesignMode(), N.setDefaultComponentIds(x.schemas);
1197
- const d = s, S = C(null), y = re({
1200
+ const d = s, S = P(null), y = re({
1198
1201
  checkedNode: null,
1199
1202
  hoverNode: null,
1200
1203
  disableHover: !1,
@@ -1206,8 +1209,8 @@ defineExpose({
1206
1209
  he(() => {
1207
1210
  M.value = t.disabledZoom;
1208
1211
  }), he(() => {
1209
- const a = E.script;
1210
- a && a !== "" && N.setMethods(a);
1212
+ const i = E.script;
1213
+ i && i !== "" && N.setMethods(i);
1211
1214
  }), Z("pageSchema", E), Z("revoke", O), Z("pageManager", N), Z(
1212
1215
  "designerProps",
1213
1216
  W(() => t)
@@ -1218,37 +1221,37 @@ defineExpose({
1218
1221
  handleToggleDeviceMode: ee,
1219
1222
  reset: A,
1220
1223
  state: y
1221
- }), j.on("saveSourceData", (a) => {
1222
- d("saveSourceData", a);
1223
- }), j.on("deleteSourceData", (a) => {
1224
- d("deleteSourceData", a);
1225
- }), j.on("updateSourceData", (a) => {
1226
- d("updateSourceData", a);
1224
+ }), j.on("saveSourceData", (i) => {
1225
+ d("saveSourceData", i);
1226
+ }), j.on("deleteSourceData", (i) => {
1227
+ d("deleteSourceData", i);
1228
+ }), j.on("updateSourceData", (i) => {
1229
+ d("updateSourceData", i);
1227
1230
  });
1228
1231
  function p() {
1229
1232
  E.schemas = G(x.schemas), D(E.schemas[0]), O.push(E.schemas, "初始化撤销功能");
1230
1233
  }
1231
- async function D(a = E.schemas[0]) {
1232
- y.checkedNode = a, y.matched = Xe(E.schemas, a.id);
1234
+ async function D(i = E.schemas[0]) {
1235
+ y.checkedNode = i, y.matched = Xe(E.schemas, i.id);
1233
1236
  }
1234
- async function I(a = null) {
1237
+ async function I(i = null) {
1235
1238
  var F;
1236
- if (!a || y.disableHover)
1239
+ if (!i || y.disableHover)
1237
1240
  return y.hoverNode = null, !1;
1238
- if ((a == null ? void 0 : a.id) === ((F = y.hoverNode) == null ? void 0 : F.id))
1241
+ if ((i == null ? void 0 : i.id) === ((F = y.hoverNode) == null ? void 0 : F.id))
1239
1242
  return !1;
1240
- y.hoverNode = a;
1243
+ y.hoverNode = i;
1241
1244
  }
1242
- function P() {
1245
+ function C() {
1243
1246
  ce(() => {
1244
1247
  d("ready", { pageManager: N });
1245
1248
  });
1246
1249
  }
1247
- async function m(a = !1) {
1248
- y.disableHover = a;
1250
+ async function m(i = !1) {
1251
+ y.disableHover = i;
1249
1252
  }
1250
- function U(a) {
1251
- ae(E, G(a));
1253
+ function U(i) {
1254
+ ae(E, G(i));
1252
1255
  }
1253
1256
  function L() {
1254
1257
  return Ie(E);
@@ -1259,8 +1262,8 @@ defineExpose({
1259
1262
  function v() {
1260
1263
  d("save", Ie(E));
1261
1264
  }
1262
- function ee(a) {
1263
- d("toggleDeviceMode", a);
1265
+ function ee(i) {
1266
+ d("toggleDeviceMode", i);
1264
1267
  }
1265
1268
  function f() {
1266
1269
  S.value.handleOpen();
@@ -1271,45 +1274,45 @@ defineExpose({
1271
1274
  getData: L,
1272
1275
  reset: A,
1273
1276
  preview: f
1274
- }), (a, F) => R(z).initialized.value ? (H(), Y(Fe, {
1277
+ }), (i, F) => R(z).initialized.value ? (H(), Y(Fe, {
1275
1278
  key: 1,
1276
- onResolve: P
1279
+ onResolve: C
1277
1280
  }, {
1278
1281
  default: T(() => [
1279
1282
  k("div", Nt, [
1280
1283
  k("div", Ft, [
1281
- K(a.$slots, "header", {}, () => [
1284
+ K(i.$slots, "header", {}, () => [
1282
1285
  t.hiddenHeader ? Ne("", !0) : (H(), Y(R(c), {
1283
1286
  key: 0,
1284
1287
  onPreview: f,
1285
1288
  onSave: v
1286
1289
  }, {
1287
1290
  header: T(() => [
1288
- K(a.$slots, "header-prefix")
1291
+ K(i.$slots, "header-prefix")
1289
1292
  ]),
1290
1293
  prefix: T(() => [
1291
- K(a.$slots, "header-prefix")
1294
+ K(i.$slots, "header-prefix")
1292
1295
  ]),
1293
1296
  title: T(() => [
1294
- K(a.$slots, "header-title")
1297
+ K(i.$slots, "header-title")
1295
1298
  ]),
1296
1299
  "right-prefix": T(() => [
1297
- K(a.$slots, "header-right-prefix")
1300
+ K(i.$slots, "header-right-prefix")
1298
1301
  ]),
1299
1302
  "right-action": T(() => [
1300
- K(a.$slots, "header-right-action")
1303
+ K(i.$slots, "header-right-action")
1301
1304
  ]),
1302
1305
  "right-suffix": T(() => [
1303
- K(a.$slots, "header-right-suffix")
1306
+ K(i.$slots, "header-right-suffix")
1304
1307
  ]),
1305
1308
  _: 3
1306
1309
  }))
1307
1310
  ])
1308
1311
  ]),
1309
1312
  k("div", {
1310
- class: Ge(["epic-split-view-container", { "hidden-header": a.hiddenHeader }])
1313
+ class: Ge(["epic-split-view-container", { "hidden-header": i.hiddenHeader }])
1311
1314
  }, [
1312
- Q(R(i)),
1315
+ Q(R(a)),
1313
1316
  Q(R(w)),
1314
1317
  Q(R(g))
1315
1318
  ], 2),
@@ -1327,8 +1330,8 @@ defineExpose({
1327
1330
  _: 3
1328
1331
  })) : (H(), Ee("div", $t));
1329
1332
  }
1330
- }), Ct = {
1331
- component: async () => await import("./index-CAUVcvJK.js"),
1333
+ }), Pt = {
1334
+ component: async () => await import("./index-DfbpNxzy.js"),
1332
1335
  defaultSchema: {
1333
1336
  label: "代码编辑器",
1334
1337
  type: "monacoEditor",
@@ -1356,7 +1359,7 @@ defineExpose({
1356
1359
  ]
1357
1360
  },
1358
1361
  bindModel: "model-value"
1359
- }, { t: De } = Oe(), Pt = {
1362
+ }, { t: De } = Oe(), Ct = {
1360
1363
  component: async () => await import("./index-DiDIFoTk.js"),
1361
1364
  defaultSchema: {
1362
1365
  label: De("page"),
@@ -1378,7 +1381,7 @@ defineExpose({
1378
1381
  }
1379
1382
  }, { t: me } = Oe();
1380
1383
  function Mt(e) {
1381
- e.component("EInputSize", async () => await import("./index-Cx7gKpkD.js")), e.component("EColEditor", async () => await import("./index-CpTA2IRB.js")), e.component("EActionEditor", async () => await import("./index-xiA__w61.js")), e.component("ERuleEditor", async () => await import("./index-I1yxSuJN.js")), e.component("EOptionsEditor", async () => await import("./index-CInzk-Ex.js")), e.component("ENode", async () => await import("./index-DsURseKq.js")), e.component("EDataSource", async () => await import("./index-B0OgKtuT.js")), e.component("EColumnEditor", async () => await import("./index-B_mrUGQ2.js")), e.component("PaddingMarginControl", async () => await import("./index-CdnV7DS4.js")), e.registerActivitybar({
1384
+ e.component("EInputSize", async () => await import("./index-Cx7gKpkD.js")), e.component("EColEditor", async () => await import("./index-CpTA2IRB.js")), e.component("EActionEditor", async () => await import("./index-HCyeGVWN.js")), e.component("ERuleEditor", async () => await import("./index-KH-3G9c2.js")), e.component("EOptionsEditor", async () => await import("./index-v0MBVmR0.js")), e.component("ENode", async () => await import("./index-OuuVQWVQ.js")), e.component("EDataSource", async () => await import("./index-B0OgKtuT.js")), e.component("EColumnEditor", async () => await import("./index-BQsbaew2.js")), e.component("PaddingMarginControl", async () => await import("./index-CdnV7DS4.js")), e.component("ESourceDataSelect", async () => await import("./index-Dg1yARBw.js")), e.registerActivitybar({
1382
1385
  id: "component_view",
1383
1386
  title: me("component"),
1384
1387
  icon: "icon--epic--extension-outline",
@@ -1391,16 +1394,16 @@ function Mt(e) {
1391
1394
  }), e.registerRightSidebar({
1392
1395
  id: "attribute_view",
1393
1396
  title: me("attribute"),
1394
- component: async () => await import("./attributeView-HxhlCLw0.js")
1397
+ component: async () => await import("./attributeView-CKTyCnOV.js")
1395
1398
  }), e.registerRightSidebar({
1396
1399
  id: "style_view",
1397
1400
  title: me("style"),
1398
- component: async () => await import("./styleView-BF3bqKOa.js")
1401
+ component: async () => await import("./styleView-Dc1Uvy2W.js")
1399
1402
  }), e.registerRightSidebar({
1400
1403
  id: "event_view",
1401
1404
  title: "事件",
1402
1405
  component: async () => await import("./eventView-C2wKhfU_.js")
1403
- }), [Ct, Pt].forEach((s) => {
1406
+ }), [Pt, Ct].forEach((s) => {
1404
1407
  e.registerComponent(s);
1405
1408
  });
1406
1409
  }
@@ -1417,7 +1420,7 @@ export {
1417
1420
  Kt as h,
1418
1421
  rt as i,
1419
1422
  Qt as j,
1420
- Ce as k,
1423
+ Pe as k,
1421
1424
  ke as l,
1422
1425
  Ot as m,
1423
1426
  Dt as n,