epic-designer-gold 1.0.33 → 1.0.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist/{index-3k1IXN1T.js → _plugin-vue_export-helper-8DRKdUfJ.js} +30 -24
  2. package/dist/{index-DlWUR7vt.cjs → _plugin-vue_export-helper-NUO0U1Az.cjs} +3 -3
  3. package/dist/{attributeView-BAtvUAhV.js → attributeView-BsBiqVGu.js} +1 -1
  4. package/dist/{attributeView-BF8AFFq3.cjs → attributeView-CDOlTCej.cjs} +1 -1
  5. package/dist/form-BaNhucdK.js +231 -0
  6. package/dist/form-DvdMrtVG.cjs +1 -0
  7. package/dist/index-4NyY4OrM.cjs +10 -0
  8. package/dist/{index-Xnqspbxj.js → index-57Jo44dB.js} +2 -2
  9. package/dist/{index-Cecp9t8s.js → index-6ehvFk8m.js} +1 -1
  10. package/dist/{index-9Mn4Y5ul.js → index-7Z6k5ElN.js} +1 -1
  11. package/dist/{index-CQSYlqUB.js → index-B2L9CYN8.js} +1 -1
  12. package/dist/{index-sFE9uQIP.js → index-BCfsLh0H.js} +111 -112
  13. package/dist/{index-DExGgrX9.cjs → index-BK6ipjbo.cjs} +1 -1
  14. package/dist/index-BNgMDVXO.js +4 -0
  15. package/dist/{index-CrVn9CfT.js → index-BQGUEUhF.js} +1 -1
  16. package/dist/index-BU-UAvHC.cjs +1 -0
  17. package/dist/{index-CLeSXOVj.js → index-BelKUDOu.js} +1 -1
  18. package/dist/{index-Di9sEDRc.cjs → index-Bv6UOkMb.cjs} +1 -1
  19. package/dist/{index-ClgIpXW0.cjs → index-C0sL_Cow.cjs} +1 -1
  20. package/dist/{index-Bxdmlmwu.cjs → index-CBKTyKT5.cjs} +1 -1
  21. package/dist/{index-BozsQqds.cjs → index-CGSKdgpe.cjs} +1 -1
  22. package/dist/{index-DYU07eGb.cjs → index-CP9mOhqZ.cjs} +1 -1
  23. package/dist/{index-K9w-efBB.cjs → index-Ce2UbX3P.cjs} +1 -1
  24. package/dist/{index-natF7VzY.js → index-Ch0kn_uQ.js} +1 -1
  25. package/dist/{index-CFChTrwc.cjs → index-CqmYHiDr.cjs} +1 -1
  26. package/dist/{index-C5yUsiJH.js → index-D8diDndG.js} +2 -2
  27. package/dist/{index-C4CkFEzv.cjs → index-DV6zVc1G.cjs} +1 -1
  28. package/dist/{index-CFHEVgng.cjs → index-Dh-5bgQx.cjs} +1 -1
  29. package/dist/{index-BMXnkqXx.js → index-Dz39c928.js} +1 -1
  30. package/dist/{index-lf6yCev-.cjs → index-EU7IKyES.cjs} +1 -1
  31. package/dist/{index-BwHmwZ5G.cjs → index-PjUZVUx6.cjs} +1 -1
  32. package/dist/{index-D2n96wxz.js → index-lkwgM-Nx.js} +1 -1
  33. package/dist/{index-CT056ccv.js → index-nvc1uY17.js} +1 -1
  34. package/dist/{index-DI-E5Cpq.js → index-u1-3v7J4.js} +2 -2
  35. package/dist/{index-CHYKgo9A.cjs → index-wjKD4mBu.cjs} +1 -1
  36. package/dist/{index-UpNznhhe.js → index-zxpOBir-.js} +2 -2
  37. package/dist/index.cjs +1 -1
  38. package/dist/index.js +1 -1
  39. package/dist/{selectPage-oM1OpHbJ.js → selectPage-Cu2yuxd6.js} +6 -7
  40. package/dist/selectPage-DZQ1Sbs4.cjs +1 -0
  41. package/dist/sign-B1wFFef_.cjs +1 -0
  42. package/dist/{sign-Cz5OCE1C.js → sign-mjic2rIw.js} +22 -23
  43. package/dist/style.css +1 -1
  44. package/dist/{styleView-oSuNX97o.js → styleView-DXePdHW5.js} +1 -1
  45. package/dist/{styleView-DAskd_e3.cjs → styleView-sZrNBCuS.cjs} +1 -1
  46. package/dist/ui/elementPlus/index.cjs +1 -1
  47. package/dist/ui/elementPlus/index.js +3 -3
  48. package/package.json +1 -1
  49. package/dist/_plugin-vue_export-helper-BHFhmbuH.cjs +0 -1
  50. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
  51. package/dist/form-CUbklubB.cjs +0 -1
  52. package/dist/form-DGbjgAvD.js +0 -208
  53. package/dist/index-B_ZNp-FD.cjs +0 -10
  54. package/dist/index-Dp0hJSh5.js +0 -4
  55. package/dist/index-eAXbC_rr.cjs +0 -1
  56. package/dist/selectPage-H4G0pWhK.cjs +0 -1
  57. package/dist/sign-Cusu4oCD.cjs +0 -1
