epic-designer-gold 1.0.17 → 1.0.19

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 (26) hide show
  1. package/dist/{attributeView-D871aFNX.cjs → attributeView-CU3Dk0My.cjs} +1 -1
  2. package/dist/{attributeView-Cb_lnXnd.js → attributeView-HxhlCLw0.js} +1 -1
  3. package/dist/{index-M1eoMHL_.cjs → index-9vCzllbk.cjs} +1 -1
  4. package/dist/{index-DvnclCBw.js → index-BE1w9DhI.js} +128 -127
  5. package/dist/{index-Cdz_E5uq.cjs → index-BX7CK_AK.cjs} +1 -1
  6. package/dist/{index-Cwf1fnCe.js → index-B_mrUGQ2.js} +1 -1
  7. package/dist/{index-B8VoR-rx.js → index-CAUVcvJK.js} +1 -1
  8. package/dist/{index-DXYNbYfi.js → index-CInzk-Ex.js} +1 -1
  9. package/dist/{index-BXLg5QG8.cjs → index-CNF2_p-m.cjs} +1 -1
  10. package/dist/{index-4Jbrf4oJ.js → index-CpleWjYN.js} +1 -1
  11. package/dist/{index-Cdfyd5o8.cjs → index-CyWcwJUU.cjs} +1 -1
  12. package/dist/index-DsURseKq.js +4 -0
  13. package/dist/{index-C-vzsLbI.cjs → index-Dt5ghoRX.cjs} +1 -1
  14. package/dist/{index-HBD4zD_h.js → index-I1yxSuJN.js} +1 -1
  15. package/dist/{index-DHgeDEYV.cjs → index-RXn2MvOX.cjs} +1 -1
  16. package/dist/{index-D7DryFmY.cjs → index-SCeJAHnE.cjs} +2 -2
  17. package/dist/{index-Bp5TeT0d.cjs → index-wnM1cDL1.cjs} +1 -1
  18. package/dist/{index-DpF28L2Q.js → index-xiA__w61.js} +1 -1
  19. package/dist/index.cjs +1 -1
  20. package/dist/index.js +1 -1
  21. package/dist/{styleView-m63s2tRj.js → styleView-BF3bqKOa.js} +1 -1
  22. package/dist/{styleView-C-SMgcjX.cjs → styleView-Bi6JYW5u.cjs} +1 -1
  23. package/dist/ui/elementPlus/index.cjs +1 -1
  24. package/dist/ui/elementPlus/index.js +141 -134
  25. package/package.json +1 -1
  26. package/dist/index-CNFfjSi0.js +0 -4
