epic-designer-gold 1.0.29 → 1.0.31

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 (42) hide show
  1. package/dist/{attributeView-BqtDAlQn.js → attributeView-CSiGWdPc.js} +1 -1
  2. package/dist/{attributeView-BXAZCzjN.cjs → attributeView-UzP3tU2D.cjs} +1 -1
  3. package/dist/{index-BLP-aOxR.js → index-B2RMcVgD.js} +1 -1
  4. package/dist/{index-CfNqnQwZ.cjs → index-B8exdhvc.cjs} +1 -1
  5. package/dist/{index-Bca_A9gK.cjs → index-BENF2JDS.cjs} +1 -1
  6. package/dist/{index-gdly69qM.js → index-BbTWJKHb.js} +140 -140
  7. package/dist/{index-kTMEQOpq.js → index-BhICtIH5.js} +360 -368
  8. package/dist/index-BhMVNODR.js +43 -0
  9. package/dist/index-BwLkOBWy.cjs +10 -0
  10. package/dist/index-C9PHR_YC.js +4 -0
  11. package/dist/index-CU1ZFiwn.cjs +1 -0
  12. package/dist/{index-B4_XV0sh.cjs → index-CZFPJ6vM.cjs} +1 -1
  13. package/dist/{index-D-EiABAK.js → index-Cmfhlo_3.js} +1 -1
  14. package/dist/{index-CURN8hNC.cjs → index-D2GF87Tg.cjs} +1 -1
  15. package/dist/{index-UFxVHTZ9.cjs → index-DEBQD_h0.cjs} +1 -1
  16. package/dist/{index-DNEhlg9r.cjs → index-Dk0fyxAJ.cjs} +1 -1
  17. package/dist/{index-CvD6bD_0.js → index-DymbM-qI.js} +1 -1
  18. package/dist/{index-arLwKBPE.js → index-RL7vrExY.js} +1 -1
  19. package/dist/{index-UJyLHIXT.js → index-lCYWKDlK.js} +1 -1
  20. package/dist/{index-B9A0eWKG.cjs → index-n6H8b6fT.cjs} +1 -1
  21. package/dist/index.cjs +1 -1
  22. package/dist/index.js +1 -1
  23. package/dist/{selectPage-vm_pZlz-.js → selectPage-Bm45M31g.js} +47 -47
  24. package/dist/selectPage-CrdVWKGk.cjs +1 -0
  25. package/dist/style.css +1 -1
  26. package/dist/{styleView-pnZNe-no.cjs → styleView-CrBDikDV.cjs} +1 -1
  27. package/dist/{styleView-DWhRTeHv.js → styleView-DONajUQ-.js} +1 -1
  28. package/dist/ui/elementPlus/index.cjs +1 -1
  29. package/dist/ui/elementPlus/index.js +3 -3
  30. package/dist/uploadFile-CTDuT_4r.cjs +1 -0
  31. package/dist/uploadFile-D1Wv0mlk.js +90 -0
  32. package/dist/uploadImage-0mGONFA8.cjs +1 -0
  33. package/dist/{uploadImage-DQmVV0jl.js → uploadImage-lNqQKWH3.js} +23 -22
  34. package/package.json +2 -2
  35. package/dist/index-CfqqBphl.cjs +0 -1
  36. package/dist/index-DOWqiyzN.cjs +0 -10
  37. package/dist/index-DSujK9zM.js +0 -4
  38. package/dist/index-DjPTgDpJ.js +0 -43
  39. package/dist/selectPage-DufSfwTA.cjs +0 -1
  40. package/dist/uploadFile-pgvj4Lm9.cjs +0 -1
  41. package/dist/uploadFile-qCbXuHfd.js +0 -81
  42. package/dist/uploadImage-B3sOX-5F.cjs +0 -1