@@ -2,9 +2,8 @@ import { ref as F, reactive as de, defineComponent as fe, createBlock as ae, ren
2
2
  import { f as rt, p as q, d as pe, a as ne, b as Je, c as st, E as re, l as ue, g as lt, e as it } from "./pluginManager-B0y107-1.js";
3
3
  import { a as j, u as Pe } from "./index-B1s67XDZ.js";
4
4
  import { ElMessage as ct } from "element-plus";
5
- import { a as ve } from "./index-3k1IXN1T.js";
6
- import { _ as ut } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
- function pn(e, n) {
5
+ import { a as ve, _ as ut } from "./_plugin-vue_export-helper-8DRKdUfJ.js";
6
+ function fn(e, n) {
8
7
  let o = null;
9
8
  return (...s) => {
10
9
  o && clearTimeout(o), o = setTimeout(() => {
@@ -95,7 +94,7 @@ function ze() {
95
94
  console.error(`[Epic:组件${p.componentId}函数(${p.methodName})]执行异常:`, P);
96
95
  }
97
96
  }
98
- function b(p = !0) {
97
+ function S(p = !0) {
99
98
  o.value = p;
100
99
  }
101
100
  function g(p) {
@@ -131,7 +130,7 @@ function ze() {
131
130
  removeComponentInstance: i,
132
131
  setMethods: w,
133
132
  doActions: _,
134
- setDesignMode: b,
133
+ setDesignMode: S,
135
134
  setDefaultComponentIds: g
136
135
  };
137
136
  }
@@ -216,10 +215,10 @@ const ft = /* @__PURE__ */ fe({
216
215
  const w = se("slots", {}), A = se("pageManager", {}), _ = se("disabled", { value: !1 }), m = se("ruleFieldPrefix", null), N = se("resetFormData", !1);
217
216
  let t = de(ne(a.componentSchema));
218
217
  p();
219
- async function b(r) {
218
+ async function S(r) {
220
219
  try {
221
220
  o.value = !0, s.value = "正在识别中...请稍等";
222
- const S = {
221
+ const b = {
223
222
  url: r.callBackUrl,
224
223
  headers: {
225
224
  Authorization: "Bearer " + j.get("Admin-Token"),
@@ -227,20 +226,20 @@ const ft = /* @__PURE__ */ fe({
227
226
  zone: Intl.DateTimeFormat().resolvedOptions().timeZone
228
227
  }
229
228
  }, R = (r.callBackMethod || "").toLowerCase(), O = { [r.callBackField]: r.url.join(",") };
230
- R === "get" ? (S.method = "get", S.params = O) : (S.method = R || "post", S.data = O);
231
- let U = await ve(S), f = {};
229
+ R === "get" ? (b.method = "get", b.params = O) : (b.method = R || "post", b.data = O);
230
+ let U = await ve(b), f = {};
232
231
  r.callBackDataPath ? f = r.callBackDataPath.split(".").reduce((G, Q) => G[Q], U.data) : f = U.data, r.validate && (r.validateParams.forEach((J) => {
233
232
  i[J.value] = i.orcWarningInfo__copy_data[J.value];
234
233
  }), i[r.field + "-orcWarningInfo"] = "", r.validateParams.forEach((J) => {
235
234
  i[J.value] && f[J.value] !== i[J.value] && f[J.value] && (a.componentSchema.componentProps.validateStatus = !0, i[r.field + "-orcWarningInfo"] ? i[r.field + "-orcWarningInfo"] = i[r.field + "-orcWarningInfo"] + "," + J.label + "已从" + i[J.value] + "改为" + f[J.value] : i[r.field + "-orcWarningInfo"] = J.label + "已从" + i[J.value] + "改为" + f[J.value]);
236
235
  })), Object.assign(i, f);
237
- } catch (S) {
238
- ct.error("OCR 识别回调处理失败:" + S.message);
236
+ } catch (b) {
237
+ ct.error("OCR 识别回调处理失败:" + b.message);
239
238
  } finally {
240
239
  o.value = !1, s.value = "加载中";
241
240
  }
242
241
  }
243
- async function g({ value: r, field: S, fillDataSource: R, fillDataParams: O }) {
242
+ async function g({ value: r, field: b, fillDataSource: R, fillDataParams: O }) {
244
243
  try {
245
244
  o.value = !0;
246
245
  const f = (await ve({
@@ -263,8 +262,8 @@ const ft = /* @__PURE__ */ fe({
263
262
  data: f.body ? JSON.parse(f.body) : {},
264
263
  params: f.params ? {
265
264
  ...JSON.parse(f.params),
266
- [S]: r
267
- } : { [S]: r },
265
+ [b]: r
266
+ } : { [b]: r },
268
267
  headers: {
269
268
  ...JSON.parse(f.headers),
270
269
  Authorization: "Bearer " + j.get("Admin-Token"),
@@ -293,7 +292,7 @@ const ft = /* @__PURE__ */ fe({
293
292
  }
294
293
  }
295
294
  async function D(r) {
296
- if (["cascader", "checkbox", "select", "radio"].includes(r.type) && r.componentProps.dynamicId && a.sourceDateUrl) {
295
+ if (["cascader", "checkbox", "select", "radio", "ocr-select-page"].includes(r.type) && r.componentProps.dynamicId && a.sourceDateUrl) {
297
296
  const O = (await ve({
298
297
  // || "http://192.168.28.205:3000/dev-api/data-source
299
298
  url: a.sourceDateUrl,
@@ -332,13 +331,13 @@ const ft = /* @__PURE__ */ fe({
332
331
  }
333
332
  return r;
334
333
  }
335
- function M(r, S, R) {
334
+ function M(r, b, R) {
336
335
  return r && Object.prototype.toString.call(r) === "[object Array]" ? r.map((O) => O.children && O.children.length ? {
337
- label: O[S],
336
+ label: O[b],
338
337
  value: O[R] + "",
339
- children: M(O.children, S, R)
338
+ children: M(O.children, b, R)
340
339
  } : {
341
- label: O[S],
340
+ label: O[b],
342
341
  value: O[R] + ""
343
342
  }) : [];
344
343
  }
@@ -360,8 +359,8 @@ const ft = /* @__PURE__ */ fe({
360
359
  }, H = Ze();
361
360
  Object.keys(H).length && k("nodeAttrs", H);
362
361
  const z = Re(null), I = ee(() => {
363
- var r, S;
364
- return (r = t.componentProps) != null && r.hidden ? !1 : typeof t.show == "boolean" ? t.show : ((S = t.show) == null ? void 0 : S.call(t, { values: i })) ?? !0;
362
+ var r, b;
363
+ return (r = t.componentProps) != null && r.hidden ? !1 : typeof t.show == "boolean" ? t.show : ((b = t.show) == null ? void 0 : b.call(t, { values: i })) ?? !0;
365
364
  }), l = ee(() => {
366
365
  var O;
367
366
  const r = I.value && ((O = t.rules) == null ? void 0 : O.map((U) => ({
@@ -369,20 +368,20 @@ const ft = /* @__PURE__ */ fe({
369
368
  validator: U.validator && A.funcs.value[U.validator]
370
369
  // 自定义校验函数
371
370
  })));
372
- let S = t.field;
373
- a.ruleField ? S = a.ruleField : m && t.field && (S = ne(m), S.push(t.field));
371
+ let b = t.field;
372
+ a.ruleField ? b = a.ruleField : m && t.field && (b = ne(m), b.push(t.field));
374
373
  const R = {
375
374
  ...t,
376
375
  rules: r,
377
376
  rule: r,
378
- field: S
377
+ field: b
379
378
  };
380
379
  return R.children && delete R.children, R;
381
380
  }), B = ee(() => {
382
381
  var R, O, U;
383
- const r = ((R = c.value) == null ? void 0 : R.bindModel) ?? "modelValue", S = {};
382
+ const r = ((R = c.value) == null ? void 0 : R.bindModel) ?? "modelValue", b = {};
384
383
  return t.on && Object.keys(t.on).forEach((f) => {
385
- S[`on${st(f)}`] = (...J) => A.doActions(t.on[f], ...J);
384
+ b[`on${st(f)}`] = (...J) => A.doActions(t.on[f], ...J);
386
385
  }), t.type === "selectpage" && (t.componentProps.defaultData = {
387
386
  value: i[t.field],
388
387
  label: i[i[t.field]]
@@ -393,7 +392,7 @@ const ft = /* @__PURE__ */ fe({
393
392
  // 为了避免禁用对超链接输入框点击的影响
394
393
  disabled: a.componentSchema.type === "input" && a.componentSchema.componentProps && ((O = a.componentSchema.componentProps) != null && O.isLink) ? !1 : (_ == null ? void 0 : _.value) || ((U = t.componentProps) == null ? void 0 : U.disabled),
395
394
  bindModel: r,
396
- ...S
395
+ ...b
397
396
  };
398
397
  }), c = ee(() => q.getComponentConfingByType(t.type) ?? null);
399
398
  Ee(() => {
@@ -411,17 +410,17 @@ const ft = /* @__PURE__ */ fe({
411
410
  { immediate: !0 }
412
411
  );
413
412
  function u() {
414
- var S;
413
+ var b;
415
414
  const r = $.value || d;
416
- t != null && t.id && r && ((t.input || t.type === "table" && t.field || t.type === "card" && t.field && t.multiple) && (r.setValue = h, r.getValue = () => i[t.field] || a.modelValue), r.setAttr = (R, O) => (t.componentProps || (t.componentProps = {}), t.componentProps[R] = O), r.getAttr = (R) => t.componentProps[R], A.addComponentInstance(t == null ? void 0 : t.id, r), (S = c.value) != null && S.defaultSchema.input && t.noFormItem !== !0 && P.value && A.addComponentInstance((t == null ? void 0 : t.id) + "formItem", P.value));
415
+ t != null && t.id && r && ((t.input || t.type === "table" && t.field || t.type === "card" && t.field && t.multiple) && (r.setValue = h, r.getValue = () => i[t.field] || a.modelValue), r.setAttr = (R, O) => (t.componentProps || (t.componentProps = {}), t.componentProps[R] = O), r.getAttr = (R) => t.componentProps[R], A.addComponentInstance(t == null ? void 0 : t.id, r), (b = c.value) != null && b.defaultSchema.input && t.noFormItem !== !0 && P.value && A.addComponentInstance((t == null ? void 0 : t.id) + "formItem", P.value));
417
416
  }
418
417
  function C() {
419
418
  var r;
420
419
  t.id && (A.removeComponentInstance(t == null ? void 0 : t.id), (r = c.value) != null && r.defaultSchema.input && t.noFormItem !== !0 && A.removeComponentInstance((t == null ? void 0 : t.id) + "formItem"));
421
420
  }
422
421
  async function V() {
423
- var S, R, O;
424
- if (t = await D(t), typeof ((S = t.componentProps) == null ? void 0 : S.defaultValue) < "u") {
422
+ var b, R, O;
423
+ if (t = await D(t), typeof ((b = t.componentProps) == null ? void 0 : b.defaultValue) < "u") {
425
424
  const U = A.isDesignMode.value ? (R = t.componentProps) == null ? void 0 : R.defaultValue : i[t.field] ?? ((O = t.componentProps) == null ? void 0 : O.defaultValue);
426
425
  h(ne(U));
427
426
  }
@@ -450,8 +449,8 @@ const ft = /* @__PURE__ */ fe({
450
449
  r && (z.value = r);
451
450
  }
452
451
  function x(r) {
453
- Object.prototype.toString.call(r) === "[object Array]" ? r.forEach((S) => {
454
- i[S.value] = S.label;
452
+ Object.prototype.toString.call(r) === "[object Array]" ? r.forEach((b) => {
453
+ i[b.value] = b.label;
455
454
  }) : i[r.value] = r.label, a != null && a.id ? re.emit("updateformData" + (a == null ? void 0 : a.id), i) : re.emit("updateformData", i);
456
455
  }
457
456
  function h(r) {
@@ -464,7 +463,7 @@ const ft = /* @__PURE__ */ fe({
464
463
  return K(
465
464
  () => t,
466
465
  async (r) => {
467
- const S = JSON.stringify({
466
+ const b = JSON.stringify({
468
467
  ...r,
469
468
  children: void 0,
470
469
  componentProps: {
@@ -472,21 +471,21 @@ const ft = /* @__PURE__ */ fe({
472
471
  options: null
473
472
  }
474
473
  });
475
- if (S === T)
474
+ if (b === T)
476
475
  return !1;
477
- T = S, V();
476
+ T = b, V();
478
477
  },
479
478
  {
480
479
  immediate: !0,
481
480
  deep: !0
482
481
  }
483
- ), Ue(C), (r, S) => {
482
+ ), Ue(C), (r, b) => {
484
483
  var O;
485
484
  const R = Ge("ENode");
486
485
  return Y(), ge(Te, null, [
487
486
  o.value ? (Y(), ge("div", pt, [
488
487
  te("div", mt, [
489
- S[1] || (S[1] = Qe('<div class="epic-loading-wave" data-v-685cd0a7><div class="wave" data-v-685cd0a7></div><div class="wave" data-v-685cd0a7></div><div class="wave" data-v-685cd0a7></div><div class="wave" data-v-685cd0a7></div><div class="wave" data-v-685cd0a7></div></div>', 1)),
488
+ b[1] || (b[1] = Qe('<div class="epic-loading-wave" data-v-936adbeb><div class="wave" data-v-936adbeb></div><div class="wave" data-v-936adbeb></div><div class="wave" data-v-936adbeb></div><div class="wave" data-v-936adbeb></div><div class="wave" data-v-936adbeb></div></div>', 1)),
490
489
  te("span", ht, Ye(s.value), 1)
491
490
  ])
492
491
  ])) : Ne("", !0),
@@ -505,11 +504,11 @@ const ft = /* @__PURE__ */ fe({
505
504
  sourceDateUrl: a.sourceDateUrl
506
505
  }, { ...B.value }, {
507
506
  [B.value.bindModel]: v.value,
508
- ["onUpdate:" + B.value.bindModel]: S[0] || (S[0] = (U) => v.value = U),
507
+ ["onUpdate:" + B.value.bindModel]: b[0] || (b[0] = (U) => v.value = U),
509
508
  [`onUpdate:${B.value.bindModel}` || ""]: h,
510
509
  "onUpdate:modelValueLabel": x,
511
510
  "onUpdate:dynamicId": L,
512
- "onUpdate:ocrData": b,
511
+ "onUpdate:ocrData": S,
513
512
  "onUpdate:selectFillData": g
514
513
  }), {
515
514
  node: Z((U) => [
@@ -530,7 +529,7 @@ const ft = /* @__PURE__ */ fe({
530
529
  ], 64);
531
530
  };
532
531
  }
533
- }), gt = /* @__PURE__ */ ut(vt, [["__scopeId", "data-v-685cd0a7"]]);
532
+ }), gt = /* @__PURE__ */ ut(vt, [["__scopeId", "data-v-936adbeb"]]);
534
533
  function yt() {
535
534
  const e = F(!1), n = ze(), o = F({});
536
535
  function s() {
@@ -538,8 +537,8 @@ function yt() {
538
537
  if (e.value)
539
538
  t();
540
539
  else {
541
- const b = K(e, () => {
542
- b(), t();
540
+ const S = K(e, () => {
541
+ S(), t();
543
542
  });
544
543
  }
545
544
  });
@@ -547,18 +546,18 @@ function yt() {
547
546
  async function d(t = "default") {
548
547
  var g;
549
548
  await s();
550
- const b = (g = o.value) == null ? void 0 : g[t];
551
- if (!b) throw new Error(`表单 [name=${t}] 不存在`);
552
- return b;
549
+ const S = (g = o.value) == null ? void 0 : g[t];
550
+ if (!S) throw new Error(`表单 [name=${t}] 不存在`);
551
+ return S;
553
552
  }
554
- async function a(t, b) {
553
+ async function a(t, S) {
555
554
  const g = await d(t);
556
- return ne(await b(g));
555
+ return ne(await S(g));
557
556
  }
558
557
  async function v(t = "default") {
559
- return await a(t, (b) => b.getData());
558
+ return await a(t, (S) => S.getData());
560
559
  }
561
- function i(t, b = "default", g = void 0) {
560
+ function i(t, S = "default", g = void 0) {
562
561
  var D, M;
563
562
  if (g && Object.keys(g).length) {
564
563
  let p = function(y) {
@@ -578,42 +577,42 @@ function yt() {
578
577
  y[I].indexOf(";") === -1 && y[I].indexOf(";") === -1 ? y[I][y[I]] : y[I].indexOf(";") > -1 ? y[I] = y[I].split(";").map((T) => T.split(",")) : y[I].indexOf(";") === -1 ? y[I] = y[I].split(",") : y[I].indexOf(";") > -1 ? y[I] = y[I].split(";").map((T) => T.split(",")) : y[I].indexOf(";") === -1 && (y[I] = y[I].split(","));
579
578
  else if (((l == null ? void 0 : l.type) === "upload-image" || (l == null ? void 0 : l.type) === "upload-file") && typeof y[I] == "string") {
580
579
  let T = [];
581
- Object.entries(y).forEach(([r, S]) => {
582
- y[I] === S && r !== l.field && r.indexOf("@") > -1 && r.indexOf(I) > -1 && (T = r.split("@")[1].split(","));
583
- }), y[I] = y[I].split(",").map((r, S) => ({
580
+ Object.entries(y).forEach(([r, b]) => {
581
+ y[I] === b && r !== l.field && r.indexOf("@") > -1 && r.indexOf(I) > -1 && (T = r.split("@")[1].split(","));
582
+ }), y[I] = y[I].split(",").map((r, b) => ({
584
583
  url: r,
585
- name: T[S] || r
584
+ name: T[b] || r
586
585
  }));
587
586
  } else (l == null ? void 0 : l.type) === "number" || (l == null ? void 0 : l.type) === "slider" ? y[I] = Number(y[I]) : (l == null ? void 0 : l.type) === "switch" && (y[I] = typeof y[I] == "boolean" ? y[I] : y[I].indexOf("true") > -1);
588
587
  }), y;
589
588
  }(t);
590
- n.setFormData($, b);
591
- const P = (D = o.value) == null ? void 0 : D[b];
589
+ n.setFormData($, S);
590
+ const P = (D = o.value) == null ? void 0 : D[S];
592
591
  P == null || P.clearValidate();
593
592
  } else {
594
- n.setFormData(t, b);
595
- const p = (M = o.value) == null ? void 0 : M[b];
593
+ n.setFormData(t, S);
594
+ const p = (M = o.value) == null ? void 0 : M[S];
596
595
  p == null || p.clearValidate();
597
596
  }
598
597
  }
599
598
  async function w(t = "default") {
600
- return await a(t, async (b) => (await b.validate(), await b.getData()));
599
+ return await a(t, async (S) => (await S.validate(), await S.getData()));
601
600
  }
602
601
  async function A(t) {
603
602
  await s();
604
- const b = {};
603
+ const S = {};
605
604
  for (const g in o.value) {
606
605
  const D = o.value[g];
607
- D && (b[g] = ne(await t(D)));
606
+ D && (S[g] = ne(await t(D)));
608
607
  }
609
- return b;
608
+ return S;
610
609
  }
611
610
  async function _() {
612
611
  return await A((t) => t.getData());
613
612
  }
614
613
  function m(t) {
615
- for (const b in t)
616
- i(t[b], b);
614
+ for (const S in t)
615
+ i(t[S], S);
617
616
  }
618
617
  async function N() {
619
618
  return await A(async (t) => (await t.validate(), await t.getData()));
@@ -634,7 +633,7 @@ function yt() {
634
633
  const wt = {
635
634
  key: 0,
636
635
  class: "epic-loading-box"
637
- }, St = { class: "epic-builder-main" }, bt = { class: "epic-loading-box" }, Dt = /* @__PURE__ */ fe({
636
+ }, bt = { class: "epic-builder-main" }, St = { class: "epic-loading-box" }, Dt = /* @__PURE__ */ fe({
638
637
  __name: "builder",
639
638
  props: {
640
639
  pageSchema: {},
@@ -645,7 +644,7 @@ const wt = {
645
644
  },
646
645
  emits: ["change", "ready"],
647
646
  setup(e, { expose: n, emit: o }) {
648
- const s = ue(() => import("./index-BMXnkqXx.js")), d = o, a = F([]), v = F({}), { ready: i, pageManager: w, forms: A, getData: _, setData: m, validate: N, getForms: t, setForms: b, validateAll: g, getFormInstance: D } = yt(), M = e, p = de({
647
+ const s = ue(() => import("./index-Dz39c928.js")), d = o, a = F([]), v = F({}), { ready: i, pageManager: w, forms: A, getData: _, setData: m, validate: N, getForms: t, setForms: S, validateAll: g, getFormInstance: D } = yt(), M = e, p = de({
649
648
  schemas: []
650
649
  });
651
650
  K(
@@ -683,9 +682,9 @@ const wt = {
683
682
  function V(x, h) {
684
683
  if (x.type === "card" && x.multiple && x.field && Array.isArray(h[x.field]))
685
684
  return h[x.field].map((T) => {
686
- var S;
685
+ var b;
687
686
  const r = C({ ...x, multiple: !0 });
688
- return r.children = (S = r.children) == null ? void 0 : S.map((R) => V(R, T)).flat(), r;
687
+ return r.children = (b = r.children) == null ? void 0 : b.map((R) => V(R, T)).flat(), r;
689
688
  });
690
689
  const L = C(x);
691
690
  return Array.isArray(L.children) && (L.children = L.children.map((T) => V(T, h)).flat()), L;
@@ -734,10 +733,10 @@ const wt = {
734
733
  const C = $(M.pageSchema.schemas[0].children, c);
735
734
  let { obj: V, dataObj: x } = H(C, c, a.value);
736
735
  return c = x, M.pageSchema.schemas[0].children = V, Object.keys(c).forEach((h) => {
737
- var L, T, r, S, R, O, U;
736
+ var L, T, r, b, R, O, U;
738
737
  if (h.indexOf("@") < 0) {
739
738
  const f = u.find((G) => G.field === h), J = ["datetimerange", "daterange", "monthrange", "dates"];
740
- if ((f && (f == null ? void 0 : f.type) === "checkbox" || (f == null ? void 0 : f.type) === "select" && ((L = f == null ? void 0 : f.componentProps) != null && L.multiple) || (f == null ? void 0 : f.type) === "cascader" && !((r = (T = f == null ? void 0 : f.componentProps) == null ? void 0 : T.props) != null && r.multiple) || (f == null ? void 0 : f.type) === "date" && J.includes((S = f == null ? void 0 : f.componentProps) == null ? void 0 : S.type)) && typeof c[h] == "string")
739
+ if ((f && (f == null ? void 0 : f.type) === "checkbox" || (f == null ? void 0 : f.type) === "select" && ((L = f == null ? void 0 : f.componentProps) != null && L.multiple) || (f == null ? void 0 : f.type) === "cascader" && !((r = (T = f == null ? void 0 : f.componentProps) == null ? void 0 : T.props) != null && r.multiple) || (f == null ? void 0 : f.type) === "date" && J.includes((b = f == null ? void 0 : f.componentProps) == null ? void 0 : b.type)) && typeof c[h] == "string")
741
740
  c[h] = (R = c[h]) == null ? void 0 : R.split(",");
742
741
  else if ((f == null ? void 0 : f.type) === "cascader" && ((U = (O = f == null ? void 0 : f.componentProps) == null ? void 0 : O.props) != null && U.multiple) && typeof c[h] == "string")
743
742
  c[h].indexOf(";") > -1 ? c[h] = c[h].split(";").map((G) => G.split(",")) : c[h] = c[h].split(","), c[h].indexOf(";") > -1 ? c[h] = c[h].split(";").map((G) => G.split(",")) : c[h] = c[h].split(",");
@@ -780,7 +779,7 @@ const wt = {
780
779
  setData: m,
781
780
  validate: N,
782
781
  getForms: t,
783
- setForms: b,
782
+ setForms: S,
784
783
  validateAll: g,
785
784
  getFormInstance: D
786
785
  }), (c, u) => W(q).initialized.value ? (Y(), ae(Be, {
@@ -788,7 +787,7 @@ const wt = {
788
787
  onResolve: B
789
788
  }, {
790
789
  default: Z(() => [
791
- te("div", St, [
790
+ te("div", bt, [
792
791
  (Y(!0), ge(Te, null, ke(p.schemas, (C, V) => (Y(), ae(W(gt), {
793
792
  id: M.id,
794
793
  key: V,
@@ -798,7 +797,7 @@ const wt = {
798
797
  ])
799
798
  ]),
800
799
  fallback: Z(() => [
801
- te("div", bt, [
800
+ te("div", St, [
802
801
  oe(W(s))
803
802
  ])
804
803
  ]),
@@ -894,7 +893,7 @@ function Vt(e = !1, n = {}) {
894
893
  }
895
894
  return d ? v : [a, v];
896
895
  }
897
- function mn(e, n, o) {
896
+ function pn(e, n, o) {
898
897
  const s = K(e, (...d) => (ce(() => s()), n(...d)), o);
899
898
  return s;
900
899
  }
@@ -918,7 +917,7 @@ function $e(...e) {
918
917
  return;
919
918
  const N = It(m) ? { ...m } : m;
920
919
  a.push(
921
- ...o.flatMap((t) => s.map((b) => i(_, t, b, N)))
920
+ ...o.flatMap((t) => s.map((S) => i(_, t, S, N)))
922
921
  );
923
922
  },
924
923
  { immediate: !0, flush: "post" }
@@ -962,9 +961,9 @@ function Ut(e) {
962
961
  function Tt(e) {
963
962
  return JSON.parse(JSON.stringify(e));
964
963
  }
965
- const Se = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, be = "__vueuse_ssr_handlers__", Bt = /* @__PURE__ */ Jt();
964
+ const be = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Se = "__vueuse_ssr_handlers__", Bt = /* @__PURE__ */ Jt();
966
965
  function Jt() {
967
- return be in Se || (Se[be] = Se[be] || {}), Se[be];
966
+ return Se in be || (be[Se] = be[Se] || {}), be[Se];
968
967
  }
969
968
  function zt(e, n) {
970
969
  return Bt[e] || n;
@@ -1006,7 +1005,7 @@ const Wt = {
1006
1005
  write: (e) => e.toISOString()
1007
1006
  }
1008
1007
  }, Me = "vueuse-storage";
1009
- function hn(e, n, o, s = {}) {
1008
+ function mn(e, n, o, s = {}) {
1010
1009
  var d;
1011
1010
  const {
1012
1011
  flush: a = "pre",
@@ -1020,7 +1019,7 @@ function hn(e, n, o, s = {}) {
1020
1019
  onError: t = (l) => {
1021
1020
  console.error(l);
1022
1021
  },
1023
- initOnMounted: b
1022
+ initOnMounted: S
1024
1023
  } = s, g = (_ ? Re : F)(typeof n == "function" ? n() : n);
1025
1024
  if (!o)
1026
1025
  try {
@@ -1039,8 +1038,8 @@ function hn(e, n, o, s = {}) {
1039
1038
  { flush: a, deep: v, eventFilter: N }
1040
1039
  );
1041
1040
  m && i && We(() => {
1042
- o instanceof Storage ? $e(m, "storage", z) : $e(m, Me, I), b && z();
1043
- }), b || z();
1041
+ o instanceof Storage ? $e(m, "storage", z) : $e(m, Me, I), S && z();
1042
+ }), S || z();
1044
1043
  function P(l, B) {
1045
1044
  if (m) {
1046
1045
  const c = {
@@ -1125,7 +1124,7 @@ function Ht(e, n, o = {}) {
1125
1124
  stop: _
1126
1125
  };
1127
1126
  }
1128
- function vn(e, n = { width: 0, height: 0 }, o = {}) {
1127
+ function hn(e, n = { width: 0, height: 0 }, o = {}) {
1129
1128
  const { window: s = me, box: d = "content-box" } = o, a = ee(() => {
1130
1129
  var m, N;
1131
1130
  return (N = (m = le(e)) == null ? void 0 : m.namespaceURI) == null ? void 0 : N.includes("svg");
@@ -1136,12 +1135,12 @@ function vn(e, n = { width: 0, height: 0 }, o = {}) {
1136
1135
  if (s && a.value) {
1137
1136
  const t = le(e);
1138
1137
  if (t) {
1139
- const b = t.getBoundingClientRect();
1140
- v.value = b.width, i.value = b.height;
1138
+ const S = t.getBoundingClientRect();
1139
+ v.value = S.width, i.value = S.height;
1141
1140
  }
1142
1141
  } else if (N) {
1143
1142
  const t = Array.isArray(N) ? N : [N];
1144
- v.value = t.reduce((b, { inlineSize: g }) => b + g, 0), i.value = t.reduce((b, { blockSize: g }) => b + g, 0);
1143
+ v.value = t.reduce((S, { inlineSize: g }) => S + g, 0), i.value = t.reduce((S, { blockSize: g }) => S + g, 0);
1145
1144
  } else
1146
1145
  v.value = m.contentRect.width, i.value = m.contentRect.height;
1147
1146
  },
@@ -1166,7 +1165,7 @@ function vn(e, n = { width: 0, height: 0 }, o = {}) {
1166
1165
  stop: _
1167
1166
  };
1168
1167
  }
1169
- function gn(e, n, o, s = {}) {
1168
+ function vn(e, n, o, s = {}) {
1170
1169
  var d, a, v;
1171
1170
  const {
1172
1171
  clone: i = !1,
@@ -1175,11 +1174,11 @@ function gn(e, n, o, s = {}) {
1175
1174
  deep: _ = !1,
1176
1175
  defaultValue: m,
1177
1176
  shouldEmit: N
1178
- } = s, t = ye(), b = o || (t == null ? void 0 : t.emit) || ((d = t == null ? void 0 : t.$emit) == null ? void 0 : d.bind(t)) || ((v = (a = t == null ? void 0 : t.proxy) == null ? void 0 : a.$emit) == null ? void 0 : v.bind(t == null ? void 0 : t.proxy));
1177
+ } = s, t = ye(), S = o || (t == null ? void 0 : t.emit) || ((d = t == null ? void 0 : t.$emit) == null ? void 0 : d.bind(t)) || ((v = (a = t == null ? void 0 : t.proxy) == null ? void 0 : a.$emit) == null ? void 0 : v.bind(t == null ? void 0 : t.proxy));
1179
1178
  let g = A;
1180
1179
  n || (n = "modelValue"), g = g || `update:${n.toString()}`;
1181
1180
  const D = (E) => i ? typeof i == "function" ? i(E) : Tt(E) : E, M = () => At(e[n]) ? D(e[n]) : m, p = (E) => {
1182
- N ? N(E) && b(g, E) : b(g, E);
1181
+ N ? N(E) && S(g, E) : S(g, E);
1183
1182
  };
1184
1183
  if (w) {
1185
1184
  const E = M(), $ = F(E);
@@ -1206,7 +1205,7 @@ function gn(e, n, o, s = {}) {
1206
1205
  }
1207
1206
  });
1208
1207
  }
1209
- function yn() {
1208
+ function gn() {
1210
1209
  const { isDark: e } = Oe(), n = Vt(e);
1211
1210
  return {
1212
1211
  isDark: e,
@@ -1273,7 +1272,7 @@ function Yt() {
1273
1272
  o.value = !1;
1274
1273
  }), { pressSpace: e, pressShift: n, pressCtrl: o };
1275
1274
  }
1276
- function wn(e) {
1275
+ function yn(e) {
1277
1276
  const { pressSpace: n } = Oe(), o = new Image(1, 1);
1278
1277
  o.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==";
1279
1278
  let s = 0, d = 0;
@@ -1292,7 +1291,7 @@ function wn(e) {
1292
1291
  }
1293
1292
  return { handleElementDragStart: a, handleElementDrag: v, handleElementDragEnd: i };
1294
1293
  }
1295
- function Sn(e) {
1294
+ function wn(e) {
1296
1295
  const { pressCtrl: n, canvasScale: o, disabledZoom: s } = Oe();
1297
1296
  function d(a) {
1298
1297
  if (!n.value || s.value)
@@ -1334,7 +1333,7 @@ const qt = { class: "min-w-750px rounded" }, Xt = { class: "h-full rounded" }, k
1334
1333
  function t() {
1335
1334
  a.value = !0, _.value = lt();
1336
1335
  }
1337
- async function b() {
1336
+ async function S() {
1338
1337
  try {
1339
1338
  let g = await A.value.validateAll();
1340
1339
  if (!Object.keys(g).length) {
@@ -1358,7 +1357,7 @@ const qt = { class: "min-w-750px rounded" }, Xt = { class: "h-full rounded" }, k
1358
1357
  class: "w-900px",
1359
1358
  width: "900px",
1360
1359
  onClose: N,
1361
- onOk: b,
1360
+ onOk: S,
1362
1361
  okText: "表单数据"
1363
1362
  }, {
1364
1363
  default: Z(() => [
@@ -1400,7 +1399,7 @@ const qt = { class: "min-w-750px rounded" }, Xt = { class: "h-full rounded" }, k
1400
1399
  }), jt = {
1401
1400
  key: 0,
1402
1401
  class: "epic-loading-box"
1403
- }, en = { class: "epic-designer-main" }, tn = { class: "epic-header-container" }, nn = { class: "epic-loading-box" }, Dn = /* @__PURE__ */ fe({
1402
+ }, en = { class: "epic-designer-main" }, tn = { class: "epic-header-container" }, nn = { class: "epic-loading-box" }, Sn = /* @__PURE__ */ fe({
1404
1403
  __name: "designer",
1405
1404
  props: {
1406
1405
  disabledZoom: { type: Boolean, default: !1 },
@@ -1423,7 +1422,7 @@ const qt = { class: "min-w-750px rounded" }, Xt = { class: "h-full rounded" }, k
1423
1422
  "updateSourceData"
1424
1423
  ],
1425
1424
  setup(e, { expose: n, emit: o }) {
1426
- const { t: s } = Pe(), d = ue(() => import("./index-syyNmnFq.js")), a = ue(() => import("./index-BTaKazMR.js")), v = ue(() => import("./index-CT056ccv.js")), i = ue(() => import("./index-ocw8DZly.js")), w = ue(() => import("./index-BMXnkqXx.js")), A = ze(), _ = dt(), m = e;
1425
+ const { t: s } = Pe(), d = ue(() => import("./index-syyNmnFq.js")), a = ue(() => import("./index-BTaKazMR.js")), v = ue(() => import("./index-nvc1uY17.js")), i = ue(() => import("./index-ocw8DZly.js")), w = ue(() => import("./index-Dz39c928.js")), A = ze(), _ = dt(), m = e;
1427
1426
  let N = {
1428
1427
  schemas: [
1429
1428
  {
@@ -1477,7 +1476,7 @@ defineExpose({
1477
1476
  }
1478
1477
  m.source && q.setSourceData(m.source), m.formMode && (N.schemas = q.formSchemas);
1479
1478
  }), A.setDesignMode(), A.setDefaultComponentIds(N.schemas);
1480
- const t = o, b = F(null), g = de({
1479
+ const t = o, S = F(null), g = de({
1481
1480
  checkedNode: null,
1482
1481
  hoverNode: null,
1483
1482
  disableHover: !1,
@@ -1546,7 +1545,7 @@ defineExpose({
1546
1545
  t("toggleDeviceMode", u);
1547
1546
  }
1548
1547
  function c() {
1549
- b.value.handleOpen();
1548
+ S.value.handleOpen();
1550
1549
  }
1551
1550
  return p(), n({
1552
1551
  revoke: _,
@@ -1598,7 +1597,7 @@ defineExpose({
1598
1597
  ], 2),
1599
1598
  oe(kt, {
1600
1599
  ref_key: "previewRef",
1601
- ref: b
1600
+ ref: S
1602
1601
  }, null, 512)
1603
1602
  ])
1604
1603
  ]),
@@ -1611,7 +1610,7 @@ defineExpose({
1611
1610
  })) : (Y(), ge("div", jt));
1612
1611
  }
1613
1612
  }), on = {
1614
- component: async () => await import("./index-C5yUsiJH.js"),
1613
+ component: async () => await import("./index-D8diDndG.js"),
1615
1614
  defaultSchema: {
1616
1615
  label: "代码编辑器",
1617
1616
  type: "monacoEditor",
@@ -1661,11 +1660,11 @@ defineExpose({
1661
1660
  }
1662
1661
  }, { t: De } = Pe();
1663
1662
  function rn(e) {
1664
- e.component("EInputSize", async () => await import("./index-DMnyvgEN.js")), e.component("EColEditor", async () => await import("./index-CAYHjLKP.js")), e.component("EActionEditor", async () => await import("./index-CrVn9CfT.js")), e.component("ERuleEditor", async () => await import("./index-Cecp9t8s.js")), e.component("EOptionsEditor", async () => await import("./index-DI-E5Cpq.js")), e.component("ENode", async () => await import("./index-Dp0hJSh5.js")), e.component("EDataSource", async () => await import("./index-9Mn4Y5ul.js")), e.component("EColumnEditor", async () => await import("./index-D2n96wxz.js")), e.component("PaddingMarginControl", async () => await import("./index-CQSYlqUB.js")), e.component("ESourceDataSelect", async () => await import("./index-natF7VzY.js")), e.component("EValidateParam", async () => await import("./index-Xnqspbxj.js")), e.component("EDescribe", async () => await import("./index-UpNznhhe.js")), e.registerActivitybar({
1663
+ e.component("EInputSize", async () => await import("./index-DMnyvgEN.js")), e.component("EColEditor", async () => await import("./index-CAYHjLKP.js")), e.component("EActionEditor", async () => await import("./index-BQGUEUhF.js")), e.component("ERuleEditor", async () => await import("./index-6ehvFk8m.js")), e.component("EOptionsEditor", async () => await import("./index-u1-3v7J4.js")), e.component("ENode", async () => await import("./index-BNgMDVXO.js")), e.component("EDataSource", async () => await import("./index-7Z6k5ElN.js")), e.component("EColumnEditor", async () => await import("./index-lkwgM-Nx.js")), e.component("PaddingMarginControl", async () => await import("./index-B2L9CYN8.js")), e.component("ESourceDataSelect", async () => await import("./index-Ch0kn_uQ.js")), e.component("EValidateParam", async () => await import("./index-57Jo44dB.js")), e.component("EDescribe", async () => await import("./index-zxpOBir-.js")), e.registerActivitybar({
1665
1664
  id: "component_view",
1666
1665
  title: De("component"),
1667
1666
  icon: "icon--epic--extension-outline",
1668
- component: async () => await import("./index-CLeSXOVj.js")
1667
+ component: async () => await import("./index-BelKUDOu.js")
1669
1668
  }), e.registerActivitybar({
1670
1669
  id: "outline_view",
1671
1670
  title: De("outline"),
@@ -1674,11 +1673,11 @@ function rn(e) {
1674
1673
  }), e.registerRightSidebar({
1675
1674
  id: "attribute_view",
1676
1675
  title: De("attribute"),
1677
- component: async () => await import("./attributeView-BAtvUAhV.js")
1676
+ component: async () => await import("./attributeView-BsBiqVGu.js")
1678
1677
  }), e.registerRightSidebar({
1679
1678
  id: "style_view",
1680
1679
  title: De("style"),
1681
- component: async () => await import("./styleView-oSuNX97o.js")
1680
+ component: async () => await import("./styleView-DXePdHW5.js")
1682
1681
  }), e.registerRightSidebar({
1683
1682
  id: "event_view",
1684
1683
  title: "事件",
@@ -1693,14 +1692,14 @@ export {
1693
1692
  Dt as _,
1694
1693
  bn as a,
1695
1694
  Ht as b,
1696
- wn as c,
1697
- vn as d,
1698
- Sn as e,
1699
- pn as f,
1700
- gn as g,
1701
- hn as h,
1702
- yn as i,
1703
- Dn as j,
1695
+ yn as c,
1696
+ hn as d,
1697
+ wn as e,
1698
+ fn as f,
1699
+ vn as g,
1700
+ mn as h,
1701
+ gn as i,
1702
+ Sn as j,
1704
1703
  ze as k,
1705
1704
  dt as l,
1706
1705
  Yt as m,
@@ -1708,5 +1707,5 @@ export {
1708
1707
  Zt as o,
1709
1708
  Qt as p,
1710
1709
  Oe as u,
1711
- mn as w
1710
+ pn as w
1712
1711
  };