@@ -1,5 +1,5 @@
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 te, 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 X, 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 J, f as Qe, d as ae, a as G, b as Ve, c as Ye, E as k, l as se, g as qe, e as Xe } from "./pluginManager-BCnrHPYv.js";
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";
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) {
@@ -22,8 +22,8 @@ function Ce() {
22
22
  delete e.value[p];
23
23
  }
24
24
  function h(p, D = !1) {
25
- const I = Object.entries(J.publicMethods).reduce(
26
- (M, [m, U]) => (M[m] = U.handler, M),
25
+ const I = Object.entries(z.publicMethods).reduce(
26
+ (P, [m, U]) => (P[m] = U.handler, P),
27
27
  {}
28
28
  );
29
29
  try {
@@ -33,10 +33,10 @@ function Ce() {
33
33
  find: i,
34
34
  defineExpose: N,
35
35
  publicMethods: I,
36
- pluginManager: J
36
+ pluginManager: z
37
37
  })();
38
- } catch (M) {
39
- D && console.error("[epic:自定义函数]异常:", M);
38
+ } catch (P) {
39
+ D && console.error("[epic:自定义函数]异常:", P);
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 M = I.args ? JSON.parse(I.args) : D;
51
+ const P = I.args ? JSON.parse(I.args) : D;
52
52
  switch (I.type) {
53
53
  case "public":
54
- t(I, M);
54
+ t(I, P);
55
55
  break;
56
56
  case "custom":
57
- x(I, M);
57
+ x(I, P);
58
58
  break;
59
59
  case "component":
60
- d(I, M);
60
+ d(I, P);
61
61
  break;
62
62
  default:
63
63
  console.warn(`未知的动作类型: ${I.type}`);
@@ -68,15 +68,15 @@ function Ce() {
68
68
  function t(p, D) {
69
69
  var I;
70
70
  try {
71
- (I = J.publicMethods[p.methodName]) == null || I.handler(...D);
72
- } catch (M) {
73
- console.error(`[Epic:公共函数(${p.methodName})]执行异常:`, M);
71
+ (I = z.publicMethods[p.methodName]) == null || I.handler(...D);
72
+ } catch (P) {
73
+ console.error(`[Epic:公共函数(${p.methodName})]执行异常:`, P);
74
74
  }
75
75
  }
76
76
  function x(p, D) {
77
- var I, M;
77
+ var I, P;
78
78
  try {
79
- (M = (I = n.value)[p.methodName]) == null || M.call(I, ...D);
79
+ (P = (I = n.value)[p.methodName]) == null || P.call(I, ...D);
80
80
  } catch (m) {
81
81
  console.error(`[Epic:自定义函数(${p.methodName})]执行异常:`, m);
82
82
  }
@@ -89,8 +89,8 @@ function Ce() {
89
89
  }
90
90
  try {
91
91
  I[p.methodName](...D);
92
- } catch (M) {
93
- console.error(`[Epic:组件${p.componentId}函数(${p.methodName})]执行异常:`, M);
92
+ } catch (P) {
93
+ console.error(`[Epic:组件${p.componentId}函数(${p.methodName})]执行异常:`, P);
94
94
  }
95
95
  }
96
96
  function S(p = !0) {
@@ -107,7 +107,7 @@ function Ce() {
107
107
  }
108
108
  c[D] = p;
109
109
  }
110
- function P(p, D = "default") {
110
+ function M(p, D = "default") {
111
111
  if (c[D]) {
112
112
  ae(c[D], p, !1);
113
113
  return;
@@ -121,7 +121,7 @@ function Ce() {
121
121
  defaultComponentIds: r,
122
122
  forms: c,
123
123
  addFormData: E,
124
- setFormData: P,
124
+ setFormData: M,
125
125
  getComponentInstance: i,
126
126
  // 简化查询函数, 推荐使用
127
127
  find: i,
@@ -176,7 +176,7 @@ const je = /* @__PURE__ */ le({
176
176
  },
177
177
  emits: ["updateFormItemRef"],
178
178
  setup(e, { emit: n }) {
179
- const s = J.getComponent("form-item"), r = e, c = n, i = C(), w = () => {
179
+ const s = z.getComponent("form-item"), r = e, c = n, i = C(), w = () => {
180
180
  c("updateFormItemRef", i.value);
181
181
  };
182
182
  return (g, h) => r.hasFormItem ? (H(), Y(R(s), be({
@@ -207,8 +207,8 @@ const je = /* @__PURE__ */ le({
207
207
  emits: ["update:modelValue", "change", "update:dynamicId"],
208
208
  setup(e, { emit: n }) {
209
209
  const { proxy: s } = ue(), r = e, c = C(null);
210
- let i = te("formData", re({}));
211
- const w = te("slots", {}), g = te("pageManager", {}), h = te("disabled", { value: !1 }), N = te("ruleFieldPrefix", null), O = te("resetFormData", !1);
210
+ let i = 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
212
  let t = re(G(r.componentSchema));
213
213
  S();
214
214
  async function x(o) {
@@ -243,8 +243,8 @@ const je = /* @__PURE__ */ le({
243
243
  }
244
244
  });
245
245
  if (u && (u != null && u.dataPath)) {
246
- const oe = u.dataPath.split(".").reduce((de, fe) => de[fe], _.data);
247
- o.componentProps.options = d(oe, 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;
@@ -274,16 +274,16 @@ const je = /* @__PURE__ */ le({
274
274
  g.isDesignMode.value && typeof t.field == "string" && (t.field += "-design-mode");
275
275
  }
276
276
  (r.resetFormData || O) && (i = {});
277
- const y = n, E = C(), P = C(), p = (o) => {
278
- P.value = o;
277
+ const y = n, E = C(), M = C(), p = (o) => {
278
+ M.value = o;
279
279
  }, D = Re();
280
280
  Object.keys(D).length && Z("nodeAttrs", D);
281
- const I = Ue(null), M = W(() => {
281
+ const I = Ue(null), P = 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: i })) ?? !0;
284
284
  }), m = W(() => {
285
285
  var u;
286
- const o = M.value && ((u = t.rules) == null ? void 0 : u.map((_) => ({
286
+ const o = P.value && ((u = t.rules) == null ? void 0 : u.map((_) => ({
287
287
  ..._,
288
288
  validator: _.validator && g.funcs.value[_.validator]
289
289
  // 自定义校验函数
@@ -298,18 +298,19 @@ const je = /* @__PURE__ */ le({
298
298
  };
299
299
  return $.children && delete $.children, $;
300
300
  }), U = W(() => {
301
- var $, u;
301
+ var $, u, _;
302
302
  const o = (($ = L.value) == null ? void 0 : $.bindModel) ?? "modelValue", l = {};
303
- return t.on && Object.keys(t.on).forEach((_) => {
304
- l[`on${Ye(_)}`] = (...z) => g.doActions(t.on[_], ...z);
303
+ return t.on && Object.keys(t.on).forEach((J) => {
304
+ l[`on${Ye(J)}`] = (...q) => g.doActions(t.on[J], ...q);
305
305
  }), {
306
306
  ...r,
307
307
  ...t.componentProps,
308
- disabled: (h == null ? void 0 : h.value) || ((u = t.componentProps) == null ? void 0 : u.disabled),
308
+ // 为了避免禁用对超链接输入框点击的影响
309
+ 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),
309
310
  bindModel: o,
310
311
  ...l
311
312
  };
312
- }), L = W(() => J.getComponentConfingByType(t.type) ?? null);
313
+ }), L = W(() => z.getComponentConfingByType(t.type) ?? null);
313
314
  he(() => {
314
315
  c.value = r.modelValue ?? i[t.field ?? ""];
315
316
  }), B(
@@ -327,13 +328,13 @@ const je = /* @__PURE__ */ le({
327
328
  function A() {
328
329
  var l;
329
330
  const o = E.value || s;
330
- 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 && P.value && g.addComponentInstance(t.id + "formItem", P.value));
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));
331
332
  }
332
333
  function v() {
333
334
  var o;
334
335
  t.id && (g.removeComponentInstance(t.id), (o = L.value) != null && o.defaultSchema.input && t.noFormItem !== !0 && g.removeComponentInstance(t.id + "formItem"));
335
336
  }
336
- async function j() {
337
+ async function ee() {
337
338
  var l, $, u;
338
339
  if (t = await x(t), typeof ((l = t.componentProps) == null ? void 0 : l.defaultValue) < "u") {
339
340
  const _ = g.isDesignMode.value ? ($ = t.componentProps) == null ? void 0 : $.defaultValue : i[t.field] ?? ((u = t.componentProps) == null ? void 0 : u.defaultValue);
@@ -352,7 +353,7 @@ const je = /* @__PURE__ */ le({
352
353
  });
353
354
  return;
354
355
  }
355
- const o = J.getComponent(t.type);
356
+ const o = z.getComponent(t.type);
356
357
  if (!o) {
357
358
  console.error(`组件${t.type}未注册`);
358
359
  return;
@@ -366,10 +367,10 @@ const je = /* @__PURE__ */ le({
366
367
  function f(o) {
367
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) => {
368
369
  i[l.value] = l.label;
369
- }) : i[o.value] = o.label, r.id ? k.emit("updateformData" + r.id, i) : k.emit("updateformData", i);
370
+ }) : i[o.value] = o.label, r.id ? j.emit("updateformData" + r.id, i) : j.emit("updateformData", i);
370
371
  }
371
372
  function a(o) {
372
- y("update:modelValue", o), y("change", o), t.field && (i[t.field] = o), r.id ? k.emit("updateformData" + r.id, i) : k.emit("updateformData", i);
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);
373
374
  }
374
375
  function F(o) {
375
376
  y("update:dynamicId", o);
@@ -388,7 +389,7 @@ const je = /* @__PURE__ */ le({
388
389
  });
389
390
  if (l === V)
390
391
  return !1;
391
- V = l, j();
392
+ V = l, ee();
392
393
  },
393
394
  {
394
395
  immediate: !0,
@@ -397,7 +398,7 @@ const je = /* @__PURE__ */ le({
397
398
  ), $e(v), (o, l) => {
398
399
  var u;
399
400
  const $ = Te("ENode");
400
- return I.value && M.value ? (H(), Y(je, {
401
+ return I.value && P.value ? (H(), Y(je, {
401
402
  key: 0,
402
403
  hasFormItem: R(t).noFormItem !== !0 && ((u = L.value) == null ? void 0 : u.defaultSchema.input),
403
404
  formItemProps: m.value,
@@ -462,7 +463,7 @@ function tt() {
462
463
  return await i(d, (S) => S.getData());
463
464
  }
464
465
  function g(d, S = "default", y = void 0) {
465
- var E, P;
466
+ var E, M;
466
467
  if (y && Object.keys(y).length) {
467
468
  let p = function(m) {
468
469
  let U = [];
@@ -474,28 +475,28 @@ function tt() {
474
475
  let U = p((L = y == null ? void 0 : y.schemas[0]) == null ? void 0 : L.children);
475
476
  return Object.keys(m).forEach((A) => {
476
477
  var f, a, F, V, o, l, $;
477
- const v = U.find((u) => u.field === A), j = ["datetimerange", "daterange", "monthrange", "dates"];
478
- 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" && j.includes((V = v == null ? void 0 : v.componentProps) == null ? void 0 : V.type)) && typeof m[A] == "string")
478
+ 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")
479
480
  m[A] = (o = m[A]) == null ? void 0 : o.split(",");
480
481
  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")
481
482
  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(","));
482
483
  else if (((v == null ? void 0 : v.type) === "upload-image" || (v == null ? void 0 : v.type) === "upload-file") && typeof m[A] == "string") {
483
484
  let u = [];
484
- Object.entries(m).forEach(([_, z]) => {
485
- m[A] === z && _ !== v.field && _.indexOf("@") > -1 && _.indexOf(A) > -1 && (u = _.split("@")[1].split(","));
486
- }), m[A] = m[A].split(",").map((_, z) => ({
485
+ Object.entries(m).forEach(([_, J]) => {
486
+ m[A] === J && _ !== v.field && _.indexOf("@") > -1 && _.indexOf(A) > -1 && (u = _.split("@")[1].split(","));
487
+ }), m[A] = m[A].split(",").map((_, J) => ({
487
488
  url: _,
488
- name: u[z] || _
489
+ name: u[J] || _
489
490
  }));
490
491
  } 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);
491
492
  }), m;
492
493
  }(d);
493
494
  n.setFormData(I, S);
494
- const M = (E = s.value) == null ? void 0 : E[S];
495
- M == null || M.clearValidate();
495
+ const P = (E = s.value) == null ? void 0 : E[S];
496
+ P == null || P.clearValidate();
496
497
  } else {
497
498
  n.setFormData(d, S);
498
- const p = (P = s.value) == null ? void 0 : P[S];
499
+ const p = (M = s.value) == null ? void 0 : M[S];
499
500
  p == null || p.clearValidate();
500
501
  }
501
502
  }
@@ -548,11 +549,11 @@ const nt = {
548
549
  },
549
550
  emits: ["change", "ready"],
550
551
  setup(e, { expose: n, emit: s }) {
551
- 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(), P = e, p = re({
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({
552
553
  schemas: []
553
554
  });
554
555
  B(
555
- () => P.pageSchema,
556
+ () => M.pageSchema,
556
557
  (f) => {
557
558
  ae(p, f);
558
559
  },
@@ -561,7 +562,7 @@ const nt = {
561
562
  deep: !0
562
563
  }
563
564
  ), B(
564
- () => P.formData,
565
+ () => M.formData,
565
566
  (f) => {
566
567
  if (f) {
567
568
  let a = L(f);
@@ -586,16 +587,16 @@ const nt = {
586
587
  function V(o, l) {
587
588
  if (o.type === "card" && o.multiple && o.field && Array.isArray(l[o.field]))
588
589
  return l[o.field].map((u) => {
589
- var z;
590
+ var J;
590
591
  const _ = F({ ...o, multiple: !0 });
591
- return _.children = (z = _.children) == null ? void 0 : z.map((oe) => V(oe, u)).flat(), _;
592
+ return _.children = (J = _.children) == null ? void 0 : J.map((q) => V(q, u)).flat(), _;
592
593
  });
593
594
  const $ = F(o);
594
595
  return Array.isArray($.children) && ($.children = $.children.map((u) => V(u, l)).flat()), $;
595
596
  }
596
597
  return f.map((o) => V(o, a)).flat();
597
598
  }
598
- function M(f, a = "", F = { root: 0 }) {
599
+ function P(f, a = "", F = { root: 0 }) {
599
600
  const V = a || "root";
600
601
  return a || (F.root = 0), F[V] === void 0 && (F[V] = 0), f.map((o) => {
601
602
  o.field && (o.oldField = JSON.parse(JSON.stringify(o.field)));
@@ -606,7 +607,7 @@ const nt = {
606
607
  const u = l.field || a;
607
608
  F[u] = 0;
608
609
  } else o.field && a && (l.field = `${a}.${o.field}`);
609
- return o.children && (l.children = M(o.children, l.field || a, F)), l;
610
+ return o.children && (l.children = P(o.children, l.field || a, F)), l;
610
611
  });
611
612
  }
612
613
  function m(f, a, F = "", V = {}) {
@@ -627,30 +628,30 @@ const nt = {
627
628
  function U(f, a, F) {
628
629
  let V = m(G(f), G(a));
629
630
  return {
630
- obj: M(f),
631
+ obj: P(f),
631
632
  dataObj: V
632
633
  };
633
634
  }
634
635
  function L(f) {
635
- let a = D(P.pageSchema.schemas[0].children);
636
+ let a = D(M.pageSchema.schemas[0].children);
636
637
  i.value = a.filter((l) => l.type === "card" && l.multiple);
637
- const F = I(P.pageSchema.schemas[0].children, f);
638
+ const F = I(M.pageSchema.schemas[0].children, f);
638
639
  let { obj: V, dataObj: o } = U(F, f, i.value);
639
- return f = o, P.pageSchema.schemas[0].children = V, Object.keys(f).forEach((l) => {
640
- var $, u, _, z, oe, de, fe;
640
+ return f = o, M.pageSchema.schemas[0].children = V, Object.keys(f).forEach((l) => {
641
+ var $, u, _, J, q, de, fe;
641
642
  if (l.indexOf("@") < 0) {
642
- const b = a.find((q) => q.field === l), Pe = ["datetimerange", "daterange", "monthrange", "dates"];
643
- 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" && Pe.includes((z = b == null ? void 0 : b.componentProps) == null ? void 0 : z.type)) && typeof f[l] == "string")
644
- f[l] = (oe = f[l]) == null ? void 0 : oe.split(",");
643
+ const b = a.find((X) => X.field === l), Me = ["datetimerange", "daterange", "monthrange", "dates"];
644
+ 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
+ f[l] = (q = f[l]) == null ? void 0 : q.split(",");
645
646
  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")
646
- f[l].indexOf(";") > -1 ? f[l] = f[l].split(";").map((q) => q.split(",")) : f[l] = f[l].split(","), f[l].indexOf(";") > -1 ? f[l] = f[l].split(";").map((q) => q.split(",")) : f[l] = f[l].split(",");
647
+ 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(",");
647
648
  else if (((b == null ? void 0 : b.type) === "upload-image" || (b == null ? void 0 : b.type) === "upload-file") && typeof f[l] == "string") {
648
- let q = [];
649
- Object.entries(f).forEach(([ee, ye]) => {
650
- f[l] === ye && ee !== b.field && ee.indexOf("@") > -1 && ee.indexOf(l) > -1 && (q = ee.split("@")[1].split(","));
651
- }), f[l] = f[l].split(",").map((ee, ye) => ({
652
- url: ee,
653
- name: q[ye] || ee
649
+ let X = [];
650
+ Object.entries(f).forEach(([te, ye]) => {
651
+ f[l] === ye && te !== b.field && te.indexOf("@") > -1 && te.indexOf(l) > -1 && (X = te.split("@")[1].split(","));
652
+ }), f[l] = f[l].split(",").map((te, ye) => ({
653
+ url: te,
654
+ name: X[ye] || te
654
655
  }));
655
656
  } 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);
656
657
  }
@@ -666,15 +667,15 @@ const nt = {
666
667
  }
667
668
  ), Z("slots", Le()), Z("pageManager", h), Z("forms", N), Z("pageSchema", p), Z(
668
669
  "disabled",
669
- W(() => P.disabled)
670
+ W(() => M.disabled)
670
671
  );
671
672
  const A = ue(), v = A == null ? void 0 : A.proxy;
672
- function j() {
673
+ function ee() {
673
674
  ce(() => {
674
675
  g.value = !0, c("ready", h), v && h.addComponentInstance("builder", v);
675
676
  });
676
677
  }
677
- return k.on("updateformData" + (P.id ? P.id : ""), (f) => {
678
+ return j.on("updateformData" + (M.id ? M.id : ""), (f) => {
678
679
  c("change", f);
679
680
  }), n({
680
681
  ready: g,
@@ -686,22 +687,22 @@ const nt = {
686
687
  setForms: S,
687
688
  validateAll: y,
688
689
  getFormInstance: E
689
- }), (f, a) => R(J).initialized.value ? (H(), Y(Fe, {
690
+ }), (f, a) => R(z).initialized.value ? (H(), Y(Fe, {
690
691
  key: 1,
691
- onResolve: j
692
+ onResolve: ee
692
693
  }, {
693
694
  default: T(() => [
694
- X("div", ot, [
695
+ k("div", ot, [
695
696
  (H(!0), Ee(Je, null, ze(p.schemas, (F, V) => (H(), Y(R(et), {
696
- id: P.id,
697
+ id: M.id,
697
698
  key: V,
698
- sourceDateUrl: P.sourceDateUrl,
699
+ sourceDateUrl: M.sourceDateUrl,
699
700
  componentSchema: F
700
701
  }, null, 8, ["id", "sourceDateUrl", "componentSchema"]))), 128))
701
702
  ])
702
703
  ]),
703
704
  fallback: T(() => [
704
- X("div", st, [
705
+ k("div", st, [
705
706
  Q(R(r))
706
707
  ])
707
708
  ]),
@@ -752,7 +753,7 @@ function Jt(e, n, s) {
752
753
  return r;
753
754
  }
754
755
  const ve = at ? window : void 0;
755
- function ne(e) {
756
+ function oe(e) {
756
757
  var n;
757
758
  const s = ie(e);
758
759
  return (n = s == null ? void 0 : s.$el) != null ? n : s;
@@ -765,7 +766,7 @@ function ht(...e) {
765
766
  const i = [], w = () => {
766
767
  i.forEach((O) => O()), i.length = 0;
767
768
  }, g = (O, t, x, d) => (O.addEventListener(t, x, d), () => O.removeEventListener(t, x, d)), h = B(
768
- () => [ne(n), ie(c)],
769
+ () => [oe(n), ie(c)],
769
770
  ([O, t]) => {
770
771
  if (w(), !O)
771
772
  return;
@@ -783,7 +784,7 @@ function ht(...e) {
783
784
  function vt(e) {
784
785
  return typeof e == "function" ? e : typeof e == "string" ? (n) => n.key === e : Array.isArray(e) ? (n) => e.includes(n.key) : () => !0;
785
786
  }
786
- function Me(...e) {
787
+ function Pe(...e) {
787
788
  let n, s, r = {};
788
789
  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]);
789
790
  const {
@@ -797,10 +798,10 @@ function Me(...e) {
797
798
  }, w);
798
799
  }
799
800
  function we(e, n, s = {}) {
800
- return Me(e, n, { ...s, eventName: "keydown" });
801
+ return Pe(e, n, { ...s, eventName: "keydown" });
801
802
  }
802
803
  function Se(e, n, s = {}) {
803
- return Me(e, n, { ...s, eventName: "keyup" });
804
+ return Pe(e, n, { ...s, eventName: "keyup" });
804
805
  }
805
806
  function gt() {
806
807
  const e = C(!1), n = ue();
@@ -822,7 +823,7 @@ function St(e, n, s = {}) {
822
823
  i && (i.disconnect(), i = void 0);
823
824
  }, h = W(() => {
824
825
  const t = ie(e);
825
- return Array.isArray(t) ? t.map((x) => ne(x)) : [ne(t)];
826
+ return Array.isArray(t) ? t.map((x) => oe(x)) : [oe(t)];
826
827
  }), N = B(
827
828
  h,
828
829
  (t) => {
@@ -844,13 +845,13 @@ function St(e, n, s = {}) {
844
845
  function zt(e, n = { width: 0, height: 0 }, s = {}) {
845
846
  const { window: r = ve, box: c = "content-box" } = s, i = W(() => {
846
847
  var t, x;
847
- return (x = (t = ne(e)) == null ? void 0 : t.namespaceURI) == null ? void 0 : x.includes("svg");
848
+ return (x = (t = oe(e)) == null ? void 0 : t.namespaceURI) == null ? void 0 : x.includes("svg");
848
849
  }), w = C(n.width), g = C(n.height), { stop: h } = St(
849
850
  e,
850
851
  ([t]) => {
851
852
  const x = c === "border-box" ? t.borderBoxSize : c === "content-box" ? t.contentBoxSize : t.devicePixelContentBoxSize;
852
853
  if (r && i.value) {
853
- const d = ne(e);
854
+ const d = oe(e);
854
855
  if (d) {
855
856
  const S = d.getBoundingClientRect();
856
857
  w.value = S.width, g.value = S.height;
@@ -864,11 +865,11 @@ function zt(e, n = { width: 0, height: 0 }, s = {}) {
864
865
  s
865
866
  );
866
867
  pt(() => {
867
- const t = ne(e);
868
+ const t = oe(e);
868
869
  t && (w.value = "offsetWidth" in t ? t.offsetWidth : n.width, g.value = "offsetHeight" in t ? t.offsetHeight : n.height);
869
870
  });
870
871
  const N = B(
871
- () => ne(e),
872
+ () => oe(e),
872
873
  (t) => {
873
874
  w.value = t ? n.width : 0, g.value = t ? n.height : 0;
874
875
  }
@@ -894,28 +895,28 @@ function Ht(e, n, s, r = {}) {
894
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));
895
896
  let y = N;
896
897
  n || (n = "modelValue"), y = y || `update:${n.toString()}`;
897
- const E = (D) => g ? typeof g == "function" ? g(D) : wt(D) : D, P = () => it(e[n]) ? E(e[n]) : t, p = (D) => {
898
+ const E = (D) => g ? typeof g == "function" ? g(D) : wt(D) : D, M = () => it(e[n]) ? E(e[n]) : t, p = (D) => {
898
899
  x ? x(D) && S(y, D) : S(y, D);
899
900
  };
900
901
  if (h) {
901
- const D = P(), I = C(D);
902
- let M = !1;
902
+ const D = M(), I = C(D);
903
+ let P = !1;
903
904
  return B(
904
905
  () => e[n],
905
906
  (m) => {
906
- M || (M = !0, I.value = E(m), ce(() => M = !1));
907
+ P || (P = !0, I.value = E(m), ce(() => P = !1));
907
908
  }
908
909
  ), B(
909
910
  I,
910
911
  (m) => {
911
- !M && (m !== e[n] || O) && p(m);
912
+ !P && (m !== e[n] || O) && p(m);
912
913
  },
913
914
  { deep: O }
914
915
  ), I;
915
916
  } else
916
917
  return W({
917
918
  get() {
918
- return P();
919
+ return M();
919
920
  },
920
921
  set(D) {
921
922
  p(D);
@@ -1040,7 +1041,7 @@ function Gt(e, n = 16.66) {
1040
1041
  const xt = { class: "min-w-750px rounded" }, It = { class: "h-full rounded" }, _t = /* @__PURE__ */ le({
1041
1042
  __name: "index",
1042
1043
  setup(e, { expose: n }) {
1043
- const s = J.getComponent("monacoEditor"), r = J.getComponent("modal"), c = C(null), i = C(!1), w = C(!1), g = C({}), h = te("pageSchema"), N = C(null), O = C("");
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("");
1044
1045
  function t() {
1045
1046
  w.value = !1;
1046
1047
  }
@@ -1069,7 +1070,7 @@ const xt = { class: "min-w-750px rounded" }, It = { class: "h-full rounded" }, _
1069
1070
  handleOpen: d
1070
1071
  }), (y, E) => (H(), Y(R(r), {
1071
1072
  modelValue: i.value,
1072
- "onUpdate:modelValue": E[1] || (E[1] = (P) => i.value = P),
1073
+ "onUpdate:modelValue": E[1] || (E[1] = (M) => i.value = M),
1073
1074
  title: "预览",
1074
1075
  class: "w-900px",
1075
1076
  width: "900px",
@@ -1078,7 +1079,7 @@ const xt = { class: "min-w-750px rounded" }, It = { class: "h-full rounded" }, _
1078
1079
  okText: "表单数据"
1079
1080
  }, {
1080
1081
  default: T(() => [
1081
- X("div", xt, [
1082
+ k("div", xt, [
1082
1083
  (H(), Y(R(rt), {
1083
1084
  key: O.value,
1084
1085
  ref_key: "kb",
@@ -1087,7 +1088,7 @@ const xt = { class: "min-w-750px rounded" }, It = { class: "h-full rounded" }, _
1087
1088
  }, null, 8, ["page-schema"])),
1088
1089
  Q(R(r), {
1089
1090
  modelValue: w.value,
1090
- "onUpdate:modelValue": E[0] || (E[0] = (P) => w.value = P),
1091
+ "onUpdate:modelValue": E[0] || (E[0] = (M) => w.value = M),
1091
1092
  title: "表单数据",
1092
1093
  class: "w-860px",
1093
1094
  width: "860px",
@@ -1095,7 +1096,7 @@ const xt = { class: "min-w-750px rounded" }, It = { class: "h-full rounded" }, _
1095
1096
  onOk: t
1096
1097
  }, {
1097
1098
  default: T(() => [
1098
- X("div", It, [
1099
+ k("div", It, [
1099
1100
  Q(R(s), {
1100
1101
  ref_key: "monacoEditorRef",
1101
1102
  ref: c,
@@ -1139,7 +1140,7 @@ const xt = { class: "min-w-750px rounded" }, It = { class: "h-full rounded" }, _
1139
1140
  "updateSourceData"
1140
1141
  ],
1141
1142
  setup(e, { expose: n, emit: s }) {
1142
- const { t: r } = Oe(), c = se(() => import("./index-IGxCNti8.js")), i = se(() => import("./index-WkZdU_zw.js")), w = se(() => import("./index-4Jbrf4oJ.js")), g = se(() => import("./index-Cln9MN7u.js")), h = se(() => import("./index-DgcFxYFp.js")), N = Ce(), O = ke(), t = e;
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;
1143
1144
  let x = {
1144
1145
  schemas: [
1145
1146
  {
@@ -1191,7 +1192,7 @@ defineExpose({
1191
1192
  x = t.defaultSchema;
1192
1193
  return;
1193
1194
  }
1194
- t.source && J.setSourceData(t.source), t.formMode && (x.schemas = J.formSchemas);
1195
+ t.source && z.setSourceData(t.source), t.formMode && (x.schemas = z.formSchemas);
1195
1196
  }), N.setDesignMode(), N.setDefaultComponentIds(x.schemas);
1196
1197
  const d = s, S = C(null), y = re({
1197
1198
  checkedNode: null,
@@ -1201,9 +1202,9 @@ defineExpose({
1201
1202
  }), E = re({
1202
1203
  schemas: [],
1203
1204
  script: x.script
1204
- }), { disabledZoom: P } = ge();
1205
+ }), { disabledZoom: M } = ge();
1205
1206
  he(() => {
1206
- P.value = t.disabledZoom;
1207
+ M.value = t.disabledZoom;
1207
1208
  }), he(() => {
1208
1209
  const a = E.script;
1209
1210
  a && a !== "" && N.setMethods(a);
@@ -1214,14 +1215,14 @@ defineExpose({
1214
1215
  setCheckedNode: D,
1215
1216
  setHoverNode: I,
1216
1217
  setDisableHover: m,
1217
- handleToggleDeviceMode: j,
1218
+ handleToggleDeviceMode: ee,
1218
1219
  reset: A,
1219
1220
  state: y
1220
- }), k.on("saveSourceData", (a) => {
1221
+ }), j.on("saveSourceData", (a) => {
1221
1222
  d("saveSourceData", a);
1222
- }), k.on("deleteSourceData", (a) => {
1223
+ }), j.on("deleteSourceData", (a) => {
1223
1224
  d("deleteSourceData", a);
1224
- }), k.on("updateSourceData", (a) => {
1225
+ }), j.on("updateSourceData", (a) => {
1225
1226
  d("updateSourceData", a);
1226
1227
  });
1227
1228
  function p() {
@@ -1238,7 +1239,7 @@ defineExpose({
1238
1239
  return !1;
1239
1240
  y.hoverNode = a;
1240
1241
  }
1241
- function M() {
1242
+ function P() {
1242
1243
  ce(() => {
1243
1244
  d("ready", { pageManager: N });
1244
1245
  });
@@ -1258,7 +1259,7 @@ defineExpose({
1258
1259
  function v() {
1259
1260
  d("save", Ie(E));
1260
1261
  }
1261
- function j(a) {
1262
+ function ee(a) {
1262
1263
  d("toggleDeviceMode", a);
1263
1264
  }
1264
1265
  function f() {
@@ -1270,13 +1271,13 @@ defineExpose({
1270
1271
  getData: L,
1271
1272
  reset: A,
1272
1273
  preview: f
1273
- }), (a, F) => R(J).initialized.value ? (H(), Y(Fe, {
1274
+ }), (a, F) => R(z).initialized.value ? (H(), Y(Fe, {
1274
1275
  key: 1,
1275
- onResolve: M
1276
+ onResolve: P
1276
1277
  }, {
1277
1278
  default: T(() => [
1278
- X("div", Nt, [
1279
- X("div", Ft, [
1279
+ k("div", Nt, [
1280
+ k("div", Ft, [
1280
1281
  K(a.$slots, "header", {}, () => [
1281
1282
  t.hiddenHeader ? Ne("", !0) : (H(), Y(R(c), {
1282
1283
  key: 0,
@@ -1305,7 +1306,7 @@ defineExpose({
1305
1306
  }))
1306
1307
  ])
1307
1308
  ]),
1308
- X("div", {
1309
+ k("div", {
1309
1310
  class: Ge(["epic-split-view-container", { "hidden-header": a.hiddenHeader }])
1310
1311
  }, [
1311
1312
  Q(R(i)),
@@ -1319,7 +1320,7 @@ defineExpose({
1319
1320
  ])
1320
1321
  ]),
1321
1322
  fallback: T(() => [
1322
- X("div", Vt, [
1323
+ k("div", Vt, [
1323
1324
  Q(R(h))
1324
1325
  ])
1325
1326
  ]),
@@ -1327,7 +1328,7 @@ defineExpose({
1327
1328
  })) : (H(), Ee("div", $t));
1328
1329
  }
1329
1330
  }), Ct = {
1330
- component: async () => await import("./index-B8VoR-rx.js"),
1331
+ component: async () => await import("./index-CAUVcvJK.js"),
1331
1332
  defaultSchema: {
1332
1333
  label: "代码编辑器",
1333
1334
  type: "monacoEditor",
@@ -1355,7 +1356,7 @@ defineExpose({
1355
1356
  ]
1356
1357
  },
1357
1358
  bindModel: "model-value"
1358
- }, { t: De } = Oe(), Mt = {
1359
+ }, { t: De } = Oe(), Pt = {
1359
1360
  component: async () => await import("./index-DiDIFoTk.js"),
1360
1361
  defaultSchema: {
1361
1362
  label: De("page"),
@@ -1376,8 +1377,8 @@ defineExpose({
1376
1377
  ]
1377
1378
  }
1378
1379
  }, { t: me } = Oe();
1379
- function Pt(e) {
1380
- 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-DpF28L2Q.js")), e.component("ERuleEditor", async () => await import("./index-HBD4zD_h.js")), e.component("EOptionsEditor", async () => await import("./index-DXYNbYfi.js")), e.component("ENode", async () => await import("./index-CNFfjSi0.js")), e.component("EDataSource", async () => await import("./index-B0OgKtuT.js")), e.component("EColumnEditor", async () => await import("./index-Cwf1fnCe.js")), e.component("PaddingMarginControl", async () => await import("./index-CdnV7DS4.js")), e.registerActivitybar({
1380
+ 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({
1381
1382
  id: "component_view",
1382
1383
  title: me("component"),
1383
1384
  icon: "icon--epic--extension-outline",
@@ -1390,20 +1391,20 @@ function Pt(e) {
1390
1391
  }), e.registerRightSidebar({
1391
1392
  id: "attribute_view",
1392
1393
  title: me("attribute"),
1393
- component: async () => await import("./attributeView-Cb_lnXnd.js")
1394
+ component: async () => await import("./attributeView-HxhlCLw0.js")
1394
1395
  }), e.registerRightSidebar({
1395
1396
  id: "style_view",
1396
1397
  title: me("style"),
1397
- component: async () => await import("./styleView-m63s2tRj.js")
1398
+ component: async () => await import("./styleView-BF3bqKOa.js")
1398
1399
  }), e.registerRightSidebar({
1399
1400
  id: "event_view",
1400
1401
  title: "事件",
1401
1402
  component: async () => await import("./eventView-C2wKhfU_.js")
1402
- }), [Ct, Mt].forEach((s) => {
1403
+ }), [Ct, Pt].forEach((s) => {
1403
1404
  e.registerComponent(s);
1404
1405
  });
1405
1406
  }
1406
- Pt(J);
1407
+ Mt(z);
1407
1408
  export {
1408
1409
  et as _,
1409
1410
  Gt as a,