epic-designer-gold 0.0.29 → 0.0.30

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 (27) hide show
  1. package/dist/{attributeView-53W6OYFq.js → attributeView-De_f9cQd.js} +1 -1
  2. package/dist/{attributeView-Br4R-qs2.cjs → attributeView-Dqeqsngv.cjs} +1 -1
  3. package/dist/{index-BzetW3fw.cjs → index-26AzXutN.cjs} +1 -1
  4. package/dist/index-2dJzXydf.js +4 -0
  5. package/dist/index-B30AjHWV.cjs +10 -0
  6. package/dist/{index-C0_2_WpB.js → index-BB1mJNTS.js} +1 -1
  7. package/dist/{index-CpCohObI.js → index-BIDRA86S.js} +1 -1
  8. package/dist/{index-thxQ_B2C.cjs → index-BTKr-8ba.cjs} +1 -1
  9. package/dist/{index-B60Tmc0O.js → index-Bae_P2jy.js} +1 -1
  10. package/dist/{index-CoWccwst.cjs → index-BbCkeepF.cjs} +1 -1
  11. package/dist/{index-BuMTLuUU.cjs → index-BtuYfYFT.cjs} +1 -1
  12. package/dist/{index-5vW2b_OC.js → index-CHGojUf_.js} +1 -1
  13. package/dist/{index-hIAPokYs.cjs → index-Czi0tPRM.cjs} +1 -1
  14. package/dist/{index-Do_cYUvQ.js → index-D2jUjBFQ.js} +1 -1
  15. package/dist/{index-CCe1TX6z.js → index-DUsA7Tr8.js} +1 -1
  16. package/dist/{index-EQJa9EU2.js → index-DYpZGxr_.js} +439 -445
  17. package/dist/{index-BXR6vTnH.cjs → index-DuXhyMbh.cjs} +1 -1
  18. package/dist/{index-Dk3I3tbP.cjs → index-dIWkZ7Jl.cjs} +1 -1
  19. package/dist/{index-CrsnSHt0.cjs → index-qCmGhMQn.cjs} +1 -1
  20. package/dist/{index-CXCTsEX3.js → index-z22tTQo-.js} +1 -1
  21. package/dist/index.cjs +1 -1
  22. package/dist/index.js +1 -1
  23. package/dist/{styleView-CElFrsoj.cjs → styleView-BdLkrbxa.cjs} +1 -1
  24. package/dist/{styleView-DOTi7atY.js → styleView-CA80akwG.js} +1 -1
  25. package/package.json +1 -1
  26. package/dist/index-3RNTR6WH.cjs +0 -10
  27. package/dist/index-BUbBjk-A.js +0 -4