@@ -1,29 +1,29 @@
1
- import { ref as V, reactive as ae, defineComponent as ie, openBlock as H, createBlock as q, unref as R, mergeProps as be, withCtx as T, renderSlot as K, getCurrentInstance as fe, inject as oe, 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 Y, createCommentVNode as Ne, useSlots as Le, createElementBlock as Ee, Suspense as Pe, createElementVNode as k, Fragment as Je, renderList as ze, nextTick as de, effectScope as He, isRef as Ke, getCurrentScope as Ze, onScopeDispose as We, onMounted as Ae, normalizeClass as Ge, toRaw as Ie } from "vue";
2
- import { p as z, f as Qe, d as ce, a as G, b as Fe, c as Ye, E as j, l as le, g as qe, e as Xe } from "./pluginManager-BCnrHPYv.js";
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
+ 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";
5
5
  function Lt(e, n) {
6
- let r = null;
7
- return (...s) => {
8
- r && clearTimeout(r), r = setTimeout(() => {
9
- e(...s);
6
+ let s = null;
7
+ return (...r) => {
8
+ s && clearTimeout(s), s = setTimeout(() => {
9
+ e(...r);
10
10
  }, n);
11
11
  };
12
12
  }
13
- function Ve() {
14
- const e = V({}), n = V({}), r = V(!1), s = V([]), c = ae({});
13
+ function Pe() {
14
+ const e = P({}), n = P({}), s = P(!1), r = P([]), c = re({});
15
15
  function a(p) {
16
16
  return e.value[p];
17
17
  }
18
- function w(p, D) {
19
- e.value[p] = D;
18
+ function w(p, S) {
19
+ e.value[p] = S;
20
20
  }
21
21
  function g(p) {
22
22
  delete e.value[p];
23
23
  }
24
- function m(p, D = !1) {
24
+ function h(p, S = !1) {
25
25
  const I = Object.entries(z.publicMethods).reduce(
26
- (C, [h, U]) => (C[h] = U.handler, C),
26
+ (C, [m, U]) => (C[m] = U.handler, C),
27
27
  {}
28
28
  );
29
29
  try {
@@ -36,19 +36,19 @@ function Ve() {
36
36
  pluginManager: z
37
37
  })();
38
38
  } catch (C) {
39
- D && console.error("[epic:自定义函数]异常:", C);
39
+ S && console.error("[epic:自定义函数]异常:", C);
40
40
  }
41
41
  }
42
42
  function N(p) {
43
43
  p != null && (n.value = p);
44
44
  }
45
- function O(p, ...D) {
45
+ function O(p, ...S) {
46
46
  if (!p || p.length === 0) {
47
47
  console.warn("未提供任何动作");
48
48
  return;
49
49
  }
50
50
  p.forEach((I) => {
51
- const C = I.args ? JSON.parse(I.args) : D;
51
+ const C = I.args ? JSON.parse(I.args) : S;
52
52
  switch (I.type) {
53
53
  case "public":
54
54
  t(I, C);
@@ -65,60 +65,60 @@ function Ve() {
65
65
  }
66
66
  });
67
67
  }
68
- function t(p, D) {
68
+ function t(p, S) {
69
69
  var I;
70
70
  try {
71
- (I = z.publicMethods[p.methodName]) == null || I.handler(...D);
71
+ (I = z.publicMethods[p.methodName]) == null || I.handler(...S);
72
72
  } catch (C) {
73
73
  console.error(`[Epic:公共函数(${p.methodName})]执行异常:`, C);
74
74
  }
75
75
  }
76
- function x(p, D) {
76
+ function x(p, S) {
77
77
  var I, C;
78
78
  try {
79
- (C = (I = n.value)[p.methodName]) == null || C.call(I, ...D);
80
- } catch (h) {
81
- console.error(`[Epic:自定义函数(${p.methodName})]执行异常:`, h);
79
+ (C = (I = n.value)[p.methodName]) == null || C.call(I, ...S);
80
+ } catch (m) {
81
+ console.error(`[Epic:自定义函数(${p.methodName})]执行异常:`, m);
82
82
  }
83
83
  }
84
- function d(p, D) {
84
+ function d(p, S) {
85
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
- I[p.methodName](...D);
91
+ I[p.methodName](...S);
92
92
  } catch (C) {
93
93
  console.error(`[Epic:组件${p.componentId}函数(${p.methodName})]执行异常:`, C);
94
94
  }
95
95
  }
96
- function S(p = !0) {
97
- r.value = p;
96
+ function D(p = !0) {
97
+ s.value = p;
98
98
  }
99
99
  function y(p) {
100
- const D = Qe(p, () => !0);
101
- s.value = D.map((I) => I.id);
100
+ const S = Qe(p, () => !0);
101
+ r.value = S.map((I) => I.id);
102
102
  }
103
- function E(p, D = "default") {
104
- if (c[D]) {
105
- const I = c[D];
106
- ce(p, I);
103
+ function E(p, S = "default") {
104
+ if (c[S]) {
105
+ const I = c[S];
106
+ ae(p, I);
107
107
  }
108
- c[D] = p;
108
+ c[S] = p;
109
109
  }
110
- function M(p, D = "default") {
111
- if (c[D]) {
112
- ce(c[D], p, !1);
110
+ function M(p, S = "default") {
111
+ if (c[S]) {
112
+ ae(c[S], p, !1);
113
113
  return;
114
114
  }
115
- c[D] = p;
115
+ c[S] = p;
116
116
  }
117
117
  return {
118
118
  componentInstances: e,
119
119
  funcs: n,
120
- isDesignMode: r,
121
- defaultComponentIds: s,
120
+ isDesignMode: s,
121
+ defaultComponentIds: r,
122
122
  forms: c,
123
123
  addFormData: E,
124
124
  setFormData: M,
@@ -127,48 +127,48 @@ function Ve() {
127
127
  find: a,
128
128
  addComponentInstance: w,
129
129
  removeComponentInstance: g,
130
- setMethods: m,
130
+ setMethods: h,
131
131
  doActions: O,
132
- setDesignMode: S,
132
+ setDesignMode: D,
133
133
  setDefaultComponentIds: y
134
134
  };
135
135
  }
136
136
  function ke() {
137
- const e = V([]), n = V([]), r = V(null);
138
- let s = 0;
139
- function c(m, N = "插入组件") {
137
+ const e = P([]), n = P([]), s = P(null);
138
+ let r = 0;
139
+ function c(h, N = "插入组件") {
140
140
  const O = Date.now();
141
- s + 150 > O || (s = O, r.value != null && (e.value.push(r.value), n.value.splice(0, n.value.length)), r.value = {
141
+ r + 150 > O || (r = O, s.value != null && (e.value.push(s.value), n.value.splice(0, n.value.length)), s.value = {
142
142
  type: N,
143
- componentSchema: JSON.stringify(m)
143
+ componentSchema: JSON.stringify(h)
144
144
  }, e.value.length > 60 && e.value.unshift());
145
145
  }
146
146
  function a() {
147
147
  if (e.value.length === 0)
148
148
  return !1;
149
- const m = e.value.pop();
150
- return r.value != null && n.value.push(r.value), r.value = m, JSON.parse(m.componentSchema);
149
+ const h = e.value.pop();
150
+ return s.value != null && n.value.push(s.value), s.value = h, JSON.parse(h.componentSchema);
151
151
  }
152
152
  function w() {
153
153
  if (n.value.length === 0)
154
154
  return !1;
155
- const m = n.value.pop();
156
- return r.value != null && e.value.push(r.value), r.value = m, JSON.parse(m.componentSchema);
155
+ const h = n.value.pop();
156
+ return s.value != null && e.value.push(s.value), s.value = h, JSON.parse(h.componentSchema);
157
157
  }
158
158
  function g() {
159
- e.value = [], n.value = [], r.value = null;
159
+ e.value = [], n.value = [], s.value = null;
160
160
  }
161
161
  return {
162
162
  recordList: e,
163
163
  undoList: n,
164
- currentRecord: r,
164
+ currentRecord: s,
165
165
  push: c,
166
166
  undo: a,
167
167
  redo: w,
168
168
  reset: g
169
169
  };
170
170
  }
171
- const je = /* @__PURE__ */ ie({
171
+ const je = /* @__PURE__ */ le({
172
172
  __name: "dynamicFormItem",
173
173
  props: {
174
174
  hasFormItem: { type: Boolean },
@@ -176,22 +176,22 @@ const je = /* @__PURE__ */ ie({
176
176
  },
177
177
  emits: ["updateFormItemRef"],
178
178
  setup(e, { emit: n }) {
179
- const r = z.getComponent("form-item"), s = e, c = n, a = V(), w = () => {
179
+ const s = z.getComponent("form-item"), r = e, c = n, a = P(), w = () => {
180
180
  c("updateFormItemRef", a.value);
181
181
  };
182
- return (g, m) => s.hasFormItem ? (H(), q(R(r), be({
182
+ return (g, h) => r.hasFormItem ? (H(), Y(R(s), be({
183
183
  key: 0,
184
184
  ref_key: "formItemRef",
185
185
  ref: a,
186
186
  onVnodeMounted: w
187
- }, s.formItemProps), {
187
+ }, r.formItemProps), {
188
188
  default: T(() => [
189
189
  K(g.$slots, "default")
190
190
  ]),
191
191
  _: 3
192
192
  }, 16, ["onVnodeMounted"])) : K(g.$slots, "default", { key: 1 });
193
193
  }
194
- }), et = /* @__PURE__ */ ie({
194
+ }), et = /* @__PURE__ */ le({
195
195
  name: "ENode",
196
196
  __name: "node",
197
197
  props: {
@@ -206,16 +206,16 @@ const je = /* @__PURE__ */ ie({
206
206
  },
207
207
  emits: ["update:modelValue", "change", "update:dynamicId"],
208
208
  setup(e, { emit: n }) {
209
- const { proxy: r } = fe(), s = e, c = V(null);
210
- let a = oe("formData", ae({}));
211
- const w = oe("slots", {}), g = oe("pageManager", {}), m = oe("disabled", { value: !1 }), N = oe("ruleFieldPrefix", null), O = oe("resetFormData", !1);
212
- let t = ae(G(s.componentSchema));
213
- S();
209
+ const { proxy: s } = ue(), r = e, c = P(null);
210
+ let a = ne("formData", re({}));
211
+ const w = ne("slots", {}), g = ne("pageManager", {}), h = ne("disabled", { value: !1 }), N = ne("ruleFieldPrefix", null), O = ne("resetFormData", !1);
212
+ let t = re(G(r.componentSchema));
213
+ D();
214
214
  async function x(o) {
215
- if (["cascader", "checkbox", "select", "radio"].includes(o.type) && o.componentProps.dynamicId && s.sourceDateUrl) {
215
+ if (["cascader", "checkbox", "select", "radio"].includes(o.type) && o.componentProps.dynamicId && r.sourceDateUrl) {
216
216
  const u = (await _e({
217
217
  // || "http://192.168.28.205:3000/dev-api/data-source
218
- url: s.sourceDateUrl,
218
+ url: r.sourceDateUrl,
219
219
  method: "get",
220
220
  params: {
221
221
  id: o.componentProps.dynamicId
@@ -243,8 +243,8 @@ const je = /* @__PURE__ */ ie({
243
243
  }
244
244
  });
245
245
  if (u && (u != null && u.dataPath)) {
246
- const Q = u.dataPath.split(".").reduce((te, re) => te[re], _.data);
247
- o.componentProps.options = d(Q, u.dataKey, u.dataValue);
246
+ const q = u.dataPath.split(".").reduce((de, fe) => de[fe], _.data);
247
+ o.componentProps.options = d(q, u.dataKey, u.dataValue);
248
248
  } else
249
249
  o.componentProps.options = d(_.data, u.dataKey, u.dataValue);
250
250
  return o;
@@ -262,26 +262,26 @@ const je = /* @__PURE__ */ ie({
262
262
  }) : [];
263
263
  }
264
264
  B(
265
- () => s.componentSchema,
265
+ () => r.componentSchema,
266
266
  (o) => {
267
- Fe(t, o, ["children"]) || (ce(t, G(o)), S());
267
+ Ve(t, o, ["children"]) || (ae(t, G(o)), D());
268
268
  },
269
269
  {
270
270
  deep: !0
271
271
  }
272
272
  );
273
- function S() {
273
+ function D() {
274
274
  g.isDesignMode.value && typeof t.field == "string" && (t.field += "-design-mode");
275
275
  }
276
- (s.resetFormData || O) && (a = {});
277
- const y = n, E = V(), M = V(), p = (o) => {
276
+ (r.resetFormData || O) && (a = {});
277
+ const y = n, E = P(), M = P(), p = (o) => {
278
278
  M.value = o;
279
- }, D = Re();
280
- Object.keys(D).length && Z("nodeAttrs", D);
279
+ }, S = Re();
280
+ Object.keys(S).length && Z("nodeAttrs", S);
281
281
  const I = Ue(null), C = W(() => {
282
282
  var o, l;
283
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
- }), h = W(() => {
284
+ }), m = W(() => {
285
285
  var u;
286
286
  const o = C.value && ((u = t.rules) == null ? void 0 : u.map((_) => ({
287
287
  ..._,
@@ -289,7 +289,7 @@ const je = /* @__PURE__ */ ie({
289
289
  // 自定义校验函数
290
290
  })));
291
291
  let l = t.field;
292
- s.ruleField ? l = s.ruleField : N && t.field && (l = G(N), l.push(t.field));
292
+ r.ruleField ? l = r.ruleField : N && t.field && (l = G(N), l.push(t.field));
293
293
  const $ = {
294
294
  ...t,
295
295
  rules: o,
@@ -298,37 +298,29 @@ const je = /* @__PURE__ */ ie({
298
298
  };
299
299
  return $.children && delete $.children, $;
300
300
  }), U = W(() => {
301
- var $, u, _, J, Q;
301
+ var $, u, _;
302
302
  const o = (($ = L.value) == null ? void 0 : $.bindModel) ?? "modelValue", l = {};
303
- return t.on && Object.keys(t.on).forEach((te) => {
304
- l[`on${Ye(te)}`] = (...re) => g.doActions(t.on[te], ...re);
303
+ return t.on && Object.keys(t.on).forEach((J) => {
304
+ l[`on${Ye(J)}`] = (...q) => g.doActions(t.on[J], ...q);
305
305
  }), t.type === "selectpage" && (t.componentProps.defaultData = {
306
306
  value: a[t.field],
307
307
  label: a[a[t.field]]
308
- }), console.log("%c [ ]-309", "font-size:13px; background:pink; color:#bf2c9f;", {
309
- ...s,
310
- ...t.componentProps,
311
- sourceDateUrl: s.sourceDateUrl,
312
- // 为了避免禁用对超链接输入框点击的影响
313
- disabled: s.componentSchema.type === "input" && s.componentSchema.componentProps && ((u = s.componentSchema.componentProps) != null && u.isLink) ? !1 : (m == null ? void 0 : m.value) || ((_ = t.componentProps) == null ? void 0 : _.disabled),
314
- bindModel: o,
315
- ...l
316
308
  }), {
317
- ...s,
309
+ ...r,
318
310
  ...t.componentProps,
319
- sourceDateUrl: s.sourceDateUrl,
311
+ sourceDateUrl: r.sourceDateUrl,
320
312
  // 为了避免禁用对超链接输入框点击的影响
321
- disabled: s.componentSchema.type === "input" && s.componentSchema.componentProps && ((J = s.componentSchema.componentProps) != null && J.isLink) ? !1 : (m == null ? void 0 : m.value) || ((Q = t.componentProps) == null ? void 0 : Q.disabled),
313
+ disabled: r.componentSchema.type === "input" && r.componentSchema.componentProps && ((u = r.componentSchema.componentProps) != null && u.isLink) ? !1 : (h == null ? void 0 : h.value) || ((_ = t.componentProps) == null ? void 0 : _.disabled),
322
314
  bindModel: o,
323
315
  ...l
324
316
  };
325
317
  }), L = W(() => z.getComponentConfingByType(t.type) ?? null);
326
318
  he(() => {
327
- c.value = s.modelValue ?? a[t.field ?? ""];
319
+ c.value = r.modelValue ?? a[t.field ?? ""];
328
320
  }), B(
329
321
  () => c.value,
330
322
  () => {
331
- c.value !== (s.modelValue ?? a[t.field ?? ""]) && i(c.value);
323
+ c.value !== (r.modelValue ?? a[t.field ?? ""]) && i(c.value);
332
324
  }
333
325
  ), B(
334
326
  () => E.value,
@@ -339,8 +331,8 @@ const je = /* @__PURE__ */ ie({
339
331
  );
340
332
  function A() {
341
333
  var l;
342
- const o = E.value || r;
343
- 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] || s.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
+ const o = E.value || s;
335
+ 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));
344
336
  }
345
337
  function v() {
346
338
  var o;
@@ -355,7 +347,7 @@ const je = /* @__PURE__ */ ie({
355
347
  if (t.type === "slot") {
356
348
  const _ = t.slotName;
357
349
  if (!_) return;
358
- I.value = ie({
350
+ I.value = le({
359
351
  setup() {
360
352
  return () => K(w, _, {
361
353
  componentSchema: t,
@@ -377,17 +369,17 @@ const je = /* @__PURE__ */ ie({
377
369
  I.value = o;
378
370
  }
379
371
  function f(o) {
380
- console.log("%c [ v ]-462", "font-size:13px; background:pink; color:#bf2c9f;", o), Object.prototype.toString.call(o) === "[object Array]" ? o.forEach((l) => {
372
+ Object.prototype.toString.call(o) === "[object Array]" ? o.forEach((l) => {
381
373
  a[l.value] = l.label;
382
- }) : a[o.value] = o.label, s.id ? j.emit("updateformData" + s.id, a) : j.emit("updateformData", a);
374
+ }) : a[o.value] = o.label, r.id ? j.emit("updateformData" + r.id, a) : j.emit("updateformData", a);
383
375
  }
384
376
  function i(o) {
385
- y("update:modelValue", o), y("change", o), t.field && (a[t.field] = o), s.id ? j.emit("updateformData" + s.id, a) : j.emit("updateformData", a);
377
+ 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);
386
378
  }
387
- function P(o) {
379
+ function F(o) {
388
380
  y("update:dynamicId", o);
389
381
  }
390
- let F = null;
382
+ let V = null;
391
383
  return B(
392
384
  () => t,
393
385
  async (o) => {
@@ -399,9 +391,9 @@ const je = /* @__PURE__ */ ie({
399
391
  options: null
400
392
  }
401
393
  });
402
- if (l === F)
394
+ if (l === V)
403
395
  return !1;
404
- F = l, ee();
396
+ V = l, ee();
405
397
  },
406
398
  {
407
399
  immediate: !0,
@@ -410,31 +402,31 @@ const je = /* @__PURE__ */ ie({
410
402
  ), $e(v), (o, l) => {
411
403
  var u;
412
404
  const $ = Te("ENode");
413
- return I.value && C.value ? (H(), q(je, {
405
+ return I.value && C.value ? (H(), Y(je, {
414
406
  key: 0,
415
407
  hasFormItem: R(t).noFormItem !== !0 && ((u = L.value) == null ? void 0 : u.defaultSchema.input),
416
- formItemProps: h.value,
408
+ formItemProps: m.value,
417
409
  onUpdateFormItemRef: p
418
410
  }, {
419
411
  default: T(() => [
420
- (H(), q(Be(I.value), be({
412
+ (H(), Y(Be(I.value), be({
421
413
  ref_key: "componentInstance",
422
414
  ref: E,
423
415
  onVnodeMounted: A,
424
416
  model: R(a),
425
- sourceDateUrl: s.sourceDateUrl
417
+ sourceDateUrl: r.sourceDateUrl
426
418
  }, { ...U.value }, {
427
419
  [U.value.bindModel]: c.value,
428
420
  ["onUpdate:" + U.value.bindModel]: l[0] || (l[0] = (_) => c.value = _),
429
421
  [`onUpdate:${U.value.bindModel}` || ""]: i,
430
422
  "onUpdate:modelValueLabel": f,
431
- "onUpdate:dynamicId": P
423
+ "onUpdate:dynamicId": F
432
424
  }), {
433
425
  node: T((_) => [
434
- Y($, be({
435
- id: s.id
426
+ Q($, be({
427
+ id: r.id
436
428
  }, _, {
437
- sourceDateUrl: s.sourceDateUrl
429
+ sourceDateUrl: r.sourceDateUrl
438
430
  }), null, 16, ["id", "sourceDateUrl"])
439
431
  ]),
440
432
  "edit-node": T(() => [
@@ -449,88 +441,88 @@ const je = /* @__PURE__ */ ie({
449
441
  }
450
442
  });
451
443
  function tt() {
452
- const e = V(!1), n = Ve(), r = V({});
453
- function s() {
444
+ const e = P(!1), n = Pe(), s = P({});
445
+ function r() {
454
446
  return new Promise((d) => {
455
447
  if (e.value)
456
448
  d();
457
449
  else {
458
- const S = B(e, () => {
459
- S(), d();
450
+ const D = B(e, () => {
451
+ D(), d();
460
452
  });
461
453
  }
462
454
  });
463
455
  }
464
456
  async function c(d = "default") {
465
457
  var y;
466
- await s();
467
- const S = (y = r.value) == null ? void 0 : y[d];
468
- if (!S) throw new Error(`表单 [name=${d}] 不存在`);
469
- return S;
458
+ await r();
459
+ const D = (y = s.value) == null ? void 0 : y[d];
460
+ if (!D) throw new Error(`表单 [name=${d}] 不存在`);
461
+ return D;
470
462
  }
471
- async function a(d, S) {
463
+ async function a(d, D) {
472
464
  const y = await c(d);
473
- return G(await S(y));
465
+ return G(await D(y));
474
466
  }
475
467
  async function w(d = "default") {
476
- return await a(d, (S) => S.getData());
468
+ return await a(d, (D) => D.getData());
477
469
  }
478
- function g(d, S = "default", y = void 0) {
470
+ function g(d, D = "default", y = void 0) {
479
471
  var E, M;
480
472
  if (y && Object.keys(y).length) {
481
- let p = function(h) {
473
+ let p = function(m) {
482
474
  let U = [];
483
- return h.forEach((L) => {
475
+ return m.forEach((L) => {
484
476
  L.children && (U = [...U, ...p(L.children)]), U.push(L);
485
477
  }), U;
486
- }, I = function(h) {
478
+ }, I = function(m) {
487
479
  var L;
488
480
  let U = p((L = y == null ? void 0 : y.schemas[0]) == null ? void 0 : L.children);
489
- return Object.keys(h).forEach((A) => {
490
- var f, i, P, F, o, l, $;
481
+ return Object.keys(m).forEach((A) => {
482
+ var f, i, F, V, o, l, $;
491
483
  const v = U.find((u) => u.field === A), ee = ["datetimerange", "daterange", "monthrange", "dates"];
492
- 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" && !((P = (i = v == null ? void 0 : v.componentProps) == null ? void 0 : i.props) != null && P.multiple) || (v == null ? void 0 : v.type) === "date" && ee.includes((F = v == null ? void 0 : v.componentProps) == null ? void 0 : F.type)) && typeof h[A] == "string")
493
- h[A] = (o = h[A]) == null ? void 0 : o.split(",");
494
- else if ((v == null ? void 0 : v.type) === "cascader" && (($ = (l = v == null ? void 0 : v.componentProps) == null ? void 0 : l.props) != null && $.multiple) && typeof h[A] == "string")
495
- h[A].indexOf(";") === -1 && h[A].indexOf(";") === -1 ? h[A][h[A]] : h[A].indexOf(";") > -1 ? h[A] = h[A].split(";").map((u) => u.split(",")) : h[A].indexOf(";") === -1 ? h[A] = h[A].split(",") : h[A].indexOf(";") > -1 ? h[A] = h[A].split(";").map((u) => u.split(",")) : h[A].indexOf(";") === -1 && (h[A] = h[A].split(","));
496
- else if (((v == null ? void 0 : v.type) === "upload-image" || (v == null ? void 0 : v.type) === "upload-file") && typeof h[A] == "string") {
484
+ 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")
485
+ m[A] = (o = m[A]) == null ? void 0 : o.split(",");
486
+ 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")
487
+ 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(","));
488
+ else if (((v == null ? void 0 : v.type) === "upload-image" || (v == null ? void 0 : v.type) === "upload-file") && typeof m[A] == "string") {
497
489
  let u = [];
498
- Object.entries(h).forEach(([_, J]) => {
499
- h[A] === J && _ !== v.field && _.indexOf("@") > -1 && _.indexOf(A) > -1 && (u = _.split("@")[1].split(","));
500
- }), h[A] = h[A].split(",").map((_, J) => ({
490
+ Object.entries(m).forEach(([_, J]) => {
491
+ m[A] === J && _ !== v.field && _.indexOf("@") > -1 && _.indexOf(A) > -1 && (u = _.split("@")[1].split(","));
492
+ }), m[A] = m[A].split(",").map((_, J) => ({
501
493
  url: _,
502
494
  name: u[J] || _
503
495
  }));
504
- } else (v == null ? void 0 : v.type) === "number" || (v == null ? void 0 : v.type) === "slider" ? h[A] = Number(h[A]) : (v == null ? void 0 : v.type) === "switch" && (h[A] = typeof h[A] == "boolean" ? h[A] : h[A].indexOf("true") > -1);
505
- }), h;
496
+ } else (v == null ? void 0 : v.type) === "number" || (v == null ? void 0 : v.type) === "slider" ? m[A] = Number(m[A]) : (v == null ? void 0 : v.type) === "switch" && (m[A] = typeof m[A] == "boolean" ? m[A] : m[A].indexOf("true") > -1);
497
+ }), m;
506
498
  }(d);
507
- n.setFormData(I, S);
508
- const C = (E = r.value) == null ? void 0 : E[S];
499
+ n.setFormData(I, D);
500
+ const C = (E = s.value) == null ? void 0 : E[D];
509
501
  C == null || C.clearValidate();
510
502
  } else {
511
- n.setFormData(d, S);
512
- const p = (M = r.value) == null ? void 0 : M[S];
503
+ n.setFormData(d, D);
504
+ const p = (M = s.value) == null ? void 0 : M[D];
513
505
  p == null || p.clearValidate();
514
506
  }
515
507
  }
516
- async function m(d = "default") {
517
- return await a(d, async (S) => (await S.validate(), await S.getData()));
508
+ async function h(d = "default") {
509
+ return await a(d, async (D) => (await D.validate(), await D.getData()));
518
510
  }
519
511
  async function N(d) {
520
- await s();
521
- const S = {};
522
- for (const y in r.value) {
523
- const E = r.value[y];
524
- E && (S[y] = G(await d(E)));
512
+ await r();
513
+ const D = {};
514
+ for (const y in s.value) {
515
+ const E = s.value[y];
516
+ E && (D[y] = G(await d(E)));
525
517
  }
526
- return S;
518
+ return D;
527
519
  }
528
520
  async function O() {
529
521
  return await N((d) => d.getData());
530
522
  }
531
523
  function t(d) {
532
- for (const S in d)
533
- g(d[S], S);
524
+ for (const D in d)
525
+ g(d[D], D);
534
526
  }
535
527
  async function x() {
536
528
  return await N(async (d) => (await d.validate(), await d.getData()));
@@ -538,10 +530,10 @@ function tt() {
538
530
  return {
539
531
  ready: e,
540
532
  pageManager: n,
541
- forms: r,
533
+ forms: s,
542
534
  getData: w,
543
535
  setData: g,
544
- validate: m,
536
+ validate: h,
545
537
  getForms: O,
546
538
  setForms: t,
547
539
  validateAll: x,
@@ -551,7 +543,7 @@ function tt() {
551
543
  const nt = {
552
544
  key: 0,
553
545
  class: "epic-loading-box"
554
- }, ot = { class: "epic-builder-main" }, st = { class: "epic-loading-box" }, rt = /* @__PURE__ */ ie({
546
+ }, ot = { class: "epic-builder-main" }, st = { class: "epic-loading-box" }, rt = /* @__PURE__ */ le({
555
547
  __name: "builder",
556
548
  props: {
557
549
  pageSchema: {},
@@ -561,14 +553,14 @@ const nt = {
561
553
  id: {}
562
554
  },
563
555
  emits: ["change", "ready"],
564
- setup(e, { expose: n, emit: r }) {
565
- const s = le(() => import("./index-DgcFxYFp.js")), c = r, a = V([]), w = V({}), { ready: g, pageManager: m, forms: N, getData: O, setData: t, validate: x, getForms: d, setForms: S, validateAll: y, getFormInstance: E } = tt(), M = e, p = ae({
556
+ setup(e, { expose: n, emit: s }) {
557
+ 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: D, validateAll: y, getFormInstance: E } = tt(), M = e, p = re({
566
558
  schemas: []
567
559
  });
568
560
  B(
569
561
  () => M.pageSchema,
570
562
  (f) => {
571
- ce(p, f);
563
+ ae(p, f);
572
564
  },
573
565
  {
574
566
  immediate: !0,
@@ -587,84 +579,84 @@ const nt = {
587
579
  deep: !0
588
580
  }
589
581
  );
590
- function D(f) {
582
+ function S(f) {
591
583
  let i = [];
592
- return f.forEach((P) => {
593
- P.children && (i = [...i, ...D(P.children)]), i.push(P);
584
+ return f.forEach((F) => {
585
+ F.children && (i = [...i, ...S(F.children)]), i.push(F);
594
586
  }), i;
595
587
  }
596
588
  function I(f, i) {
597
- function P(o) {
589
+ function F(o) {
598
590
  return JSON.parse(JSON.stringify(o));
599
591
  }
600
- function F(o, l) {
592
+ function V(o, l) {
601
593
  if (o.type === "card" && o.multiple && o.field && Array.isArray(l[o.field]))
602
594
  return l[o.field].map((u) => {
603
595
  var J;
604
- const _ = P({ ...o, multiple: !0 });
605
- return _.children = (J = _.children) == null ? void 0 : J.map((Q) => F(Q, u)).flat(), _;
596
+ const _ = F({ ...o, multiple: !0 });
597
+ return _.children = (J = _.children) == null ? void 0 : J.map((q) => V(q, u)).flat(), _;
606
598
  });
607
- const $ = P(o);
608
- return Array.isArray($.children) && ($.children = $.children.map((u) => F(u, l)).flat()), $;
599
+ const $ = F(o);
600
+ return Array.isArray($.children) && ($.children = $.children.map((u) => V(u, l)).flat()), $;
609
601
  }
610
- return f.map((o) => F(o, i)).flat();
602
+ return f.map((o) => V(o, i)).flat();
611
603
  }
612
- function C(f, i = "", P = { root: 0 }) {
613
- const F = i || "root";
614
- return i || (P.root = 0), P[F] === void 0 && (P[F] = 0), f.map((o) => {
604
+ function C(f, i = "", F = { root: 0 }) {
605
+ const V = i || "root";
606
+ return i || (F.root = 0), F[V] === void 0 && (F[V] = 0), f.map((o) => {
615
607
  o.field && (o.oldField = JSON.parse(JSON.stringify(o.field)));
616
608
  const l = { ...o };
617
609
  if (o.type === "card") {
618
610
  const $ = o.field || "";
619
- o.multiple ? (l.field = i ? `${i}.${$}[${P[F]}]` : `${$}[${P[F]}]`, P[F]++) : o.field && i && (l.field = `${i}.${$}`);
611
+ o.multiple ? (l.field = i ? `${i}.${$}[${F[V]}]` : `${$}[${F[V]}]`, F[V]++) : o.field && i && (l.field = `${i}.${$}`);
620
612
  const u = l.field || i;
621
- P[u] = 0;
613
+ F[u] = 0;
622
614
  } else o.field && i && (l.field = `${i}.${o.field}`);
623
- return o.children && (l.children = C(o.children, l.field || i, P)), l;
615
+ return o.children && (l.children = C(o.children, l.field || i, F)), l;
624
616
  });
625
617
  }
626
- function h(f, i, P = "", F = {}) {
627
- const o = P || "root";
628
- return F[o] === void 0 && (F[o] = 0), f.forEach((l) => {
618
+ function m(f, i, F = "", V = {}) {
619
+ const o = F || "root";
620
+ return V[o] === void 0 && (V[o] = 0), f.forEach((l) => {
629
621
  const $ = l.field || "";
630
- let u = P ? `${P}.${$}` : `${$}`;
631
- l.type === "card" && l.multiple ? (typeof i[u][`${F[o]}`] == "object" ? Object.keys(i[u][`${F[o]}`]).forEach((_) => {
632
- i[`${u}[${F[o]}].${_}`] = i[u][`${F[o]}`][_];
633
- }) : i[`${u}[${F[o]}]`] = i[u][`${F[o]}`], l.children && (l.children = h(
622
+ let u = F ? `${F}.${$}` : `${$}`;
623
+ l.type === "card" && l.multiple ? (typeof i[u][`${V[o]}`] == "object" ? Object.keys(i[u][`${V[o]}`]).forEach((_) => {
624
+ i[`${u}[${V[o]}].${_}`] = i[u][`${V[o]}`][_];
625
+ }) : i[`${u}[${V[o]}]`] = i[u][`${V[o]}`], l.children && (l.children = m(
634
626
  l.children,
635
627
  i,
636
- `${u}[${F[o]}]` || P,
637
- F
638
- )), F[o]++) : l.children && (l.children = h(l.children, i, P, F));
639
- }), F[o] = 0, i;
628
+ `${u}[${V[o]}]` || F,
629
+ V
630
+ )), V[o]++) : l.children && (l.children = m(l.children, i, F, V));
631
+ }), V[o] = 0, i;
640
632
  }
641
- function U(f, i, P) {
642
- let F = h(G(f), G(i));
633
+ function U(f, i, F) {
634
+ let V = m(G(f), G(i));
643
635
  return {
644
636
  obj: C(f),
645
- dataObj: F
637
+ dataObj: V
646
638
  };
647
639
  }
648
640
  function L(f) {
649
- let i = D(M.pageSchema.schemas[0].children);
641
+ let i = S(M.pageSchema.schemas[0].children);
650
642
  a.value = i.filter((l) => l.type === "card" && l.multiple);
651
- const P = I(M.pageSchema.schemas[0].children, f);
652
- let { obj: F, dataObj: o } = U(P, f, a.value);
653
- return f = o, M.pageSchema.schemas[0].children = F, Object.keys(f).forEach((l) => {
654
- var $, u, _, J, Q, te, re;
643
+ const F = I(M.pageSchema.schemas[0].children, f);
644
+ let { obj: V, dataObj: o } = U(F, f, a.value);
645
+ return f = o, M.pageSchema.schemas[0].children = V, Object.keys(f).forEach((l) => {
646
+ var $, u, _, J, q, de, fe;
655
647
  if (l.indexOf("@") < 0) {
656
648
  const b = i.find((X) => X.field === l), Me = ["datetimerange", "daterange", "monthrange", "dates"];
657
649
  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")
658
- f[l] = (Q = f[l]) == null ? void 0 : Q.split(",");
659
- else if ((b == null ? void 0 : b.type) === "cascader" && ((re = (te = b == null ? void 0 : b.componentProps) == null ? void 0 : te.props) != null && re.multiple) && typeof f[l] == "string")
650
+ f[l] = (q = f[l]) == null ? void 0 : q.split(",");
651
+ 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")
660
652
  f[l].indexOf(";") > -1 ? f[l] = f[l].split(";").map((X) => X.split(",")) : f[l] = f[l].split(","), f[l].indexOf(";") > -1 ? f[l] = f[l].split(";").map((X) => X.split(",")) : f[l] = f[l].split(",");
661
653
  else if (((b == null ? void 0 : b.type) === "upload-image" || (b == null ? void 0 : b.type) === "upload-file") && typeof f[l] == "string") {
662
654
  let X = [];
663
- Object.entries(f).forEach(([ne, ye]) => {
664
- f[l] === ye && ne !== b.field && ne.indexOf("@") > -1 && ne.indexOf(l) > -1 && (X = ne.split("@")[1].split(","));
665
- }), f[l] = f[l].split(",").map((ne, ye) => ({
666
- url: ne,
667
- name: X[ye] || ne
655
+ Object.entries(f).forEach(([te, ye]) => {
656
+ f[l] === ye && te !== b.field && te.indexOf("@") > -1 && te.indexOf(l) > -1 && (X = te.split("@")[1].split(","));
657
+ }), f[l] = f[l].split(",").map((te, ye) => ({
658
+ url: te,
659
+ name: X[ye] || te
668
660
  }));
669
661
  } else (b == null ? void 0 : b.type) === "number" || (b == null ? void 0 : b.type) === "slider" ? f[l] = Number(f[l]) : (b == null ? void 0 : b.type) === "switch" && (f[l] = typeof f[l] == "boolean" ? f[l] : f[l].indexOf("true") > -1);
670
662
  }
@@ -673,50 +665,50 @@ const nt = {
673
665
  B(
674
666
  () => p.script,
675
667
  (f) => {
676
- f && m.setMethods(f, !0);
668
+ f && h.setMethods(f, !0);
677
669
  },
678
670
  {
679
671
  immediate: !0
680
672
  }
681
- ), Z("slots", Le()), Z("pageManager", m), Z("forms", N), Z("pageSchema", p), Z(
673
+ ), Z("slots", Le()), Z("pageManager", h), Z("forms", N), Z("pageSchema", p), Z(
682
674
  "disabled",
683
675
  W(() => M.disabled)
684
676
  );
685
- const A = fe(), v = A == null ? void 0 : A.proxy;
677
+ const A = ue(), v = A == null ? void 0 : A.proxy;
686
678
  function ee() {
687
- de(() => {
688
- g.value = !0, c("ready", m), v && m.addComponentInstance("builder", v);
679
+ ce(() => {
680
+ g.value = !0, c("ready", h), v && h.addComponentInstance("builder", v);
689
681
  });
690
682
  }
691
683
  return j.on("updateformData" + (M.id ? M.id : ""), (f) => {
692
684
  c("change", f);
693
685
  }), n({
694
686
  ready: g,
695
- pageManager: m,
687
+ pageManager: h,
696
688
  getData: O,
697
689
  setData: t,
698
690
  validate: x,
699
691
  getForms: d,
700
- setForms: S,
692
+ setForms: D,
701
693
  validateAll: y,
702
694
  getFormInstance: E
703
- }), (f, i) => R(z).initialized.value ? (H(), q(Pe, {
695
+ }), (f, i) => R(z).initialized.value ? (H(), Y(Fe, {
704
696
  key: 1,
705
697
  onResolve: ee
706
698
  }, {
707
699
  default: T(() => [
708
700
  k("div", ot, [
709
- (H(!0), Ee(Je, null, ze(p.schemas, (P, F) => (H(), q(R(et), {
701
+ (H(!0), Ee(Je, null, ze(p.schemas, (F, V) => (H(), Y(R(et), {
710
702
  id: M.id,
711
- key: F,
703
+ key: V,
712
704
  sourceDateUrl: M.sourceDateUrl,
713
- componentSchema: P
705
+ componentSchema: F
714
706
  }, null, 8, ["id", "sourceDateUrl", "componentSchema"]))), 128))
715
707
  ])
716
708
  ]),
717
709
  fallback: T(() => [
718
710
  k("div", st, [
719
- Y(R(s))
711
+ Q(R(r))
720
712
  ])
721
713
  ]),
722
714
  _: 1
@@ -727,13 +719,13 @@ function xe(e) {
727
719
  return Ze() ? (We(e), !0) : !1;
728
720
  }
729
721
  function lt(e) {
730
- let n = 0, r, s;
722
+ let n = 0, s, r;
731
723
  const c = () => {
732
- n -= 1, s && n <= 0 && (s.stop(), r = void 0, s = void 0);
724
+ n -= 1, r && n <= 0 && (r.stop(), s = void 0, r = void 0);
733
725
  };
734
- return (...a) => (n += 1, s || (s = He(!0), r = s.run(() => e(...a))), xe(c), r);
726
+ return (...a) => (n += 1, r || (r = He(!0), s = r.run(() => e(...a))), xe(c), s);
735
727
  }
736
- function ue(e) {
728
+ function ie(e) {
737
729
  return typeof e == "function" ? e() : R(e);
738
730
  }
739
731
  const at = typeof window < "u" && typeof document < "u";
@@ -741,56 +733,56 @@ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
741
733
  const it = (e) => typeof e < "u", ct = Object.prototype.toString, ut = (e) => ct.call(e) === "[object Object]", dt = () => {
742
734
  };
743
735
  function ft(e) {
744
- return fe();
736
+ return ue();
745
737
  }
746
- function pt(e, n = !0, r) {
747
- ft() ? Ae(e, r) : n ? e() : de(e);
738
+ function pt(e, n = !0, s) {
739
+ ft() ? Ae(e, s) : n ? e() : ce(e);
748
740
  }
749
741
  function mt(e = !1, n = {}) {
750
742
  const {
751
- truthyValue: r = !0,
752
- falsyValue: s = !1
753
- } = n, c = Ke(e), a = V(e);
743
+ truthyValue: s = !0,
744
+ falsyValue: r = !1
745
+ } = n, c = Ke(e), a = P(e);
754
746
  function w(g) {
755
747
  if (arguments.length)
756
748
  return a.value = g, a.value;
757
749
  {
758
- const m = ue(r);
759
- return a.value = a.value === m ? ue(s) : m, a.value;
750
+ const h = ie(s);
751
+ return a.value = a.value === h ? ie(r) : h, a.value;
760
752
  }
761
753
  }
762
754
  return c ? w : [a, w];
763
755
  }
764
- function Jt(e, n, r) {
765
- const s = B(e, (...c) => (de(() => s()), n(...c)), r);
766
- return s;
756
+ function Jt(e, n, s) {
757
+ const r = B(e, (...c) => (ce(() => r()), n(...c)), s);
758
+ return r;
767
759
  }
768
760
  const ve = at ? window : void 0;
769
- function se(e) {
761
+ function oe(e) {
770
762
  var n;
771
- const r = ue(e);
772
- return (n = r == null ? void 0 : r.$el) != null ? n : r;
763
+ const s = ie(e);
764
+ return (n = s == null ? void 0 : s.$el) != null ? n : s;
773
765
  }
774
766
  function ht(...e) {
775
- let n, r, s, c;
776
- if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([r, s, c] = e, n = ve) : [n, r, s, c] = e, !n)
767
+ let n, s, r, c;
768
+ if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([s, r, c] = e, n = ve) : [n, s, r, c] = e, !n)
777
769
  return dt;
778
- Array.isArray(r) || (r = [r]), Array.isArray(s) || (s = [s]);
770
+ Array.isArray(s) || (s = [s]), Array.isArray(r) || (r = [r]);
779
771
  const a = [], w = () => {
780
772
  a.forEach((O) => O()), a.length = 0;
781
- }, g = (O, t, x, d) => (O.addEventListener(t, x, d), () => O.removeEventListener(t, x, d)), m = B(
782
- () => [se(n), ue(c)],
773
+ }, g = (O, t, x, d) => (O.addEventListener(t, x, d), () => O.removeEventListener(t, x, d)), h = B(
774
+ () => [oe(n), ie(c)],
783
775
  ([O, t]) => {
784
776
  if (w(), !O)
785
777
  return;
786
778
  const x = ut(t) ? { ...t } : t;
787
779
  a.push(
788
- ...r.flatMap((d) => s.map((S) => g(O, d, S, x)))
780
+ ...s.flatMap((d) => r.map((D) => g(O, d, D, x)))
789
781
  );
790
782
  },
791
783
  { immediate: !0, flush: "post" }
792
784
  ), N = () => {
793
- m(), w();
785
+ h(), w();
794
786
  };
795
787
  return xe(N), N;
796
788
  }
@@ -798,26 +790,26 @@ function vt(e) {
798
790
  return typeof e == "function" ? e : typeof e == "string" ? (n) => n.key === e : Array.isArray(e) ? (n) => e.includes(n.key) : () => !0;
799
791
  }
800
792
  function Ce(...e) {
801
- let n, r, s = {};
802
- e.length === 3 ? (n = e[0], r = e[1], s = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (n = !0, r = e[0], s = e[1]) : (n = e[0], r = e[1]) : (n = !0, r = e[0]);
793
+ let n, s, r = {};
794
+ 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]);
803
795
  const {
804
796
  target: c = ve,
805
797
  eventName: a = "keydown",
806
798
  passive: w = !1,
807
799
  dedupe: g = !1
808
- } = s, m = vt(n);
800
+ } = r, h = vt(n);
809
801
  return ht(c, a, (O) => {
810
- O.repeat && ue(g) || m(O) && r(O);
802
+ O.repeat && ie(g) || h(O) && s(O);
811
803
  }, w);
812
804
  }
813
- function we(e, n, r = {}) {
814
- return Ce(e, n, { ...r, eventName: "keydown" });
805
+ function we(e, n, s = {}) {
806
+ return Ce(e, n, { ...s, eventName: "keydown" });
815
807
  }
816
- function Se(e, n, r = {}) {
817
- return Ce(e, n, { ...r, eventName: "keyup" });
808
+ function De(e, n, s = {}) {
809
+ return Ce(e, n, { ...s, eventName: "keyup" });
818
810
  }
819
811
  function gt() {
820
- const e = V(!1), n = fe();
812
+ const e = P(!1), n = ue();
821
813
  return n && Ae(() => {
822
814
  e.value = !0;
823
815
  }, n), e;
@@ -829,18 +821,18 @@ function yt(e) {
829
821
  function wt(e) {
830
822
  return JSON.parse(JSON.stringify(e));
831
823
  }
832
- function St(e, n, r = {}) {
833
- const { window: s = ve, ...c } = r;
824
+ function Dt(e, n, s = {}) {
825
+ const { window: r = ve, ...c } = s;
834
826
  let a;
835
- const w = yt(() => s && "ResizeObserver" in s), g = () => {
827
+ const w = yt(() => r && "ResizeObserver" in r), g = () => {
836
828
  a && (a.disconnect(), a = void 0);
837
- }, m = W(() => {
838
- const t = ue(e);
839
- return Array.isArray(t) ? t.map((x) => se(x)) : [se(t)];
829
+ }, h = W(() => {
830
+ const t = ie(e);
831
+ return Array.isArray(t) ? t.map((x) => oe(x)) : [oe(t)];
840
832
  }), N = B(
841
- m,
833
+ h,
842
834
  (t) => {
843
- if (g(), w.value && s) {
835
+ if (g(), w.value && r) {
844
836
  a = new ResizeObserver(n);
845
837
  for (const x of t)
846
838
  x && a.observe(x, c);
@@ -855,40 +847,40 @@ function St(e, n, r = {}) {
855
847
  stop: O
856
848
  };
857
849
  }
858
- function zt(e, n = { width: 0, height: 0 }, r = {}) {
859
- const { window: s = ve, box: c = "content-box" } = r, a = W(() => {
850
+ function zt(e, n = { width: 0, height: 0 }, s = {}) {
851
+ const { window: r = ve, box: c = "content-box" } = s, a = W(() => {
860
852
  var t, x;
861
- return (x = (t = se(e)) == null ? void 0 : t.namespaceURI) == null ? void 0 : x.includes("svg");
862
- }), w = V(n.width), g = V(n.height), { stop: m } = St(
853
+ return (x = (t = oe(e)) == null ? void 0 : t.namespaceURI) == null ? void 0 : x.includes("svg");
854
+ }), w = P(n.width), g = P(n.height), { stop: h } = Dt(
863
855
  e,
864
856
  ([t]) => {
865
857
  const x = c === "border-box" ? t.borderBoxSize : c === "content-box" ? t.contentBoxSize : t.devicePixelContentBoxSize;
866
- if (s && a.value) {
867
- const d = se(e);
858
+ if (r && a.value) {
859
+ const d = oe(e);
868
860
  if (d) {
869
- const S = d.getBoundingClientRect();
870
- w.value = S.width, g.value = S.height;
861
+ const D = d.getBoundingClientRect();
862
+ w.value = D.width, g.value = D.height;
871
863
  }
872
864
  } else if (x) {
873
865
  const d = Array.isArray(x) ? x : [x];
874
- w.value = d.reduce((S, { inlineSize: y }) => S + y, 0), g.value = d.reduce((S, { blockSize: y }) => S + y, 0);
866
+ w.value = d.reduce((D, { inlineSize: y }) => D + y, 0), g.value = d.reduce((D, { blockSize: y }) => D + y, 0);
875
867
  } else
876
868
  w.value = t.contentRect.width, g.value = t.contentRect.height;
877
869
  },
878
- r
870
+ s
879
871
  );
880
872
  pt(() => {
881
- const t = se(e);
873
+ const t = oe(e);
882
874
  t && (w.value = "offsetWidth" in t ? t.offsetWidth : n.width, g.value = "offsetHeight" in t ? t.offsetHeight : n.height);
883
875
  });
884
876
  const N = B(
885
- () => se(e),
877
+ () => oe(e),
886
878
  (t) => {
887
879
  w.value = t ? n.width : 0, g.value = t ? n.height : 0;
888
880
  }
889
881
  );
890
882
  function O() {
891
- m(), N();
883
+ h(), N();
892
884
  }
893
885
  return {
894
886
  width: w,
@@ -896,33 +888,33 @@ function zt(e, n = { width: 0, height: 0 }, r = {}) {
896
888
  stop: O
897
889
  };
898
890
  }
899
- function Ht(e, n, r, s = {}) {
891
+ function Ht(e, n, s, r = {}) {
900
892
  var c, a, w;
901
893
  const {
902
894
  clone: g = !1,
903
- passive: m = !1,
895
+ passive: h = !1,
904
896
  eventName: N,
905
897
  deep: O = !1,
906
898
  defaultValue: t,
907
899
  shouldEmit: x
908
- } = s, d = fe(), S = r || (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));
900
+ } = r, d = ue(), D = 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));
909
901
  let y = N;
910
902
  n || (n = "modelValue"), y = y || `update:${n.toString()}`;
911
- const E = (D) => g ? typeof g == "function" ? g(D) : wt(D) : D, M = () => it(e[n]) ? E(e[n]) : t, p = (D) => {
912
- x ? x(D) && S(y, D) : S(y, D);
903
+ const E = (S) => g ? typeof g == "function" ? g(S) : wt(S) : S, M = () => it(e[n]) ? E(e[n]) : t, p = (S) => {
904
+ x ? x(S) && D(y, S) : D(y, S);
913
905
  };
914
- if (m) {
915
- const D = M(), I = V(D);
906
+ if (h) {
907
+ const S = M(), I = P(S);
916
908
  let C = !1;
917
909
  return B(
918
910
  () => e[n],
919
- (h) => {
920
- C || (C = !0, I.value = E(h), de(() => C = !1));
911
+ (m) => {
912
+ C || (C = !0, I.value = E(m), ce(() => C = !1));
921
913
  }
922
914
  ), B(
923
915
  I,
924
- (h) => {
925
- !C && (h !== e[n] || O) && p(h);
916
+ (m) => {
917
+ !C && (m !== e[n] || O) && p(m);
926
918
  },
927
919
  { deep: O }
928
920
  ), I;
@@ -931,8 +923,8 @@ function Ht(e, n, r, s = {}) {
931
923
  get() {
932
924
  return M();
933
925
  },
934
- set(D) {
935
- p(D);
926
+ set(S) {
927
+ p(S);
936
928
  }
937
929
  });
938
930
  }
@@ -943,8 +935,8 @@ function Kt() {
943
935
  toggleDark: n
944
936
  };
945
937
  }
946
- function Dt() {
947
- const e = V(!1);
938
+ function St() {
939
+ const e = P(!1);
948
940
  return Ae(() => {
949
941
  bt(e), Et(e);
950
942
  }), B(
@@ -961,61 +953,61 @@ function bt(e) {
961
953
  n && (n.classList.contains("dark") ? e.value = !0 : e.value = !1);
962
954
  }
963
955
  function Et(e) {
964
- var n = document.querySelector("html"), r = new MutationObserver(function(s) {
965
- for (var c of s)
956
+ var n = document.querySelector("html"), s = new MutationObserver(function(r) {
957
+ for (var c of r)
966
958
  if (c.type === "attributes" && c.attributeName === "class") {
967
959
  const a = c.target;
968
960
  new Array(...a.classList).includes("dark") ? e.value = !0 : e.value = !1;
969
961
  }
970
962
  });
971
- r.observe(n, {
963
+ s.observe(n, {
972
964
  attributes: !0,
973
965
  attributeFilter: ["class"]
974
966
  }), $e(() => {
975
- r.disconnect();
967
+ s.disconnect();
976
968
  });
977
969
  }
978
970
  function At() {
979
- const e = V(1), n = V(!1), { isDark: r } = Dt(), { pressSpace: s, pressShift: c, pressCtrl: a } = Ot();
971
+ const e = P(1), n = P(!1), { isDark: s } = St(), { pressSpace: r, pressShift: c, pressCtrl: a } = Ot();
980
972
  return {
981
973
  canvasScale: e,
982
- pressSpace: s,
974
+ pressSpace: r,
983
975
  pressShift: c,
984
976
  pressCtrl: a,
985
977
  disabledZoom: n,
986
- isDark: r
978
+ isDark: s
987
979
  };
988
980
  }
989
981
  const ge = lt(At);
990
982
  function Ot() {
991
- const e = V(!1), n = V(!1), r = V(!1);
983
+ const e = P(!1), n = P(!1), s = P(!1);
992
984
  return we(" ", () => {
993
985
  e.value = !0;
994
- }), Se(" ", () => {
986
+ }), De(" ", () => {
995
987
  e.value = !1;
996
- }), we("Shift", (s) => {
997
- s.preventDefault(), n.value = !0;
998
- }), Se("Shift", () => {
988
+ }), we("Shift", (r) => {
989
+ r.preventDefault(), n.value = !0;
990
+ }), De("Shift", () => {
999
991
  n.value = !1;
1000
- }), we("Control", (s) => {
1001
- s.preventDefault(), r.value = !0;
1002
- }), Se("Control", () => {
1003
- r.value = !1;
1004
- }), { pressSpace: e, pressShift: n, pressCtrl: r };
992
+ }), we("Control", (r) => {
993
+ r.preventDefault(), s.value = !0;
994
+ }), De("Control", () => {
995
+ s.value = !1;
996
+ }), { pressSpace: e, pressShift: n, pressCtrl: s };
1005
997
  }
1006
998
  function Zt(e) {
1007
- const { pressSpace: n } = ge(), r = new Image(1, 1);
1008
- r.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==";
1009
- let s = 0, c = 0;
1010
- function a(m) {
999
+ const { pressSpace: n } = ge(), s = new Image(1, 1);
1000
+ s.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==";
1001
+ let r = 0, c = 0;
1002
+ function a(h) {
1011
1003
  var N;
1012
- n.value && (s = m.x, c = m.y, (N = m.dataTransfer) == null || N.setDragImage(document.createElement("div"), 0, 0));
1004
+ n.value && (r = h.x, c = h.y, (N = h.dataTransfer) == null || N.setDragImage(document.createElement("div"), 0, 0));
1013
1005
  }
1014
- function w(m) {
1015
- if (m.preventDefault(), !m.x || !m.y || !n.value)
1006
+ function w(h) {
1007
+ if (h.preventDefault(), !h.x || !h.y || !n.value)
1016
1008
  return;
1017
- const N = m.x - s, O = m.y - c;
1018
- s = m.x, c = m.y, e.value && (e.value.scrollTop -= O, e.value.scrollLeft -= N);
1009
+ const N = h.x - r, O = h.y - c;
1010
+ r = h.x, c = h.y, e.value && (e.value.scrollTop -= O, e.value.scrollLeft -= N);
1019
1011
  }
1020
1012
  function g() {
1021
1013
  n.value = !1;
@@ -1023,38 +1015,38 @@ function Zt(e) {
1023
1015
  return { handleElementDragStart: a, handleElementDrag: w, handleElementDragEnd: g };
1024
1016
  }
1025
1017
  function Wt(e) {
1026
- const { pressCtrl: n, canvasScale: r, disabledZoom: s } = ge();
1018
+ const { pressCtrl: n, canvasScale: s, disabledZoom: r } = ge();
1027
1019
  function c(a) {
1028
- if (!n.value || s.value)
1020
+ if (!n.value || r.value)
1029
1021
  return;
1030
1022
  a.preventDefault();
1031
1023
  let w = 0;
1032
- a.deltaY < 0 ? w = r.value + 0.05 : w = r.value - 0.05, !(w > 150 || w < 0.5) && (r.value = w);
1024
+ a.deltaY < 0 ? w = s.value + 0.05 : w = s.value - 0.05, !(w > 150 || w < 0.5) && (s.value = w);
1033
1025
  }
1034
1026
  return B(
1035
- () => r.value,
1027
+ () => s.value,
1036
1028
  (a) => {
1037
- e.value && !s.value && (e.value.style.transform = `scale(${a})`);
1029
+ e.value && !r.value && (e.value.style.transform = `scale(${a})`);
1038
1030
  }
1039
- ), { handleZoom: c, canvasScale: r };
1031
+ ), { handleZoom: c, canvasScale: s };
1040
1032
  }
1041
1033
  function Gt(e, n = 16.66) {
1042
- let r;
1043
- function s() {
1044
- c(), r = window.setInterval(e, n);
1034
+ let s;
1035
+ function r() {
1036
+ c(), s = window.setInterval(e, n);
1045
1037
  }
1046
1038
  function c() {
1047
- window.clearInterval(r);
1039
+ window.clearInterval(s);
1048
1040
  }
1049
1041
  return {
1050
- startTimedQuery: s,
1042
+ startTimedQuery: r,
1051
1043
  stopTimedQuery: c
1052
1044
  };
1053
1045
  }
1054
- const xt = { class: "min-w-750px rounded" }, It = { class: "h-full rounded" }, _t = /* @__PURE__ */ ie({
1046
+ const xt = { class: "min-w-750px rounded" }, It = { class: "h-full rounded" }, _t = /* @__PURE__ */ le({
1055
1047
  __name: "index",
1056
1048
  setup(e, { expose: n }) {
1057
- const r = z.getComponent("monacoEditor"), s = z.getComponent("modal"), c = V(null), a = V(!1), w = V(!1), g = V({}), m = oe("pageSchema"), N = V(null), O = V("");
1049
+ 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("");
1058
1050
  function t() {
1059
1051
  w.value = !1;
1060
1052
  }
@@ -1064,14 +1056,14 @@ const xt = { class: "min-w-750px rounded" }, It = { class: "h-full rounded" }, _
1064
1056
  function d() {
1065
1057
  a.value = !0, O.value = qe();
1066
1058
  }
1067
- async function S() {
1059
+ async function D() {
1068
1060
  try {
1069
1061
  let y = await N.value.validateAll();
1070
1062
  if (!Object.keys(y).length) {
1071
1063
  alert("请添加表单组件后再尝试!");
1072
1064
  return;
1073
1065
  }
1074
- Object.keys(y).length === 1 && (y = y.default), g.value = JSON.stringify(y, null, 2), de(() => {
1066
+ Object.keys(y).length === 1 && (y = y.default), g.value = JSON.stringify(y, null, 2), ce(() => {
1075
1067
  var E;
1076
1068
  (E = c.value) == null || E.setValue(g.value);
1077
1069
  }), w.value = !0;
@@ -1081,25 +1073,25 @@ const xt = { class: "min-w-750px rounded" }, It = { class: "h-full rounded" }, _
1081
1073
  }
1082
1074
  return n({
1083
1075
  handleOpen: d
1084
- }), (y, E) => (H(), q(R(s), {
1076
+ }), (y, E) => (H(), Y(R(r), {
1085
1077
  modelValue: a.value,
1086
1078
  "onUpdate:modelValue": E[1] || (E[1] = (M) => a.value = M),
1087
1079
  title: "预览",
1088
1080
  class: "w-900px",
1089
1081
  width: "900px",
1090
1082
  onClose: x,
1091
- onOk: S,
1083
+ onOk: D,
1092
1084
  okText: "表单数据"
1093
1085
  }, {
1094
1086
  default: T(() => [
1095
1087
  k("div", xt, [
1096
- (H(), q(R(rt), {
1088
+ (H(), Y(R(rt), {
1097
1089
  key: O.value,
1098
1090
  ref_key: "kb",
1099
1091
  ref: N,
1100
- "page-schema": R(m)
1092
+ "page-schema": R(h)
1101
1093
  }, null, 8, ["page-schema"])),
1102
- Y(R(s), {
1094
+ Q(R(r), {
1103
1095
  modelValue: w.value,
1104
1096
  "onUpdate:modelValue": E[0] || (E[0] = (M) => w.value = M),
1105
1097
  title: "表单数据",
@@ -1110,7 +1102,7 @@ const xt = { class: "min-w-750px rounded" }, It = { class: "h-full rounded" }, _
1110
1102
  }, {
1111
1103
  default: T(() => [
1112
1104
  k("div", It, [
1113
- Y(R(r), {
1105
+ Q(R(s), {
1114
1106
  ref_key: "monacoEditorRef",
1115
1107
  ref: c,
1116
1108
  autoToggleTheme: "",
@@ -1130,7 +1122,7 @@ const xt = { class: "min-w-750px rounded" }, It = { class: "h-full rounded" }, _
1130
1122
  }), $t = {
1131
1123
  key: 0,
1132
1124
  class: "epic-loading-box"
1133
- }, Nt = { class: "epic-designer-main" }, Pt = { class: "epic-header-container" }, Ft = { class: "epic-loading-box" }, Qt = /* @__PURE__ */ ie({
1125
+ }, Nt = { class: "epic-designer-main" }, Ft = { class: "epic-header-container" }, Vt = { class: "epic-loading-box" }, Qt = /* @__PURE__ */ le({
1134
1126
  __name: "designer",
1135
1127
  props: {
1136
1128
  disabledZoom: { type: Boolean, default: !1 },
@@ -1152,17 +1144,17 @@ const xt = { class: "min-w-750px rounded" }, It = { class: "h-full rounded" }, _
1152
1144
  "deleteSourceData",
1153
1145
  "updateSourceData"
1154
1146
  ],
1155
- setup(e, { expose: n, emit: r }) {
1156
- const { t: s } = Oe(), c = le(() => import("./index-IGxCNti8.js")), a = le(() => import("./index-WkZdU_zw.js")), w = le(() => import("./index-gdly69qM.js")), g = le(() => import("./index-Cln9MN7u.js")), m = le(() => import("./index-DgcFxYFp.js")), N = Ve(), O = ke(), t = e;
1147
+ setup(e, { expose: n, emit: s }) {
1148
+ const { t: r } = Oe(), c = se(() => import("./index-IGxCNti8.js")), a = se(() => import("./index-WkZdU_zw.js")), w = se(() => import("./index-BbTWJKHb.js")), g = se(() => import("./index-Cln9MN7u.js")), h = se(() => import("./index-DgcFxYFp.js")), N = Pe(), O = ke(), t = e;
1157
1149
  let x = {
1158
1150
  schemas: [
1159
1151
  {
1160
1152
  type: "form",
1161
1153
  id: "root",
1162
- label: s("page"),
1154
+ label: r("page"),
1163
1155
  children: [],
1164
1156
  componentProps: {
1165
- name: s("form"),
1157
+ name: r("form"),
1166
1158
  style: {
1167
1159
  padding: "16px"
1168
1160
  }
@@ -1207,12 +1199,12 @@ defineExpose({
1207
1199
  }
1208
1200
  t.source && z.setSourceData(t.source), t.formMode && (x.schemas = z.formSchemas);
1209
1201
  }), N.setDesignMode(), N.setDefaultComponentIds(x.schemas);
1210
- const d = r, S = V(null), y = ae({
1202
+ const d = s, D = P(null), y = re({
1211
1203
  checkedNode: null,
1212
1204
  hoverNode: null,
1213
1205
  disableHover: !1,
1214
1206
  matched: []
1215
- }), E = ae({
1207
+ }), E = re({
1216
1208
  schemas: [],
1217
1209
  script: x.script
1218
1210
  }), { disabledZoom: M } = ge();
@@ -1225,9 +1217,9 @@ defineExpose({
1225
1217
  "designerProps",
1226
1218
  W(() => t)
1227
1219
  ), Z("designer", {
1228
- setCheckedNode: D,
1220
+ setCheckedNode: S,
1229
1221
  setHoverNode: I,
1230
- setDisableHover: h,
1222
+ setDisableHover: m,
1231
1223
  handleToggleDeviceMode: ee,
1232
1224
  reset: A,
1233
1225
  state: y
@@ -1239,35 +1231,35 @@ defineExpose({
1239
1231
  d("updateSourceData", i);
1240
1232
  });
1241
1233
  function p() {
1242
- E.schemas = G(x.schemas), D(E.schemas[0]), O.push(E.schemas, "初始化撤销功能");
1234
+ E.schemas = G(x.schemas), S(E.schemas[0]), O.push(E.schemas, "初始化撤销功能");
1243
1235
  }
1244
- async function D(i = E.schemas[0]) {
1236
+ async function S(i = E.schemas[0]) {
1245
1237
  y.checkedNode = i, y.matched = Xe(E.schemas, i.id);
1246
1238
  }
1247
1239
  async function I(i = null) {
1248
- var P;
1240
+ var F;
1249
1241
  if (!i || y.disableHover)
1250
1242
  return y.hoverNode = null, !1;
1251
- if ((i == null ? void 0 : i.id) === ((P = y.hoverNode) == null ? void 0 : P.id))
1243
+ if ((i == null ? void 0 : i.id) === ((F = y.hoverNode) == null ? void 0 : F.id))
1252
1244
  return !1;
1253
1245
  y.hoverNode = i;
1254
1246
  }
1255
1247
  function C() {
1256
- de(() => {
1248
+ ce(() => {
1257
1249
  d("ready", { pageManager: N });
1258
1250
  });
1259
1251
  }
1260
- async function h(i = !1) {
1252
+ async function m(i = !1) {
1261
1253
  y.disableHover = i;
1262
1254
  }
1263
1255
  function U(i) {
1264
- ce(E, G(i));
1256
+ ae(E, G(i));
1265
1257
  }
1266
1258
  function L() {
1267
1259
  return Ie(E);
1268
1260
  }
1269
1261
  function A() {
1270
- Fe(E.schemas, x.schemas) && E.script === x.script || (ce(E.schemas, x.schemas), E.script = x.script, D(E.schemas[0]), O.push(E.schemas, "重置操作"), d("reset", E));
1262
+ Ve(E.schemas, x.schemas) && E.script === x.script || (ae(E.schemas, x.schemas), E.script = x.script, S(E.schemas[0]), O.push(E.schemas, "重置操作"), d("reset", E));
1271
1263
  }
1272
1264
  function v() {
1273
1265
  d("save", Ie(E));
@@ -1276,7 +1268,7 @@ defineExpose({
1276
1268
  d("toggleDeviceMode", i);
1277
1269
  }
1278
1270
  function f() {
1279
- S.value.handleOpen();
1271
+ D.value.handleOpen();
1280
1272
  }
1281
1273
  return p(), n({
1282
1274
  revoke: O,
@@ -1284,15 +1276,15 @@ defineExpose({
1284
1276
  getData: L,
1285
1277
  reset: A,
1286
1278
  preview: f
1287
- }), (i, P) => R(z).initialized.value ? (H(), q(Pe, {
1279
+ }), (i, F) => R(z).initialized.value ? (H(), Y(Fe, {
1288
1280
  key: 1,
1289
1281
  onResolve: C
1290
1282
  }, {
1291
1283
  default: T(() => [
1292
1284
  k("div", Nt, [
1293
- k("div", Pt, [
1285
+ k("div", Ft, [
1294
1286
  K(i.$slots, "header", {}, () => [
1295
- t.hiddenHeader ? Ne("", !0) : (H(), q(R(c), {
1287
+ t.hiddenHeader ? Ne("", !0) : (H(), Y(R(c), {
1296
1288
  key: 0,
1297
1289
  onPreview: f,
1298
1290
  onSave: v
@@ -1322,26 +1314,26 @@ defineExpose({
1322
1314
  k("div", {
1323
1315
  class: Ge(["epic-split-view-container", { "hidden-header": i.hiddenHeader }])
1324
1316
  }, [
1325
- Y(R(a)),
1326
- Y(R(w)),
1327
- Y(R(g))
1317
+ Q(R(a)),
1318
+ Q(R(w)),
1319
+ Q(R(g))
1328
1320
  ], 2),
1329
- Y(_t, {
1321
+ Q(_t, {
1330
1322
  ref_key: "previewRef",
1331
- ref: S
1323
+ ref: D
1332
1324
  }, null, 512)
1333
1325
  ])
1334
1326
  ]),
1335
1327
  fallback: T(() => [
1336
- k("div", Ft, [
1337
- Y(R(m))
1328
+ k("div", Vt, [
1329
+ Q(R(h))
1338
1330
  ])
1339
1331
  ]),
1340
1332
  _: 3
1341
1333
  })) : (H(), Ee("div", $t));
1342
1334
  }
1343
- }), Vt = {
1344
- component: async () => await import("./index-BLP-aOxR.js"),
1335
+ }), Pt = {
1336
+ component: async () => await import("./index-B2RMcVgD.js"),
1345
1337
  defaultSchema: {
1346
1338
  label: "代码编辑器",
1347
1339
  type: "monacoEditor",
@@ -1369,10 +1361,10 @@ defineExpose({
1369
1361
  ]
1370
1362
  },
1371
1363
  bindModel: "model-value"
1372
- }, { t: De } = Oe(), Ct = {
1364
+ }, { t: Se } = Oe(), Ct = {
1373
1365
  component: async () => await import("./index-DiDIFoTk.js"),
1374
1366
  defaultSchema: {
1375
- label: De("page"),
1367
+ label: Se("page"),
1376
1368
  type: "page",
1377
1369
  componentProps: {},
1378
1370
  children: []
@@ -1380,10 +1372,10 @@ defineExpose({
1380
1372
  config: {
1381
1373
  attribute: [
1382
1374
  {
1383
- label: De("pageName"),
1375
+ label: Se("pageName"),
1384
1376
  type: "input",
1385
1377
  componentProps: {
1386
- placeholder: De("pleaseEnter")
1378
+ placeholder: Se("pleaseEnter")
1387
1379
  },
1388
1380
  field: "componentProps.name"
1389
1381
  }
@@ -1391,7 +1383,7 @@ defineExpose({
1391
1383
  }
1392
1384
  }, { t: me } = Oe();
1393
1385
  function Mt(e) {
1394
- 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-CvD6bD_0.js")), e.component("ERuleEditor", async () => await import("./index-arLwKBPE.js")), e.component("EOptionsEditor", async () => await import("./index-UJyLHIXT.js")), e.component("ENode", async () => await import("./index-DSujK9zM.js")), e.component("EDataSource", async () => await import("./index-B0OgKtuT.js")), e.component("EColumnEditor", async () => await import("./index-D-EiABAK.js")), e.component("PaddingMarginControl", async () => await import("./index-CdnV7DS4.js")), e.component("ESourceDataSelect", async () => await import("./index-DjPTgDpJ.js")), e.registerActivitybar({
1386
+ 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-DymbM-qI.js")), e.component("ERuleEditor", async () => await import("./index-RL7vrExY.js")), e.component("EOptionsEditor", async () => await import("./index-lCYWKDlK.js")), e.component("ENode", async () => await import("./index-C9PHR_YC.js")), e.component("EDataSource", async () => await import("./index-B0OgKtuT.js")), e.component("EColumnEditor", async () => await import("./index-Cmfhlo_3.js")), e.component("PaddingMarginControl", async () => await import("./index-CdnV7DS4.js")), e.component("ESourceDataSelect", async () => await import("./index-BhMVNODR.js")), e.registerActivitybar({
1395
1387
  id: "component_view",
1396
1388
  title: me("component"),
1397
1389
  icon: "icon--epic--extension-outline",
@@ -1404,24 +1396,24 @@ function Mt(e) {
1404
1396
  }), e.registerRightSidebar({
1405
1397
  id: "attribute_view",
1406
1398
  title: me("attribute"),
1407
- component: async () => await import("./attributeView-BqtDAlQn.js")
1399
+ component: async () => await import("./attributeView-CSiGWdPc.js")
1408
1400
  }), e.registerRightSidebar({
1409
1401
  id: "style_view",
1410
1402
  title: me("style"),
1411
- component: async () => await import("./styleView-DWhRTeHv.js")
1403
+ component: async () => await import("./styleView-DONajUQ-.js")
1412
1404
  }), e.registerRightSidebar({
1413
1405
  id: "event_view",
1414
1406
  title: "事件",
1415
1407
  component: async () => await import("./eventView-C2wKhfU_.js")
1416
- }), [Vt, Ct].forEach((r) => {
1417
- e.registerComponent(r);
1408
+ }), [Pt, Ct].forEach((s) => {
1409
+ e.registerComponent(s);
1418
1410
  });
1419
1411
  }
1420
1412
  Mt(z);
1421
1413
  export {
1422
1414
  et as _,
1423
1415
  Gt as a,
1424
- St as b,
1416
+ Dt as b,
1425
1417
  Zt as c,
1426
1418
  zt as d,
1427
1419
  Wt as e,
@@ -1430,10 +1422,10 @@ export {
1430
1422
  Kt as h,
1431
1423
  rt as i,
1432
1424
  Qt as j,
1433
- Ve as k,
1425
+ Pe as k,
1434
1426
  ke as l,
1435
1427
  Ot as m,
1436
- Dt as n,
1428
+ St as n,
1437
1429
  bt as o,
1438
1430
  At as p,
1439
1431
  ge as u,