@@ -1,5 +1,5 @@
1
- import { ref as D, reactive as G, defineComponent as Q, openBlock as M, createBlock as z, unref as _, mergeProps as fe, withCtx as V, renderSlot as $, getCurrentInstance as oe, inject as H, watch as O, useAttrs as _e, provide as N, shallowRef as Pe, computed as U, watchEffect as re, onUnmounted as be, resolveComponent as Ve, resolveDynamicComponent as Oe, createVNode as L, createCommentVNode as Se, useSlots as Fe, createElementBlock as pe, Suspense as De, createElementVNode as J, Fragment as Me, renderList as Re, nextTick as X, effectScope as $e, isRef as Ne, getCurrentScope as Be, onScopeDispose as Ue, onMounted as me, normalizeClass as Te, toRaw as ge } from "vue";
2
- import { p as F, a as we, l as Z, E as ce } from "./axios-ITY6Uw7A.js";
1
+ import { ref as D, reactive as Z, defineComponent as G, openBlock as M, createBlock as L, unref as _, mergeProps as fe, withCtx as P, renderSlot as R, getCurrentInstance as ne, inject as H, watch as V, useAttrs as _e, provide as $, shallowRef as Pe, computed as U, watchEffect as re, onUnmounted as be, resolveComponent as Ve, resolveDynamicComponent as Fe, createVNode as T, createCommentVNode as Se, useSlots as Oe, createElementBlock as pe, Suspense as De, createElementVNode as z, Fragment as Me, renderList as Re, nextTick as Y, effectScope as $e, isRef as Ne, getCurrentScope as Be, onScopeDispose as Ue, onMounted as me, normalizeClass as Te, toRaw as ge } from "vue";
2
+ import { p as F, E as ee, a as we, l as q } from "./axios-ITY6Uw7A.js";
3
3
  function se(e = 10) {
4
4
  const a = "abcdefghijklmnopqrstuvwxyz0123456789";
5
5
  let n = "";
@@ -12,22 +12,22 @@ function se(e = 10) {
12
12
  function Le(e) {
13
13
  return e.charAt(0).toUpperCase() + e.slice(1);
14
14
  }
15
- function B(e, a = /* @__PURE__ */ new WeakMap()) {
15
+ function N(e, a = /* @__PURE__ */ new WeakMap()) {
16
16
  if (typeof e != "object" || e === null)
17
17
  return e;
18
18
  if (a.has(e))
19
19
  return a.get(e);
20
20
  if (Array.isArray(e)) {
21
- const o = e.map((t) => B(t, a));
21
+ const o = e.map((t) => N(t, a));
22
22
  return a.set(e, o), o;
23
23
  }
24
24
  const n = {};
25
25
  return a.set(e, n), Object.keys(e).forEach((o) => {
26
- n[o] = B(e[o], a);
26
+ n[o] = N(e[o], a);
27
27
  }), n;
28
28
  }
29
29
  function Vt(e) {
30
- const [a] = We([B(e)], (n) => {
30
+ const [a] = We([N(e)], (n) => {
31
31
  var t, r;
32
32
  const o = {
33
33
  ...n,
@@ -37,10 +37,10 @@ function Vt(e) {
37
37
  });
38
38
  return a;
39
39
  }
40
- function W(e, a, n = !0) {
40
+ function J(e, a, n = !0) {
41
41
  for (const [o, t] of Object.entries(a)) {
42
42
  let r = e == null ? void 0 : e[o];
43
- r && t && typeof r == "object" && typeof t == "object" ? (Array.isArray(r) && !Array.isArray(t) ? r = e[o] = {} : !Array.isArray(r) && Array.isArray(t) && (r = e[o] = []), W(r, t, n)) : e[o] = t;
43
+ r && t && typeof r == "object" && typeof t == "object" ? (Array.isArray(r) && !Array.isArray(t) ? r = e[o] = {} : !Array.isArray(r) && Array.isArray(t) && (r = e[o] = []), J(r, t, n)) : e[o] = t;
44
44
  }
45
45
  n && Object.keys(e).reverse().forEach((o) => {
46
46
  a.hasOwnProperty(o) || (Array.isArray(e) ? e.splice(Number(o), 1) : delete e[o]);
@@ -78,7 +78,7 @@ function ze(e, a) {
78
78
  }
79
79
  return e.forEach(t), o || console.error(`没有查询到id为${a}的节点`), n;
80
80
  }
81
- function Ot(e, a, n) {
81
+ function Ft(e, a, n) {
82
82
  const o = a.split(".");
83
83
  let t = e;
84
84
  for (let r = 0; r < o.length; r++) {
@@ -88,7 +88,7 @@ function Ot(e, a, n) {
88
88
  }
89
89
  return t === void 0 ? n : t;
90
90
  }
91
- function Ft(e, a, n) {
91
+ function Ot(e, a, n) {
92
92
  const o = a.replace(/\[(\d+)\]/g, ".$1").split(".").filter(Boolean);
93
93
  let t = e;
94
94
  for (let r = 0; r < o.length - 1; r++) {
@@ -101,7 +101,7 @@ function Mt(e, a = "default") {
101
101
  return Je(e, a).map((o) => o.field);
102
102
  }
103
103
  function Je(e, a = "default") {
104
- const n = ne(
104
+ const n = te(
105
105
  e,
106
106
  (t) => {
107
107
  var r;
@@ -109,14 +109,14 @@ function Je(e, a = "default") {
109
109
  },
110
110
  !0
111
111
  );
112
- return ne(
112
+ return te(
113
113
  (n == null ? void 0 : n.children) ?? [],
114
114
  (t) => !!t.input,
115
115
  !1,
116
116
  (t) => t.type !== "subform"
117
117
  );
118
118
  }
119
- function ne(e, a, n = !1, o) {
119
+ function te(e, a, n = !1, o) {
120
120
  const t = [], r = [...e];
121
121
  for (; r.length; ) {
122
122
  const l = r.pop();
@@ -135,12 +135,12 @@ function We(e, a, n) {
135
135
  if (t != null && t.children && (!n || n(t)) && o.push(...t.children), t != null && t.slots && (!n || n(t)))
136
136
  for (let r in t.slots)
137
137
  o.push(...t.slots[r]);
138
- W(t, a(t));
138
+ J(t, a(t));
139
139
  }
140
140
  return e;
141
141
  }
142
142
  function Rt(e, a) {
143
- const n = ne(
143
+ const n = te(
144
144
  e,
145
145
  (o) => o.id === a,
146
146
  !0
@@ -152,7 +152,7 @@ function Rt(e, a) {
152
152
  function $t(e, a) {
153
153
  const n = [{ type: "", children: e }];
154
154
  let o = 0, t = null;
155
- if (ne(
155
+ if (te(
156
156
  n,
157
157
  (r) => {
158
158
  if (t = r.children ?? null, !t) {
@@ -217,18 +217,18 @@ function Nt(e) {
217
217
  ],
218
218
  script: e.script || ""
219
219
  };
220
- return a.schemas[0].children[0].children = te(e.list), a;
220
+ return a.schemas[0].children[0].children = j(e.list), a;
221
221
  }
222
- function te(e, a) {
222
+ function j(e, a) {
223
223
  return e.map((n) => {
224
- var c, g, h;
224
+ var c, w, v;
225
225
  let o = n.type ?? "";
226
- const t = n.options ?? {}, r = (s, v) => {
227
- o === s && (o = v, t.defaultValue && (t.defaultValue = JSON.parse(t.defaultValue)));
226
+ const t = n.options ?? {}, r = (s, y) => {
227
+ o === s && (o = y, t.defaultValue && (t.defaultValue = JSON.parse(t.defaultValue)));
228
228
  };
229
229
  if (r("uploadImg", "upload-image"), r("uploadFile", "upload-file"), o === "date" && t.range && (t.type = "daterange", delete t.range), (o === "date" || o === "time") && (t.valueFormat = t.format), o === "textarea") {
230
- const { minRows: s, maxRows: v } = t;
231
- t.autoSize = { minRows: s, maxRows: v }, delete t.minRows, delete t.maxRows;
230
+ const { minRows: s, maxRows: y } = t;
231
+ t.autoSize = { minRows: s, maxRows: y }, delete t.minRows, delete t.maxRows;
232
232
  }
233
233
  o === "number" && !t.precision && delete t.precision, t.width && (t.style = { width: t.width }, delete t.width), o === "grid" && (o = "row"), a && a.type === "grid" && (o = "col", t.span = n.span, n.key = se());
234
234
  const l = {
@@ -255,7 +255,7 @@ function te(e, a) {
255
255
  "color-picker",
256
256
  "upload-file",
257
257
  "upload-image"
258
- ].includes(o) && (l.input = !0, ((g = (c = n.rules) == null ? void 0 : c[0]) == null ? void 0 : g.required) === !1 && n.rules.shift(), ((h = n.rules) == null ? void 0 : h.length) > 0 && (l.rules = n.rules)), n.list && (l.children = te(n.list, n)), n.columns && (l.children = te(n.columns, n)), n.trs && (l.children = te(n.trs, n)), n.tds && (l.children = te(n.tds, n)), l;
258
+ ].includes(o) && (l.input = !0, ((w = (c = n.rules) == null ? void 0 : c[0]) == null ? void 0 : w.required) === !1 && n.rules.shift(), ((v = n.rules) == null ? void 0 : v.length) > 0 && (l.rules = n.rules)), n.list && (l.children = j(n.list, n)), n.columns && (l.children = j(n.columns, n)), n.trs && (l.children = j(n.trs, n)), n.tds && (l.children = j(n.tds, n)), l;
259
259
  });
260
260
  }
261
261
  function Bt(e, a) {
@@ -267,108 +267,108 @@ function Bt(e, a) {
267
267
  };
268
268
  }
269
269
  function Ee() {
270
- const e = D({}), a = D({}), n = D(!1), o = D([]), t = G({});
270
+ const e = D({}), a = D({}), n = D(!1), o = D([]), t = Z({});
271
271
  function r(m) {
272
272
  return e.value[m];
273
273
  }
274
- function l(m, y) {
275
- e.value[m] = y;
274
+ function l(m, g) {
275
+ e.value[m] = g;
276
276
  }
277
277
  function i(m) {
278
278
  delete e.value[m];
279
279
  }
280
- function c(m, y = !1) {
281
- const b = Object.entries(F.publicMethods).reduce(
282
- (E, [I, R]) => (E[I] = R.handler, E),
280
+ function c(m, g = !1) {
281
+ const h = Object.entries(F.publicMethods).reduce(
282
+ (I, [O, B]) => (I[O] = B.handler, I),
283
283
  {}
284
284
  );
285
285
  try {
286
286
  new Function(`const epic = this;${m}`).bind({
287
- ...b,
287
+ ...h,
288
288
  getComponent: r,
289
289
  find: r,
290
- defineExpose: g,
291
- publicMethods: b,
290
+ defineExpose: w,
291
+ publicMethods: h,
292
292
  pluginManager: F
293
293
  })();
294
- } catch (E) {
295
- y && console.error("[epic:自定义函数]异常:", E);
294
+ } catch (I) {
295
+ g && console.error("[epic:自定义函数]异常:", I);
296
296
  }
297
297
  }
298
- function g(m) {
298
+ function w(m) {
299
299
  m != null && (a.value = m);
300
300
  }
301
- function h(m, ...y) {
301
+ function v(m, ...g) {
302
302
  if (!m || m.length === 0) {
303
303
  console.warn("未提供任何动作");
304
304
  return;
305
305
  }
306
- m.forEach((b) => {
307
- const E = b.args ? JSON.parse(b.args) : y;
308
- switch (b.type) {
306
+ m.forEach((h) => {
307
+ const I = h.args ? JSON.parse(h.args) : g;
308
+ switch (h.type) {
309
309
  case "public":
310
- s(b, E);
310
+ s(h, I);
311
311
  break;
312
312
  case "custom":
313
- v(b, E);
313
+ y(h, I);
314
314
  break;
315
315
  case "component":
316
- d(b, E);
316
+ d(h, I);
317
317
  break;
318
318
  default:
319
- console.warn(`未知的动作类型: ${b.type}`);
319
+ console.warn(`未知的动作类型: ${h.type}`);
320
320
  break;
321
321
  }
322
322
  });
323
323
  }
324
- function s(m, y) {
325
- var b;
324
+ function s(m, g) {
325
+ var h;
326
326
  try {
327
- (b = F.publicMethods[m.methodName]) == null || b.handler(...y);
328
- } catch (E) {
329
- console.error(`[Epic:公共函数(${m.methodName})]执行异常:`, E);
327
+ (h = F.publicMethods[m.methodName]) == null || h.handler(...g);
328
+ } catch (I) {
329
+ console.error(`[Epic:公共函数(${m.methodName})]执行异常:`, I);
330
330
  }
331
331
  }
332
- function v(m, y) {
333
- var b, E;
332
+ function y(m, g) {
333
+ var h, I;
334
334
  try {
335
- (E = (b = a.value)[m.methodName]) == null || E.call(b, ...y);
336
- } catch (I) {
337
- console.error(`[Epic:自定义函数(${m.methodName})]执行异常:`, I);
335
+ (I = (h = a.value)[m.methodName]) == null || I.call(h, ...g);
336
+ } catch (O) {
337
+ console.error(`[Epic:自定义函数(${m.methodName})]执行异常:`, O);
338
338
  }
339
339
  }
340
- function d(m, y) {
341
- const b = m.componentId != null && r(m.componentId);
342
- if (!b) {
340
+ function d(m, g) {
341
+ const h = m.componentId != null && r(m.componentId);
342
+ if (!h) {
343
343
  console.warn(`[Epic:组件${m.componentId}]未找到`);
344
344
  return;
345
345
  }
346
346
  try {
347
- b[m.methodName](...y);
348
- } catch (E) {
349
- console.error(`[Epic:组件${m.componentId}函数(${m.methodName})]执行异常:`, E);
347
+ h[m.methodName](...g);
348
+ } catch (I) {
349
+ console.error(`[Epic:组件${m.componentId}函数(${m.methodName})]执行异常:`, I);
350
350
  }
351
351
  }
352
- function p(m = !0) {
352
+ function f(m = !0) {
353
353
  n.value = m;
354
354
  }
355
355
  function u(m) {
356
- const y = ne(m, () => !0);
357
- o.value = y.map((b) => b.id);
356
+ const g = te(m, () => !0);
357
+ o.value = g.map((h) => h.id);
358
358
  }
359
- function A(m, y = "default") {
360
- if (t[y]) {
361
- const b = t[y];
362
- W(m, b);
359
+ function A(m, g = "default") {
360
+ if (t[g]) {
361
+ const h = t[g];
362
+ J(m, h);
363
363
  }
364
- t[y] = m;
364
+ t[g] = m;
365
365
  }
366
- function P(m, y = "default") {
367
- if (t[y]) {
368
- W(t[y], m, !1);
366
+ function x(m, g = "default") {
367
+ if (t[g]) {
368
+ J(t[g], m, !1);
369
369
  return;
370
370
  }
371
- t[y] = m;
371
+ t[g] = m;
372
372
  }
373
373
  return {
374
374
  componentInstances: e,
@@ -377,25 +377,25 @@ function Ee() {
377
377
  defaultComponentIds: o,
378
378
  forms: t,
379
379
  addFormData: A,
380
- setFormData: P,
380
+ setFormData: x,
381
381
  getComponentInstance: r,
382
382
  // 简化查询函数, 推荐使用
383
383
  find: r,
384
384
  addComponentInstance: l,
385
385
  removeComponentInstance: i,
386
386
  setMethods: c,
387
- doActions: h,
388
- setDesignMode: p,
387
+ doActions: v,
388
+ setDesignMode: f,
389
389
  setDefaultComponentIds: u
390
390
  };
391
391
  }
392
392
  function He() {
393
393
  const e = D([]), a = D([]), n = D(null);
394
394
  let o = 0;
395
- function t(c, g = "插入组件") {
396
- const h = Date.now();
397
- o + 150 > h || (o = h, n.value != null && (e.value.push(n.value), a.value.splice(0, a.value.length)), n.value = {
398
- type: g,
395
+ function t(c, w = "插入组件") {
396
+ const v = Date.now();
397
+ o + 150 > v || (o = v, n.value != null && (e.value.push(n.value), a.value.splice(0, a.value.length)), n.value = {
398
+ type: w,
399
399
  componentSchema: JSON.stringify(c)
400
400
  }, e.value.length > 60 && e.value.unshift());
401
401
  }
@@ -424,7 +424,7 @@ function He() {
424
424
  reset: i
425
425
  };
426
426
  }
427
- const Ke = /* @__PURE__ */ Q({
427
+ const Ke = /* @__PURE__ */ G({
428
428
  __name: "dynamicFormItem",
429
429
  props: {
430
430
  hasFormItem: { type: Boolean },
@@ -435,19 +435,19 @@ const Ke = /* @__PURE__ */ Q({
435
435
  const n = F.getComponent("form-item"), o = e, t = a, r = D(), l = () => {
436
436
  t("updateFormItemRef", r.value);
437
437
  };
438
- return (i, c) => o.hasFormItem ? (M(), z(_(n), fe({
438
+ return (i, c) => o.hasFormItem ? (M(), L(_(n), fe({
439
439
  key: 0,
440
440
  ref_key: "formItemRef",
441
441
  ref: r,
442
442
  onVnodeMounted: l
443
443
  }, o.formItemProps), {
444
- default: V(() => [
445
- $(i.$slots, "default")
444
+ default: P(() => [
445
+ R(i.$slots, "default")
446
446
  ]),
447
447
  _: 3
448
- }, 16, ["onVnodeMounted"])) : $(i.$slots, "default", { key: 1 });
448
+ }, 16, ["onVnodeMounted"])) : R(i.$slots, "default", { key: 1 });
449
449
  }
450
- }), qe = /* @__PURE__ */ Q({
450
+ }), qe = /* @__PURE__ */ G({
451
451
  name: "ENode",
452
452
  __name: "node",
453
453
  props: {
@@ -461,22 +461,22 @@ const Ke = /* @__PURE__ */ Q({
461
461
  },
462
462
  emits: ["update:modelValue", "change", "update:dynamicId"],
463
463
  setup(e, { emit: a }) {
464
- const { proxy: n } = oe(), o = e, t = D(null);
465
- let r = H("formData", G({}));
466
- const l = H("slots", {}), i = H("pageManager", {}), c = H("disabled", { value: !1 }), g = H("ruleFieldPrefix", null), h = H("resetFormData", !1);
467
- let s = G(B(o.componentSchema));
468
- p();
469
- async function v(f) {
470
- if (["cascader", "checkbox", "select", "radio"].includes(f.type) && f.componentProps.dynamicId && o.sourceDateUrl) {
464
+ const { proxy: n } = ne(), o = e, t = D(null);
465
+ let r = H("formData", Z({}));
466
+ const l = H("slots", {}), i = H("pageManager", {}), c = H("disabled", { value: !1 }), w = H("ruleFieldPrefix", null), v = H("resetFormData", !1);
467
+ let s = Z(N(o.componentSchema));
468
+ f();
469
+ async function y(p) {
470
+ if (["cascader", "checkbox", "select", "radio"].includes(p.type) && p.componentProps.dynamicId && o.sourceDateUrl) {
471
471
  const S = (await we({
472
472
  // || "http://192.168.28.205:3000/dev-api/data-source
473
473
  url: o.sourceDateUrl,
474
474
  method: "get",
475
475
  params: {
476
- id: f.componentProps.dynamicId
476
+ id: p.componentProps.dynamicId
477
477
  }
478
478
  })).data.data;
479
- let x = await we({
479
+ let C = await we({
480
480
  url: S.url,
481
481
  method: S.method,
482
482
  data: JSON.parse(S.body),
@@ -484,108 +484,108 @@ const Ke = /* @__PURE__ */ Q({
484
484
  headers: JSON.parse(S.headers)
485
485
  });
486
486
  if (S && (S != null && S.dataPath)) {
487
- const Ie = S.dataPath.split(".").reduce((xe, Ce) => xe[Ce], x.data);
488
- f.componentProps.options = d(Ie, S.dataKey, S.dataValue);
487
+ const Ce = S.dataPath.split(".").reduce((ke, xe) => ke[xe], C.data);
488
+ p.componentProps.options = d(Ce, S.dataKey, S.dataValue);
489
489
  } else
490
- f.componentProps.options = d(x.data, S.dataKey, S.dataValue);
491
- return f;
490
+ p.componentProps.options = d(C.data, S.dataKey, S.dataValue);
491
+ return p;
492
492
  }
493
- return f;
493
+ return p;
494
494
  }
495
- function d(f, k, C) {
496
- return f && Object.prototype.toString.call(f) === "[object Array]" ? f.map((S) => S.children && S.children.length ? {
497
- label: S[k],
498
- value: S[C] + "",
499
- children: d(S.children, k, C)
495
+ function d(p, E, k) {
496
+ return p && Object.prototype.toString.call(p) === "[object Array]" ? p.map((S) => S.children && S.children.length ? {
497
+ label: S[E],
498
+ value: S[k] + "",
499
+ children: d(S.children, E, k)
500
500
  } : {
501
- label: S[k],
502
- value: S[C] + ""
501
+ label: S[E],
502
+ value: S[k] + ""
503
503
  }) : [];
504
504
  }
505
- O(
505
+ V(
506
506
  () => o.componentSchema,
507
- (f) => {
508
- Ae(s, f, ["children"]) || (W(s, B(f)), p());
507
+ (p) => {
508
+ Ae(s, p, ["children"]) || (J(s, N(p)), f());
509
509
  },
510
510
  {
511
511
  deep: !0
512
512
  }
513
513
  );
514
- function p() {
514
+ function f() {
515
515
  i.isDesignMode.value && typeof s.field == "string" && (s.field += "-design-mode");
516
516
  }
517
- (o.resetFormData || h) && (r = {});
518
- const u = a, A = D(), P = D(), m = (f) => {
519
- P.value = f;
520
- }, y = _e();
521
- Object.keys(y).length && N("nodeAttrs", y);
522
- const b = Pe(null), E = U(() => {
523
- var f, k;
524
- return (f = s.componentProps) != null && f.hidden ? !1 : typeof s.show == "boolean" ? s.show : ((k = s.show) == null ? void 0 : k.call(s, { values: r })) ?? !0;
525
- }), I = U(() => {
517
+ (o.resetFormData || v) && (r = {});
518
+ const u = a, A = D(), x = D(), m = (p) => {
519
+ x.value = p;
520
+ }, g = _e();
521
+ Object.keys(g).length && $("nodeAttrs", g);
522
+ const h = Pe(null), I = U(() => {
523
+ var p, E;
524
+ return (p = s.componentProps) != null && p.hidden ? !1 : typeof s.show == "boolean" ? s.show : ((E = s.show) == null ? void 0 : E.call(s, { values: r })) ?? !0;
525
+ }), O = U(() => {
526
526
  var S;
527
- const f = E.value && ((S = s.rules) == null ? void 0 : S.map((x) => ({
528
- ...x,
529
- validator: x.validator && i.funcs.value[x.validator]
527
+ const p = I.value && ((S = s.rules) == null ? void 0 : S.map((C) => ({
528
+ ...C,
529
+ validator: C.validator && i.funcs.value[C.validator]
530
530
  // 自定义校验函数
531
531
  })));
532
- let k = s.field;
533
- o.ruleField ? k = o.ruleField : g && s.field && (k = B(g), k.push(s.field));
534
- const C = {
532
+ let E = s.field;
533
+ o.ruleField ? E = o.ruleField : w && s.field && (E = N(w), E.push(s.field));
534
+ const k = {
535
535
  ...s,
536
- rules: f,
537
- rule: f,
538
- field: k
536
+ rules: p,
537
+ rule: p,
538
+ field: E
539
539
  };
540
- return C.children && delete C.children, C;
541
- }), R = U(() => {
542
- var C, S;
543
- const f = ((C = T.value) == null ? void 0 : C.bindModel) ?? "modelValue", k = {};
544
- return s.on && Object.keys(s.on).forEach((x) => {
545
- k[`on${Le(x)}`] = (...ye) => i.doActions(s.on[x], ...ye);
540
+ return k.children && delete k.children, k;
541
+ }), B = U(() => {
542
+ var k, S;
543
+ const p = ((k = W.value) == null ? void 0 : k.bindModel) ?? "modelValue", E = {};
544
+ return s.on && Object.keys(s.on).forEach((C) => {
545
+ E[`on${Le(C)}`] = (...ye) => i.doActions(s.on[C], ...ye);
546
546
  }), {
547
547
  ...o,
548
548
  ...s.componentProps,
549
549
  disabled: (c == null ? void 0 : c.value) || ((S = s.componentProps) == null ? void 0 : S.disabled),
550
- bindModel: f,
551
- ...k
550
+ bindModel: p,
551
+ ...E
552
552
  };
553
- }), T = U(() => F.getComponentConfingByType(s.type) ?? null);
553
+ }), W = U(() => F.getComponentConfingByType(s.type) ?? null);
554
554
  re(() => {
555
555
  t.value = o.modelValue ?? r[s.field ?? ""];
556
- }), O(
556
+ }), V(
557
557
  () => t.value,
558
558
  () => {
559
- t.value !== (o.modelValue ?? r[s.field ?? ""]) && w(t.value);
559
+ t.value !== (o.modelValue ?? r[s.field ?? ""]) && b(t.value);
560
560
  }
561
- ), O(
561
+ ), V(
562
562
  () => A.value,
563
563
  () => {
564
- q();
564
+ oe();
565
565
  },
566
566
  { immediate: !0 }
567
567
  );
568
- function q() {
569
- var k;
570
- const f = A.value || n;
571
- s.id && f && (s.input && (f.setValue = w, f.getValue = () => r[s.field] || o.modelValue), f.setAttr = (C, S) => (s.componentProps || (s.componentProps = {}), s.componentProps[C] = S), f.getAttr = (C) => s.componentProps[C], i.addComponentInstance(s.id, f), (k = T.value) != null && k.defaultSchema.input && s.noFormItem !== !0 && P.value && i.addComponentInstance(s.id + "formItem", P.value));
568
+ function oe() {
569
+ var E;
570
+ const p = A.value || n;
571
+ s.id && p && (s.input && (p.setValue = b, p.getValue = () => r[s.field] || o.modelValue), p.setAttr = (k, S) => (s.componentProps || (s.componentProps = {}), s.componentProps[k] = S), p.getAttr = (k) => s.componentProps[k], i.addComponentInstance(s.id, p), (E = W.value) != null && E.defaultSchema.input && s.noFormItem !== !0 && x.value && i.addComponentInstance(s.id + "formItem", x.value));
572
572
  }
573
- function j() {
574
- var f;
575
- s.id && (i.removeComponentInstance(s.id), (f = T.value) != null && f.defaultSchema.input && s.noFormItem !== !0 && i.removeComponentInstance(s.id + "formItem"));
573
+ function ce() {
574
+ var p;
575
+ s.id && (i.removeComponentInstance(s.id), (p = W.value) != null && p.defaultSchema.input && s.noFormItem !== !0 && i.removeComponentInstance(s.id + "formItem"));
576
576
  }
577
577
  async function ae() {
578
- var k, C, S;
579
- if (s = await v(s), typeof ((k = s.componentProps) == null ? void 0 : k.defaultValue) < "u") {
580
- const x = i.isDesignMode.value ? (C = s.componentProps) == null ? void 0 : C.defaultValue : r[s.field] ?? ((S = s.componentProps) == null ? void 0 : S.defaultValue);
581
- w(B(x));
578
+ var E, k, S;
579
+ if (s = await y(s), typeof ((E = s.componentProps) == null ? void 0 : E.defaultValue) < "u") {
580
+ const C = i.isDesignMode.value ? (k = s.componentProps) == null ? void 0 : k.defaultValue : r[s.field] ?? ((S = s.componentProps) == null ? void 0 : S.defaultValue);
581
+ b(N(C));
582
582
  }
583
583
  if (s.type === "slot") {
584
- const x = s.slotName;
585
- if (!x) return;
586
- b.value = Q({
584
+ const C = s.slotName;
585
+ if (!C) return;
586
+ h.value = G({
587
587
  setup() {
588
- return () => $(l, x, {
588
+ return () => R(l, C, {
589
589
  componentSchema: s,
590
590
  model: r
591
591
  });
@@ -593,71 +593,71 @@ const Ke = /* @__PURE__ */ Q({
593
593
  });
594
594
  return;
595
595
  }
596
- const f = F.getComponent(s.type);
597
- if (!f) {
596
+ const p = F.getComponent(s.type);
597
+ if (!p) {
598
598
  console.error(`组件${s.type}未注册`);
599
599
  return;
600
600
  }
601
- if (typeof f == "function") {
602
- const x = await f();
603
- b.value = x.default ?? x;
601
+ if (typeof p == "function") {
602
+ const C = await p();
603
+ h.value = C.default ?? C;
604
604
  } else
605
- b.value = f;
605
+ h.value = p;
606
606
  }
607
- function w(f) {
608
- console.log("%c [ v ]-433", "font-size:13px; background:pink; color:#bf2c9f;", f), u("update:modelValue", f), u("change", f), s.field && (r[s.field] = f);
607
+ function b(p) {
608
+ u("update:modelValue", p), u("change", p), s.field && (r[s.field] = p), ee.emit("updateformData", r), F.setFormData(r);
609
609
  }
610
- function ee(f) {
611
- u("update:dynamicId", f);
610
+ function X(p) {
611
+ u("update:dynamicId", p);
612
612
  }
613
613
  let ve = null;
614
- return O(
614
+ return V(
615
615
  () => s,
616
- async (f) => {
617
- const k = JSON.stringify({
618
- ...f,
616
+ async (p) => {
617
+ const E = JSON.stringify({
618
+ ...p,
619
619
  children: void 0,
620
620
  componentProps: {
621
- ...f.componentProps,
621
+ ...p.componentProps,
622
622
  options: null
623
623
  }
624
624
  });
625
- if (k === ve)
625
+ if (E === ve)
626
626
  return !1;
627
- ve = k, ae();
627
+ ve = E, ae();
628
628
  },
629
629
  {
630
630
  immediate: !0,
631
631
  deep: !0
632
632
  }
633
- ), be(j), (f, k) => {
633
+ ), be(ce), (p, E) => {
634
634
  var S;
635
- const C = Ve("ENode");
636
- return b.value && E.value ? (M(), z(Ke, {
635
+ const k = Ve("ENode");
636
+ return h.value && I.value ? (M(), L(Ke, {
637
637
  key: 0,
638
- hasFormItem: _(s).noFormItem !== !0 && ((S = T.value) == null ? void 0 : S.defaultSchema.input),
639
- formItemProps: I.value,
638
+ hasFormItem: _(s).noFormItem !== !0 && ((S = W.value) == null ? void 0 : S.defaultSchema.input),
639
+ formItemProps: O.value,
640
640
  onUpdateFormItemRef: m
641
641
  }, {
642
- default: V(() => [
643
- (M(), z(Oe(b.value), fe({
642
+ default: P(() => [
643
+ (M(), L(Fe(h.value), fe({
644
644
  ref_key: "componentInstance",
645
645
  ref: A,
646
- onVnodeMounted: q,
646
+ onVnodeMounted: oe,
647
647
  model: _(r)
648
- }, { ...R.value }, {
649
- [R.value.bindModel]: t.value,
650
- ["onUpdate:" + R.value.bindModel]: k[0] || (k[0] = (x) => t.value = x),
651
- [`onUpdate:${R.value.bindModel}` || ""]: w,
652
- "onUpdate:dynamicId": ee
648
+ }, { ...B.value }, {
649
+ [B.value.bindModel]: t.value,
650
+ ["onUpdate:" + B.value.bindModel]: E[0] || (E[0] = (C) => t.value = C),
651
+ [`onUpdate:${B.value.bindModel}` || ""]: b,
652
+ "onUpdate:dynamicId": X
653
653
  }), {
654
- node: V((x) => [
655
- L(C, fe(x, {
654
+ node: P((C) => [
655
+ T(k, fe(C, {
656
656
  sourceDateUrl: o.sourceDateUrl
657
657
  }), null, 16, ["sourceDateUrl"])
658
658
  ]),
659
- "edit-node": V(() => [
660
- $(f.$slots, "edit-node")
659
+ "edit-node": P(() => [
660
+ R(p.$slots, "edit-node")
661
661
  ]),
662
662
  _: 3
663
663
  }, 16, ["model"]))
@@ -674,8 +674,8 @@ function Ze() {
674
674
  if (e.value)
675
675
  d();
676
676
  else {
677
- const p = O(e, () => {
678
- p(), d();
677
+ const f = V(e, () => {
678
+ f(), d();
679
679
  });
680
680
  }
681
681
  });
@@ -683,44 +683,44 @@ function Ze() {
683
683
  async function t(d = "default") {
684
684
  var u;
685
685
  await o();
686
- const p = (u = n.value) == null ? void 0 : u[d];
687
- if (!p) throw new Error(`表单 [name=${d}] 不存在`);
688
- return p;
686
+ const f = (u = n.value) == null ? void 0 : u[d];
687
+ if (!f) throw new Error(`表单 [name=${d}] 不存在`);
688
+ return f;
689
689
  }
690
- async function r(d, p) {
690
+ async function r(d, f) {
691
691
  const u = await t(d);
692
- return B(await p(u));
692
+ return N(await f(u));
693
693
  }
694
694
  async function l(d = "default") {
695
- return await r(d, (p) => p.getData());
695
+ return await r(d, (f) => f.getData());
696
696
  }
697
- function i(d, p = "default") {
697
+ function i(d, f = "default") {
698
698
  var A;
699
- a.setFormData(d, p);
700
- const u = (A = n.value) == null ? void 0 : A[p];
699
+ a.setFormData(d, f);
700
+ const u = (A = n.value) == null ? void 0 : A[f];
701
701
  u == null || u.clearValidate();
702
702
  }
703
703
  async function c(d = "default") {
704
- return await r(d, async (p) => (await p.validate(), await p.getData()));
704
+ return await r(d, async (f) => (await f.validate(), await f.getData()));
705
705
  }
706
- async function g(d) {
706
+ async function w(d) {
707
707
  await o();
708
- const p = {};
708
+ const f = {};
709
709
  for (const u in n.value) {
710
710
  const A = n.value[u];
711
- A && (p[u] = B(await d(A)));
711
+ A && (f[u] = N(await d(A)));
712
712
  }
713
- return p;
713
+ return f;
714
714
  }
715
- async function h() {
716
- return await g((d) => d.getData());
715
+ async function v() {
716
+ return await w((d) => d.getData());
717
717
  }
718
718
  function s(d) {
719
- for (const p in d)
720
- i(d[p], p);
719
+ for (const f in d)
720
+ i(d[f], f);
721
721
  }
722
- async function v() {
723
- return await g(async (d) => (await d.validate(), await d.getData()));
722
+ async function y() {
723
+ return await w(async (d) => (await d.validate(), await d.getData()));
724
724
  }
725
725
  return {
726
726
  ready: e,
@@ -729,16 +729,16 @@ function Ze() {
729
729
  getData: l,
730
730
  setData: i,
731
731
  validate: c,
732
- getForms: h,
732
+ getForms: v,
733
733
  setForms: s,
734
- validateAll: v,
734
+ validateAll: y,
735
735
  getFormInstance: t
736
736
  };
737
737
  }
738
738
  const Ge = {
739
739
  key: 0,
740
740
  class: "epic-loading-box"
741
- }, Qe = { class: "epic-builder-main" }, Ye = { class: "epic-loading-box" }, Xe = /* @__PURE__ */ Q({
741
+ }, Qe = { class: "epic-builder-main" }, Ye = { class: "epic-loading-box" }, Xe = /* @__PURE__ */ G({
742
742
  __name: "builder",
743
743
  props: {
744
744
  pageSchema: {},
@@ -746,82 +746,76 @@ const Ge = {
746
746
  disabled: { type: Boolean },
747
747
  sourceDateUrl: {}
748
748
  },
749
- emits: ["ready", "change"],
749
+ emits: ["change", "ready"],
750
750
  setup(e, { expose: a, emit: n }) {
751
- const o = Z(() => import("./index-DgcFxYFp.js")), t = n, { ready: r, pageManager: l, forms: i, getData: c, setData: g, validate: h, getForms: s, setForms: v, validateAll: d, getFormInstance: p } = Ze(), u = e, A = G({
751
+ const o = q(() => import("./index-DgcFxYFp.js")), t = n, { ready: r, pageManager: l, forms: i, getData: c, setData: w, validate: v, getForms: s, setForms: y, validateAll: d, getFormInstance: f } = Ze(), u = e, A = Z({
752
752
  schemas: []
753
753
  });
754
- O(
754
+ V(
755
755
  () => u.pageSchema,
756
- (I) => {
757
- W(A, I);
756
+ (h) => {
757
+ J(A, h);
758
758
  },
759
759
  {
760
760
  immediate: !0,
761
761
  deep: !0
762
762
  }
763
- ), O(
763
+ ), V(
764
764
  () => u.formData,
765
- (I) => {
766
- I && g(I);
765
+ (h) => {
766
+ h && w(h);
767
767
  },
768
768
  {
769
769
  immediate: !0,
770
770
  deep: !0
771
771
  }
772
- ), O(
772
+ ), V(
773
773
  () => A.script,
774
- (I) => {
775
- I && l.setMethods(I, !0);
774
+ (h) => {
775
+ h && l.setMethods(h, !0);
776
776
  },
777
777
  {
778
778
  immediate: !0
779
779
  }
780
- );
781
- function P(I) {
782
- console.log("%c [ ]-90", "font-size:13px; background:pink; color:#bf2c9f;", 1), console.log("%c [ e ]-90", "font-size:13px; background:pink; color:#bf2c9f;", I);
783
- }
784
- N("slots", Fe()), N("pageManager", l), N("forms", i), N("pageSchema", A), N(
780
+ ), $("slots", Oe()), $("pageManager", l), $("forms", i), $("pageSchema", A), $(
785
781
  "disabled",
786
782
  U(() => u.disabled)
787
783
  );
788
- const m = oe(), y = m == null ? void 0 : m.proxy;
789
- function b() {
790
- X(() => {
791
- r.value = !0, t("ready", l), y && l.addComponentInstance("builder", y);
784
+ const x = ne(), m = x == null ? void 0 : x.proxy;
785
+ function g() {
786
+ Y(() => {
787
+ r.value = !0, t("ready", l), m && l.addComponentInstance("builder", m);
792
788
  });
793
789
  }
794
- function E(I) {
795
- console.log("%c [ e ]-126", "font-size:13px; background:pink; color:#bf2c9f;", I), t("change", I);
796
- }
797
- return a({
790
+ return ee.on("updateformData", (h) => {
791
+ console.log("%c [ e ]-122", "font-size:13px; background:pink; color:#bf2c9f;", h), t("change", h);
792
+ }), a({
798
793
  ready: r,
799
794
  pageManager: l,
800
795
  getData: c,
801
- setData: g,
802
- validate: h,
796
+ setData: w,
797
+ validate: v,
803
798
  getForms: s,
804
- setForms: v,
799
+ setForms: y,
805
800
  validateAll: d,
806
- getFormInstance: p
807
- }), (I, R) => _(F).initialized.value ? (M(), z(De, {
801
+ getFormInstance: f
802
+ }), (h, I) => _(F).initialized.value ? (M(), L(De, {
808
803
  key: 1,
809
- onResolve: b
804
+ onResolve: g
810
805
  }, {
811
- default: V(() => [
812
- J("div", Qe, [
813
- (M(!0), pe(Me, null, Re(A.schemas, (T, q) => (M(), z(_(qe), {
814
- key: q,
806
+ default: P(() => [
807
+ z("div", Qe, [
808
+ (M(!0), pe(Me, null, Re(A.schemas, (O, B) => (M(), L(_(qe), {
809
+ key: B,
815
810
  sourceDateUrl: u.sourceDateUrl,
816
- componentSchema: T,
817
- onChange: E,
818
- "onUpdate:modelValue": R[0] || (R[0] = (j) => P(j))
819
- }, null, 8, ["sourceDateUrl", "componentSchema"]))), 128))
811
+ componentSchema: O,
812
+ onChange: h.getDataChange
813
+ }, null, 8, ["sourceDateUrl", "componentSchema", "onChange"]))), 128))
820
814
  ])
821
815
  ]),
822
- fallback: V(() => [
823
- J("div", Ye, [
824
- L(_(o))
816
+ fallback: P(() => [
817
+ z("div", Ye, [
818
+ T(_(o))
825
819
  ])
826
820
  ]),
827
821
  _: 1
@@ -838,7 +832,7 @@ function je(e) {
838
832
  };
839
833
  return (...r) => (a += 1, o || (o = $e(!0), n = o.run(() => e(...r))), he(t), n);
840
834
  }
841
- function Y(e) {
835
+ function Q(e) {
842
836
  return typeof e == "function" ? e() : _(e);
843
837
  }
844
838
  const et = typeof window < "u" && typeof document < "u";
@@ -846,10 +840,10 @@ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
846
840
  const tt = (e) => typeof e < "u", nt = Object.prototype.toString, ot = (e) => nt.call(e) === "[object Object]", at = () => {
847
841
  };
848
842
  function rt(e) {
849
- return oe();
843
+ return ne();
850
844
  }
851
845
  function st(e, a = !0, n) {
852
- rt() ? me(e, n) : a ? e() : X(e);
846
+ rt() ? me(e, n) : a ? e() : Y(e);
853
847
  }
854
848
  function lt(e = !1, a = {}) {
855
849
  const {
@@ -860,20 +854,20 @@ function lt(e = !1, a = {}) {
860
854
  if (arguments.length)
861
855
  return r.value = i, r.value;
862
856
  {
863
- const c = Y(n);
864
- return r.value = r.value === c ? Y(o) : c, r.value;
857
+ const c = Q(n);
858
+ return r.value = r.value === c ? Q(o) : c, r.value;
865
859
  }
866
860
  }
867
861
  return t ? l : [r, l];
868
862
  }
869
863
  function Ut(e, a, n) {
870
- const o = O(e, (...t) => (X(() => o()), a(...t)), n);
864
+ const o = V(e, (...t) => (Y(() => o()), a(...t)), n);
871
865
  return o;
872
866
  }
873
867
  const le = et ? window : void 0;
874
868
  function K(e) {
875
869
  var a;
876
- const n = Y(e);
870
+ const n = Q(e);
877
871
  return (a = n == null ? void 0 : n.$el) != null ? a : n;
878
872
  }
879
873
  function it(...e) {
@@ -882,27 +876,27 @@ function it(...e) {
882
876
  return at;
883
877
  Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
884
878
  const r = [], l = () => {
885
- r.forEach((h) => h()), r.length = 0;
886
- }, i = (h, s, v, d) => (h.addEventListener(s, v, d), () => h.removeEventListener(s, v, d)), c = O(
887
- () => [K(a), Y(t)],
888
- ([h, s]) => {
889
- if (l(), !h)
879
+ r.forEach((v) => v()), r.length = 0;
880
+ }, i = (v, s, y, d) => (v.addEventListener(s, y, d), () => v.removeEventListener(s, y, d)), c = V(
881
+ () => [K(a), Q(t)],
882
+ ([v, s]) => {
883
+ if (l(), !v)
890
884
  return;
891
- const v = ot(s) ? { ...s } : s;
885
+ const y = ot(s) ? { ...s } : s;
892
886
  r.push(
893
- ...n.flatMap((d) => o.map((p) => i(h, d, p, v)))
887
+ ...n.flatMap((d) => o.map((f) => i(v, d, f, y)))
894
888
  );
895
889
  },
896
890
  { immediate: !0, flush: "post" }
897
- ), g = () => {
891
+ ), w = () => {
898
892
  c(), l();
899
893
  };
900
- return he(g), g;
894
+ return he(w), w;
901
895
  }
902
896
  function ct(e) {
903
897
  return typeof e == "function" ? e : typeof e == "string" ? (a) => a.key === e : Array.isArray(e) ? (a) => e.includes(a.key) : () => !0;
904
898
  }
905
- function ke(...e) {
899
+ function Ie(...e) {
906
900
  let a, n, o = {};
907
901
  e.length === 3 ? (a = e[0], n = e[1], o = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (a = !0, n = e[0], o = e[1]) : (a = e[0], n = e[1]) : (a = !0, n = e[0]);
908
902
  const {
@@ -911,18 +905,18 @@ function ke(...e) {
911
905
  passive: l = !1,
912
906
  dedupe: i = !1
913
907
  } = o, c = ct(a);
914
- return it(t, r, (h) => {
915
- h.repeat && Y(i) || c(h) && n(h);
908
+ return it(t, r, (v) => {
909
+ v.repeat && Q(i) || c(v) && n(v);
916
910
  }, l);
917
911
  }
918
912
  function ue(e, a, n = {}) {
919
- return ke(e, a, { ...n, eventName: "keydown" });
913
+ return Ie(e, a, { ...n, eventName: "keydown" });
920
914
  }
921
915
  function de(e, a, n = {}) {
922
- return ke(e, a, { ...n, eventName: "keyup" });
916
+ return Ie(e, a, { ...n, eventName: "keyup" });
923
917
  }
924
918
  function ut() {
925
- const e = D(!1), a = oe();
919
+ const e = D(!1), a = ne();
926
920
  return a && me(() => {
927
921
  e.value = !0;
928
922
  }, a), e;
@@ -940,43 +934,43 @@ function pt(e, a, n = {}) {
940
934
  const l = dt(() => o && "ResizeObserver" in o), i = () => {
941
935
  r && (r.disconnect(), r = void 0);
942
936
  }, c = U(() => {
943
- const s = Y(e);
944
- return Array.isArray(s) ? s.map((v) => K(v)) : [K(s)];
945
- }), g = O(
937
+ const s = Q(e);
938
+ return Array.isArray(s) ? s.map((y) => K(y)) : [K(s)];
939
+ }), w = V(
946
940
  c,
947
941
  (s) => {
948
942
  if (i(), l.value && o) {
949
943
  r = new ResizeObserver(a);
950
- for (const v of s)
951
- v && r.observe(v, t);
944
+ for (const y of s)
945
+ y && r.observe(y, t);
952
946
  }
953
947
  },
954
948
  { immediate: !0, flush: "post" }
955
- ), h = () => {
956
- i(), g();
949
+ ), v = () => {
950
+ i(), w();
957
951
  };
958
- return he(h), {
952
+ return he(v), {
959
953
  isSupported: l,
960
- stop: h
954
+ stop: v
961
955
  };
962
956
  }
963
957
  function Tt(e, a = { width: 0, height: 0 }, n = {}) {
964
958
  const { window: o = le, box: t = "content-box" } = n, r = U(() => {
965
- var s, v;
966
- return (v = (s = K(e)) == null ? void 0 : s.namespaceURI) == null ? void 0 : v.includes("svg");
959
+ var s, y;
960
+ return (y = (s = K(e)) == null ? void 0 : s.namespaceURI) == null ? void 0 : y.includes("svg");
967
961
  }), l = D(a.width), i = D(a.height), { stop: c } = pt(
968
962
  e,
969
963
  ([s]) => {
970
- const v = t === "border-box" ? s.borderBoxSize : t === "content-box" ? s.contentBoxSize : s.devicePixelContentBoxSize;
964
+ const y = t === "border-box" ? s.borderBoxSize : t === "content-box" ? s.contentBoxSize : s.devicePixelContentBoxSize;
971
965
  if (o && r.value) {
972
966
  const d = K(e);
973
967
  if (d) {
974
- const p = d.getBoundingClientRect();
975
- l.value = p.width, i.value = p.height;
968
+ const f = d.getBoundingClientRect();
969
+ l.value = f.width, i.value = f.height;
976
970
  }
977
- } else if (v) {
978
- const d = Array.isArray(v) ? v : [v];
979
- l.value = d.reduce((p, { inlineSize: u }) => p + u, 0), i.value = d.reduce((p, { blockSize: u }) => p + u, 0);
971
+ } else if (y) {
972
+ const d = Array.isArray(y) ? y : [y];
973
+ l.value = d.reduce((f, { inlineSize: u }) => f + u, 0), i.value = d.reduce((f, { blockSize: u }) => f + u, 0);
980
974
  } else
981
975
  l.value = s.contentRect.width, i.value = s.contentRect.height;
982
976
  },
@@ -986,19 +980,19 @@ function Tt(e, a = { width: 0, height: 0 }, n = {}) {
986
980
  const s = K(e);
987
981
  s && (l.value = "offsetWidth" in s ? s.offsetWidth : a.width, i.value = "offsetHeight" in s ? s.offsetHeight : a.height);
988
982
  });
989
- const g = O(
983
+ const w = V(
990
984
  () => K(e),
991
985
  (s) => {
992
986
  l.value = s ? a.width : 0, i.value = s ? a.height : 0;
993
987
  }
994
988
  );
995
- function h() {
996
- c(), g();
989
+ function v() {
990
+ c(), w();
997
991
  }
998
992
  return {
999
993
  width: l,
1000
994
  height: i,
1001
- stop: h
995
+ stop: v
1002
996
  };
1003
997
  }
1004
998
  function Lt(e, a, n, o = {}) {
@@ -1006,38 +1000,38 @@ function Lt(e, a, n, o = {}) {
1006
1000
  const {
1007
1001
  clone: i = !1,
1008
1002
  passive: c = !1,
1009
- eventName: g,
1010
- deep: h = !1,
1003
+ eventName: w,
1004
+ deep: v = !1,
1011
1005
  defaultValue: s,
1012
- shouldEmit: v
1013
- } = o, d = oe(), p = n || (d == null ? void 0 : d.emit) || ((t = d == null ? void 0 : d.$emit) == null ? void 0 : t.bind(d)) || ((l = (r = d == null ? void 0 : d.proxy) == null ? void 0 : r.$emit) == null ? void 0 : l.bind(d == null ? void 0 : d.proxy));
1014
- let u = g;
1006
+ shouldEmit: y
1007
+ } = o, d = ne(), f = n || (d == null ? void 0 : d.emit) || ((t = d == null ? void 0 : d.$emit) == null ? void 0 : t.bind(d)) || ((l = (r = d == null ? void 0 : d.proxy) == null ? void 0 : r.$emit) == null ? void 0 : l.bind(d == null ? void 0 : d.proxy));
1008
+ let u = w;
1015
1009
  a || (a = "modelValue"), u = u || `update:${a.toString()}`;
1016
- const A = (y) => i ? typeof i == "function" ? i(y) : ft(y) : y, P = () => tt(e[a]) ? A(e[a]) : s, m = (y) => {
1017
- v ? v(y) && p(u, y) : p(u, y);
1010
+ const A = (g) => i ? typeof i == "function" ? i(g) : ft(g) : g, x = () => tt(e[a]) ? A(e[a]) : s, m = (g) => {
1011
+ y ? y(g) && f(u, g) : f(u, g);
1018
1012
  };
1019
1013
  if (c) {
1020
- const y = P(), b = D(y);
1021
- let E = !1;
1022
- return O(
1014
+ const g = x(), h = D(g);
1015
+ let I = !1;
1016
+ return V(
1023
1017
  () => e[a],
1024
- (I) => {
1025
- E || (E = !0, b.value = A(I), X(() => E = !1));
1018
+ (O) => {
1019
+ I || (I = !0, h.value = A(O), Y(() => I = !1));
1026
1020
  }
1027
- ), O(
1028
- b,
1029
- (I) => {
1030
- !E && (I !== e[a] || h) && m(I);
1021
+ ), V(
1022
+ h,
1023
+ (O) => {
1024
+ !I && (O !== e[a] || v) && m(O);
1031
1025
  },
1032
- { deep: h }
1033
- ), b;
1026
+ { deep: v }
1027
+ ), h;
1034
1028
  } else
1035
1029
  return U({
1036
1030
  get() {
1037
- return P();
1031
+ return x();
1038
1032
  },
1039
- set(y) {
1040
- m(y);
1033
+ set(g) {
1034
+ m(g);
1041
1035
  }
1042
1036
  });
1043
1037
  }
@@ -1052,7 +1046,7 @@ function mt() {
1052
1046
  const e = D(!1);
1053
1047
  return me(() => {
1054
1048
  ht(e), vt(e);
1055
- }), O(
1049
+ }), V(
1056
1050
  () => e.value,
1057
1051
  () => {
1058
1052
  e.value ? document.documentElement.classList.add("dark") : document.documentElement.classList.remove("dark");
@@ -1113,14 +1107,14 @@ function Jt(e) {
1113
1107
  n.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==";
1114
1108
  let o = 0, t = 0;
1115
1109
  function r(c) {
1116
- var g;
1117
- a.value && (o = c.x, t = c.y, (g = c.dataTransfer) == null || g.setDragImage(document.createElement("div"), 0, 0));
1110
+ var w;
1111
+ a.value && (o = c.x, t = c.y, (w = c.dataTransfer) == null || w.setDragImage(document.createElement("div"), 0, 0));
1118
1112
  }
1119
1113
  function l(c) {
1120
1114
  if (c.preventDefault(), !c.x || !c.y || !a.value)
1121
1115
  return;
1122
- const g = c.x - o, h = c.y - t;
1123
- o = c.x, t = c.y, e.value && (e.value.scrollTop -= h, e.value.scrollLeft -= g);
1116
+ const w = c.x - o, v = c.y - t;
1117
+ o = c.x, t = c.y, e.value && (e.value.scrollTop -= v, e.value.scrollLeft -= w);
1124
1118
  }
1125
1119
  function i() {
1126
1120
  a.value = !1;
@@ -1136,7 +1130,7 @@ function Wt(e) {
1136
1130
  let l = 0;
1137
1131
  r.deltaY < 0 ? l = n.value + 0.05 : l = n.value - 0.05, !(l > 150 || l < 0.5) && (n.value = l);
1138
1132
  }
1139
- return O(
1133
+ return V(
1140
1134
  () => n.value,
1141
1135
  (r) => {
1142
1136
  e.value && !o.value && (e.value.style.transform = `scale(${r})`);
@@ -1156,27 +1150,27 @@ function Ht(e, a = 16.66) {
1156
1150
  stopTimedQuery: t
1157
1151
  };
1158
1152
  }
1159
- const wt = { class: "min-w-750px rounded" }, bt = { class: "h-full rounded" }, St = /* @__PURE__ */ Q({
1153
+ const wt = { class: "min-w-750px rounded" }, bt = { class: "h-full rounded" }, St = /* @__PURE__ */ G({
1160
1154
  __name: "index",
1161
1155
  setup(e, { expose: a }) {
1162
- const n = F.getComponent("monacoEditor"), o = F.getComponent("modal"), t = D(null), r = D(!1), l = D(!1), i = D({}), c = H("pageSchema"), g = D(null), h = D("");
1156
+ const n = F.getComponent("monacoEditor"), o = F.getComponent("modal"), t = D(null), r = D(!1), l = D(!1), i = D({}), c = H("pageSchema"), w = D(null), v = D("");
1163
1157
  function s() {
1164
1158
  l.value = !1;
1165
1159
  }
1166
- function v() {
1160
+ function y() {
1167
1161
  r.value = !1;
1168
1162
  }
1169
1163
  function d() {
1170
- r.value = !0, h.value = se();
1164
+ r.value = !0, v.value = se();
1171
1165
  }
1172
- async function p() {
1166
+ async function f() {
1173
1167
  try {
1174
- let u = await g.value.validateAll();
1168
+ let u = await w.value.validateAll();
1175
1169
  if (!Object.keys(u).length) {
1176
1170
  alert("请添加表单组件后再尝试!");
1177
1171
  return;
1178
1172
  }
1179
- Object.keys(u).length === 1 && (u = u.default), i.value = JSON.stringify(u, null, 2), X(() => {
1173
+ Object.keys(u).length === 1 && (u = u.default), i.value = JSON.stringify(u, null, 2), Y(() => {
1180
1174
  var A;
1181
1175
  (A = t.value) == null || A.setValue(i.value);
1182
1176
  }), l.value = !0;
@@ -1186,36 +1180,36 @@ const wt = { class: "min-w-750px rounded" }, bt = { class: "h-full rounded" }, S
1186
1180
  }
1187
1181
  return a({
1188
1182
  handleOpen: d
1189
- }), (u, A) => (M(), z(_(o), {
1183
+ }), (u, A) => (M(), L(_(o), {
1190
1184
  modelValue: r.value,
1191
- "onUpdate:modelValue": A[1] || (A[1] = (P) => r.value = P),
1185
+ "onUpdate:modelValue": A[1] || (A[1] = (x) => r.value = x),
1192
1186
  title: "预览",
1193
1187
  class: "w-900px",
1194
1188
  width: "900px",
1195
- onClose: v,
1196
- onOk: p,
1189
+ onClose: y,
1190
+ onOk: f,
1197
1191
  okText: "表单数据"
1198
1192
  }, {
1199
- default: V(() => [
1200
- J("div", wt, [
1201
- (M(), z(_(Xe), {
1202
- key: h.value,
1193
+ default: P(() => [
1194
+ z("div", wt, [
1195
+ (M(), L(_(Xe), {
1196
+ key: v.value,
1203
1197
  ref_key: "kb",
1204
- ref: g,
1198
+ ref: w,
1205
1199
  "page-schema": _(c)
1206
1200
  }, null, 8, ["page-schema"])),
1207
- L(_(o), {
1201
+ T(_(o), {
1208
1202
  modelValue: l.value,
1209
- "onUpdate:modelValue": A[0] || (A[0] = (P) => l.value = P),
1203
+ "onUpdate:modelValue": A[0] || (A[0] = (x) => l.value = x),
1210
1204
  title: "表单数据",
1211
1205
  class: "w-860px",
1212
1206
  width: "860px",
1213
1207
  onClose: s,
1214
1208
  onOk: s
1215
1209
  }, {
1216
- default: V(() => [
1217
- J("div", bt, [
1218
- L(_(n), {
1210
+ default: P(() => [
1211
+ z("div", bt, [
1212
+ T(_(n), {
1219
1213
  ref_key: "monacoEditorRef",
1220
1214
  ref: t,
1221
1215
  autoToggleTheme: "",
@@ -1235,7 +1229,7 @@ const wt = { class: "min-w-750px rounded" }, bt = { class: "h-full rounded" }, S
1235
1229
  }), Dt = {
1236
1230
  key: 0,
1237
1231
  class: "epic-loading-box"
1238
- }, At = { class: "epic-designer-main" }, Et = { class: "epic-header-container" }, kt = { class: "epic-loading-box" }, Kt = /* @__PURE__ */ Q({
1232
+ }, At = { class: "epic-designer-main" }, Et = { class: "epic-header-container" }, It = { class: "epic-loading-box" }, Kt = /* @__PURE__ */ G({
1239
1233
  __name: "designer",
1240
1234
  props: {
1241
1235
  disabledZoom: { type: Boolean, default: !1 },
@@ -1258,7 +1252,7 @@ const wt = { class: "min-w-750px rounded" }, bt = { class: "h-full rounded" }, S
1258
1252
  "updateSourceData"
1259
1253
  ],
1260
1254
  setup(e, { expose: a, emit: n }) {
1261
- const o = Z(() => import("./index-C-XUgjda.js")), t = Z(() => import("./index-ASoFJnMl.js")), r = Z(() => import("./index-CCe1TX6z.js")), l = Z(() => import("./index-ooVzYa5L.js")), i = Z(() => import("./index-DgcFxYFp.js")), c = Ee(), g = He(), h = e;
1255
+ const o = q(() => import("./index-C-XUgjda.js")), t = q(() => import("./index-ASoFJnMl.js")), r = q(() => import("./index-DUsA7Tr8.js")), l = q(() => import("./index-ooVzYa5L.js")), i = q(() => import("./index-DgcFxYFp.js")), c = Ee(), w = He(), v = e;
1262
1256
  let s = {
1263
1257
  schemas: [
1264
1258
  {
@@ -1306,147 +1300,147 @@ defineExpose({
1306
1300
  })`
1307
1301
  };
1308
1302
  re(() => {
1309
- if (h.defaultSchema) {
1310
- s = h.defaultSchema;
1303
+ if (v.defaultSchema) {
1304
+ s = v.defaultSchema;
1311
1305
  return;
1312
1306
  }
1313
- h.source && F.setSourceData(h.source), h.formMode && (s.schemas = F.formSchemas);
1307
+ v.source && F.setSourceData(v.source), v.formMode && (s.schemas = F.formSchemas);
1314
1308
  }), c.setDesignMode(), c.setDefaultComponentIds(s.schemas);
1315
- const v = n, d = D(null), p = G({
1309
+ const y = n, d = D(null), f = Z({
1316
1310
  checkedNode: null,
1317
1311
  hoverNode: null,
1318
1312
  disableHover: !1,
1319
1313
  matched: []
1320
- }), u = G({
1314
+ }), u = Z({
1321
1315
  schemas: [],
1322
1316
  script: s.script
1323
1317
  }), { disabledZoom: A } = ie();
1324
1318
  re(() => {
1325
- A.value = h.disabledZoom;
1319
+ A.value = v.disabledZoom;
1326
1320
  }), re(() => {
1327
- const w = u.script;
1328
- w && w !== "" && c.setMethods(w);
1329
- }), N("pageSchema", u), N("revoke", g), N("pageManager", c), N(
1321
+ const b = u.script;
1322
+ b && b !== "" && c.setMethods(b);
1323
+ }), $("pageSchema", u), $("revoke", w), $("pageManager", c), $(
1330
1324
  "designerProps",
1331
- U(() => h)
1332
- ), N("designer", {
1325
+ U(() => v)
1326
+ ), $("designer", {
1333
1327
  setCheckedNode: m,
1334
- setHoverNode: y,
1335
- setDisableHover: E,
1336
- handleToggleDeviceMode: j,
1337
- reset: T,
1338
- state: p
1339
- }), ce.on("saveSourceData", (w) => {
1340
- v("saveSourceData", w);
1341
- }), ce.on("deleteSourceData", (w) => {
1342
- v("deleteSourceData", w);
1343
- }), ce.on("updateSourceData", (w) => {
1344
- v("updateSourceData", w);
1328
+ setHoverNode: g,
1329
+ setDisableHover: I,
1330
+ handleToggleDeviceMode: ce,
1331
+ reset: W,
1332
+ state: f
1333
+ }), ee.on("saveSourceData", (b) => {
1334
+ y("saveSourceData", b);
1335
+ }), ee.on("deleteSourceData", (b) => {
1336
+ y("deleteSourceData", b);
1337
+ }), ee.on("updateSourceData", (b) => {
1338
+ y("updateSourceData", b);
1345
1339
  });
1346
- function P() {
1347
- u.schemas = B(s.schemas), m(u.schemas[0]), g.push(u.schemas, "初始化撤销功能");
1340
+ function x() {
1341
+ u.schemas = N(s.schemas), m(u.schemas[0]), w.push(u.schemas, "初始化撤销功能");
1348
1342
  }
1349
- async function m(w = u.schemas[0]) {
1350
- p.checkedNode = w, p.matched = ze(u.schemas, w.id);
1343
+ async function m(b = u.schemas[0]) {
1344
+ f.checkedNode = b, f.matched = ze(u.schemas, b.id);
1351
1345
  }
1352
- async function y(w = null) {
1353
- var ee;
1354
- if (!w || p.disableHover)
1355
- return p.hoverNode = null, !1;
1356
- if ((w == null ? void 0 : w.id) === ((ee = p.hoverNode) == null ? void 0 : ee.id))
1346
+ async function g(b = null) {
1347
+ var X;
1348
+ if (!b || f.disableHover)
1349
+ return f.hoverNode = null, !1;
1350
+ if ((b == null ? void 0 : b.id) === ((X = f.hoverNode) == null ? void 0 : X.id))
1357
1351
  return !1;
1358
- p.hoverNode = w;
1352
+ f.hoverNode = b;
1359
1353
  }
1360
- function b() {
1361
- X(() => {
1362
- v("ready", { pageManager: c });
1354
+ function h() {
1355
+ Y(() => {
1356
+ y("ready", { pageManager: c });
1363
1357
  });
1364
1358
  }
1365
- async function E(w = !1) {
1366
- p.disableHover = w;
1359
+ async function I(b = !1) {
1360
+ f.disableHover = b;
1367
1361
  }
1368
- function I(w) {
1369
- W(u, B(w));
1362
+ function O(b) {
1363
+ J(u, N(b));
1370
1364
  }
1371
- function R() {
1365
+ function B() {
1372
1366
  return ge(u);
1373
1367
  }
1374
- function T() {
1375
- Ae(u.schemas, s.schemas) && u.script === s.script || (W(u.schemas, s.schemas), u.script = s.script, m(u.schemas[0]), g.push(u.schemas, "重置操作"), v("reset", u));
1368
+ function W() {
1369
+ Ae(u.schemas, s.schemas) && u.script === s.script || (J(u.schemas, s.schemas), u.script = s.script, m(u.schemas[0]), w.push(u.schemas, "重置操作"), y("reset", u));
1376
1370
  }
1377
- function q() {
1378
- v("save", ge(u));
1371
+ function oe() {
1372
+ y("save", ge(u));
1379
1373
  }
1380
- function j(w) {
1381
- v("toggleDeviceMode", w);
1374
+ function ce(b) {
1375
+ y("toggleDeviceMode", b);
1382
1376
  }
1383
1377
  function ae() {
1384
1378
  d.value.handleOpen();
1385
1379
  }
1386
- return P(), a({
1387
- revoke: g,
1388
- setData: I,
1389
- getData: R,
1390
- reset: T,
1380
+ return x(), a({
1381
+ revoke: w,
1382
+ setData: O,
1383
+ getData: B,
1384
+ reset: W,
1391
1385
  preview: ae
1392
- }), (w, ee) => _(F).initialized.value ? (M(), z(De, {
1386
+ }), (b, X) => _(F).initialized.value ? (M(), L(De, {
1393
1387
  key: 1,
1394
- onResolve: b
1388
+ onResolve: h
1395
1389
  }, {
1396
- default: V(() => [
1397
- J("div", At, [
1398
- J("div", Et, [
1399
- $(w.$slots, "header", {}, () => [
1400
- h.hiddenHeader ? Se("", !0) : (M(), z(_(o), {
1390
+ default: P(() => [
1391
+ z("div", At, [
1392
+ z("div", Et, [
1393
+ R(b.$slots, "header", {}, () => [
1394
+ v.hiddenHeader ? Se("", !0) : (M(), L(_(o), {
1401
1395
  key: 0,
1402
1396
  onPreview: ae,
1403
- onSave: q
1397
+ onSave: oe
1404
1398
  }, {
1405
- header: V(() => [
1406
- $(w.$slots, "header-prefix")
1399
+ header: P(() => [
1400
+ R(b.$slots, "header-prefix")
1407
1401
  ]),
1408
- prefix: V(() => [
1409
- $(w.$slots, "header-prefix")
1402
+ prefix: P(() => [
1403
+ R(b.$slots, "header-prefix")
1410
1404
  ]),
1411
- title: V(() => [
1412
- $(w.$slots, "header-title")
1405
+ title: P(() => [
1406
+ R(b.$slots, "header-title")
1413
1407
  ]),
1414
- "right-prefix": V(() => [
1415
- $(w.$slots, "header-right-prefix")
1408
+ "right-prefix": P(() => [
1409
+ R(b.$slots, "header-right-prefix")
1416
1410
  ]),
1417
- "right-action": V(() => [
1418
- $(w.$slots, "header-right-action")
1411
+ "right-action": P(() => [
1412
+ R(b.$slots, "header-right-action")
1419
1413
  ]),
1420
- "right-suffix": V(() => [
1421
- $(w.$slots, "header-right-suffix")
1414
+ "right-suffix": P(() => [
1415
+ R(b.$slots, "header-right-suffix")
1422
1416
  ]),
1423
1417
  _: 3
1424
1418
  }))
1425
1419
  ])
1426
1420
  ]),
1427
- J("div", {
1428
- class: Te(["epic-split-view-container", { "hidden-header": w.hiddenHeader }])
1421
+ z("div", {
1422
+ class: Te(["epic-split-view-container", { "hidden-header": b.hiddenHeader }])
1429
1423
  }, [
1430
- L(_(t)),
1431
- L(_(r)),
1432
- L(_(l))
1424
+ T(_(t)),
1425
+ T(_(r)),
1426
+ T(_(l))
1433
1427
  ], 2),
1434
- L(St, {
1428
+ T(St, {
1435
1429
  ref_key: "previewRef",
1436
1430
  ref: d
1437
1431
  }, null, 512)
1438
1432
  ])
1439
1433
  ]),
1440
- fallback: V(() => [
1441
- J("div", kt, [
1442
- L(_(i))
1434
+ fallback: P(() => [
1435
+ z("div", It, [
1436
+ T(_(i))
1443
1437
  ])
1444
1438
  ]),
1445
1439
  _: 3
1446
1440
  })) : (M(), pe("div", Dt));
1447
1441
  }
1448
- }), It = {
1449
- component: async () => await import("./index-5vW2b_OC.js"),
1442
+ }), Ct = {
1443
+ component: async () => await import("./index-CHGojUf_.js"),
1450
1444
  defaultSchema: {
1451
1445
  label: "代码编辑器",
1452
1446
  type: "monacoEditor",
@@ -1474,7 +1468,7 @@ defineExpose({
1474
1468
  ]
1475
1469
  },
1476
1470
  bindModel: "model-value"
1477
- }, xt = {
1471
+ }, kt = {
1478
1472
  component: async () => await import("./index-DiDIFoTk.js"),
1479
1473
  defaultSchema: {
1480
1474
  label: "页面",
@@ -1495,12 +1489,12 @@ defineExpose({
1495
1489
  ]
1496
1490
  }
1497
1491
  };
1498
- function Ct(e) {
1499
- e.component("EInputSize", async () => await import("./index-C4sdhgF2.js")), e.component("EColEditor", async () => await import("./index-B60Tmc0O.js")), e.component("EActionEditor", async () => await import("./index-C0_2_WpB.js")), e.component("ERuleEditor", async () => await import("./index-CXCTsEX3.js")), e.component("EOptionsEditor", async () => await import("./index-Do_cYUvQ.js")), e.component("ENode", async () => await import("./index-BUbBjk-A.js")), e.component("EDataSource", async () => await import("./index-CCTMCqiz.js")), e.registerActivitybar({
1492
+ function xt(e) {
1493
+ e.component("EInputSize", async () => await import("./index-C4sdhgF2.js")), e.component("EColEditor", async () => await import("./index-Bae_P2jy.js")), e.component("EActionEditor", async () => await import("./index-BB1mJNTS.js")), e.component("ERuleEditor", async () => await import("./index-z22tTQo-.js")), e.component("EOptionsEditor", async () => await import("./index-D2jUjBFQ.js")), e.component("ENode", async () => await import("./index-2dJzXydf.js")), e.component("EDataSource", async () => await import("./index-CCTMCqiz.js")), e.registerActivitybar({
1500
1494
  id: "component_view",
1501
1495
  title: "组件",
1502
1496
  icon: "icon--epic--extension-outline",
1503
- component: async () => await import("./index-CpCohObI.js")
1497
+ component: async () => await import("./index-BIDRA86S.js")
1504
1498
  }), e.registerActivitybar({
1505
1499
  id: "outline_view",
1506
1500
  title: "大纲",
@@ -1509,21 +1503,21 @@ function Ct(e) {
1509
1503
  }), e.registerRightSidebar({
1510
1504
  id: "attribute_view",
1511
1505
  title: "属性",
1512
- component: async () => await import("./attributeView-53W6OYFq.js")
1506
+ component: async () => await import("./attributeView-De_f9cQd.js")
1513
1507
  }), e.registerRightSidebar({
1514
1508
  id: "style_view",
1515
1509
  title: "样式",
1516
- component: async () => await import("./styleView-DOTi7atY.js")
1517
- }), [It, xt].forEach((n) => {
1510
+ component: async () => await import("./styleView-CA80akwG.js")
1511
+ }), [Ct, kt].forEach((n) => {
1518
1512
  e.registerComponent(n);
1519
1513
  });
1520
1514
  }
1521
- Ct(F);
1515
+ xt(F);
1522
1516
  export {
1523
1517
  Je as A,
1524
- ne as B,
1518
+ te as B,
1525
1519
  We as C,
1526
- te as D,
1520
+ j as D,
1527
1521
  Le as E,
1528
1522
  gt as F,
1529
1523
  mt as G,
@@ -1533,7 +1527,7 @@ export {
1533
1527
  Ht as a,
1534
1528
  pt as b,
1535
1529
  Nt as c,
1536
- W as d,
1530
+ J as d,
1537
1531
  Jt as e,
1538
1532
  $t as f,
1539
1533
  Vt as g,
@@ -1542,13 +1536,13 @@ export {
1542
1536
  Bt as j,
1543
1537
  se as k,
1544
1538
  Rt as l,
1545
- B as m,
1539
+ N as m,
1546
1540
  Lt as n,
1547
- Ot as o,
1541
+ Ft as o,
1548
1542
  zt as p,
1549
1543
  Xe as q,
1550
1544
  Kt as r,
1551
- Ft as s,
1545
+ Ot as s,
1552
1546
  Ee as t,
1553
1547
  ie as u,
1554
1548
  He as v,