@vtj/designer 0.8.150 → 0.8.152

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.
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  var qn = Object.defineProperty;
2
2
  var Hn = (u, e, t) => e in u ? qn(u, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : u[e] = t;
3
3
  var $ = (u, e, t) => Hn(u, typeof e != "symbol" ? e + "" : e, t);
4
- import { computed as S, unref as n, ref as k, reactive as Ke, watchEffect as Gn, watch as J, toValue as vt, defineComponent as E, openBlock as p, createElementBlock as j, toDisplayString as F, createVNode as v, withCtx as b, createElementVNode as V, createBlock as y, createCommentVNode as A, createTextVNode as K, readonly as Xn, getCurrentScope as Kn, onScopeDispose as Qn, onMounted as st, nextTick as ke, getCurrentInstance as nn, shallowRef as Ue, toRaw as ln, Fragment as O, renderList as W, normalizeClass as X, resolveDynamicComponent as sn, createSlots as Yn, withDirectives as De, vShow as Te, renderSlot as Ce, withModifiers as Je, isRef as gt, mergeProps as ie, normalizeStyle as et, defineAsyncComponent as Zn, h as Oe, inject as Ct, provide as el, normalizeProps as an, guardReactiveProps as on, withKeys as tt, onUnmounted as rn, markRaw as ft, createApp as un, shallowReactive as tl, triggerRef as je, KeepAlive as cn } from "vue";
4
+ import { computed as S, unref as n, ref as k, reactive as Ke, watchEffect as Gn, watch as J, toValue as vt, defineComponent as E, openBlock as p, createElementBlock as j, toDisplayString as F, createVNode as v, withCtx as h, createElementVNode as V, createBlock as y, createCommentVNode as A, createTextVNode as K, readonly as Xn, getCurrentScope as Kn, onScopeDispose as Qn, onMounted as st, nextTick as ke, getCurrentInstance as nn, shallowRef as Ue, toRaw as ln, Fragment as O, renderList as W, normalizeClass as X, resolveDynamicComponent as sn, createSlots as Yn, withDirectives as De, vShow as Te, renderSlot as Ce, withModifiers as Je, isRef as gt, mergeProps as ie, normalizeStyle as et, defineAsyncComponent as Zn, h as Oe, inject as Ct, provide as el, normalizeProps as an, guardReactiveProps as on, withKeys as tt, onUnmounted as rn, markRaw as ft, createApp as un, shallowReactive as tl, triggerRef as je, KeepAlive as cn } from "vue";
5
5
  import { ElNotification as Vt, ElMessageBox as At, ElMessage as Qe, ElButton as ae, ElDivider as jt, ElRadioGroup as dn, ElRadioButton as nt, ElButtonGroup as nl, ElDropdown as pn, ElDropdownMenu as mn, ElDropdownItem as ht, ElInput as _e, ElEmpty as oe, ElAlert as Et, ElTooltip as vn, ElTag as ll, ElSwitch as gn, ElTree as Dt, ElRow as bt, ElCol as yt, ElCollapse as sl, ElCollapseItem as al, ElDrawer as fn, ElForm as fe, ElFormItem as hn, ElBreadcrumb as ol, ElBreadcrumbItem as rl, ElLoading as il, ElSelect as ul, ElOption as cl, ElInputNumber as dl, ElColorPicker as pl, ElUpload as ml, ElSlider as vl, ElConfigProvider as gl, ElContainer as Wt, ElHeader as fl, ElAside as Nt, ElMain as hl, ElFooter as bl } from "element-plus";
6
6
  import yl from "element-plus/es/locale/lang/zh-cn";
7
7
  import { XIcon as Se, XDialog as Be, XDialogForm as Ae, XField as T, XPanel as at, XAction as be, XTabs as Pt, XContainer as U, XForm as It, XAttachment as _l, XActionBar as wl, XInputUnit as bn, vResizable as Jt, createDialog as kl } from "@vtj/ui";
@@ -14,10 +14,10 @@ import Ba from "mockjs";
14
14
  * Copyright (c) 2024, VTJ.PRO All rights reserved.
15
15
  * @name @vtj/designer
16
16
  * @author CHC chenhuachun1549@dingtalk.com
17
- * @version 0.8.150
17
+ * @version 0.8.152
18
18
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
19
19
  */
20
- const Ra = "0.8.150", Gt = {
20
+ const Ra = "0.8.152", Gt = {
21
21
  width: 390,
22
22
  height: 844
23
23
  }, Xt = {
@@ -95,8 +95,8 @@ function Ua() {
95
95
  })) : []), r = k(o.value[0]?.name), i = k(""), g = S(() => a.value[r.value]);
96
96
  Gn(() => {
97
97
  const m = o.value.reduce(
98
- (f, h) => (f[h.name] = Ma(
99
- a.value[h.name].children
98
+ (f, b) => (f[b.name] = Ma(
99
+ a.value[b.name].children
100
100
  ), f),
101
101
  {}
102
102
  );
@@ -208,26 +208,26 @@ function Xa(u, e) {
208
208
  const t = k(""), { selected: l, isSelectBlock: s } = xe(), a = S(() => l.value?.model.id), o = S(() => {
209
209
  const i = vt(u), g = vt(e), d = [];
210
210
  if (!i) return d;
211
- const m = g?.__contextRefs[a.value || ""], h = g === m || s.value ? [] : Object.keys(m?.context || {}).filter((R) => !["context", "ref"].includes(R)).map((R) => `this.context.${R}`);
212
- h.length && d.push({ title: "上下文", items: h });
211
+ const m = g?.__contextRefs[a.value || ""], b = g === m || s.value ? [] : Object.keys(m?.context || {}).filter((R) => !["context", "ref"].includes(R)).map((R) => `this.context.${R}`);
212
+ b.length && d.push({ title: "上下文", items: b });
213
213
  const c = i.inject.map((R) => `this.${R.name}`);
214
214
  c.length && d.push({ title: "注入", items: c });
215
- const _ = i.props.map(
215
+ const w = i.props.map(
216
216
  (R) => typeof R == "string" ? `this.props.${R}` : `this.props.${R.name}`
217
217
  );
218
- _.length && d.push({ title: "属性", items: _ });
219
- const w = Object.keys(i.state).map((R) => `this.state.${R}`);
220
- w.length && d.push({ title: "状态", items: w });
218
+ w.length && d.push({ title: "属性", items: w });
219
+ const _ = Object.keys(i.state).map((R) => `this.state.${R}`);
220
+ _.length && d.push({ title: "状态", items: _ });
221
221
  const x = Object.keys(i.computed).map(
222
222
  (R) => `this.${R}.value`
223
223
  );
224
224
  x.length && d.push({ title: "计算属性", items: x });
225
225
  const C = Object.keys(i.methods).map((R) => `this.${R}`);
226
226
  C.length && d.push({ title: "方法", items: C });
227
- const I = Object.keys(i.dataSources).map(
227
+ const P = Object.keys(i.dataSources).map(
228
228
  (R) => `this.${R}`
229
229
  );
230
- I.length && d.push({ title: "数据源", items: I });
230
+ P.length && d.push({ title: "数据源", items: P });
231
231
  const z = Object.keys(g?.$refs || {}).map(
232
232
  (R) => `this.$refs.${R}`
233
233
  );
@@ -300,9 +300,9 @@ function Ka(u) {
300
300
  ] : []), a = S(() => {
301
301
  if (!t.value) return [];
302
302
  const m = l.value || e.assets.componentMap.get(t.value.name);
303
- return m ? (m.props || []).map((h) => ({
304
- ...h,
305
- value: t.value?.getPropValue(h.name) ?? h.defaultValue
303
+ return m ? (m.props || []).map((b) => ({
304
+ ...b,
305
+ value: t.value?.getPropValue(b.name) ?? b.defaultValue
306
306
  })) : [];
307
307
  }), o = (m) => s.value.some((f) => f.name === m) || a.value.some((f) => f.name === m) || m === "style", r = S(() => t.value ? Object.keys(t.value.props).filter((m) => !o(m)).map((m) => ({
308
308
  name: m,
@@ -468,12 +468,12 @@ function no(u) {
468
468
  const e = de(), t = S(() => {
469
469
  const c = u.value?.model || null;
470
470
  return te(c) ? null : c;
471
- }), l = (c) => S(() => t.value && (t.value.directives || []).find((_) => _.name === c) || Qt(c)), s = () => S(() => {
471
+ }), l = (c) => S(() => t.value && (t.value.directives || []).find((w) => w.name === c) || Qt(c)), s = () => S(() => {
472
472
  if (!t.value) return [];
473
473
  const c = e.assets.componentMap.get(t.value.name || "");
474
- return (c ? to(c) : []).map((w) => (t.value?.directives || []).find(
475
- (x) => x.name === "vModel" && x.arg == w.name
476
- ) || eo(w.name));
474
+ return (c ? to(c) : []).map((_) => (t.value?.directives || []).find(
475
+ (x) => x.name === "vModel" && x.arg == _.name
476
+ ) || eo(_.name));
477
477
  }), a = l("vIf"), o = l("vShow"), r = l("vBind"), i = l("vFor"), g = s(), d = {
478
478
  vIf: a,
479
479
  vShow: o,
@@ -488,26 +488,26 @@ function no(u) {
488
488
  vBind: r,
489
489
  vFor: i,
490
490
  vModels: g,
491
- onValueChange: (c, _) => {
492
- const w = d[c];
493
- t.value && (_ ? (w.value.value = _, t.value.setDirective(w.value)) : (w.value.value = void 0, t.value.removeDirective(w.value)));
491
+ onValueChange: (c, w) => {
492
+ const _ = d[c];
493
+ t.value && (w ? (_.value.value = w, t.value.setDirective(_.value)) : (_.value.value = void 0, t.value.removeDirective(_.value)));
494
494
  },
495
- onForChange: (c, _) => {
495
+ onForChange: (c, w) => {
496
496
  if (t.value) {
497
497
  if (c === "value") {
498
- _ ? (i.value.value = _, t.value.setDirective(i.value)) : t.value.removeDirective(i.value);
498
+ w ? (i.value.value = w, t.value.setDirective(i.value)) : t.value.removeDirective(i.value);
499
499
  return;
500
500
  }
501
501
  (c === "item" || c === "index") && (i.value.iterator = {
502
502
  ...i.value.iterator,
503
- [c]: _ || void 0
503
+ [c]: w || void 0
504
504
  }, t.value.setDirective(i.value));
505
505
  }
506
506
  },
507
- onModelChange: (c, _) => {
507
+ onModelChange: (c, w) => {
508
508
  if (!t.value) return;
509
- const w = parseInt(c), x = g.value[w];
510
- x && (_ ? (x.value = _, t.value.setDirective(x)) : (x.value = void 0, t.value.removeDirective(x)));
509
+ const _ = parseInt(c), x = g.value[_];
510
+ x && (w ? (x.value = w, t.value.setDirective(x)) : (x.value = void 0, t.value.removeDirective(x)));
511
511
  }
512
512
  };
513
513
  }
@@ -566,7 +566,7 @@ const so = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
566
566
  round: "",
567
567
  onClick: o
568
568
  }, {
569
- default: b(() => [
569
+ default: h(() => [
570
570
  v(n(Yl), { class: "v-switcher-widget__back" }),
571
571
  V("span", null, F(s.value), 1),
572
572
  a.value ? (p(), y(n(jt), {
@@ -596,12 +596,12 @@ const so = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
596
596
  modelValue: r.value,
597
597
  "onUpdate:modelValue": g[0] || (g[0] = (d) => r.value = d)
598
598
  }, {
599
- default: b(() => [
599
+ default: h(() => [
600
600
  v(n(nt), {
601
601
  label: "pc",
602
602
  value: "pc"
603
603
  }, {
604
- default: b(() => [
604
+ default: h(() => [
605
605
  v(n(Zl))
606
606
  ]),
607
607
  _: 1
@@ -610,7 +610,7 @@ const so = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
610
610
  label: "mobile",
611
611
  value: "mobile"
612
612
  }, {
613
- default: b(() => [
613
+ default: h(() => [
614
614
  v(n(es))
615
615
  ]),
616
616
  _: 1
@@ -619,7 +619,7 @@ const so = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
619
619
  label: "pad",
620
620
  value: "pad"
621
621
  }, {
622
- default: b(() => [
622
+ default: h(() => [
623
623
  v(n(ts))
624
624
  ]),
625
625
  _: 1
@@ -629,14 +629,14 @@ const so = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
629
629
  }, 8, ["modelValue"]),
630
630
  A("", !0),
631
631
  v(n(nl), null, {
632
- default: b(() => [
632
+ default: h(() => [
633
633
  v(n(ae), {
634
634
  type: "default",
635
635
  size: "small",
636
636
  onClick: n(s),
637
637
  disabled: n(o) || !!t.preview
638
638
  }, {
639
- default: b(() => [
639
+ default: h(() => [
640
640
  v(n(ns))
641
641
  ]),
642
642
  _: 1
@@ -647,7 +647,7 @@ const so = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
647
647
  onClick: n(l),
648
648
  disabled: n(a) || !!t.preview
649
649
  }, {
650
- default: b(() => [
650
+ default: h(() => [
651
651
  v(n(ls))
652
652
  ]),
653
653
  _: 1
@@ -695,7 +695,7 @@ const so = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
695
695
  size: "small",
696
696
  title: "预览"
697
697
  }, {
698
- default: b(() => [
698
+ default: h(() => [
699
699
  v(n(ss))
700
700
  ]),
701
701
  _: 1
@@ -706,7 +706,7 @@ const so = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
706
706
  size: "small",
707
707
  title: "刷新"
708
708
  }, {
709
- default: b(() => [
709
+ default: h(() => [
710
710
  v(n(as))
711
711
  ]),
712
712
  _: 1
@@ -717,7 +717,7 @@ const so = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
717
717
  title: "页面设置",
718
718
  onClick: a
719
719
  }, {
720
- default: b(() => [
720
+ default: h(() => [
721
721
  v(n(Sn))
722
722
  ]),
723
723
  _: 1
@@ -730,17 +730,17 @@ const so = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
730
730
  onClick: r,
731
731
  onCommand: i
732
732
  }, {
733
- dropdown: b(() => [
733
+ dropdown: h(() => [
734
734
  v(n(mn), null, {
735
- default: b(() => [
735
+ default: h(() => [
736
736
  v(n(ht), { command: "current" }, {
737
- default: b(() => d[0] || (d[0] = [
737
+ default: h(() => d[0] || (d[0] = [
738
738
  K("发布页面")
739
739
  ])),
740
740
  _: 1
741
741
  }),
742
742
  v(n(ht), { command: "project" }, {
743
- default: b(() => d[1] || (d[1] = [
743
+ default: h(() => d[1] || (d[1] = [
744
744
  K("整站发布")
745
745
  ])),
746
746
  _: 1
@@ -749,7 +749,7 @@ const so = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
749
749
  _: 1
750
750
  })
751
751
  ]),
752
- default: b(() => [
752
+ default: h(() => [
753
753
  d[2] || (d[2] = V("span", null, "发布", -1))
754
754
  ]),
755
755
  _: 1
@@ -822,14 +822,14 @@ function Me(...u) {
822
822
  Array.isArray(t) || (t = [t]), Array.isArray(l) || (l = [l]);
823
823
  const a = [], o = () => {
824
824
  a.forEach((d) => d()), a.length = 0;
825
- }, r = (d, m, f, h) => (d.addEventListener(m, f, h), () => d.removeEventListener(m, f, h)), i = J(
825
+ }, r = (d, m, f, b) => (d.addEventListener(m, f, b), () => d.removeEventListener(m, f, b)), i = J(
826
826
  () => [ye(e), Le(s)],
827
827
  ([d, m]) => {
828
828
  if (o(), !d)
829
829
  return;
830
830
  const f = yo(m) ? { ...m } : m;
831
831
  a.push(
832
- ...t.flatMap((h) => l.map((c) => r(d, h, c, f)))
832
+ ...t.flatMap((b) => l.map((c) => r(d, b, c, f)))
833
833
  );
834
834
  },
835
835
  { immediate: !0, flush: "post" }
@@ -843,45 +843,45 @@ function Vo(u, e, t = {}) {
843
843
  const { window: l = ut, ignore: s = [], capture: a = !0, detectIframe: o = !1 } = t;
844
844
  if (!l)
845
845
  return lt;
846
- _o && !Yt && (Yt = !0, Array.from(l.document.body.children).forEach((h) => h.addEventListener("click", lt)), l.document.documentElement.addEventListener("click", lt));
846
+ _o && !Yt && (Yt = !0, Array.from(l.document.body.children).forEach((b) => b.addEventListener("click", lt)), l.document.documentElement.addEventListener("click", lt));
847
847
  let r = !0;
848
- const i = (h) => Le(s).some((c) => {
848
+ const i = (b) => Le(s).some((c) => {
849
849
  if (typeof c == "string")
850
- return Array.from(l.document.querySelectorAll(c)).some((_) => _ === h.target || h.composedPath().includes(_));
850
+ return Array.from(l.document.querySelectorAll(c)).some((w) => w === b.target || b.composedPath().includes(w));
851
851
  {
852
- const _ = ye(c);
853
- return _ && (h.target === _ || h.composedPath().includes(_));
852
+ const w = ye(c);
853
+ return w && (b.target === w || b.composedPath().includes(w));
854
854
  }
855
- }), g = (h) => {
855
+ }), g = (b) => {
856
856
  const c = ye(u);
857
- if (!(!c || c === h.target || h.composedPath().includes(c))) {
858
- if (h.detail === 0 && (r = !i(h)), !r) {
857
+ if (!(!c || c === b.target || b.composedPath().includes(c))) {
858
+ if (b.detail === 0 && (r = !i(b)), !r) {
859
859
  r = !0;
860
860
  return;
861
861
  }
862
- e(h);
862
+ e(b);
863
863
  }
864
864
  };
865
865
  let d = !1;
866
866
  const m = [
867
- Me(l, "click", (h) => {
867
+ Me(l, "click", (b) => {
868
868
  d || (d = !0, setTimeout(() => {
869
869
  d = !1;
870
- }, 0), g(h));
870
+ }, 0), g(b));
871
871
  }, { passive: !0, capture: a }),
872
- Me(l, "pointerdown", (h) => {
872
+ Me(l, "pointerdown", (b) => {
873
873
  const c = ye(u);
874
- r = !i(h) && !!(c && !h.composedPath().includes(c));
874
+ r = !i(b) && !!(c && !b.composedPath().includes(c));
875
875
  }, { passive: !0 }),
876
- o && Me(l, "blur", (h) => {
876
+ o && Me(l, "blur", (b) => {
877
877
  setTimeout(() => {
878
878
  var c;
879
- const _ = ye(u);
880
- ((c = l.document.activeElement) == null ? void 0 : c.tagName) === "IFRAME" && !_?.contains(l.document.activeElement) && e(h);
879
+ const w = ye(u);
880
+ ((c = l.document.activeElement) == null ? void 0 : c.tagName) === "IFRAME" && !w?.contains(l.document.activeElement) && e(b);
881
881
  }, 0);
882
882
  })
883
883
  ].filter(Boolean);
884
- return () => m.forEach((h) => h());
884
+ return () => m.forEach((b) => b());
885
885
  }
886
886
  function Ao() {
887
887
  const u = k(!1), e = nn();
@@ -930,22 +930,22 @@ function zn(u = {}) {
930
930
  copiedDuring: s = 1500,
931
931
  legacy: a = !1
932
932
  } = u, o = zt(() => e && "clipboard" in e), r = Zt("clipboard-read"), i = Zt("clipboard-write"), g = S(() => o.value || a), d = k(""), m = k(!1), f = Co(() => m.value = !1, s);
933
- function h() {
933
+ function b() {
934
934
  o.value && x(r.value) ? e.clipboard.readText().then((C) => {
935
935
  d.value = C;
936
- }) : d.value = w();
936
+ }) : d.value = _();
937
937
  }
938
- g.value && t && Me(["copy", "cut"], h);
938
+ g.value && t && Me(["copy", "cut"], b);
939
939
  async function c(C = Le(l)) {
940
- g.value && C != null && (o.value && x(i.value) ? await e.clipboard.writeText(C) : _(C), d.value = C, m.value = !0, f.start());
940
+ g.value && C != null && (o.value && x(i.value) ? await e.clipboard.writeText(C) : w(C), d.value = C, m.value = !0, f.start());
941
941
  }
942
- function _(C) {
943
- const I = document.createElement("textarea");
944
- I.value = C ?? "", I.style.position = "absolute", I.style.opacity = "0", document.body.appendChild(I), I.select(), document.execCommand("copy"), I.remove();
942
+ function w(C) {
943
+ const P = document.createElement("textarea");
944
+ P.value = C ?? "", P.style.position = "absolute", P.style.opacity = "0", document.body.appendChild(P), P.select(), document.execCommand("copy"), P.remove();
945
945
  }
946
- function w() {
947
- var C, I, z;
948
- return (z = (I = (C = document?.getSelection) == null ? void 0 : C.call(document)) == null ? void 0 : I.toString()) != null ? z : "";
946
+ function _() {
947
+ var C, P, z;
948
+ return (z = (P = (C = document?.getSelection) == null ? void 0 : C.call(document)) == null ? void 0 : P.toString()) != null ? z : "";
949
949
  }
950
950
  function x(C) {
951
951
  return C === "granted" || C === "prompt";
@@ -992,14 +992,14 @@ function Xe(u, e = { width: 0, height: 0 }, t = {}) {
992
992
  ([m]) => {
993
993
  const f = s === "border-box" ? m.borderBoxSize : s === "content-box" ? m.contentBoxSize : m.devicePixelContentBoxSize;
994
994
  if (l && a.value) {
995
- const h = ye(u);
996
- if (h) {
997
- const c = h.getBoundingClientRect();
995
+ const b = ye(u);
996
+ if (b) {
997
+ const c = b.getBoundingClientRect();
998
998
  o.value = c.width, r.value = c.height;
999
999
  }
1000
1000
  } else if (f) {
1001
- const h = Array.isArray(f) ? f : [f];
1002
- o.value = h.reduce((c, { inlineSize: _ }) => c + _, 0), r.value = h.reduce((c, { blockSize: _ }) => c + _, 0);
1001
+ const b = Array.isArray(f) ? f : [f];
1002
+ o.value = b.reduce((c, { inlineSize: w }) => c + w, 0), r.value = b.reduce((c, { blockSize: w }) => c + w, 0);
1003
1003
  } else
1004
1004
  o.value = m.contentRect.width, r.value = m.contentRect.height;
1005
1005
  },
@@ -1036,10 +1036,10 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
1036
1036
  const t = u, l = e, s = k(!1), a = k(t.modelValue), o = k(""), r = S(
1037
1037
  () => St[t.modelValue] || t.modelValue
1038
1038
  ), i = S(() => {
1039
- const h = Object.entries(St);
1040
- return o.value ? h.filter((c) => c[0].toLowerCase().includes(o.value)) : h;
1041
- }), g = (h) => {
1042
- a.value = h;
1039
+ const b = Object.entries(St);
1040
+ return o.value ? b.filter((c) => c[0].toLowerCase().includes(o.value)) : b;
1041
+ }), g = (b) => {
1042
+ a.value = b;
1043
1043
  }, d = () => {
1044
1044
  l("change", a.value), l("update:modelValue", a.value), s.value = !1;
1045
1045
  }, m = () => {
@@ -1047,7 +1047,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
1047
1047
  }, f = () => {
1048
1048
  s.value = !0;
1049
1049
  };
1050
- return (h, c) => (p(), j("div", Eo, [
1050
+ return (b, c) => (p(), j("div", Eo, [
1051
1051
  v(n(_e), {
1052
1052
  size: t.size,
1053
1053
  readonly: "",
@@ -1056,7 +1056,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
1056
1056
  "suffix-icon": n(xn),
1057
1057
  onFocus: f
1058
1058
  }, {
1059
- prepend: b(() => [
1059
+ prepend: h(() => [
1060
1060
  v(n(Se), { icon: r.value }, null, 8, ["icon"])
1061
1061
  ]),
1062
1062
  _: 1
@@ -1070,36 +1070,36 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
1070
1070
  submit: "",
1071
1071
  clear: "",
1072
1072
  modelValue: s.value,
1073
- "onUpdate:modelValue": c[1] || (c[1] = (_) => s.value = _),
1073
+ "onUpdate:modelValue": c[1] || (c[1] = (w) => s.value = w),
1074
1074
  onSubmit: d
1075
1075
  }, {
1076
- extra: b(() => [
1076
+ extra: h(() => [
1077
1077
  v(n(ae), {
1078
1078
  size: "default",
1079
1079
  type: "warning",
1080
1080
  onClick: m
1081
1081
  }, {
1082
- default: b(() => c[2] || (c[2] = [
1082
+ default: h(() => c[2] || (c[2] = [
1083
1083
  K(" 清除绑定 ")
1084
1084
  ])),
1085
1085
  _: 1
1086
1086
  })
1087
1087
  ]),
1088
- default: b(() => [
1088
+ default: h(() => [
1089
1089
  V("div", Do, [
1090
1090
  v(n(_e), {
1091
1091
  size: t.size,
1092
1092
  "prefix-icon": n(Rt),
1093
1093
  clearable: "",
1094
1094
  modelValue: o.value,
1095
- "onUpdate:modelValue": c[0] || (c[0] = (_) => o.value = _),
1095
+ "onUpdate:modelValue": c[0] || (c[0] = (w) => o.value = w),
1096
1096
  placeholder: "请输入查询关键字"
1097
1097
  }, null, 8, ["size", "prefix-icon", "modelValue"]),
1098
1098
  V("div", Po, [
1099
- (p(!0), j(O, null, W(i.value, (_) => (p(), y(n(Se), {
1100
- icon: _[1],
1101
- onClick: (w) => g(_[0]),
1102
- class: X({ "is-active": a.value === _[0] })
1099
+ (p(!0), j(O, null, W(i.value, (w) => (p(), y(n(Se), {
1100
+ icon: w[1],
1101
+ onClick: (_) => g(w[0]),
1102
+ class: X({ "is-active": a.value === w[0] })
1103
1103
  }, null, 8, ["icon", "onClick", "class"]))), 256)),
1104
1104
  i.value.length === 0 ? (p(), y(n(oe), { key: 0 })) : A("", !0)
1105
1105
  ])
@@ -1143,7 +1143,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
1143
1143
  model: a.value,
1144
1144
  "submit-method": i
1145
1145
  }, {
1146
- default: b(() => [
1146
+ default: h(() => [
1147
1147
  v(n(T), {
1148
1148
  name: "dir",
1149
1149
  label: "类型",
@@ -1158,13 +1158,13 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
1158
1158
  label: "路由",
1159
1159
  disabled: ""
1160
1160
  }, {
1161
- editor: b(() => [
1161
+ editor: h(() => [
1162
1162
  v(n(Et), { closable: !1 }, {
1163
- default: b(() => [
1163
+ default: h(() => [
1164
1164
  K(F(`/page/${a.value.id}`) + " ", 1),
1165
1165
  v(n(Se), {
1166
1166
  icon: n(os),
1167
- onClick: f[0] || (f[0] = (h) => d(`/page/${a.value.id}`))
1167
+ onClick: f[0] || (f[0] = (b) => d(`/page/${a.value.id}`))
1168
1168
  }, null, 8, ["icon"])
1169
1169
  ]),
1170
1170
  _: 1
@@ -1189,10 +1189,10 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
1189
1189
  label: "菜单图标",
1190
1190
  editor: "none"
1191
1191
  }, {
1192
- editor: b(() => [
1192
+ editor: h(() => [
1193
1193
  v(Fn, {
1194
1194
  modelValue: a.value.icon,
1195
- "onUpdate:modelValue": f[1] || (f[1] = (h) => a.value.icon = h),
1195
+ "onUpdate:modelValue": f[1] || (f[1] = (b) => a.value.icon = b),
1196
1196
  size: "default"
1197
1197
  }, null, 8, ["modelValue"])
1198
1198
  ]),
@@ -1245,7 +1245,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
1245
1245
  content: o.label,
1246
1246
  "show-after": 600
1247
1247
  }, {
1248
- default: b(() => [
1248
+ default: h(() => [
1249
1249
  V("div", {
1250
1250
  class: X(["v-apps-region__icon", s.value]),
1251
1251
  onClick: a
@@ -1292,19 +1292,19 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
1292
1292
  onClick: t.collapsable ? () => {
1293
1293
  s.value = !s.value;
1294
1294
  } : void 0
1295
- } : null), f = (h) => {
1296
- s.value = h;
1295
+ } : null), f = (b) => {
1296
+ s.value = b;
1297
1297
  };
1298
- return (h, c) => (p(), y(n(at), {
1298
+ return (b, c) => (p(), y(n(at), {
1299
1299
  class: X(["v-panel", a.value]),
1300
1300
  border: !1,
1301
1301
  header: m.value,
1302
1302
  fit: ""
1303
1303
  }, Yn({
1304
- actions: b(() => [
1304
+ actions: h(() => [
1305
1305
  t.plus ? (p(), y(n(be), {
1306
1306
  key: 0,
1307
- size: h.$attrs.size,
1307
+ size: b.$attrs.size,
1308
1308
  mode: "icon",
1309
1309
  icon: n(Cn),
1310
1310
  background: "hover",
@@ -1313,7 +1313,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
1313
1313
  }, null, 8, ["size", "icon"])) : A("", !0),
1314
1314
  t.edit ? (p(), y(n(be), {
1315
1315
  key: 1,
1316
- size: h.$attrs.size,
1316
+ size: b.$attrs.size,
1317
1317
  mode: "icon",
1318
1318
  icon: n(is),
1319
1319
  background: "hover",
@@ -1322,7 +1322,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
1322
1322
  }, null, 8, ["size", "icon"])) : A("", !0),
1323
1323
  t.remove ? (p(), y(n(be), {
1324
1324
  key: 2,
1325
- size: h.$attrs.size,
1325
+ size: b.$attrs.size,
1326
1326
  mode: "icon",
1327
1327
  icon: n(us),
1328
1328
  background: "hover",
@@ -1331,7 +1331,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
1331
1331
  }, null, 8, ["size", "icon"])) : A("", !0),
1332
1332
  t.save ? (p(), y(n(be), {
1333
1333
  key: 3,
1334
- size: h.$attrs.size,
1334
+ size: b.$attrs.size,
1335
1335
  mode: "icon",
1336
1336
  icon: n(cs),
1337
1337
  background: "hover",
@@ -1340,37 +1340,37 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
1340
1340
  }, null, 8, ["size", "icon"])) : A("", !0),
1341
1341
  t.collapsable ? De((p(), y(n(be), {
1342
1342
  key: 4,
1343
- size: h.$attrs.size,
1343
+ size: b.$attrs.size,
1344
1344
  mode: "icon",
1345
1345
  icon: n(xn),
1346
1346
  background: "hover",
1347
1347
  title: "展开",
1348
- onClick: c[0] || (c[0] = (_) => f(!1))
1348
+ onClick: c[0] || (c[0] = (w) => f(!1))
1349
1349
  }, null, 8, ["size", "icon"])), [
1350
1350
  [Te, s.value]
1351
1351
  ]) : A("", !0),
1352
1352
  t.collapsable ? De((p(), y(n(be), {
1353
1353
  key: 5,
1354
- size: h.$attrs.size,
1354
+ size: b.$attrs.size,
1355
1355
  mode: "icon",
1356
1356
  icon: n(ds),
1357
1357
  background: "hover",
1358
1358
  title: "收起",
1359
- onClick: c[1] || (c[1] = (_) => f(!0))
1359
+ onClick: c[1] || (c[1] = (w) => f(!0))
1360
1360
  }, null, 8, ["size", "icon"])), [
1361
1361
  [Te, !s.value]
1362
1362
  ]) : A("", !0),
1363
- Ce(h.$slots, "actions")
1363
+ Ce(b.$slots, "actions")
1364
1364
  ]),
1365
- default: b(() => [
1366
- Ce(h.$slots, "default")
1365
+ default: h(() => [
1366
+ Ce(b.$slots, "default")
1367
1367
  ]),
1368
1368
  _: 2
1369
1369
  }, [
1370
- h.$slots.footer ? {
1370
+ b.$slots.footer ? {
1371
1371
  name: "footer",
1372
- fn: b(() => [
1373
- Ce(h.$slots, "footer")
1372
+ fn: h(() => [
1373
+ Ce(b.$slots, "footer")
1374
1374
  ]),
1375
1375
  key: "0"
1376
1376
  } : void 0
@@ -1419,7 +1419,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
1419
1419
  fit: "",
1420
1420
  radius: !1
1421
1421
  }, {
1422
- header: b(() => [
1422
+ header: h(() => [
1423
1423
  V("div", To, [
1424
1424
  v(n(Pt), {
1425
1425
  class: "v-tabs__tabs",
@@ -1445,7 +1445,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
1445
1445
  menus: t.menus,
1446
1446
  onCommand: a
1447
1447
  }, {
1448
- item: b(({ item: d }) => [
1448
+ item: h(({ item: d }) => [
1449
1449
  V("span", null, [
1450
1450
  t.checkable ? (p(), y(n(Vn), {
1451
1451
  key: 0,
@@ -1462,7 +1462,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
1462
1462
  ])) : A("", !0)
1463
1463
  ])
1464
1464
  ]),
1465
- default: b(() => [
1465
+ default: h(() => [
1466
1466
  Ce(i.$slots, "default")
1467
1467
  ]),
1468
1468
  _: 3
@@ -1568,12 +1568,12 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
1568
1568
  align: "center",
1569
1569
  onClick: i
1570
1570
  }, {
1571
- default: b(() => [
1571
+ default: h(() => [
1572
1572
  v(n(U), {
1573
1573
  class: "v-item__title",
1574
1574
  align: "center"
1575
1575
  }, {
1576
- default: b(() => [
1576
+ default: h(() => [
1577
1577
  Ce(d.$slots, "default", {}, () => [
1578
1578
  d.icon ? (p(), y(n(Se), {
1579
1579
  key: 0,
@@ -1585,7 +1585,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
1585
1585
  size: "small",
1586
1586
  type: l.tagType
1587
1587
  }, {
1588
- default: b(() => [
1588
+ default: h(() => [
1589
1589
  K(F(l.tag), 1)
1590
1590
  ]),
1591
1591
  _: 1
@@ -1605,7 +1605,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
1605
1605
  onClick: m[1] || (m[1] = Je(() => {
1606
1606
  }, ["stop"]))
1607
1607
  }, {
1608
- default: b(() => [
1608
+ default: h(() => [
1609
1609
  (p(!0), j(O, null, W(o.value, (f) => (p(), y(n(be), {
1610
1610
  name: f.name,
1611
1611
  title: f.label,
@@ -1614,7 +1614,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
1614
1614
  background: "none",
1615
1615
  type: "info",
1616
1616
  icon: f.icon,
1617
- onClick: (h) => g(f.name)
1617
+ onClick: (b) => g(f.name)
1618
1618
  }, null, 8, ["name", "title", "icon", "onClick"]))), 256)),
1619
1619
  l.switch ? (p(), y(n(gn), {
1620
1620
  key: 0,
@@ -1670,7 +1670,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
1670
1670
  justify: "center",
1671
1671
  align: "center"
1672
1672
  }, {
1673
- default: b(() => [
1673
+ default: h(() => [
1674
1674
  V("span", zo, F(t.name), 1),
1675
1675
  V("span", Fo, F(t.title), 1)
1676
1676
  ]),
@@ -1682,7 +1682,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
1682
1682
  justify: "flex-end",
1683
1683
  align: "center"
1684
1684
  }, {
1685
- default: b(() => [
1685
+ default: h(() => [
1686
1686
  v(n(Se), {
1687
1687
  icon: n(jn),
1688
1688
  onClick: s
@@ -1710,24 +1710,24 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
1710
1710
  const t = u, l = e, s = ["$provider", "$apis", "$components", "context"], a = (d) => {
1711
1711
  const m = d.value, f = dt(m);
1712
1712
  return f === "Object" || f === "Module" ? Object.keys(m || {}).length === 0 : f === "Array" ? m.length === 0 : !0;
1713
- }, o = (d, m = "this") => typeof d == "object" ? Array.isArray(d) ? d.map((h, c) => {
1714
- const _ = `[${c}]`;
1713
+ }, o = (d, m = "this") => typeof d == "object" ? Array.isArray(d) ? d.map((b, c) => {
1714
+ const w = `[${c}]`;
1715
1715
  return {
1716
- label: _,
1717
- value: h,
1718
- type: dt(h),
1719
- path: `${m}${_}`
1716
+ label: w,
1717
+ value: b,
1718
+ type: dt(b),
1719
+ path: `${m}${w}`
1720
1720
  };
1721
- }) : Ya(d).map((h) => {
1722
- const c = d[h];
1721
+ }) : Ya(d).map((b) => {
1722
+ const c = d[b];
1723
1723
  return {
1724
- label: h,
1724
+ label: b,
1725
1725
  value: c,
1726
1726
  type: dt(c),
1727
- path: `${m}.${h}`
1727
+ path: `${m}.${b}`
1728
1728
  };
1729
1729
  }).filter(
1730
- (h) => !h.label.startsWith("__") && !s.includes(h.label)
1730
+ (b) => !b.label.startsWith("__") && !s.includes(b.label)
1731
1731
  ) : [], r = (d, m) => {
1732
1732
  if (d.level === 0)
1733
1733
  m(o(t.context));
@@ -1748,16 +1748,16 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
1748
1748
  "expand-on-click-node": !1,
1749
1749
  props: { isLeaf: a }
1750
1750
  }, {
1751
- default: b(({ data: f }) => [
1751
+ default: h(({ data: f }) => [
1752
1752
  v(ce, {
1753
1753
  title: f.label,
1754
1754
  subtitle: f.type,
1755
1755
  "subtitle-cls": f.type,
1756
1756
  clickable: "",
1757
- onClick: (h) => g(f),
1757
+ onClick: (b) => g(f),
1758
1758
  background: "",
1759
1759
  actions: ["copy"],
1760
- onAction: (h) => i(f),
1760
+ onAction: (b) => i(f),
1761
1761
  grow: "",
1762
1762
  small: ""
1763
1763
  }, null, 8, ["title", "subtitle", "subtitle-cls", "onClick", "onAction"])
@@ -1802,13 +1802,13 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
1802
1802
  l("update:modelValue", !1), l("close");
1803
1803
  }, f = () => {
1804
1804
  l("unbind");
1805
- }, h = () => {
1805
+ }, b = () => {
1806
1806
  m();
1807
1807
  }, c = async () => {
1808
1808
  g.value?.submit();
1809
- }, _ = (x) => {
1810
- l("pick", x);
1811
1809
  }, w = (x) => {
1810
+ l("pick", x);
1811
+ }, _ = (x) => {
1812
1812
  o(x), Qe.success({
1813
1813
  message: "已经复制到粘贴板"
1814
1814
  });
@@ -1825,55 +1825,55 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
1825
1825
  minimizable: !1,
1826
1826
  onClose: m
1827
1827
  }, {
1828
- default: b(() => [
1828
+ default: h(() => [
1829
1829
  v(n(U), {
1830
1830
  fit: "",
1831
1831
  direction: "row",
1832
1832
  overflow: "hidden"
1833
1833
  }, {
1834
- default: b(() => [
1834
+ default: h(() => [
1835
1835
  v(n(U), {
1836
1836
  width: "30%",
1837
1837
  height: "100%"
1838
1838
  }, {
1839
- default: b(() => [
1839
+ default: h(() => [
1840
1840
  v(ct, {
1841
1841
  class: "v-binder__tabs",
1842
1842
  items: r,
1843
1843
  modelValue: i.value,
1844
- "onUpdate:modelValue": C[1] || (C[1] = (I) => i.value = I)
1844
+ "onUpdate:modelValue": C[1] || (C[1] = (P) => i.value = P)
1845
1845
  }, {
1846
- default: b(() => [
1846
+ default: h(() => [
1847
1847
  v(n(U), {
1848
1848
  class: "v-binder__tab-content",
1849
1849
  fit: "",
1850
1850
  padding: "",
1851
1851
  flex: !1
1852
1852
  }, {
1853
- default: b(() => [
1853
+ default: h(() => [
1854
1854
  De(V("div", null, [
1855
1855
  v(n(_e), {
1856
1856
  modelValue: n(a),
1857
- "onUpdate:modelValue": C[0] || (C[0] = (I) => gt(a) ? a.value = I : null),
1857
+ "onUpdate:modelValue": C[0] || (C[0] = (P) => gt(a) ? a.value = P : null),
1858
1858
  size: "small",
1859
1859
  clearable: "",
1860
1860
  "prefix-icon": n(Rt),
1861
1861
  placeholder: "筛选可用项"
1862
1862
  }, null, 8, ["modelValue", "prefix-icon"]),
1863
- (p(!0), j(O, null, W(n(s), (I) => (p(), j("div", null, [
1863
+ (p(!0), j(O, null, W(n(s), (P) => (p(), j("div", null, [
1864
1864
  v(n(jt), { "border-style": "dotted" }, {
1865
- default: b(() => [
1866
- K(F(I.title), 1)
1865
+ default: h(() => [
1866
+ K(F(P.title), 1)
1867
1867
  ]),
1868
1868
  _: 2
1869
1869
  }, 1024),
1870
- (p(!0), j(O, null, W(I.items, (z) => (p(), y(ce, {
1870
+ (p(!0), j(O, null, W(P.items, (z) => (p(), y(ce, {
1871
1871
  title: z,
1872
1872
  background: "",
1873
1873
  actions: ["copy"],
1874
1874
  small: "",
1875
- onClick: (R) => _(z),
1876
- onAction: (R) => w(z)
1875
+ onClick: (R) => w(z),
1876
+ onAction: (R) => _(z)
1877
1877
  }, null, 8, ["title", "onClick", "onAction"]))), 256))
1878
1878
  ]))), 256)),
1879
1879
  n(s).length ? A("", !0) : (p(), y(n(oe), { key: 0 }))
@@ -1882,8 +1882,8 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
1882
1882
  ]),
1883
1883
  De(v(Wo, {
1884
1884
  context: t.context,
1885
- onCopy: w,
1886
- onPick: _
1885
+ onCopy: _,
1886
+ onPick: w
1887
1887
  }, null, 8, ["context"]), [
1888
1888
  [Te, i.value === "viewer"]
1889
1889
  ])
@@ -1901,18 +1901,18 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
1901
1901
  header: null,
1902
1902
  border: !1
1903
1903
  }, {
1904
- footer: b(() => [
1904
+ footer: h(() => [
1905
1905
  v(n(U), { justify: "space-between" }, {
1906
- default: b(() => [
1906
+ default: h(() => [
1907
1907
  v(n(U), null, {
1908
- default: b(() => [
1908
+ default: h(() => [
1909
1909
  x.unbindEnabled ? (p(), y(n(ae), {
1910
1910
  key: 0,
1911
1911
  type: "warning",
1912
1912
  size: "default",
1913
1913
  onClick: f
1914
1914
  }, {
1915
- default: b(() => C[2] || (C[2] = [
1915
+ default: h(() => C[2] || (C[2] = [
1916
1916
  K(" 移除绑定 ")
1917
1917
  ])),
1918
1918
  _: 1
@@ -1921,13 +1921,13 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
1921
1921
  _: 1
1922
1922
  }),
1923
1923
  v(n(U), null, {
1924
- default: b(() => [
1924
+ default: h(() => [
1925
1925
  v(n(ae), {
1926
1926
  type: "default",
1927
1927
  size: "default",
1928
- onClick: h
1928
+ onClick: b
1929
1929
  }, {
1930
- default: b(() => C[3] || (C[3] = [
1930
+ default: h(() => C[3] || (C[3] = [
1931
1931
  K(" 取消 ")
1932
1932
  ])),
1933
1933
  _: 1
@@ -1937,7 +1937,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
1937
1937
  size: "default",
1938
1938
  onClick: c
1939
1939
  }, {
1940
- default: b(() => C[4] || (C[4] = [
1940
+ default: h(() => C[4] || (C[4] = [
1941
1941
  K(" 确定 ")
1942
1942
  ])),
1943
1943
  _: 1
@@ -1949,7 +1949,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
1949
1949
  _: 1
1950
1950
  })
1951
1951
  ]),
1952
- default: b(() => [
1952
+ default: h(() => [
1953
1953
  v(n(It), {
1954
1954
  ref_key: "formRef",
1955
1955
  ref: g,
@@ -1961,7 +1961,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
1961
1961
  rules: t.rules,
1962
1962
  "submit-method": d
1963
1963
  }, {
1964
- default: b(() => [
1964
+ default: h(() => [
1965
1965
  Ce(x.$slots, "default")
1966
1966
  ]),
1967
1967
  _: 3
@@ -1997,7 +1997,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
1997
1997
  cancel: "",
1998
1998
  onSubmit: r
1999
1999
  }, i.$attrs), {
2000
- default: b(() => [
2000
+ default: h(() => [
2001
2001
  v(n(Et), {
2002
2002
  title: "该组件支持多个插槽,请选择放置到其中一个",
2003
2003
  type: "warning",
@@ -2010,14 +2010,14 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
2010
2010
  gap: "",
2011
2011
  wrap: "wrap"
2012
2012
  }, {
2013
- default: b(() => [
2013
+ default: h(() => [
2014
2014
  (p(!0), j(O, null, W(t.slots, (d, m) => (p(), y(n(U), {
2015
2015
  class: X(["v-slots-picker__item", { "is-active": d.name === s.value?.name }]),
2016
2016
  grow: "",
2017
2017
  flex: !1,
2018
2018
  onClick: (f) => o(d)
2019
2019
  }, {
2020
- default: b(() => [
2020
+ default: h(() => [
2021
2021
  V("span", No, "#" + F(m + 1), 1),
2022
2022
  K(" " + F(d.name), 1)
2023
2023
  ]),
@@ -2065,58 +2065,58 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
2065
2065
  name: "PagesWidget",
2066
2066
  __name: "index",
2067
2067
  setup(u) {
2068
- const { project: e, engine: t } = Re(), l = S(() => e.value?.pages || []), { current: s } = ue(), a = k(!1), o = k(), r = k(), i = () => {
2068
+ const { project: e, engine: t } = Re(), l = S(() => e.value?.pages || []), { current: s } = ue(), a = k(!1), o = k(), r = k(), i = S(() => `(共 ${l.value.length} 项)`), g = () => {
2069
2069
  r.value = void 0, o.value = void 0, a.value = !0;
2070
- }, g = async (h) => {
2071
- const { name: c, modelValue: _ } = h, { data: w, node: x } = _;
2072
- if (c === "add" && (o.value = void 0, r.value = w.id, a.value = !0), c === "edit" && (o.value = ot(w), r.value = void 0, a.value = !0), c === "remove") {
2073
- if (w.dir) {
2074
- const C = e.value?.getPage(w.id);
2075
- if (C && C.children?.length) {
2070
+ }, d = async (c) => {
2071
+ const { name: w, modelValue: _ } = c, { data: x, node: C } = _;
2072
+ if (w === "add" && (o.value = void 0, r.value = x.id, a.value = !0), w === "edit" && (o.value = ot(x), r.value = void 0, a.value = !0), w === "remove") {
2073
+ if (x.dir) {
2074
+ const P = e.value?.getPage(x.id);
2075
+ if (P && P.children?.length) {
2076
2076
  le("请先删除子页面");
2077
2077
  return;
2078
2078
  }
2079
2079
  }
2080
- e.value?.removePage(w.id);
2080
+ e.value?.removePage(x.id);
2081
2081
  }
2082
- if (c === "copy") {
2083
- const C = x.parent?.data.id;
2084
- e.value?.clonePage(w, C);
2082
+ if (w === "copy") {
2083
+ const P = C.parent?.data.id;
2084
+ e.value?.clonePage(x, P);
2085
2085
  }
2086
- c === "home" && (e.value?.setHomepage(w.id), pe("设置主页成功", "success"));
2087
- }, d = async (h) => {
2088
- h.raw && pe("这是源码模式页面,不能低代码设计", "warning"), h.dir || h.raw ? t.project.value?.deactivate() : t.project.value?.active(h);
2089
- }, m = (h, c, _) => _ === "inner" ? !!c.data.dir : !0, f = () => {
2086
+ w === "home" && (e.value?.setHomepage(x.id), pe("设置主页成功", "success"));
2087
+ }, m = async (c) => {
2088
+ c.raw && pe("这是源码模式页面,不能低代码设计", "warning"), c.dir || c.raw ? t.project.value?.deactivate() : t.project.value?.active(c);
2089
+ }, f = (c, w, _) => _ === "inner" ? !!w.data.dir : !0, b = () => {
2090
2090
  e.value?.update({
2091
2091
  pages: vt(l)
2092
2092
  });
2093
2093
  };
2094
- return (h, c) => (p(), y(n(H), {
2094
+ return (c, w) => (p(), y(n(H), {
2095
2095
  class: "v-pages-widget",
2096
2096
  title: "页面管理",
2097
2097
  plus: "",
2098
- subtitle: "(共 0 条)",
2099
- onPlus: i
2098
+ subtitle: i.value,
2099
+ onPlus: g
2100
2100
  }, {
2101
- default: b(() => [
2101
+ default: h(() => [
2102
2102
  v(n(Dt), {
2103
2103
  data: l.value,
2104
2104
  "node-key": "id",
2105
2105
  "default-expand-all": "",
2106
2106
  draggable: "",
2107
- "allow-drop": m,
2108
- onNodeDrop: f
2107
+ "allow-drop": f,
2108
+ onNodeDrop: b
2109
2109
  }, {
2110
- default: b(({ data: _, node: w }) => [
2110
+ default: h(({ data: _, node: x }) => [
2111
2111
  v(n(ce), {
2112
2112
  class: "v-pages-widget__item",
2113
2113
  icon: n(St)[_.icon],
2114
2114
  title: _.title,
2115
2115
  subtitle: _.name,
2116
- "model-value": { data: _, node: w },
2116
+ "model-value": { data: _, node: x },
2117
2117
  actions: _.dir ? ["add", "edit", "remove"] : _.raw ? ["home", "edit", "remove"] : ["home", "copy", "edit", "remove"],
2118
- onAction: g,
2119
- onClick: (x) => d(_),
2118
+ onAction: d,
2119
+ onClick: (C) => m(_),
2120
2120
  active: n(s)?.id === _.id,
2121
2121
  tag: n(e)?.homepage === _.id ? "主页" : void 0,
2122
2122
  "tag-type": "success",
@@ -2131,13 +2131,13 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
2131
2131
  a.value ? (p(), y(Io, {
2132
2132
  key: 0,
2133
2133
  modelValue: a.value,
2134
- "onUpdate:modelValue": c[0] || (c[0] = (_) => a.value = _),
2134
+ "onUpdate:modelValue": w[0] || (w[0] = (_) => a.value = _),
2135
2135
  item: o.value,
2136
2136
  "parent-id": r.value
2137
2137
  }, null, 8, ["modelValue", "item", "parent-id"])) : A("", !0)
2138
2138
  ]),
2139
2139
  _: 1
2140
- }));
2140
+ }, 8, ["subtitle"]));
2141
2141
  }
2142
2142
  }), Uo = { class: "v-file-setter" }, Lt = /* @__PURE__ */ E({
2143
2143
  name: "FileSetter",
@@ -2148,13 +2148,13 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
2148
2148
  },
2149
2149
  emits: ["change", "update:modelValue"],
2150
2150
  setup(u, { emit: e }) {
2151
- const t = u, l = e, { engine: s, project: a } = Re(), o = k([]), r = k(!1), i = (C) => Array.isArray(C) ? C.map((I) => ({
2152
- name: I.filename,
2153
- url: I.filepath
2151
+ const t = u, l = e, { engine: s, project: a } = Re(), o = k([]), r = k(!1), i = (C) => Array.isArray(C) ? C.map((P) => ({
2152
+ name: P.filename,
2153
+ url: P.filepath
2154
2154
  })) : C ? { name: C.filename, url: C.filepath } : null, g = async (C) => {
2155
2155
  if (s && a.value) {
2156
- const I = await s.service.uploadStaticFile(C, a.value.id);
2157
- return i(I);
2156
+ const P = await s.service.uploadStaticFile(C, a.value.id);
2157
+ return i(P);
2158
2158
  }
2159
2159
  return null;
2160
2160
  }, d = (C) => C ? (C || "").split(",").map((z) => ({ url: z })) : [], m = k(
@@ -2167,38 +2167,38 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
2167
2167
  }
2168
2168
  ), J(r, async (C) => {
2169
2169
  if (C) {
2170
- const I = await s.service.getStaticFiles(a.value?.id).catch(() => null);
2171
- o.value = i(I);
2170
+ const P = await s.service.getStaticFiles(a.value?.id).catch(() => null);
2171
+ o.value = i(P);
2172
2172
  }
2173
2173
  });
2174
- const h = () => {
2174
+ const b = () => {
2175
2175
  if (!m.value || Array.isArray(m.value) && m.value.length === 0)
2176
2176
  return le("请选择文件"), !1;
2177
2177
  const C = (t.attachment?.accept || "").toLowerCase().split(",");
2178
2178
  return C.length > 0 ? [].concat(m.value).every((R) => {
2179
- const P = R.name || R.url.split("?")[0], B = P.substring(P.lastIndexOf(".")).toLowerCase();
2179
+ const I = R.name || R.url.split("?")[0], B = I.substring(I.lastIndexOf(".")).toLowerCase();
2180
2180
  return C.includes(B);
2181
2181
  }) ? !0 : (le(`只支持 ${C.join(",")} 文件`), !1) : !0;
2182
2182
  }, c = () => {
2183
- h() && (l("change", f.value), l("update:modelValue", f.value), r.value = !1);
2184
- }, _ = () => {
2185
- m.value = [], l("change", void 0), l("update:modelValue", void 0), r.value = !1;
2183
+ b() && (l("change", f.value), l("update:modelValue", f.value), r.value = !1);
2186
2184
  }, w = () => {
2185
+ m.value = [], l("change", void 0), l("update:modelValue", void 0), r.value = !1;
2186
+ }, _ = () => {
2187
2187
  r.value = !0;
2188
2188
  }, x = (C) => {
2189
2189
  C.name && a.value?.id && s.service.removeStaticFile(C.name, a.value?.id);
2190
2190
  };
2191
- return (C, I) => (p(), j("div", Uo, [
2191
+ return (C, P) => (p(), j("div", Uo, [
2192
2192
  v(n(_e), ie({
2193
2193
  readonly: "",
2194
- onFocus: w,
2194
+ onFocus: _,
2195
2195
  "model-value": t.modelValue,
2196
2196
  "suffix-icon": n(gs)
2197
2197
  }, C.$attrs), null, 16, ["model-value", "suffix-icon"]),
2198
2198
  r.value ? (p(), y(n(Be), {
2199
2199
  key: 0,
2200
2200
  modelValue: r.value,
2201
- "onUpdate:modelValue": I[2] || (I[2] = (z) => r.value = z),
2201
+ "onUpdate:modelValue": P[2] || (P[2] = (z) => r.value = z),
2202
2202
  title: "文件选择器",
2203
2203
  width: "600px",
2204
2204
  height: "400px",
@@ -2206,28 +2206,28 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
2206
2206
  submit: "",
2207
2207
  onSubmit: c
2208
2208
  }, {
2209
- extra: b(() => [
2209
+ extra: h(() => [
2210
2210
  v(n(ae), {
2211
2211
  type: "warning",
2212
2212
  size: "default",
2213
- onClick: _
2213
+ onClick: w
2214
2214
  }, {
2215
- default: b(() => I[3] || (I[3] = [
2215
+ default: h(() => P[3] || (P[3] = [
2216
2216
  K(" 清除 ")
2217
2217
  ])),
2218
2218
  _: 1
2219
2219
  })
2220
2220
  ]),
2221
- default: b(() => [
2221
+ default: h(() => [
2222
2222
  v(n(_l), ie({
2223
2223
  size: "small",
2224
2224
  "list-type": "list",
2225
2225
  selectable: !0,
2226
2226
  uploader: g,
2227
2227
  modelValue: o.value,
2228
- "onUpdate:modelValue": I[0] || (I[0] = (z) => o.value = z),
2228
+ "onUpdate:modelValue": P[0] || (P[0] = (z) => o.value = z),
2229
2229
  "select-value": m.value,
2230
- "onUpdate:selectValue": I[1] || (I[1] = (z) => m.value = z)
2230
+ "onUpdate:selectValue": P[1] || (P[1] = (z) => m.value = z)
2231
2231
  }, t.attachment, { onRemove: x }), null, 16, ["modelValue", "select-value"])
2232
2232
  ]),
2233
2233
  _: 1
@@ -2279,10 +2279,10 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
2279
2279
  return ".json";
2280
2280
  if (o.value?.fromType === "Plugin")
2281
2281
  return ".js,.css,.json";
2282
- }), h = S(() => o.value?.fromType === "Plugin"), c = async (P) => {
2283
- const B = P, D = l.project.value;
2282
+ }), b = S(() => o.value?.fromType === "Plugin"), c = async (I) => {
2283
+ const B = I, D = l.project.value;
2284
2284
  if (!D) return !1;
2285
- if (P.id)
2285
+ if (I.id)
2286
2286
  if (!D.existBlockName(B.name, [B.id]))
2287
2287
  D.updateBlock(B);
2288
2288
  else
@@ -2292,41 +2292,41 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
2292
2292
  else
2293
2293
  return le(`名称【${B.name}】已经存在,请更换名称`), !1;
2294
2294
  return !0;
2295
- }, _ = () => {
2295
+ }, w = () => {
2296
2296
  o.value = m(), i.value = !0;
2297
- }, w = (P) => {
2298
- o.value = ot(P), i.value = !0;
2299
- }, x = (P) => {
2300
- l.project.value?.removeBlock(P.id);
2301
- }, C = (P) => {
2302
- o.value && (o.value.name = yn(P));
2303
- }, I = async (P) => {
2304
- (!P.fromType || P.fromType === "Schema") && l.project.value?.active(P);
2305
- }, z = async (P) => {
2306
- const B = jl(P), D = await l.assets.getBlockMaterial(B, P.name), G = l.skeleton?.getWidget("Designer")?.widgetRef?.designer;
2297
+ }, _ = (I) => {
2298
+ o.value = ot(I), i.value = !0;
2299
+ }, x = (I) => {
2300
+ l.project.value?.removeBlock(I.id);
2301
+ }, C = (I) => {
2302
+ o.value && (o.value.name = yn(I));
2303
+ }, P = async (I) => {
2304
+ (!I.fromType || I.fromType === "Schema") && l.project.value?.active(I);
2305
+ }, z = async (I) => {
2306
+ const B = jl(I), D = await l.assets.getBlockMaterial(B, I.name), G = l.skeleton?.getWidget("Designer")?.widgetRef?.designer;
2307
2307
  G && D && G.setDragging(D);
2308
2308
  }, R = () => {
2309
- const P = l.skeleton?.getWidget("Designer")?.widgetRef?.designer;
2310
- P && P.setDragging(null);
2309
+ const I = l.skeleton?.getWidget("Designer")?.widgetRef?.designer;
2310
+ I && I.setDragging(null);
2311
2311
  };
2312
- return (P, B) => (p(), y(n(H), {
2312
+ return (I, B) => (p(), y(n(H), {
2313
2313
  class: "v-blocks-widget",
2314
2314
  title: "区块管理",
2315
2315
  subtitle: d.value,
2316
2316
  plus: "",
2317
- onPlus: _
2317
+ onPlus: w
2318
2318
  }, {
2319
- default: b(() => [
2319
+ default: h(() => [
2320
2320
  v(n(bt), {
2321
2321
  wrap: "wrap",
2322
2322
  gutter: 5
2323
2323
  }, {
2324
- default: b(() => [
2324
+ default: h(() => [
2325
2325
  (p(!0), j(O, null, W(n(t), (D) => (p(), y(n(yt), {
2326
2326
  key: D.id,
2327
2327
  span: n(e)
2328
2328
  }, {
2329
- default: b(() => [
2329
+ default: h(() => [
2330
2330
  v(n(xt), {
2331
2331
  name: D.name,
2332
2332
  title: D.title,
@@ -2334,9 +2334,9 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
2334
2334
  editable: !D.preset,
2335
2335
  tag: a[D.fromType || "Schema"]?.label,
2336
2336
  tagType: a[D.fromType || "Schema"]?.type,
2337
- onEdit: (G) => w(D),
2337
+ onEdit: (G) => _(D),
2338
2338
  onRemove: (G) => x(D),
2339
- onClick: (G) => I(D),
2339
+ onClick: (G) => P(D),
2340
2340
  draggable: n(r)?.id !== D.id,
2341
2341
  onDragstart: (G) => z(D),
2342
2342
  onDragend: R
@@ -2358,7 +2358,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
2358
2358
  "form-props": { tooltipMessage: !1 },
2359
2359
  "submit-method": c
2360
2360
  }, {
2361
- default: b(() => [
2361
+ default: h(() => [
2362
2362
  v(n(T), {
2363
2363
  name: "fromType",
2364
2364
  label: "类型",
@@ -2395,7 +2395,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
2395
2395
  label: "资源文件",
2396
2396
  required: "",
2397
2397
  editor: Lt,
2398
- props: { attachment: { accept: f.value, multiple: h.value } }
2398
+ props: { attachment: { accept: f.value, multiple: b.value } }
2399
2399
  }, null, 8, ["props"])) : A("", !0)
2400
2400
  ]),
2401
2401
  _: 1
@@ -2423,16 +2423,16 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
2423
2423
  title: "组件库",
2424
2424
  body: { flex: !0, direction: "column" }
2425
2425
  }, {
2426
- default: b(() => [
2426
+ default: h(() => [
2427
2427
  V("div", Ho, [
2428
2428
  v(n(_e), {
2429
2429
  modelValue: n(r),
2430
- "onUpdate:modelValue": f[0] || (f[0] = (h) => gt(r) ? r.value = h : null),
2430
+ "onUpdate:modelValue": f[0] || (f[0] = (b) => gt(r) ? r.value = b : null),
2431
2431
  placeholder: "搜索组件",
2432
2432
  clearable: "",
2433
2433
  size: "small"
2434
2434
  }, {
2435
- prefix: b(() => [
2435
+ prefix: h(() => [
2436
2436
  v(n(fs))
2437
2437
  ]),
2438
2438
  _: 1
@@ -2443,17 +2443,17 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
2443
2443
  wrap: "wrap",
2444
2444
  gutter: 5
2445
2445
  }, {
2446
- default: b(() => [
2447
- (p(!0), j(O, null, W(n(i), (h) => (p(), y(n(yt), {
2446
+ default: h(() => [
2447
+ (p(!0), j(O, null, W(n(i), (b) => (p(), y(n(yt), {
2448
2448
  span: n(e),
2449
- key: h.name
2449
+ key: b.name
2450
2450
  }, {
2451
- default: b(() => [
2451
+ default: h(() => [
2452
2452
  v(n(xt), {
2453
- name: h.name,
2454
- title: h.label || h.name,
2453
+ name: b.name,
2454
+ title: b.label || b.name,
2455
2455
  draggable: "",
2456
- onDragstart: (c) => g(h),
2456
+ onDragstart: (c) => g(b),
2457
2457
  onDragend: d
2458
2458
  }, null, 8, ["name", "title", "onDragstart"])
2459
2459
  ]),
@@ -2467,38 +2467,38 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
2467
2467
  key: 1,
2468
2468
  items: n(l),
2469
2469
  modelValue: n(s),
2470
- "onUpdate:modelValue": f[2] || (f[2] = (h) => gt(s) ? s.value = h : null)
2470
+ "onUpdate:modelValue": f[2] || (f[2] = (b) => gt(s) ? s.value = b : null)
2471
2471
  }, {
2472
- default: b(() => [
2472
+ default: h(() => [
2473
2473
  V("div", Xo, [
2474
2474
  n(a) ? (p(), y(n(sl), {
2475
2475
  key: 0,
2476
2476
  modelValue: n(o)[n(s)],
2477
- "onUpdate:modelValue": f[1] || (f[1] = (h) => n(o)[n(s)] = h)
2477
+ "onUpdate:modelValue": f[1] || (f[1] = (b) => n(o)[n(s)] = b)
2478
2478
  }, {
2479
- default: b(() => [
2480
- (p(!0), j(O, null, W(n(a).children, (h) => (p(), y(n(al), {
2481
- key: h.name,
2482
- name: h.name,
2483
- title: `${h.label} (${h.count})`
2479
+ default: h(() => [
2480
+ (p(!0), j(O, null, W(n(a).children, (b) => (p(), y(n(al), {
2481
+ key: b.name,
2482
+ name: b.name,
2483
+ title: `${b.label} (${b.count})`
2484
2484
  }, {
2485
- default: b(() => [
2486
- h.components ? (p(), y(n(bt), {
2485
+ default: h(() => [
2486
+ b.components ? (p(), y(n(bt), {
2487
2487
  key: 0,
2488
2488
  wrap: "wrap",
2489
2489
  gutter: 5
2490
2490
  }, {
2491
- default: b(() => [
2492
- (p(!0), j(O, null, W(h.components, (c) => (p(), y(n(yt), {
2491
+ default: h(() => [
2492
+ (p(!0), j(O, null, W(b.components, (c) => (p(), y(n(yt), {
2493
2493
  span: n(e),
2494
2494
  key: c.name
2495
2495
  }, {
2496
- default: b(() => [
2496
+ default: h(() => [
2497
2497
  v(n(xt), {
2498
2498
  name: c.name,
2499
2499
  title: c.label || c.name,
2500
2500
  draggable: "",
2501
- onDragstart: (_) => g(c),
2501
+ onDragstart: (w) => g(c),
2502
2502
  onDragend: d
2503
2503
  }, null, 8, ["name", "title", "onDragstart"])
2504
2504
  ]),
@@ -2525,16 +2525,16 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
2525
2525
  name: "OutlineWidget",
2526
2526
  __name: "index",
2527
2527
  setup(u) {
2528
- const { engine: e, designer: t, selected: l } = xe(), { current: s } = ue(), a = k([]), o = (P, B) => {
2528
+ const { engine: e, designer: t, selected: l } = xe(), { current: s } = ue(), a = k([]), o = (I, B) => {
2529
2529
  if (B === "slot") return [];
2530
- if (te(P))
2531
- return P.locked ? ["unlock"] : ["lock"];
2532
- const D = P.parent;
2533
- return D && (D.locked || D.invisible) ? [] : s.value?.locked ? [] : P.locked ? ["unlock"] : P.invisible ? ["visible"] : ["lock", "invisible", "copy", "remove"];
2534
- }, r = (P, B) => {
2530
+ if (te(I))
2531
+ return I.locked ? ["unlock"] : ["lock"];
2532
+ const D = I.parent;
2533
+ return D && (D.locked || D.invisible) ? [] : s.value?.locked ? [] : I.locked ? ["unlock"] : I.invisible ? ["visible"] : ["lock", "invisible", "copy", "remove"];
2534
+ }, r = (I, B) => {
2535
2535
  const D = {};
2536
- if (!P.some((L) => L.slot)) return i(P);
2537
- for (const L of P) {
2536
+ if (!I.some((L) => L.slot)) return i(I);
2537
+ for (const L of I) {
2538
2538
  const q = L.slot?.name || "default";
2539
2539
  D[q] || (D[q] = []), D[q].push(L);
2540
2540
  }
@@ -2549,9 +2549,9 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
2549
2549
  children: i(q)
2550
2550
  });
2551
2551
  return me;
2552
- }, i = (P) => {
2552
+ }, i = (I) => {
2553
2553
  const B = [];
2554
- return P.forEach((D) => {
2554
+ return I.forEach((D) => {
2555
2555
  const G = {
2556
2556
  id: D.id,
2557
2557
  label: D.name,
@@ -2563,25 +2563,25 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
2563
2563
  }), B;
2564
2564
  }, g = () => {
2565
2565
  if (!s.value) return [];
2566
- const { id: P, name: B, nodes: D } = s.value;
2566
+ const { id: I, name: B, nodes: D } = s.value;
2567
2567
  return [
2568
2568
  {
2569
- id: P,
2569
+ id: I,
2570
2570
  label: B,
2571
- type: P,
2571
+ type: I,
2572
2572
  model: s.value,
2573
2573
  children: i(D)
2574
2574
  }
2575
2575
  ];
2576
2576
  }, d = async () => {
2577
2577
  a.value = g(), l.value?.model && (await ke(), t.value?.setSelected(l.value.model));
2578
- }, m = S(() => l.value?.model.id), f = (P) => {
2579
- const B = P.data;
2578
+ }, m = S(() => l.value?.model.id), f = (I) => {
2579
+ const B = I.data;
2580
2580
  if (B.type === "slot" || te(B.model) || B.model.locked || B.model.name === "template")
2581
2581
  return !1;
2582
2582
  const D = e.assets.componentMap.get(B.model.name);
2583
2583
  return D ? (t.value?.setDragging(D), !0) : !1;
2584
- }, h = async (P, B, D) => {
2584
+ }, b = async (I, B, D) => {
2585
2585
  const G = B.data, L = {
2586
2586
  prev: "top",
2587
2587
  next: "bottom",
@@ -2595,15 +2595,15 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
2595
2595
  q = !!await t.value?.allowDrop(N, L), t.value?.setDropping(q ? N : null, "inner");
2596
2596
  }
2597
2597
  return q;
2598
- }, c = (P) => {
2599
- const B = P?.model;
2600
- if (!B || B.invisible || P.type === "slot") {
2598
+ }, c = (I) => {
2599
+ const B = I?.model;
2600
+ if (!B || B.invisible || I.type === "slot") {
2601
2601
  t.value?.setSelected(null), t.value?.setHover(null);
2602
2602
  return;
2603
2603
  }
2604
2604
  t.value?.setSelected(B), t.value?.setHover(null);
2605
- }, _ = async (P, B, D) => {
2606
- const G = P.data, me = B.data;
2605
+ }, w = async (I, B, D) => {
2606
+ const G = I.data, me = B.data;
2607
2607
  if (te(me.model)) {
2608
2608
  const We = G.model;
2609
2609
  delete We.slot, s.value?.move(We, void 0, "inner"), t.value?.setDropping(null), t.value?.setDragging(null);
@@ -2628,26 +2628,26 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
2628
2628
  } else
2629
2629
  d();
2630
2630
  t.value?.setDropping(null), t.value?.setDragging(null), e.simulator.refresh();
2631
- }, w = (P) => {
2632
- if (P.type === "slot") {
2631
+ }, _ = (I) => {
2632
+ if (I.type === "slot") {
2633
2633
  t.value?.setHover(null);
2634
2634
  return;
2635
2635
  }
2636
- te(P.model) ? t.value?.setHover(P.model) : (t.value?.setHover(P.model), P.model.invisible && t.value?.setHover(null), P.model.name === "slot" && t.value?.setHover(null));
2636
+ te(I.model) ? t.value?.setHover(I.model) : (t.value?.setHover(I.model), I.model.invisible && t.value?.setHover(null), I.model.name === "slot" && t.value?.setHover(null));
2637
2637
  }, x = () => {
2638
2638
  t.value?.setHover(null);
2639
- }, C = (P) => {
2640
- const B = P.data;
2639
+ }, C = (I) => {
2640
+ const B = I.data;
2641
2641
  B.dragging = !0;
2642
2642
  const D = e.assets.componentMap.get(B.model.name);
2643
2643
  D && t.value?.setDragging(D);
2644
- }, I = async (P) => {
2645
- const B = P.data;
2644
+ }, P = async (I) => {
2645
+ const B = I.data;
2646
2646
  B.dragging = !1;
2647
- }, z = (P, B) => {
2648
- P && ((P.id === B.id || !te(P) && B.isChild(P)) && t.value?.setSelected(null), t.value?.setHover(null));
2649
- }, R = (P) => {
2650
- const { name: B, modelValue: D } = P, G = l.value?.model;
2647
+ }, z = (I, B) => {
2648
+ I && ((I.id === B.id || !te(I) && B.isChild(I)) && t.value?.setSelected(null), t.value?.setHover(null));
2649
+ }, R = (I) => {
2650
+ const { name: B, modelValue: D } = I, G = l.value?.model;
2651
2651
  switch (B) {
2652
2652
  case "lock":
2653
2653
  z(G, D), D.lock();
@@ -2670,11 +2670,11 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
2670
2670
  break;
2671
2671
  }
2672
2672
  };
2673
- return J(e.changed, d, { immediate: !0 }), (P, B) => (p(), y(n(H), {
2673
+ return J(e.changed, d, { immediate: !0 }), (I, B) => (p(), y(n(H), {
2674
2674
  class: "v-outline-widget",
2675
2675
  title: "大纲树"
2676
2676
  }, {
2677
- default: b(() => [
2677
+ default: h(() => [
2678
2678
  (p(), y(n(Dt), {
2679
2679
  key: n(e).changed.value,
2680
2680
  data: a.value,
@@ -2685,14 +2685,14 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
2685
2685
  "current-node-key": m.value,
2686
2686
  "highlight-current": !0,
2687
2687
  "expand-on-click-node": !1,
2688
- "allow-drop": h,
2688
+ "allow-drop": b,
2689
2689
  "allow-drag": f,
2690
2690
  onCurrentChange: c,
2691
- onNodeDrop: _,
2691
+ onNodeDrop: w,
2692
2692
  onNodeDragStart: C,
2693
- onNodeDragEnd: I
2693
+ onNodeDragEnd: P
2694
2694
  }, {
2695
- default: b(({ data: D, node: G }) => [
2695
+ default: h(({ data: D, node: G }) => [
2696
2696
  v(n(ce), {
2697
2697
  class: X(["v-outline-widget__item", {
2698
2698
  "is-locked": D.model.locked,
@@ -2711,7 +2711,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
2711
2711
  subtitle: D.type,
2712
2712
  actions: o(D.model, D.type),
2713
2713
  onAction: R,
2714
- onMouseenter: (me) => w(D),
2714
+ onMouseenter: (me) => _(D),
2715
2715
  onMouseleave: x
2716
2716
  }, null, 8, ["class", "active", "model-value", "icon", "title", "subtitle", "actions", "onMouseenter"])
2717
2717
  ]),
@@ -2737,7 +2737,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
2737
2737
  remove: !!n(l),
2738
2738
  onRemove: o
2739
2739
  }, {
2740
- default: b(() => [
2740
+ default: h(() => [
2741
2741
  n(l) === 0 ? (p(), y(n(oe), {
2742
2742
  key: 0,
2743
2743
  "image-size": 50
@@ -2821,7 +2821,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
2821
2821
  ], t = Ct("currentModel", null);
2822
2822
  return (l, s) => (p(), j("div", null, [
2823
2823
  v(n(U), { justify: "space-between" }, {
2824
- default: b(() => [
2824
+ default: h(() => [
2825
2825
  v(n(T), {
2826
2826
  name: "settings.loading",
2827
2827
  size: "small",
@@ -2869,7 +2869,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
2869
2869
  label: "请求头配置",
2870
2870
  tip: "支持 JSExpression 或 JSFunction"
2871
2871
  }, {
2872
- editor: b(() => [
2872
+ editor: h(() => [
2873
2873
  v(n(se), {
2874
2874
  dark: "",
2875
2875
  height: "260px",
@@ -2931,7 +2931,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
2931
2931
  editor: "switch"
2932
2932
  }, null, 8, ["disabled"]),
2933
2933
  v(n(U), { justify: "space-between" }, {
2934
- default: b(() => [
2934
+ default: h(() => [
2935
2935
  o[1] || (o[1] = V("span", null, "模拟数据模板", -1)),
2936
2936
  v(n(be), {
2937
2937
  icon: n(Pn),
@@ -2947,7 +2947,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
2947
2947
  name: "mockTemplate.value",
2948
2948
  label: " "
2949
2949
  }, {
2950
- editor: b(() => [
2950
+ editor: h(() => [
2951
2951
  v(n(se), {
2952
2952
  dark: "",
2953
2953
  height: l.value.mock ? "330px" : "280px",
@@ -2987,57 +2987,57 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
2987
2987
  const d = S(() => o.value?.method === "jsonp");
2988
2988
  J(
2989
2989
  () => e.model,
2990
- (_) => {
2991
- o.value = Object.assign({}, _ || {}), l.value = "base";
2990
+ (w) => {
2991
+ o.value = Object.assign({}, w || {}), l.value = "base";
2992
2992
  },
2993
2993
  {
2994
2994
  immediate: !0
2995
2995
  }
2996
2996
  ), J(l, async () => {
2997
- a.value?.formRef.validate(async (_) => {
2998
- _ || (await ke(), l.value = "base");
2997
+ a.value?.formRef.validate(async (w) => {
2998
+ w || (await ke(), l.value = "base");
2999
2999
  });
3000
3000
  });
3001
3001
  const m = () => {
3002
3002
  s.value?.cancel();
3003
3003
  }, f = () => {
3004
3004
  a.value?.submit();
3005
- }, h = async (_) => e.project?.existApiName(
3005
+ }, b = async (w) => e.project?.existApiName(
3006
3006
  o.value.name,
3007
3007
  e.model ? [o.value.id] : []
3008
3008
  ) ? (le(`API名称 [ ${o.value.name} ] 已存在`), !1) : o.value.headers && !re(o.value.headers, window) || o.value.mockTemplate && !re(o.value.mockTemplate, window) ? !1 : (e.project?.setApi(o.value), s.value?.close(), !0), c = () => {
3009
3009
  if (o.value.mockTemplate) {
3010
- const _ = He(
3010
+ const w = He(
3011
3011
  o.value.mockTemplate,
3012
3012
  {},
3013
3013
  !0
3014
- ), { url: w, method: x } = o.value, C = Ba.mock(
3015
- _({
3016
- url: w,
3014
+ ), { url: _, method: x } = o.value, C = Ba.mock(
3015
+ w({
3016
+ url: _,
3017
3017
  type: x
3018
3018
  })
3019
3019
  );
3020
3020
  i.value = JSON.stringify(C, null, 2), r.value = !0;
3021
3021
  }
3022
3022
  };
3023
- return (_, w) => (p(), y(n(Be), {
3023
+ return (w, _) => (p(), y(n(Be), {
3024
3024
  ref_key: "dialogRef",
3025
3025
  ref: s,
3026
3026
  title: t.value,
3027
3027
  width: "1000px",
3028
3028
  height: "600px"
3029
3029
  }, {
3030
- default: b(() => [
3030
+ default: h(() => [
3031
3031
  v(n(U), { fit: "" }, {
3032
- default: b(() => [
3032
+ default: h(() => [
3033
3033
  v(n(U), {
3034
3034
  width: "100px",
3035
3035
  shrink: !1
3036
3036
  }, {
3037
- default: b(() => [
3037
+ default: h(() => [
3038
3038
  v(n(Pt), {
3039
3039
  modelValue: l.value,
3040
- "onUpdate:modelValue": w[0] || (w[0] = (x) => l.value = x),
3040
+ "onUpdate:modelValue": _[0] || (_[0] = (x) => l.value = x),
3041
3041
  items: g,
3042
3042
  "tab-position": "left",
3043
3043
  border: "",
@@ -3054,9 +3054,9 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
3054
3054
  shrink: !0,
3055
3055
  fit: ""
3056
3056
  }, {
3057
- footer: b(() => [
3057
+ footer: h(() => [
3058
3058
  v(n(U), { justify: "space-between" }, {
3059
- default: b(() => [
3059
+ default: h(() => [
3060
3060
  V("div", null, [
3061
3061
  l.value === "mock" ? (p(), y(n(ae), {
3062
3062
  key: 0,
@@ -3064,7 +3064,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
3064
3064
  type: "warning",
3065
3065
  onClick: c
3066
3066
  }, {
3067
- default: b(() => w[2] || (w[2] = [
3067
+ default: h(() => _[2] || (_[2] = [
3068
3068
  K(" 预览 ")
3069
3069
  ])),
3070
3070
  _: 1
@@ -3072,7 +3072,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
3072
3072
  ]),
3073
3073
  V("div", null, [
3074
3074
  v(n(ae), { onClick: m }, {
3075
- default: b(() => w[3] || (w[3] = [
3075
+ default: h(() => _[3] || (_[3] = [
3076
3076
  K("取消")
3077
3077
  ])),
3078
3078
  _: 1
@@ -3081,7 +3081,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
3081
3081
  type: "primary",
3082
3082
  onClick: f
3083
3083
  }, {
3084
- default: b(() => w[4] || (w[4] = [
3084
+ default: h(() => _[4] || (_[4] = [
3085
3085
  K("保存")
3086
3086
  ])),
3087
3087
  _: 1
@@ -3091,7 +3091,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
3091
3091
  _: 1
3092
3092
  })
3093
3093
  ]),
3094
- default: b(() => [
3094
+ default: h(() => [
3095
3095
  v(n(It), {
3096
3096
  ref_key: "formRef",
3097
3097
  ref: a,
@@ -3099,9 +3099,9 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
3099
3099
  labelPosition: "top",
3100
3100
  tooltipMessage: !1,
3101
3101
  model: o.value,
3102
- submitMethod: h
3102
+ submitMethod: b
3103
3103
  }, {
3104
- default: b(() => [
3104
+ default: h(() => [
3105
3105
  De(v(Zo, null, null, 512), [
3106
3106
  [Te, l.value === "base"]
3107
3107
  ]),
@@ -3122,13 +3122,13 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
3122
3122
  key: 0,
3123
3123
  class: "v-drawer",
3124
3124
  modelValue: r.value,
3125
- "onUpdate:modelValue": w[1] || (w[1] = (x) => r.value = x),
3125
+ "onUpdate:modelValue": _[1] || (_[1] = (x) => r.value = x),
3126
3126
  title: "模拟数据结果",
3127
3127
  direction: "btt",
3128
3128
  "append-to-body": "",
3129
3129
  size: "80%"
3130
3130
  }, {
3131
- default: b(() => [
3131
+ default: h(() => [
3132
3132
  v(n(se), {
3133
3133
  "model-value": i.value,
3134
3134
  border: "",
@@ -3149,7 +3149,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
3149
3149
  setup(u) {
3150
3150
  const e = k(!1), t = k(null), l = k(""), s = k(!1), a = S(() => {
3151
3151
  const f = o.value?.apis || [];
3152
- return l.value ? f.filter((h) => h.name.includes(l.value) || h.label?.includes(l.value) || h.url.includes(l.value)) : f;
3152
+ return l.value ? f.filter((b) => b.name.includes(l.value) || b.label?.includes(l.value) || b.url.includes(l.value)) : f;
3153
3153
  }), { project: o } = Re(), r = () => ({
3154
3154
  id: "",
3155
3155
  method: "get",
@@ -3193,18 +3193,18 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
3193
3193
  }, m = (f) => {
3194
3194
  s.value = !0, t.value = ot(f), e.value = !0;
3195
3195
  };
3196
- return (f, h) => (p(), y(n(H), {
3196
+ return (f, b) => (p(), y(n(H), {
3197
3197
  class: "v-apis-widget",
3198
3198
  title: "API管理",
3199
3199
  plus: "",
3200
3200
  onPlus: i
3201
3201
  }, {
3202
- default: b(() => [
3202
+ default: h(() => [
3203
3203
  V("div", ar, [
3204
3204
  v(n(_e), {
3205
3205
  size: "small",
3206
3206
  modelValue: l.value,
3207
- "onUpdate:modelValue": h[0] || (h[0] = (c) => l.value = c),
3207
+ "onUpdate:modelValue": b[0] || (b[0] = (c) => l.value = c),
3208
3208
  "prefix-icon": n(Rt),
3209
3209
  placeholder: "搜索API",
3210
3210
  clearable: ""
@@ -3220,7 +3220,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
3220
3220
  "tag-type": g[c.method || "get"],
3221
3221
  background: "",
3222
3222
  actions: ["edit", "remove"],
3223
- onClick: (_) => m(c),
3223
+ onClick: (w) => m(c),
3224
3224
  onAction: d
3225
3225
  }, null, 8, ["title", "subtitle", "model-value", "tag", "tag-type", "onClick"]))), 128)),
3226
3226
  a.value.length === 0 ? (p(), y(n(oe), {
@@ -3229,7 +3229,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
3229
3229
  })) : A("", !0),
3230
3230
  v(sr, {
3231
3231
  modelValue: e.value,
3232
- "onUpdate:modelValue": h[1] || (h[1] = (c) => e.value = c),
3232
+ "onUpdate:modelValue": b[1] || (b[1] = (c) => e.value = c),
3233
3233
  model: t.value,
3234
3234
  project: n(o)
3235
3235
  }, null, 8, ["modelValue", "model", "project"])
@@ -3252,38 +3252,38 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
3252
3252
  urls: c.urls.join(`
3253
3253
  `)
3254
3254
  }, l.value = !0;
3255
- }, h = (c, _) => {
3256
- _.name === "edit" && (a.value = {
3255
+ }, b = (c, w) => {
3256
+ w.name === "edit" && (a.value = {
3257
3257
  ...c,
3258
3258
  enabled: !0,
3259
3259
  official: !1,
3260
3260
  urls: c.urls.join(`
3261
3261
  `)
3262
- }, s.value = !1, l.value = !0), _.name === "remove" && t.project.value?.removeDeps(c);
3262
+ }, s.value = !1, l.value = !0), w.name === "remove" && t.project.value?.removeDeps(c);
3263
3263
  };
3264
- return (c, _) => (p(), y(n(H), {
3264
+ return (c, w) => (p(), y(n(H), {
3265
3265
  class: "v-deps-widget",
3266
3266
  title: "依赖管理",
3267
3267
  plus: "",
3268
3268
  onPlus: m
3269
3269
  }, {
3270
- default: b(() => [
3271
- (p(!0), j(O, null, W(n(e), (w) => (p(), y(n(ce), {
3272
- key: w.package,
3273
- title: w.package,
3274
- subtitle: w.version,
3275
- actions: r(w),
3270
+ default: h(() => [
3271
+ (p(!0), j(O, null, W(n(e), (_) => (p(), y(n(ce), {
3272
+ key: _.package,
3273
+ title: _.package,
3274
+ subtitle: _.version,
3275
+ actions: r(_),
3276
3276
  background: "",
3277
- switch: i(w),
3278
- modelValue: w.enabled,
3279
- "onUpdate:modelValue": (x) => w.enabled = x,
3280
- onSwitch: (x) => d(w),
3281
- onClick: (x) => f(w),
3282
- onAction: (x) => h(w, x)
3277
+ switch: i(_),
3278
+ modelValue: _.enabled,
3279
+ "onUpdate:modelValue": (x) => _.enabled = x,
3280
+ onSwitch: (x) => d(_),
3281
+ onClick: (x) => f(_),
3282
+ onAction: (x) => b(_, x)
3283
3283
  }, null, 8, ["title", "subtitle", "actions", "switch", "modelValue", "onUpdate:modelValue", "onSwitch", "onClick", "onAction"]))), 128)),
3284
3284
  v(n(Ae), {
3285
3285
  modelValue: l.value,
3286
- "onUpdate:modelValue": _[0] || (_[0] = (w) => l.value = w),
3286
+ "onUpdate:modelValue": w[0] || (w[0] = (_) => l.value = _),
3287
3287
  width: "600px",
3288
3288
  height: "500px",
3289
3289
  title: o.value,
@@ -3294,7 +3294,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
3294
3294
  tooltipMessage: !1
3295
3295
  }
3296
3296
  }, {
3297
- default: b(() => [
3297
+ default: h(() => [
3298
3298
  v(n(T), {
3299
3299
  name: "package",
3300
3300
  label: "包名",
@@ -3417,16 +3417,16 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
3417
3417
  inheritAttrs: !1,
3418
3418
  __name: "index",
3419
3419
  setup(u, { expose: e }) {
3420
- const t = k(), l = k(), { width: s, height: a } = Xe(t), { dependencies: o, engine: r, apis: i, meta: g } = Bn(), { current: d, isEmpty: m } = ue(), f = S(() => r.skeleton?.getWidget("Toolbar")?.widgetRef.mode ?? "pc"), h = S(() => r.project.value?.config || {}), { designer: c, hover: _, dropping: w, selected: x } = qa(
3420
+ const t = k(), l = k(), { width: s, height: a } = Xe(t), { dependencies: o, engine: r, apis: i, meta: g } = Bn(), { current: d, isEmpty: m } = ue(), f = S(() => r.skeleton?.getWidget("Toolbar")?.widgetRef.mode ?? "pc"), b = S(() => r.project.value?.config || {}), { designer: c, hover: w, dropping: _, selected: x } = qa(
3421
3421
  l,
3422
3422
  o,
3423
3423
  i,
3424
3424
  g,
3425
- h
3425
+ b
3426
3426
  ), C = (R) => {
3427
- const P = R.type, B = R.model;
3427
+ const I = R.type, B = R.model;
3428
3428
  if (d.value)
3429
- switch (P) {
3429
+ switch (I) {
3430
3430
  case "remove":
3431
3431
  d.value.removeNode(B), c.value?.setSelected(null);
3432
3432
  break;
@@ -3447,10 +3447,10 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
3447
3447
  c.value?.setSelected(B);
3448
3448
  break;
3449
3449
  }
3450
- }, I = (R) => {
3450
+ }, P = (R) => {
3451
3451
  if (R && c.value) {
3452
- const P = r.assets.componentMap.get(R.name);
3453
- P && c.value.setDragging(P), c.value.setDraggingNode(R);
3452
+ const I = r.assets.componentMap.get(R.name);
3453
+ I && c.value.setDragging(I), c.value.setDraggingNode(R);
3454
3454
  }
3455
3455
  }, z = () => {
3456
3456
  c.value && (c.value.setDraggingNode(null), c.value.setDragging(null));
@@ -3458,7 +3458,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
3458
3458
  return e({
3459
3459
  designer: c,
3460
3460
  mode: f
3461
- }), (R, P) => (p(), j("div", {
3461
+ }), (R, I) => (p(), j("div", {
3462
3462
  ref_key: "container",
3463
3463
  ref: t,
3464
3464
  class: "v-designer"
@@ -3468,22 +3468,22 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
3468
3468
  width: n(s),
3469
3469
  height: n(a)
3470
3470
  }, {
3471
- default: b(() => [
3472
- n(w) ? (p(), j("div", {
3471
+ default: h(() => [
3472
+ n(_) ? (p(), j("div", {
3473
3473
  key: 0,
3474
3474
  class: X(["v-designer__dropping", "is-inner"]),
3475
- style: et(n(w).style)
3475
+ style: et(n(_).style)
3476
3476
  }, null, 4)) : A("", !0),
3477
- n(_) ? (p(), j("div", {
3477
+ n(w) ? (p(), j("div", {
3478
3478
  key: 1,
3479
3479
  class: "v-designer__hover",
3480
- style: et(n(_).style)
3480
+ style: et(n(w).style)
3481
3481
  }, [
3482
3482
  V("span", {
3483
- class: X(`is-${n(_).position}`)
3483
+ class: X(`is-${n(w).position}`)
3484
3484
  }, [
3485
- K(F(n(_).model.name) + ": ", 1),
3486
- V("i", null, F(n(_).model.id), 1)
3485
+ K(F(n(w).model.name) + ": ", 1),
3486
+ V("i", null, F(n(w).model.id), 1)
3487
3487
  ], 2)
3488
3488
  ], 4)) : A("", !0),
3489
3489
  n(x) ? (p(), j("div", {
@@ -3496,7 +3496,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
3496
3496
  model: n(x).model,
3497
3497
  path: n(x).path,
3498
3498
  onAction: C,
3499
- onDragstart: I,
3499
+ onDragstart: P,
3500
3500
  onDragend: z
3501
3501
  }, null, 8, ["position", "model", "path"])
3502
3502
  ], 4)) : A("", !0),
@@ -3534,8 +3534,8 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
3534
3534
  () => o.value ? `编辑${e.title}` : `新增${e.title}`
3535
3535
  ), i = () => {
3536
3536
  o.value = !1, a.value = e.createEmpty(), s.value = !0;
3537
- }, g = (c, _) => {
3538
- switch (_.name) {
3537
+ }, g = (c, w) => {
3538
+ switch (w.name) {
3539
3539
  case "edit":
3540
3540
  m(c);
3541
3541
  break;
@@ -3549,10 +3549,10 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
3549
3549
  o.value = !0, a.value = {
3550
3550
  ...c
3551
3551
  }, s.value = !0;
3552
- }, f = async (c) => e.submit(c, o.value), h = () => {
3552
+ }, f = async (c) => e.submit(c, o.value), b = () => {
3553
3553
  l.value?.itemRef.validate();
3554
3554
  };
3555
- return (c, _) => (p(), y(n(H), {
3555
+ return (c, w) => (p(), y(n(H), {
3556
3556
  title: e.title,
3557
3557
  class: "v-sub-panel",
3558
3558
  size: "small",
@@ -3560,13 +3560,13 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
3560
3560
  plus: "",
3561
3561
  onPlus: i
3562
3562
  }, {
3563
- default: b(() => [
3564
- (p(!0), j(O, null, W(c.list, (w) => (p(), y(n(ce), {
3565
- title: e.itemTitle(w),
3563
+ default: h(() => [
3564
+ (p(!0), j(O, null, W(c.list, (_) => (p(), y(n(ce), {
3565
+ title: e.itemTitle(_),
3566
3566
  border: "",
3567
3567
  actions: ["edit", "remove"],
3568
- onAction: (x) => g(w, x),
3569
- onClick: (x) => m(w)
3568
+ onAction: (x) => g(_, x),
3569
+ onClick: (x) => m(_)
3570
3570
  }, null, 8, ["title", "onAction", "onClick"]))), 256)),
3571
3571
  c.list.length ? A("", !0) : (p(), y(n(oe), {
3572
3572
  key: 0,
@@ -3574,7 +3574,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
3574
3574
  })),
3575
3575
  v(n(Ft), {
3576
3576
  modelValue: s.value,
3577
- "onUpdate:modelValue": _[1] || (_[1] = (w) => s.value = w),
3577
+ "onUpdate:modelValue": w[1] || (w[1] = (_) => s.value = _),
3578
3578
  title: r.value,
3579
3579
  "submit-method": f,
3580
3580
  model: a.value,
@@ -3582,7 +3582,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
3582
3582
  context: c.context,
3583
3583
  onPick: d
3584
3584
  }, {
3585
- default: b(() => [
3585
+ default: h(() => [
3586
3586
  Ce(c.$slots, "fields", an(on({ model: a.value, isEdit: o.value, nameLabel: c.nameLabel, valueLabel: c.valueLabel })), () => [
3587
3587
  v(n(T), {
3588
3588
  name: "name",
@@ -3598,15 +3598,15 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
3598
3598
  label: c.valueLabel,
3599
3599
  required: ""
3600
3600
  }, {
3601
- editor: b(() => [
3601
+ editor: h(() => [
3602
3602
  v(n(se), {
3603
3603
  ref_key: "editorRef",
3604
3604
  ref: t,
3605
3605
  dark: "",
3606
3606
  height: "100%",
3607
3607
  modelValue: a.value.value,
3608
- "onUpdate:modelValue": _[0] || (_[0] = (w) => a.value.value = w),
3609
- onBlur: h
3608
+ "onUpdate:modelValue": w[0] || (w[0] = (_) => a.value.value = _),
3609
+ onBlur: b
3610
3610
  }, null, 8, ["modelValue"])
3611
3611
  ]),
3612
3612
  _: 1
@@ -3749,7 +3749,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
3749
3749
  remove: a,
3750
3750
  submit: o
3751
3751
  }, {
3752
- fields: b(({ model: g, nameLabel: d, isEdit: m, valueLabel: f }) => [
3752
+ fields: h(({ model: g, nameLabel: d, isEdit: m, valueLabel: f }) => [
3753
3753
  v(n(T), {
3754
3754
  name: "name",
3755
3755
  label: d,
@@ -3764,13 +3764,13 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
3764
3764
  label: f,
3765
3765
  required: ""
3766
3766
  }, {
3767
- editor: b(() => [
3767
+ editor: h(() => [
3768
3768
  v(n(se), {
3769
3769
  ref: "editorRef",
3770
3770
  dark: "",
3771
3771
  height: "100%",
3772
3772
  modelValue: g.value,
3773
- "onUpdate:modelValue": (h) => g.value = h
3773
+ "onUpdate:modelValue": (b) => g.value = b
3774
3774
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
3775
3775
  ]),
3776
3776
  _: 2
@@ -3825,14 +3825,14 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
3825
3825
  itemTitle: s,
3826
3826
  grow: ""
3827
3827
  }, {
3828
- fields: b(({ model: g, nameLabel: d, valueLabel: m }) => [
3828
+ fields: h(({ model: g, nameLabel: d, valueLabel: m }) => [
3829
3829
  v(n(T), {
3830
3830
  class: "v-binder__editor",
3831
3831
  name: "source",
3832
3832
  label: d,
3833
3833
  required: ""
3834
3834
  }, {
3835
- editor: b(() => [
3835
+ editor: h(() => [
3836
3836
  v(n(se), {
3837
3837
  dark: "",
3838
3838
  height: "100%",
@@ -3848,7 +3848,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
3848
3848
  label: m,
3849
3849
  required: ""
3850
3850
  }, {
3851
- editor: b(() => [
3851
+ editor: h(() => [
3852
3852
  v(n(se), {
3853
3853
  dark: "",
3854
3854
  height: "100%",
@@ -3885,7 +3885,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
3885
3885
  direction: "column",
3886
3886
  fit: ""
3887
3887
  }, {
3888
- default: b(() => [
3888
+ default: h(() => [
3889
3889
  v(dr, {
3890
3890
  current: n(e),
3891
3891
  context: n(t)
@@ -3936,7 +3936,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
3936
3936
  size: "small",
3937
3937
  fit: !1
3938
3938
  }, {
3939
- default: b(() => [
3939
+ default: h(() => [
3940
3940
  v(n(fe), {
3941
3941
  class: "v-properties-widget__form",
3942
3942
  size: "small",
@@ -3945,7 +3945,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
3945
3945
  onKeydown: g[0] || (g[0] = tt(Je(() => {
3946
3946
  }, ["prevent", "stop"]), ["enter"]))
3947
3947
  }, {
3948
- default: b(() => [
3948
+ default: h(() => [
3949
3949
  (p(!0), j(O, null, W(t.items, (d) => (p(), y(n(M), ie({ ref_for: !0 }, d, {
3950
3950
  key: `${d.name}_${t.node.id}`,
3951
3951
  current: t.current,
@@ -3974,14 +3974,14 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
3974
3974
  addCustom: g,
3975
3975
  removeCustom: d,
3976
3976
  isExist: m
3977
- } = Ka(l), f = k(!1), h = k(), c = () => {
3978
- f.value = !0, h.value = {
3977
+ } = Ka(l), f = k(!1), b = k(), c = () => {
3978
+ f.value = !0, b.value = {
3979
3979
  name: ""
3980
3980
  };
3981
- }, _ = async (x) => {
3981
+ }, w = async (x) => {
3982
3982
  const C = Object.keys(s.value?.props || {});
3983
3983
  return !m(x.name) && !C.includes(x.name) ? (g(x.name), !0) : (le("已存在该属性名称"), !1);
3984
- }, w = async (x) => {
3984
+ }, _ = async (x) => {
3985
3985
  await Fe("确定删除?") && d(x);
3986
3986
  };
3987
3987
  return (x, C) => n(e) ? (p(), y(n(U), {
@@ -3990,7 +3990,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
3990
3990
  direction: "column",
3991
3991
  fit: ""
3992
3992
  }, {
3993
- default: b(() => [
3993
+ default: h(() => [
3994
3994
  n(s) ? (p(), y(mt, {
3995
3995
  key: 0,
3996
3996
  title: "通用属性",
@@ -4021,19 +4021,19 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
4021
4021
  plus: "",
4022
4022
  grow: "",
4023
4023
  onPlus: c,
4024
- onRemove: w
4024
+ onRemove: _
4025
4025
  }, null, 8, ["current", "context", "node", "items", "onChange"])) : A("", !0),
4026
4026
  v(n(Ae), {
4027
4027
  modelValue: f.value,
4028
- "onUpdate:modelValue": C[0] || (C[0] = (I) => f.value = I),
4028
+ "onUpdate:modelValue": C[0] || (C[0] = (P) => f.value = P),
4029
4029
  title: "新增自定义属性",
4030
4030
  width: "400px",
4031
4031
  height: "150px",
4032
- "submit-method": _,
4032
+ "submit-method": w,
4033
4033
  formProps: { tooltipMessage: !1 },
4034
- model: h.value
4034
+ model: b.value
4035
4035
  }, {
4036
- default: b(() => [
4036
+ default: h(() => [
4037
4037
  v(n(T), {
4038
4038
  name: "name",
4039
4039
  label: "属性名称",
@@ -4073,14 +4073,14 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
4073
4073
  model: l,
4074
4074
  onPick: s
4075
4075
  }, {
4076
- default: b(() => [
4076
+ default: h(() => [
4077
4077
  v(n(T), {
4078
4078
  class: "v-binder__editor",
4079
4079
  name: "value",
4080
4080
  label: "绑定内容 [ JSExpression ]",
4081
4081
  required: ""
4082
4082
  }, {
4083
- editor: b(() => [
4083
+ editor: h(() => [
4084
4084
  v(n(se), {
4085
4085
  ref_key: "editorRef",
4086
4086
  ref: t,
@@ -4128,7 +4128,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
4128
4128
  model: s,
4129
4129
  onPick: o
4130
4130
  }, {
4131
- default: b(() => [
4131
+ default: h(() => [
4132
4132
  v(n(T), {
4133
4133
  name: "modifiers",
4134
4134
  label: "事件修饰符",
@@ -4141,7 +4141,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
4141
4141
  label: "事件处理函数 [ JSFunction ]",
4142
4142
  required: ""
4143
4143
  }, {
4144
- editor: b(() => [
4144
+ editor: h(() => [
4145
4145
  v(n(se), {
4146
4146
  ref_key: "editorRef",
4147
4147
  ref: t,
@@ -4167,48 +4167,48 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
4167
4167
  }), i = k(!1), g = (c) => {
4168
4168
  r.value = ot(c), i.value = !0;
4169
4169
  }, d = async (c) => {
4170
- const _ = {
4170
+ const w = {
4171
4171
  ...c,
4172
4172
  modifiers: c.modifiers.reduce((x, C) => (x[C] = !0, x), {})
4173
4173
  };
4174
- return re(_.handler, t.value, !0) ? ((l.value?.model).setEvent(_), !0) : !1;
4174
+ return re(w.handler, t.value, !0) ? ((l.value?.model).setEvent(w), !0) : !1;
4175
4175
  }, m = async (c) => {
4176
- const _ = l.value?.model;
4177
- c.name && (_.removeEvent(c.name), i.value = !1);
4176
+ const w = l.value?.model;
4177
+ c.name && (w.removeEvent(c.name), i.value = !1);
4178
4178
  }, f = async () => {
4179
4179
  r.value.name && await Fe("确定要删除该事件吗?") && m(r.value);
4180
- }, h = (c) => {
4181
- const { name: _, modelValue: w } = c;
4182
- _ === "edit" && g(w), _ === "remove" && m(w);
4180
+ }, b = (c) => {
4181
+ const { name: w, modelValue: _ } = c;
4182
+ w === "edit" && g(_), w === "remove" && m(_);
4183
4183
  };
4184
- return (c, _) => (p(), y(n(U), {
4184
+ return (c, w) => (p(), y(n(U), {
4185
4185
  class: "v-events-widget",
4186
4186
  direction: "column",
4187
4187
  fit: ""
4188
4188
  }, {
4189
- default: b(() => [
4189
+ default: h(() => [
4190
4190
  v(n(H), {
4191
4191
  title: "组件事件",
4192
4192
  class: "v-sub-panel",
4193
4193
  size: "small",
4194
4194
  fit: !1
4195
4195
  }, {
4196
- default: b(() => [
4196
+ default: h(() => [
4197
4197
  n(o).length ? A("", !0) : (p(), y(n(oe), {
4198
4198
  key: 0,
4199
4199
  "image-size": 50,
4200
4200
  description: "该组件无自带事件"
4201
4201
  })),
4202
- (p(!0), j(O, null, W(n(o), (w) => (p(), y(n(ce), {
4203
- key: `component_${w.name}`,
4204
- title: w.name,
4205
- "model-value": w,
4202
+ (p(!0), j(O, null, W(n(o), (_) => (p(), y(n(ce), {
4203
+ key: `component_${_.name}`,
4204
+ title: _.name,
4205
+ "model-value": _,
4206
4206
  border: "",
4207
4207
  small: "",
4208
- actions: w.event ? ["edit", "remove"] : ["edit"],
4209
- active: !!w.event,
4210
- onClick: (x) => g(w),
4211
- onAction: h
4208
+ actions: _.event ? ["edit", "remove"] : ["edit"],
4209
+ active: !!_.event,
4210
+ onClick: (x) => g(_),
4211
+ onAction: b
4212
4212
  }, null, 8, ["title", "model-value", "actions", "active", "onClick"]))), 128))
4213
4213
  ]),
4214
4214
  _: 1
@@ -4219,17 +4219,17 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
4219
4219
  size: "small",
4220
4220
  fit: !1
4221
4221
  }, {
4222
- default: b(() => [
4223
- (p(!0), j(O, null, W(n(s), (w) => (p(), y(n(ce), {
4224
- key: `mouse_${w.name}`,
4225
- title: w.name,
4226
- "model-value": w,
4222
+ default: h(() => [
4223
+ (p(!0), j(O, null, W(n(s), (_) => (p(), y(n(ce), {
4224
+ key: `mouse_${_.name}`,
4225
+ title: _.name,
4226
+ "model-value": _,
4227
4227
  border: "",
4228
4228
  small: "",
4229
- actions: w.event ? ["edit", "remove"] : ["edit"],
4230
- active: !!w.event,
4231
- onClick: (x) => g(w),
4232
- onAction: h
4229
+ actions: _.event ? ["edit", "remove"] : ["edit"],
4230
+ active: !!_.event,
4231
+ onClick: (x) => g(_),
4232
+ onAction: b
4233
4233
  }, null, 8, ["title", "model-value", "actions", "active", "onClick"]))), 128))
4234
4234
  ]),
4235
4235
  _: 1
@@ -4241,17 +4241,17 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
4241
4241
  grow: "",
4242
4242
  fit: !1
4243
4243
  }, {
4244
- default: b(() => [
4245
- (p(!0), j(O, null, W(n(a), (w) => (p(), y(n(ce), {
4246
- key: `keyboard_${w.name}`,
4247
- title: w.name,
4248
- "model-value": w,
4244
+ default: h(() => [
4245
+ (p(!0), j(O, null, W(n(a), (_) => (p(), y(n(ce), {
4246
+ key: `keyboard_${_.name}`,
4247
+ title: _.name,
4248
+ "model-value": _,
4249
4249
  border: "",
4250
4250
  small: "",
4251
- actions: w.event ? ["edit", "remove"] : ["edit"],
4252
- active: !!w.event,
4253
- onClick: (x) => g(w),
4254
- onAction: h
4251
+ actions: _.event ? ["edit", "remove"] : ["edit"],
4252
+ active: !!_.event,
4253
+ onClick: (x) => g(_),
4254
+ onAction: b
4255
4255
  }, null, 8, ["title", "model-value", "actions", "active", "onClick"]))), 128))
4256
4256
  ]),
4257
4257
  _: 1
@@ -4259,7 +4259,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
4259
4259
  i.value ? (p(), y(n(yr), {
4260
4260
  key: 0,
4261
4261
  modelValue: i.value,
4262
- "onUpdate:modelValue": _[0] || (_[0] = (w) => i.value = w),
4262
+ "onUpdate:modelValue": w[0] || (w[0] = (_) => i.value = _),
4263
4263
  context: n(t),
4264
4264
  current: n(e),
4265
4265
  name: r.value.name,
@@ -4289,7 +4289,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
4289
4289
  save: "",
4290
4290
  onSave: a
4291
4291
  }, {
4292
- default: b(() => [
4292
+ default: h(() => [
4293
4293
  v(n(se), {
4294
4294
  ref_key: "editorRef",
4295
4295
  ref: t,
@@ -4316,27 +4316,27 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
4316
4316
  onValueChange: g,
4317
4317
  onForChange: d,
4318
4318
  onModelChange: m
4319
- } = no(l), f = (h) => h.arg ? typeof h.arg == "string" ? h.arg : He(h.arg, {}) : "modelValue";
4320
- return (h, c) => (p(), y(n(U), {
4319
+ } = no(l), f = (b) => b.arg ? typeof b.arg == "string" ? b.arg : He(b.arg, {}) : "modelValue";
4320
+ return (b, c) => (p(), y(n(U), {
4321
4321
  class: "v-directives-widget",
4322
4322
  direction: "column",
4323
4323
  fit: ""
4324
4324
  }, {
4325
- default: b(() => [
4325
+ default: h(() => [
4326
4326
  v(n(H), {
4327
4327
  class: "v-sub-panel",
4328
4328
  title: "内置指令",
4329
4329
  size: "small",
4330
4330
  fit: !1
4331
4331
  }, {
4332
- default: b(() => [
4332
+ default: h(() => [
4333
4333
  v(n(fe), {
4334
4334
  size: "small",
4335
4335
  "label-width": "80px",
4336
4336
  onKeydown: c[0] || (c[0] = tt(Je(() => {
4337
4337
  }, ["prevent", "stop"]), ["enter"]))
4338
4338
  }, {
4339
- default: b(() => [
4339
+ default: h(() => [
4340
4340
  v(n(M), {
4341
4341
  name: "vIf",
4342
4342
  label: "v-if",
@@ -4376,14 +4376,14 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
4376
4376
  size: "small",
4377
4377
  fit: !1
4378
4378
  }, {
4379
- default: b(() => [
4379
+ default: h(() => [
4380
4380
  v(n(fe), {
4381
4381
  size: "small",
4382
4382
  "label-width": "80px",
4383
4383
  onKeydown: c[1] || (c[1] = tt(Je(() => {
4384
4384
  }, ["prevent", "stop"]), ["enter"]))
4385
4385
  }, {
4386
- default: b(() => [
4386
+ default: h(() => [
4387
4387
  v(n(M), {
4388
4388
  name: "value",
4389
4389
  label: "循环数据",
@@ -4430,31 +4430,31 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
4430
4430
  fit: !1,
4431
4431
  grow: ""
4432
4432
  }, {
4433
- default: b(() => [
4434
- (p(!0), j(O, null, W(n(i), (_, w) => (p(), y(n(H), {
4433
+ default: h(() => [
4434
+ (p(!0), j(O, null, W(n(i), (w, _) => (p(), y(n(H), {
4435
4435
  card: "",
4436
4436
  border: "",
4437
4437
  class: "v-sub-panel",
4438
4438
  size: "small",
4439
- title: `v-model: ${f(_)}`,
4439
+ title: `v-model: ${f(w)}`,
4440
4440
  body: { grow: !1 },
4441
4441
  fit: !1
4442
4442
  }, {
4443
- default: b(() => [
4443
+ default: h(() => [
4444
4444
  v(n(fe), {
4445
4445
  size: "small",
4446
4446
  "label-width": "60px",
4447
4447
  onKeydown: c[2] || (c[2] = tt(Je(() => {
4448
4448
  }, ["prevent", "stop"]), ["enter"]))
4449
4449
  }, {
4450
- default: b(() => [
4450
+ default: h(() => [
4451
4451
  v(n(M), {
4452
- name: w.toString(),
4452
+ name: _.toString(),
4453
4453
  label: "绑定变量",
4454
4454
  setters: "ExpressionSetter",
4455
4455
  current: n(e),
4456
4456
  context: n(t),
4457
- value: _.value,
4457
+ value: w.value,
4458
4458
  onChange: n(m)
4459
4459
  }, null, 8, ["name", "current", "context", "value", "onChange"])
4460
4460
  ]),
@@ -4509,7 +4509,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
4509
4509
  "form-props": { tooltipMessage: !1 },
4510
4510
  "submit-method": a
4511
4511
  }, {
4512
- default: b(() => [
4512
+ default: h(() => [
4513
4513
  v(n(T), {
4514
4514
  name: "name",
4515
4515
  label: "属性名称",
@@ -4539,7 +4539,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
4539
4539
  label: "默认值",
4540
4540
  editor: "none"
4541
4541
  }, {
4542
- default: b(() => [
4542
+ default: h(() => [
4543
4543
  v(n(se), {
4544
4544
  modelValue: l.value.default.value,
4545
4545
  "onUpdate:modelValue": r[0] || (r[0] = (i) => l.value.default.value = i),
@@ -4573,7 +4573,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
4573
4573
  "form-props": { tooltipMessage: !1 },
4574
4574
  "submit-method": a
4575
4575
  }, {
4576
- default: b(() => [
4576
+ default: h(() => [
4577
4577
  v(n(T), {
4578
4578
  name: "name",
4579
4579
  label: "事件名称",
@@ -4628,7 +4628,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
4628
4628
  "form-props": { tooltipMessage: !1 },
4629
4629
  "submit-method": a
4630
4630
  }, {
4631
- default: b(() => [
4631
+ default: h(() => [
4632
4632
  v(n(T), {
4633
4633
  name: "name",
4634
4634
  label: "插槽名称",
@@ -4693,7 +4693,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
4693
4693
  "form-props": { tooltipMessage: !1 },
4694
4694
  "submit-method": s
4695
4695
  }, {
4696
- default: b(() => [
4696
+ default: h(() => [
4697
4697
  v(n(T), {
4698
4698
  name: "name",
4699
4699
  label: "注入名称",
@@ -4715,7 +4715,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
4715
4715
  label: "默认值",
4716
4716
  editor: "none"
4717
4717
  }, {
4718
- default: b(() => [
4718
+ default: h(() => [
4719
4719
  v(n(se), {
4720
4720
  modelValue: l.value.default.value,
4721
4721
  "onUpdate:modelValue": o[0] || (o[0] = (r) => l.value.default.value = r),
@@ -4733,31 +4733,31 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
4733
4733
  name: "DefinedWidget",
4734
4734
  __name: "index",
4735
4735
  setup(u) {
4736
- const { current: e, context: t } = ue(), l = S(() => (e.value?.props || []).map((L) => typeof L == "string" ? { name: L } : L)), s = S(() => (e.value?.emits || []).map((L) => typeof L == "string" ? { name: L, params: [] } : L)), a = S(() => (e.value?.slots || []).map((L) => typeof L == "string" ? { name: L, params: [] } : L)), o = S(() => e.value?.inject || []), r = k(!1), i = k(), g = k(!1), d = k(), m = k(!1), f = k(), h = k(!1), c = k(), _ = () => {
4736
+ const { current: e, context: t } = ue(), l = S(() => (e.value?.props || []).map((L) => typeof L == "string" ? { name: L } : L)), s = S(() => (e.value?.emits || []).map((L) => typeof L == "string" ? { name: L, params: [] } : L)), a = S(() => (e.value?.slots || []).map((L) => typeof L == "string" ? { name: L, params: [] } : L)), o = S(() => e.value?.inject || []), r = k(!1), i = k(), g = k(!1), d = k(), m = k(!1), f = k(), b = k(!1), c = k(), w = () => {
4737
4737
  i.value = void 0, r.value = !0;
4738
- }, w = (L) => {
4738
+ }, _ = (L) => {
4739
4739
  const { name: q, modelValue: N } = L;
4740
4740
  q === "edit" && x(N), q === "remove" && e.value?.removeProp(N);
4741
4741
  }, x = (L) => {
4742
4742
  i.value = L, r.value = !0;
4743
4743
  }, C = () => {
4744
4744
  d.value = void 0, g.value = !0;
4745
- }, I = (L) => {
4745
+ }, P = (L) => {
4746
4746
  d.value = { ...L }, g.value = !0;
4747
4747
  }, z = (L) => {
4748
4748
  const { name: q, modelValue: N } = L;
4749
- q === "edit" && I(N), q === "remove" && e.value?.removeEmit(N.name);
4749
+ q === "edit" && P(N), q === "remove" && e.value?.removeEmit(N.name);
4750
4750
  }, R = () => {
4751
4751
  f.value = void 0, m.value = !0;
4752
- }, P = (L) => {
4752
+ }, I = (L) => {
4753
4753
  f.value = { ...L }, m.value = !0;
4754
4754
  }, B = (L) => {
4755
4755
  const { name: q, modelValue: N } = L;
4756
- q === "edit" && P(N), q === "remove" && e.value?.removeSlot(N.name);
4756
+ q === "edit" && I(N), q === "remove" && e.value?.removeSlot(N.name);
4757
4757
  }, D = () => {
4758
- c.value = void 0, h.value = !0;
4758
+ c.value = void 0, b.value = !0;
4759
4759
  }, G = (L) => {
4760
- c.value = L, h.value = !0;
4760
+ c.value = L, b.value = !0;
4761
4761
  }, me = (L) => {
4762
4762
  const { name: q, modelValue: N } = L;
4763
4763
  q === "edit" && G(N), q === "remove" && e.value?.removeInject(N);
@@ -4768,23 +4768,23 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
4768
4768
  direction: "column",
4769
4769
  fit: ""
4770
4770
  }, {
4771
- default: b(() => [
4771
+ default: h(() => [
4772
4772
  v(n(H), {
4773
4773
  class: "v-sub-panel",
4774
4774
  title: "定义属性",
4775
4775
  size: "small",
4776
4776
  plus: "",
4777
4777
  fit: !1,
4778
- onPlus: _
4778
+ onPlus: w
4779
4779
  }, {
4780
- default: b(() => [
4780
+ default: h(() => [
4781
4781
  (p(!0), j(O, null, W(l.value, (N) => (p(), y(n(ce), {
4782
4782
  "model-value": N,
4783
4783
  title: N.name,
4784
4784
  border: "",
4785
4785
  actions: ["edit", "remove"],
4786
4786
  onClick: ($e) => x(N),
4787
- onAction: w
4787
+ onAction: _
4788
4788
  }, null, 8, ["model-value", "title", "onClick"]))), 256)),
4789
4789
  l.value.length ? A("", !0) : (p(), y(n(oe), {
4790
4790
  key: 0,
@@ -4809,13 +4809,13 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
4809
4809
  fit: !1,
4810
4810
  onPlus: C
4811
4811
  }, {
4812
- default: b(() => [
4812
+ default: h(() => [
4813
4813
  (p(!0), j(O, null, W(s.value, (N) => (p(), y(n(ce), {
4814
4814
  "model-value": N,
4815
4815
  title: N.name,
4816
4816
  border: "",
4817
4817
  actions: ["remove"],
4818
- onClick: ($e) => I(N),
4818
+ onClick: ($e) => P(N),
4819
4819
  onAction: z
4820
4820
  }, null, 8, ["model-value", "title", "onClick"]))), 256)),
4821
4821
  s.value.length ? A("", !0) : (p(), y(n(oe), {
@@ -4841,13 +4841,13 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
4841
4841
  fit: !1,
4842
4842
  onPlus: R
4843
4843
  }, {
4844
- default: b(() => [
4844
+ default: h(() => [
4845
4845
  (p(!0), j(O, null, W(a.value, (N) => (p(), y(n(ce), {
4846
4846
  "model-value": N,
4847
4847
  title: N.name,
4848
4848
  border: "",
4849
4849
  actions: ["remove"],
4850
- onClick: ($e) => P(N),
4850
+ onClick: ($e) => I(N),
4851
4851
  onAction: B
4852
4852
  }, null, 8, ["model-value", "title", "onClick"]))), 256)),
4853
4853
  a.value.length ? A("", !0) : (p(), y(n(oe), {
@@ -4874,7 +4874,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
4874
4874
  grow: "",
4875
4875
  onPlus: D
4876
4876
  }, {
4877
- default: b(() => [
4877
+ default: h(() => [
4878
4878
  (p(!0), j(O, null, W(o.value, (N) => (p(), y(n(ce), {
4879
4879
  "model-value": N,
4880
4880
  title: N.name,
@@ -4887,10 +4887,10 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
4887
4887
  key: 0,
4888
4888
  "image-size": 50
4889
4889
  })),
4890
- h.value ? (p(), y(Vr, {
4890
+ b.value ? (p(), y(Vr, {
4891
4891
  key: 1,
4892
- modelValue: h.value,
4893
- "onUpdate:modelValue": q[3] || (q[3] = (N) => h.value = N),
4892
+ modelValue: b.value,
4893
+ "onUpdate:modelValue": q[3] || (q[3] = (N) => b.value = N),
4894
4894
  current: n(e),
4895
4895
  context: n(t),
4896
4896
  item: c.value
@@ -4947,42 +4947,42 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
4947
4947
  })`
4948
4948
  }
4949
4949
  }, e.item)
4950
- ), r = k(!1), i = k(""), g = k(!1), d = S(() => o.value.type === "api" ? l.value.map((w) => ({
4951
- label: w.label || "",
4952
- value: w.id,
4953
- data: w
4954
- })) : o.value.type === "meta" ? s.value.map((w) => ({
4955
- label: w.title || "",
4956
- value: w.id,
4957
- data: w
4958
- })) : []), m = S(() => e.item ? "编辑数据源" : "新增数据源"), f = (w) => {
4950
+ ), r = k(!1), i = k(""), g = k(!1), d = S(() => o.value.type === "api" ? l.value.map((_) => ({
4951
+ label: _.label || "",
4952
+ value: _.id,
4953
+ data: _
4954
+ })) : o.value.type === "meta" ? s.value.map((_) => ({
4955
+ label: _.title || "",
4956
+ value: _.id,
4957
+ data: _
4958
+ })) : []), m = S(() => e.item ? "编辑数据源" : "新增数据源"), f = (_) => {
4959
4959
  o.value.ref = "", o.value.name = "", o.value.label = "";
4960
- }, h = (w) => {
4960
+ }, b = (_) => {
4961
4961
  if (o.value.type === "api") {
4962
- const x = l.value.find((C) => C.id === w);
4962
+ const x = l.value.find((C) => C.id === _);
4963
4963
  x && (o.value.name = x.name, o.value.label = x.label || "");
4964
4964
  }
4965
4965
  if (o.value.type === "meta") {
4966
- const x = s.value.find((C) => C.id === w);
4966
+ const x = s.value.find((C) => C.id === _);
4967
4967
  x && (o.value.name = x.code, o.value.label = x.title || "");
4968
4968
  }
4969
- }, c = async (w) => {
4970
- const { transform: x, test: C, name: I } = w;
4969
+ }, c = async (_) => {
4970
+ const { transform: x, test: C, name: P } = _;
4971
4971
  if (!e.current) return !1;
4972
- if (!e.item && e.current.dataSources[I])
4973
- return le(`名称【${I}】已经存在,请更换名称`), !1;
4972
+ if (!e.item && e.current.dataSources[P])
4973
+ return le(`名称【${P}】已经存在,请更换名称`), !1;
4974
4974
  if (x?.value) {
4975
4975
  if (!re(x, e.context, !0))
4976
4976
  return !1;
4977
4977
  } else
4978
- w.transform = void 0;
4978
+ _.transform = void 0;
4979
4979
  if (C?.value) {
4980
4980
  if (!re(C, e.context, !0))
4981
4981
  return !1;
4982
4982
  } else
4983
- w.test = void 0;
4984
- return e.current?.setDataSource(w), !0;
4985
- }, _ = async () => {
4983
+ _.test = void 0;
4984
+ return e.current?.setDataSource(_), !0;
4985
+ }, w = async () => {
4986
4986
  if (!e.context) return;
4987
4987
  if (!o.value.ref) {
4988
4988
  le("请先选择API");
@@ -5001,17 +5001,17 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
5001
5001
  Ve.warn(`API【${o.value.ref}】不存在`);
5002
5002
  }, C = He(o.value.test, {
5003
5003
  runApi: x
5004
- }), I = o.value.transform?.value ? He(o.value.transform, {}, !0) : (z) => z;
5004
+ }), P = o.value.transform?.value ? He(o.value.transform, {}, !0) : (z) => z;
5005
5005
  r.value = !0;
5006
5006
  try {
5007
5007
  const z = await C();
5008
- i.value = JSON.stringify(await I(z), null, 2);
5008
+ i.value = JSON.stringify(await P(z), null, 2);
5009
5009
  } catch (z) {
5010
5010
  Ve.error(z);
5011
5011
  }
5012
5012
  r.value = !1, g.value = !0;
5013
5013
  };
5014
- return (w, x) => (p(), y(n(Ae), {
5014
+ return (_, x) => (p(), y(n(Ae), {
5015
5015
  width: "1000px",
5016
5016
  height: "700px",
5017
5017
  title: m.value,
@@ -5019,19 +5019,19 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
5019
5019
  "form-props": { tooltipMessage: !1 },
5020
5020
  "submit-method": c
5021
5021
  }, {
5022
- extra: b(() => [
5022
+ extra: h(() => [
5023
5023
  v(n(ae), {
5024
5024
  loading: r.value,
5025
5025
  type: "warning",
5026
- onClick: _
5026
+ onClick: w
5027
5027
  }, {
5028
- default: b(() => x[3] || (x[3] = [
5028
+ default: h(() => x[3] || (x[3] = [
5029
5029
  K(" 运行测试用例 ")
5030
5030
  ])),
5031
5031
  _: 1
5032
5032
  }, 8, ["loading"])
5033
5033
  ]),
5034
- default: b(() => [
5034
+ default: h(() => [
5035
5035
  v(n(T), {
5036
5036
  name: "type",
5037
5037
  label: "数据类型",
@@ -5050,9 +5050,9 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
5050
5050
  disabled: !!e.item,
5051
5051
  options: d.value,
5052
5052
  props: { filterable: !0 },
5053
- onChange: h
5053
+ onChange: b
5054
5054
  }, {
5055
- option: b(({ option: C }) => [
5055
+ option: h(({ option: C }) => [
5056
5056
  K(F(C.label) + " ", 1),
5057
5057
  V("i", null, "[ " + F(C.data.name || C.data.code) + " ]", 1)
5058
5058
  ]),
@@ -5079,7 +5079,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
5079
5079
  label: "转换函数",
5080
5080
  editor: "none"
5081
5081
  }, {
5082
- default: b(() => [
5082
+ default: h(() => [
5083
5083
  v(n(se), {
5084
5084
  modelValue: o.value.transform.value,
5085
5085
  "onUpdate:modelValue": x[0] || (x[0] = (C) => o.value.transform.value = C),
@@ -5094,7 +5094,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
5094
5094
  label: "测试用例",
5095
5095
  editor: "none"
5096
5096
  }, {
5097
- default: b(() => [
5097
+ default: h(() => [
5098
5098
  v(n(se), {
5099
5099
  modelValue: o.value.test.value,
5100
5100
  "onUpdate:modelValue": x[1] || (x[1] = (C) => o.value.test.value = C),
@@ -5114,7 +5114,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
5114
5114
  "append-to-body": "",
5115
5115
  size: "80%"
5116
5116
  }, {
5117
- default: b(() => [
5117
+ default: h(() => [
5118
5118
  v(n(se), {
5119
5119
  "model-value": i.value,
5120
5120
  border: "",
@@ -5152,7 +5152,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
5152
5152
  direction: "column",
5153
5153
  fit: ""
5154
5154
  }, {
5155
- default: b(() => [
5155
+ default: h(() => [
5156
5156
  v(n(H), {
5157
5157
  title: "请求方法",
5158
5158
  class: "v-sub-panel",
@@ -5160,7 +5160,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
5160
5160
  plus: "",
5161
5161
  onPlus: r
5162
5162
  }, {
5163
- default: b(() => [
5163
+ default: h(() => [
5164
5164
  (p(!0), j(O, null, W(a.value, (f) => (p(), y(n(ce), {
5165
5165
  border: "",
5166
5166
  title: f.name,
@@ -5170,7 +5170,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
5170
5170
  tag: f.type.toUpperCase(),
5171
5171
  "tag-type": o(f.type),
5172
5172
  onAction: g,
5173
- onClick: (h) => i(f)
5173
+ onClick: (b) => i(f)
5174
5174
  }, null, 8, ["title", "subtitle", "model-value", "tag", "tag-type", "onClick"]))), 256)),
5175
5175
  a.value.length ? A("", !0) : (p(), y(n(oe), {
5176
5176
  key: 0,
@@ -5328,12 +5328,12 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
5328
5328
  fit: !1,
5329
5329
  collapsable: ""
5330
5330
  }, {
5331
- default: b(() => [
5331
+ default: h(() => [
5332
5332
  v(n(fe), {
5333
5333
  size: "small",
5334
5334
  "label-width": "80px"
5335
5335
  }, {
5336
- default: b(() => [
5336
+ default: h(() => [
5337
5337
  v(n(M), {
5338
5338
  name: "display",
5339
5339
  label: "排布",
@@ -5416,7 +5416,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
5416
5416
  save: "",
5417
5417
  onSave: o
5418
5418
  }, {
5419
- default: b(() => [
5419
+ default: h(() => [
5420
5420
  v(n(se), {
5421
5421
  ref_key: "editorRef",
5422
5422
  ref: t,
@@ -5443,16 +5443,16 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
5443
5443
  Vo(o, () => {
5444
5444
  s("close");
5445
5445
  });
5446
- const g = (h) => {
5447
- r.value = typeof h == "number" ? `${h}px` : "auto", d(r.value);
5448
- }, d = (h) => {
5449
- i.value = h === "auto" ? void 0 : "px";
5446
+ const g = (b) => {
5447
+ r.value = typeof b == "number" ? `${b}px` : "auto", d(r.value);
5448
+ }, d = (b) => {
5449
+ i.value = b === "auto" ? void 0 : "px";
5450
5450
  }, m = () => {
5451
5451
  r.value ? (s("update:modelValue", r.value), s("submit", l.name, r.value), s("close")) : le("请输入有效值", "提示");
5452
5452
  }, f = () => {
5453
5453
  r.value = void 0, s("update:modelValue", r.value), s("submit", l.name, void 0), s("close");
5454
5454
  };
5455
- return (h, c) => (p(), j("div", Ir, [
5455
+ return (b, c) => (p(), j("div", Ir, [
5456
5456
  c[4] || (c[4] = V("div", { class: "v-spacing-input__modal" }, null, -1)),
5457
5457
  V("div", Tr, [
5458
5458
  v(n(U), {
@@ -5461,12 +5461,12 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
5461
5461
  ref: o,
5462
5462
  direction: "column"
5463
5463
  }, {
5464
- default: b(() => [
5464
+ default: h(() => [
5465
5465
  v(n(U), null, {
5466
- default: b(() => [
5466
+ default: h(() => [
5467
5467
  v(n(bn), {
5468
5468
  modelValue: r.value,
5469
- "onUpdate:modelValue": c[0] || (c[0] = (_) => r.value = _),
5469
+ "onUpdate:modelValue": c[0] || (c[0] = (w) => r.value = w),
5470
5470
  size: "small",
5471
5471
  "with-unit": !!i.value,
5472
5472
  unit: i.value,
@@ -5477,15 +5477,15 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
5477
5477
  _: 1
5478
5478
  }),
5479
5479
  v(n(U), null, {
5480
- default: b(() => [
5480
+ default: h(() => [
5481
5481
  a.value ? (p(), y(n(U), {
5482
5482
  key: 0,
5483
5483
  class: "v-spacing-input__auto",
5484
5484
  width: "20%"
5485
5485
  }, {
5486
- default: b(() => [
5486
+ default: h(() => [
5487
5487
  V("span", {
5488
- onClick: c[1] || (c[1] = (_) => g("auto"))
5488
+ onClick: c[1] || (c[1] = (w) => g("auto"))
5489
5489
  }, "auto")
5490
5490
  ]),
5491
5491
  _: 1
@@ -5496,10 +5496,10 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
5496
5496
  align: "center",
5497
5497
  wrap: "wrap"
5498
5498
  }, {
5499
- default: b(() => [
5500
- (p(), j(O, null, W(t, (_) => V("span", {
5501
- onClick: (w) => g(_)
5502
- }, F(_), 9, Br)), 64))
5499
+ default: h(() => [
5500
+ (p(), j(O, null, W(t, (w) => V("span", {
5501
+ onClick: (_) => g(w)
5502
+ }, F(w), 9, Br)), 64))
5503
5503
  ]),
5504
5504
  _: 1
5505
5505
  })
@@ -5507,7 +5507,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
5507
5507
  _: 1
5508
5508
  }),
5509
5509
  v(n(U), null, {
5510
- default: b(() => [
5510
+ default: h(() => [
5511
5511
  v(n(ae), {
5512
5512
  size: "small",
5513
5513
  type: "primary",
@@ -5515,7 +5515,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
5515
5515
  style: { width: "100%" },
5516
5516
  onClick: m
5517
5517
  }, {
5518
- default: b(() => c[2] || (c[2] = [
5518
+ default: h(() => c[2] || (c[2] = [
5519
5519
  K(" 确定 ")
5520
5520
  ])),
5521
5521
  _: 1
@@ -5526,7 +5526,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
5526
5526
  style: { width: "100%" },
5527
5527
  onClick: f
5528
5528
  }, {
5529
- default: b(() => c[3] || (c[3] = [
5529
+ default: h(() => c[3] || (c[3] = [
5530
5530
  K(" 重置 ")
5531
5531
  ])),
5532
5532
  _: 1
@@ -5559,17 +5559,17 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
5559
5559
  setup(u) {
5560
5560
  const e = u, t = k(), l = k(), { width: s, height: a } = Xe(t), { width: o, height: r } = Xe(l), i = k(!1), g = k(), d = k(), m = () => {
5561
5561
  i.value = !1, g.value = void 0, d.value = void 0;
5562
- }, f = (h) => {
5563
- g.value = h, d.value = e.styleJson[h], i.value = !0;
5562
+ }, f = (b) => {
5563
+ g.value = b, d.value = e.styleJson[b], i.value = !0;
5564
5564
  };
5565
- return (h, c) => (p(), y(n(H), {
5565
+ return (b, c) => (p(), y(n(H), {
5566
5566
  title: "间距",
5567
5567
  class: "v-sub-panel",
5568
5568
  size: "small",
5569
5569
  fit: !1,
5570
5570
  collapsable: ""
5571
5571
  }, {
5572
- default: b(() => [
5572
+ default: h(() => [
5573
5573
  V("div", {
5574
5574
  class: "v-style-widget__spacing",
5575
5575
  ref_key: "container",
@@ -5598,7 +5598,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
5598
5598
  "data-automation-id": "margin-top-button",
5599
5599
  "aria-label": "Margin top button",
5600
5600
  class: "tb-path-color",
5601
- onClick: c[0] || (c[0] = (_) => f("margin-top"))
5601
+ onClick: c[0] || (c[0] = (w) => f("margin-top"))
5602
5602
  }, null, 8, zr)
5603
5603
  ])
5604
5604
  ]),
@@ -5616,7 +5616,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
5616
5616
  "data-automation-id": "margin-right-button",
5617
5617
  "aria-label": "Margin right button",
5618
5618
  class: "lr-path-color",
5619
- onClick: c[1] || (c[1] = (_) => f("margin-right"))
5619
+ onClick: c[1] || (c[1] = (w) => f("margin-right"))
5620
5620
  }, null, 8, Fr)
5621
5621
  ])
5622
5622
  ]),
@@ -5634,7 +5634,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
5634
5634
  "data-automation-id": "margin-bottom-button",
5635
5635
  "aria-label": "Margin bottom button",
5636
5636
  class: "tb-path-color",
5637
- onClick: c[2] || (c[2] = (_) => f("margin-bottom"))
5637
+ onClick: c[2] || (c[2] = (w) => f("margin-bottom"))
5638
5638
  }, null, 8, Lr)
5639
5639
  ])
5640
5640
  ]),
@@ -5652,7 +5652,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
5652
5652
  "data-automation-id": "margin-left-button",
5653
5653
  "aria-label": "Margin left button",
5654
5654
  class: "lr-path-color",
5655
- onClick: c[3] || (c[3] = (_) => f("margin-left"))
5655
+ onClick: c[3] || (c[3] = (w) => f("margin-left"))
5656
5656
  }, null, 8, Wr)
5657
5657
  ])
5658
5658
  ]),
@@ -5707,19 +5707,19 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
5707
5707
  ], 8, Or)) : A("", !0),
5708
5708
  V("div", {
5709
5709
  class: X(["spacing-edit margin-top", { "is-setting": e.styleJson["margin-top"] }]),
5710
- onClick: c[4] || (c[4] = (_) => f("margin-top"))
5710
+ onClick: c[4] || (c[4] = (w) => f("margin-top"))
5711
5711
  }, F(e.styleJson["margin-top"] || "-"), 3),
5712
5712
  V("div", {
5713
5713
  class: X(["spacing-edit margin-right", { "is-setting": e.styleJson["margin-right"] }]),
5714
- onClick: c[5] || (c[5] = (_) => f("margin-right"))
5714
+ onClick: c[5] || (c[5] = (w) => f("margin-right"))
5715
5715
  }, F(e.styleJson["margin-right"] || "-"), 3),
5716
5716
  V("div", {
5717
5717
  class: X(["spacing-edit margin-bottom", { "is-setting": e.styleJson["margin-bottom"] }]),
5718
- onClick: c[6] || (c[6] = (_) => f("margin-bottom"))
5718
+ onClick: c[6] || (c[6] = (w) => f("margin-bottom"))
5719
5719
  }, F(e.styleJson["margin-bottom"] || "-"), 3),
5720
5720
  V("div", {
5721
5721
  class: X(["spacing-edit margin-left", { "is-setting": e.styleJson["margin-left"] }]),
5722
- onClick: c[7] || (c[7] = (_) => f("margin-left"))
5722
+ onClick: c[7] || (c[7] = (w) => f("margin-left"))
5723
5723
  }, F(e.styleJson["margin-left"] || "-"), 3)
5724
5724
  ]),
5725
5725
  V("div", {
@@ -5748,7 +5748,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
5748
5748
  "data-automation-id": "padding-top-button",
5749
5749
  "aria-label": "Padding top button",
5750
5750
  class: "tb-path-color",
5751
- onClick: c[8] || (c[8] = (_) => f("padding-top"))
5751
+ onClick: c[8] || (c[8] = (w) => f("padding-top"))
5752
5752
  }, null, 8, Xr)
5753
5753
  ])
5754
5754
  ]),
@@ -5766,7 +5766,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
5766
5766
  "data-automation-id": "padding-right-button",
5767
5767
  "aria-label": "Padding right button",
5768
5768
  class: "lr-path-color",
5769
- onClick: c[9] || (c[9] = (_) => f("padding-right"))
5769
+ onClick: c[9] || (c[9] = (w) => f("padding-right"))
5770
5770
  }, null, 8, Kr)
5771
5771
  ])
5772
5772
  ]),
@@ -5784,7 +5784,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
5784
5784
  "data-automation-id": "padding-bottom-button",
5785
5785
  "aria-label": "Padding bottom button",
5786
5786
  class: "tb-path-color",
5787
- onClick: c[10] || (c[10] = (_) => f("padding-bottom"))
5787
+ onClick: c[10] || (c[10] = (w) => f("padding-bottom"))
5788
5788
  }, null, 8, Qr)
5789
5789
  ])
5790
5790
  ]),
@@ -5802,7 +5802,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
5802
5802
  "data-automation-id": "padding-left-button",
5803
5803
  "aria-label": "Padding left button",
5804
5804
  class: "lr-path-color",
5805
- onClick: c[11] || (c[11] = (_) => f("padding-left"))
5805
+ onClick: c[11] || (c[11] = (w) => f("padding-left"))
5806
5806
  }, null, 8, Yr)
5807
5807
  ])
5808
5808
  ]),
@@ -5857,19 +5857,19 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
5857
5857
  ], 8, Gr)) : A("", !0),
5858
5858
  V("div", {
5859
5859
  class: X(["spacing-edit padding-top", { "is-setting": e.styleJson["padding-top"] }]),
5860
- onClick: c[12] || (c[12] = (_) => f("padding-top"))
5860
+ onClick: c[12] || (c[12] = (w) => f("padding-top"))
5861
5861
  }, F(e.styleJson["padding-top"] || "-"), 3),
5862
5862
  V("div", {
5863
5863
  class: X(["spacing-edit padding-right", { "is-setting": e.styleJson["padding-right"] }]),
5864
- onClick: c[13] || (c[13] = (_) => f("padding-right"))
5864
+ onClick: c[13] || (c[13] = (w) => f("padding-right"))
5865
5865
  }, F(e.styleJson["padding-right"] || "-"), 3),
5866
5866
  V("div", {
5867
5867
  class: X(["spacing-edit padding-bottom", { "is-setting": e.styleJson["padding-bottom"] }]),
5868
- onClick: c[14] || (c[14] = (_) => f("padding-bottom"))
5868
+ onClick: c[14] || (c[14] = (w) => f("padding-bottom"))
5869
5869
  }, F(e.styleJson["padding-bottom"] || "-"), 3),
5870
5870
  V("div", {
5871
5871
  class: X(["spacing-edit padding-left", { "is-setting": e.styleJson["padding-left"] }]),
5872
- onClick: c[15] || (c[15] = (_) => f("padding-left"))
5872
+ onClick: c[15] || (c[15] = (w) => f("padding-left"))
5873
5873
  }, F(e.styleJson["padding-left"] || "-"), 3)
5874
5874
  ], 512),
5875
5875
  (p(), j("svg", ai, c[17] || (c[17] = [
@@ -5899,7 +5899,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
5899
5899
  key: 0,
5900
5900
  name: g.value,
5901
5901
  modelValue: d.value,
5902
- "onUpdate:modelValue": c[16] || (c[16] = (_) => d.value = _),
5902
+ "onUpdate:modelValue": c[16] || (c[16] = (w) => d.value = w),
5903
5903
  onClose: m,
5904
5904
  onSubmit: e.setStyle
5905
5905
  }, null, 8, ["name", "modelValue", "onSubmit"])) : A("", !0)
@@ -5977,14 +5977,14 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
5977
5977
  fit: !1,
5978
5978
  collapsable: ""
5979
5979
  }, {
5980
- default: b(() => [
5980
+ default: h(() => [
5981
5981
  v(n(fe), {
5982
5982
  class: "v-style-widget__sizing",
5983
5983
  size: "small",
5984
5984
  "label-width": "60px",
5985
5985
  inline: ""
5986
5986
  }, {
5987
- default: b(() => [
5987
+ default: h(() => [
5988
5988
  (p(), j(O, null, W(s, (r) => v(n(M), {
5989
5989
  name: r.name,
5990
5990
  label: r.label,
@@ -6024,25 +6024,25 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
6024
6024
  { label: "上", svg: Us, value: "auto 0% 0% 0%" },
6025
6025
  { label: "下", svg: qs, value: "0% 0% auto 0%" },
6026
6026
  { label: "填充", svg: Hs, value: "0% 0% 0% 0%" }
6027
- ], d = S(() => (e.styleJson.inset || "").split(" ")), m = (h) => {
6028
- o.value = h, r.value = e.styleJson[h], a.value = !0;
6027
+ ], d = S(() => (e.styleJson.inset || "").split(" ")), m = (b) => {
6028
+ o.value = b, r.value = e.styleJson[b], a.value = !0;
6029
6029
  }, f = () => {
6030
6030
  a.value = !1, o.value = void 0, r.value = void 0;
6031
6031
  };
6032
- return (h, c) => (p(), y(n(H), {
6032
+ return (b, c) => (p(), y(n(H), {
6033
6033
  title: "定位",
6034
6034
  class: "v-sub-panel",
6035
6035
  size: "small",
6036
6036
  fit: !1,
6037
6037
  collapsable: ""
6038
6038
  }, {
6039
- default: b(() => [
6039
+ default: h(() => [
6040
6040
  V("div", ui, [
6041
6041
  v(n(fe), {
6042
6042
  "label-width": "60px",
6043
6043
  size: "small"
6044
6044
  }, {
6045
- default: b(() => [
6045
+ default: h(() => [
6046
6046
  v(n(M), {
6047
6047
  name: "position",
6048
6048
  label: "定位",
@@ -6062,7 +6062,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
6062
6062
  onChange: e.setStyle
6063
6063
  }, null, 8, ["value", "onChange"]),
6064
6064
  v(n(hn), { label: " " }, {
6065
- default: b(() => [
6065
+ default: h(() => [
6066
6066
  V("div", ci, [
6067
6067
  V("div", {
6068
6068
  ref_key: "inner",
@@ -6090,7 +6090,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
6090
6090
  "data-automation-id": "padding-top-button",
6091
6091
  "aria-label": "Padding top button",
6092
6092
  class: "tb-path-color",
6093
- onClick: c[0] || (c[0] = (_) => m("top"))
6093
+ onClick: c[0] || (c[0] = (w) => m("top"))
6094
6094
  }, null, 8, pi)
6095
6095
  ])
6096
6096
  ]),
@@ -6108,7 +6108,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
6108
6108
  "data-automation-id": "padding-right-button",
6109
6109
  "aria-label": "Padding right button",
6110
6110
  class: "lr-path-color",
6111
- onClick: c[1] || (c[1] = (_) => m("right"))
6111
+ onClick: c[1] || (c[1] = (w) => m("right"))
6112
6112
  }, null, 8, mi)
6113
6113
  ])
6114
6114
  ]),
@@ -6126,7 +6126,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
6126
6126
  "data-automation-id": "padding-bottom-button",
6127
6127
  "aria-label": "Padding bottom button",
6128
6128
  class: "tb-path-color",
6129
- onClick: c[2] || (c[2] = (_) => m("bottom"))
6129
+ onClick: c[2] || (c[2] = (w) => m("bottom"))
6130
6130
  }, null, 8, vi)
6131
6131
  ])
6132
6132
  ]),
@@ -6144,7 +6144,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
6144
6144
  "data-automation-id": "padding-left-button",
6145
6145
  "aria-label": "Padding left button",
6146
6146
  class: "lr-path-color",
6147
- onClick: c[3] || (c[3] = (_) => m("left"))
6147
+ onClick: c[3] || (c[3] = (w) => m("left"))
6148
6148
  }, null, 8, gi)
6149
6149
  ])
6150
6150
  ]),
@@ -6199,19 +6199,19 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
6199
6199
  ], 8, di)) : A("", !0),
6200
6200
  V("div", {
6201
6201
  class: X(["spacing-edit padding-top", { "is-setting": e.styleJson.top }]),
6202
- onClick: c[4] || (c[4] = (_) => m("top"))
6202
+ onClick: c[4] || (c[4] = (w) => m("top"))
6203
6203
  }, F(e.styleJson.top || d.value[0] || "-"), 3),
6204
6204
  V("div", {
6205
6205
  class: X(["spacing-edit padding-right", { "is-setting": e.styleJson.right }]),
6206
- onClick: c[5] || (c[5] = (_) => m("right"))
6206
+ onClick: c[5] || (c[5] = (w) => m("right"))
6207
6207
  }, F(e.styleJson.right || d.value[1] || "-"), 3),
6208
6208
  V("div", {
6209
6209
  class: X(["spacing-edit padding-bottom", { "is-setting": e.styleJson.bottom }]),
6210
- onClick: c[6] || (c[6] = (_) => m("bottom"))
6210
+ onClick: c[6] || (c[6] = (w) => m("bottom"))
6211
6211
  }, F(e.styleJson.bottom || d.value[2] || "-"), 3),
6212
6212
  V("div", {
6213
6213
  class: X(["spacing-edit padding-left", { "is-setting": e.styleJson.left }]),
6214
- onClick: c[7] || (c[7] = (_) => m("left"))
6214
+ onClick: c[7] || (c[7] = (w) => m("left"))
6215
6215
  }, F(e.styleJson.left || d.value[3] || "-"), 3)
6216
6216
  ], 512),
6217
6217
  a.value ? (p(), y(Wn, {
@@ -6219,7 +6219,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
6219
6219
  auto: "",
6220
6220
  name: o.value,
6221
6221
  modelValue: r.value,
6222
- "onUpdate:modelValue": c[8] || (c[8] = (_) => r.value = _),
6222
+ "onUpdate:modelValue": c[8] || (c[8] = (w) => r.value = w),
6223
6223
  onClose: f,
6224
6224
  onSubmit: e.setStyle
6225
6225
  }, null, 8, ["name", "modelValue", "onSubmit"])) : A("", !0)
@@ -6319,14 +6319,14 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
6319
6319
  fit: !1,
6320
6320
  collapsable: ""
6321
6321
  }, {
6322
- default: b(() => [
6322
+ default: h(() => [
6323
6323
  v(n(fe), {
6324
6324
  class: "v-style-widget__texting",
6325
6325
  size: "small",
6326
6326
  "label-width": "60px",
6327
6327
  inline: ""
6328
6328
  }, {
6329
- default: b(() => [
6329
+ default: h(() => [
6330
6330
  (p(), j(O, null, W(t, (i) => v(n(M), {
6331
6331
  name: i.name,
6332
6332
  label: i.label,
@@ -6343,7 +6343,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
6343
6343
  size: "small",
6344
6344
  "label-width": "60px"
6345
6345
  }, {
6346
- default: b(() => [
6346
+ default: h(() => [
6347
6347
  v(n(M), {
6348
6348
  name: "color",
6349
6349
  label: "颜色",
@@ -6424,12 +6424,12 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
6424
6424
  fit: !1,
6425
6425
  collapsable: ""
6426
6426
  }, {
6427
- default: b(() => [
6427
+ default: h(() => [
6428
6428
  v(n(fe), {
6429
6429
  "label-width": "60px",
6430
6430
  size: "small"
6431
6431
  }, {
6432
- default: b(() => [
6432
+ default: h(() => [
6433
6433
  v(n(M), {
6434
6434
  name: "background-image",
6435
6435
  label: "图片",
@@ -6536,12 +6536,12 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
6536
6536
  fit: !1,
6537
6537
  collapsable: ""
6538
6538
  }, {
6539
- default: b(() => [
6539
+ default: h(() => [
6540
6540
  v(n(fe), {
6541
6541
  "label-width": "60px",
6542
6542
  size: "small"
6543
6543
  }, {
6544
- default: b(() => [
6544
+ default: h(() => [
6545
6545
  v(n(M), {
6546
6546
  name: "border-radius",
6547
6547
  label: "圆角",
@@ -6654,12 +6654,12 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
6654
6654
  fit: !1,
6655
6655
  collapsable: ""
6656
6656
  }, {
6657
- default: b(() => [
6657
+ default: h(() => [
6658
6658
  v(n(fe), {
6659
6659
  "label-width": "60px",
6660
6660
  size: "small"
6661
6661
  }, {
6662
- default: b(() => [
6662
+ default: h(() => [
6663
6663
  v(n(M), {
6664
6664
  name: "opacity",
6665
6665
  label: "透明度",
@@ -6717,7 +6717,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
6717
6717
  direction: "column",
6718
6718
  fit: ""
6719
6719
  }, {
6720
- default: b(() => [
6720
+ default: h(() => [
6721
6721
  (p(), y(Dr, {
6722
6722
  key: `Layout${l.value?.id}`,
6723
6723
  "style-json": s.value,
@@ -6774,7 +6774,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
6774
6774
  refresh: () => {
6775
6775
  s.value = Symbol();
6776
6776
  }
6777
- }), (f, h) => (p(), j("div", {
6777
+ }), (f, b) => (p(), j("div", {
6778
6778
  ref_key: "container",
6779
6779
  ref: l,
6780
6780
  class: "v-previewer",
@@ -6785,7 +6785,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
6785
6785
  width: n(r),
6786
6786
  height: n(i)
6787
6787
  }, {
6788
- default: b(() => [
6788
+ default: h(() => [
6789
6789
  g.value ? (p(), j("iframe", {
6790
6790
  key: 0,
6791
6791
  ref: "iframe",
@@ -6812,12 +6812,12 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
6812
6812
  class: "v-nodepath-widget",
6813
6813
  "separator-icon": n(ya)
6814
6814
  }, {
6815
- default: b(() => [
6815
+ default: h(() => [
6816
6816
  (p(!0), j(O, null, W(l.value, (i) => (p(), y(n(rl), {
6817
6817
  onClick: (g) => s(i),
6818
6818
  onMouseover: (g) => a(i)
6819
6819
  }, {
6820
- default: b(() => [
6820
+ default: h(() => [
6821
6821
  K(F(i.name), 1)
6822
6822
  ]),
6823
6823
  _: 2
@@ -6853,7 +6853,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
6853
6853
  save: "",
6854
6854
  onSave: a
6855
6855
  }, {
6856
- default: b(() => [
6856
+ default: h(() => [
6857
6857
  v(n(se), {
6858
6858
  ref_key: "editorRef",
6859
6859
  ref: t,
@@ -6891,7 +6891,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
6891
6891
  size: "small",
6892
6892
  fit: ""
6893
6893
  }, {
6894
- default: b(() => [
6894
+ default: h(() => [
6895
6895
  v(n(se), {
6896
6896
  ref_key: "editorRef",
6897
6897
  ref: l,
@@ -6934,7 +6934,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
6934
6934
  ref_key: "panel",
6935
6935
  ref: l
6936
6936
  }, {
6937
- default: b(() => [
6937
+ default: h(() => [
6938
6938
  (p(), j("iframe", {
6939
6939
  key: a.value,
6940
6940
  ref: "frame",
@@ -6968,7 +6968,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
6968
6968
  class: "v-project-config-widget",
6969
6969
  title: "项目配置"
6970
6970
  }, {
6971
- default: b(() => [
6971
+ default: h(() => [
6972
6972
  n(e) ? (p(), y(n(It), {
6973
6973
  key: 0,
6974
6974
  footer: !1,
@@ -6977,7 +6977,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
6977
6977
  model: n(e).config,
6978
6978
  onChange: t
6979
6979
  }, {
6980
- default: b(() => [
6980
+ default: h(() => [
6981
6981
  v(n(T), {
6982
6982
  label: "站点名称",
6983
6983
  name: "title"
@@ -7940,10 +7940,10 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
7940
7940
  "onUpdate:modelValue": g[0] || (g[0] = (d) => o.value = d),
7941
7941
  onChange: r
7942
7942
  }, {
7943
- prefix: b(() => [
7943
+ prefix: h(() => [
7944
7944
  K(F(Xi))
7945
7945
  ]),
7946
- suffix: b(() => [
7946
+ suffix: h(() => [
7947
7947
  K(F(Ki))
7948
7948
  ]),
7949
7949
  _: 1
@@ -7958,7 +7958,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
7958
7958
  setup(u) {
7959
7959
  const e = u;
7960
7960
  return (t, l) => (p(), y(n(ul), ie({ clearable: "" }, t.$attrs), {
7961
- default: b(() => [
7961
+ default: h(() => [
7962
7962
  (p(!0), j(O, null, W(e.options, (s) => (p(), y(n(cl), ie({
7963
7963
  key: s.label,
7964
7964
  ref_for: !0
@@ -8002,7 +8002,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
8002
8002
  const t = u, l = k(), s = k(
8003
8003
  typeof t.modelValue == "object" ? JSON.stringify(t.modelValue, null, 2) : void 0
8004
8004
  ), a = S(() => !!s.value), o = k(!1), r = e, i = (f) => {
8005
- let h = !0;
8005
+ let b = !0;
8006
8006
  try {
8007
8007
  const c = JSON.parse(f);
8008
8008
  if (t.type === "Array" && !Array.isArray(c))
@@ -8012,24 +8012,24 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
8012
8012
  if (typeof c != "object")
8013
8013
  throw new Error(`"${f}" is not a ${t.type}`);
8014
8014
  } catch (c) {
8015
- h = !1, Vt.error({
8015
+ b = !1, Vt.error({
8016
8016
  title: "代码错误",
8017
8017
  message: c?.message || c
8018
8018
  });
8019
8019
  }
8020
- return h;
8020
+ return b;
8021
8021
  }, g = () => {
8022
8022
  const f = l.value?.getEditor();
8023
8023
  if (f) {
8024
- const h = f.getValue();
8025
- i(h) && (s.value = h, r("change", JSON.parse(h)), o.value = !1);
8024
+ const b = f.getValue();
8025
+ i(b) && (s.value = b, r("change", JSON.parse(b)), o.value = !1);
8026
8026
  }
8027
8027
  }, d = () => {
8028
8028
  s.value = "", r("change", void 0), o.value = !1;
8029
8029
  }, m = () => {
8030
8030
  o.value = !0;
8031
8031
  };
8032
- return (f, h) => (p(), j("div", {
8032
+ return (f, b) => (p(), j("div", {
8033
8033
  class: X(["v-json-setter", { "is-active": a.value }])
8034
8034
  }, [
8035
8035
  v(n(_e), ie({
@@ -8041,7 +8041,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
8041
8041
  o.value ? (p(), y(n(Be), {
8042
8042
  key: 0,
8043
8043
  modelValue: o.value,
8044
- "onUpdate:modelValue": h[0] || (h[0] = (c) => o.value = c),
8044
+ "onUpdate:modelValue": b[0] || (b[0] = (c) => o.value = c),
8045
8045
  title: t.type,
8046
8046
  width: "1000px",
8047
8047
  height: "600px",
@@ -8051,19 +8051,19 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
8051
8051
  onSubmit: g,
8052
8052
  onClear: d
8053
8053
  }, {
8054
- extra: b(() => [
8054
+ extra: h(() => [
8055
8055
  v(n(ae), {
8056
8056
  type: "warning",
8057
8057
  onClick: d,
8058
8058
  size: "default"
8059
8059
  }, {
8060
- default: b(() => h[1] || (h[1] = [
8060
+ default: h(() => b[1] || (b[1] = [
8061
8061
  K(" 清除 ")
8062
8062
  ])),
8063
8063
  _: 1
8064
8064
  })
8065
8065
  ]),
8066
- default: b(() => [
8066
+ default: h(() => [
8067
8067
  v(n(se), {
8068
8068
  ref_key: "codeEditor",
8069
8069
  ref: l,
@@ -8091,11 +8091,11 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
8091
8091
  const t = u, l = k(), s = k(t.modelValue.value), a = k(!1), o = S(() => !!s.value), r = e, i = () => {
8092
8092
  const m = l.value?.getEditor();
8093
8093
  if (m) {
8094
- const f = m.getValue(), h = {
8094
+ const f = m.getValue(), b = {
8095
8095
  type: "JSFunction",
8096
8096
  value: f
8097
8097
  };
8098
- re(h, {}) && (s.value = f, r("change", h), a.value = !1);
8098
+ re(b, {}) && (s.value = f, r("change", b), a.value = !1);
8099
8099
  }
8100
8100
  }, g = () => {
8101
8101
  s.value = "", r("change", void 0), a.value = !1;
@@ -8114,7 +8114,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
8114
8114
  a.value ? (p(), y(n(Be), {
8115
8115
  key: 0,
8116
8116
  modelValue: a.value,
8117
- "onUpdate:modelValue": f[0] || (f[0] = (h) => a.value = h),
8117
+ "onUpdate:modelValue": f[0] || (f[0] = (b) => a.value = b),
8118
8118
  title: "JSFunction",
8119
8119
  width: "1000px",
8120
8120
  height: "600px",
@@ -8124,19 +8124,19 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
8124
8124
  onSubmit: i,
8125
8125
  onClear: g
8126
8126
  }, {
8127
- extra: b(() => [
8127
+ extra: h(() => [
8128
8128
  v(n(ae), {
8129
8129
  type: "warning",
8130
8130
  onClick: g,
8131
8131
  size: "default"
8132
8132
  }, {
8133
- default: b(() => f[1] || (f[1] = [
8133
+ default: h(() => f[1] || (f[1] = [
8134
8134
  K(" 清除 ")
8135
8135
  ])),
8136
8136
  _: 1
8137
8137
  })
8138
8138
  ]),
8139
- default: b(() => [
8139
+ default: h(() => [
8140
8140
  v(n(se), {
8141
8141
  ref_key: "codeEditor",
8142
8142
  ref: l,
@@ -8161,13 +8161,13 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
8161
8161
  class: "v-radio-setter",
8162
8162
  size: "small"
8163
8163
  }, t.$attrs), {
8164
- default: b(() => [
8164
+ default: h(() => [
8165
8165
  (p(!0), j(O, null, W(e.options, (s) => (p(), y(n(nt), {
8166
8166
  label: s.label,
8167
8167
  value: s.value,
8168
8168
  title: s.label
8169
8169
  }, {
8170
- default: b(() => [
8170
+ default: h(() => [
8171
8171
  s.svg ? (p(), y(n(Se), {
8172
8172
  key: 0,
8173
8173
  src: s.svg
@@ -8279,7 +8279,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
8279
8279
  "auto-upload": !0,
8280
8280
  "on-remove": r
8281
8281
  }, i.$attrs), {
8282
- default: b(() => [
8282
+ default: h(() => [
8283
8283
  V("span", ou, [
8284
8284
  v(n(Se), { icon: n(Ea) }, null, 8, ["icon"])
8285
8285
  ])
@@ -9035,8 +9035,8 @@ class _u {
9035
9035
  return !1;
9036
9036
  const r = s.assets.componentMap, i = t !== "inner" && e.parent || e, g = await s.assets.getBlockMaterial(i.from) || r.get(i.name);
9037
9037
  if (!g) return !1;
9038
- const { parentIncludes: d = !0, name: m } = l, { childIncludes: f = !0 } = g, h = d === !0 || Array.isArray(d) && d.includes(i.name), c = f === !0 || Array.isArray(f) && f.includes(m);
9039
- return h && c;
9038
+ const { parentIncludes: d = !0, name: m } = l, { childIncludes: f = !0 } = g, b = d === !0 || Array.isArray(d) && d.includes(i.name), c = f === !0 || Array.isArray(f) && f.includes(m);
9039
+ return b && c;
9040
9040
  }
9041
9041
  dispose() {
9042
9042
  const { contentWindow: e, document: t } = this;
@@ -9210,43 +9210,43 @@ class ku extends wn {
9210
9210
  this.renderer?.dispose(), this.renderer = null;
9211
9211
  const o = this.contentWindow, { assets: r, service: i, current: g, provider: d } = this.engine, m = d.materials || {}, f = [];
9212
9212
  for (const c of l) {
9213
- const _ = m[c] ? (await m[c]()).default : o[c];
9214
- f.push(_);
9213
+ const w = m[c] ? (await m[c]()).default : o[c];
9214
+ f.push(w);
9215
9215
  }
9216
9216
  r.load(f);
9217
- const h = this.createEnv(
9217
+ const b = this.createEnv(
9218
9218
  t,
9219
9219
  s,
9220
9220
  f,
9221
9221
  a
9222
9222
  );
9223
- this.devtools.init(o, this.engine), this.renderer = new wu(h, i, d, this.designer.value), g.value && (this.renderer.render(g.value), this.rendered.value = Symbol()), this.triggerReady();
9223
+ this.devtools.init(o, this.engine), this.renderer = new wu(b, i, d, this.designer.value), g.value && (this.renderer.render(g.value), this.rendered.value = Symbol()), this.triggerReady();
9224
9224
  }
9225
9225
  createEnv(t = [], l = {}, s = [], a = {}) {
9226
- const o = this.contentWindow, { engine: r } = this, { project: i, assets: g, provider: d } = r, m = t.reduce((I, z) => (I[z] = o[z], I), {}), f = {};
9227
- Object.entries(a).forEach(([I, z]) => {
9228
- f[I] = o[z];
9226
+ const o = this.contentWindow, { engine: r } = this, { project: i, assets: g, provider: d } = r, m = t.reduce((P, z) => (P[z] = o[z], P), {}), f = {};
9227
+ Object.entries(a).forEach(([P, z]) => {
9228
+ f[P] = o[z];
9229
9229
  });
9230
- const h = {}, { groups: c, componentMap: _ } = g;
9231
- for (const I of c.value) {
9232
- const z = I.names || [];
9233
- if (I.name === _t)
9230
+ const b = {}, { groups: c, componentMap: w } = g;
9231
+ for (const P of c.value) {
9232
+ const z = P.names || [];
9233
+ if (P.name === _t)
9234
9234
  z.forEach((R) => {
9235
- const P = _.get(R), B = P?.package || "", D = Pl[B], G = m[D];
9236
- G && P && (h[R] = Ht(P, G));
9235
+ const I = w.get(R), B = I?.package || "", D = Pl[B], G = m[D];
9236
+ G && I && (b[R] = Ht(I, G));
9237
9237
  });
9238
9238
  else {
9239
- const R = m[l[I.library || ""]];
9240
- R && z.forEach((P) => {
9241
- const B = _.get(P);
9242
- B ? h[P] = Ht(B, R) : h[P] = R[P];
9239
+ const R = m[l[P.library || ""]];
9240
+ R && z.forEach((I) => {
9241
+ const B = w.get(I);
9242
+ B ? b[I] = Ht(B, R) : b[I] = R[I];
9243
9243
  });
9244
9244
  }
9245
9245
  }
9246
- const { adapter: w, globals: x } = d, C = Hl(
9246
+ const { adapter: _, globals: x } = d, C = Hl(
9247
9247
  i.value?.apis,
9248
9248
  i.value?.meta,
9249
- w
9249
+ _
9250
9250
  );
9251
9251
  return Gl(), i.value?.config?.mock && Xl(i.value?.apis), {
9252
9252
  window: o,
@@ -9254,7 +9254,7 @@ class ku extends wn {
9254
9254
  VueRouter: o.VueRouter,
9255
9255
  library: m,
9256
9256
  materials: s,
9257
- components: h,
9257
+ components: b,
9258
9258
  container: o.document.body,
9259
9259
  apis: C,
9260
9260
  globals: x,
@@ -9296,9 +9296,9 @@ class Su {
9296
9296
  const { categories: s, components: a, label: o, name: r, library: i } = l;
9297
9297
  if (!s || !a)
9298
9298
  continue;
9299
- const g = a.filter((h) => !!h.package).map((h) => h.name), d = s.map(
9300
- (h) => this.getCateoryComponents(h, a)
9301
- ), m = d.reduce((h, c) => c.count + h, 0), f = {
9299
+ const g = a.filter((b) => !!b.package).map((b) => b.name), d = s.map(
9300
+ (b) => this.getCateoryComponents(b, a)
9301
+ ), m = d.reduce((b, c) => c.count + b, 0), f = {
9302
9302
  name: l.name,
9303
9303
  label: o || r,
9304
9304
  count: m,
@@ -9328,12 +9328,12 @@ class Su {
9328
9328
  l.name = t || l.name;
9329
9329
  const { id: s, name: a, slots: o, props: r, emits: i } = l, g = (m) => {
9330
9330
  const f = Array.isArray(m) ? m : [m];
9331
- let h = [];
9331
+ let b = [];
9332
9332
  for (const c of f)
9333
- h = h.concat(
9333
+ b = b.concat(
9334
9334
  Ne.getByType(c)
9335
9335
  );
9336
- return h;
9336
+ return b;
9337
9337
  }, d = {
9338
9338
  id: s,
9339
9339
  name: a,
@@ -9801,46 +9801,46 @@ const Ee = E({
9801
9801
  dirs: ["e"],
9802
9802
  maxWidth: 600,
9803
9803
  minWidth: 49,
9804
- onResizing(C, I) {
9805
- s.value = I.elementWidth.value;
9804
+ onResizing(C, P) {
9805
+ s.value = P.elementWidth.value;
9806
9806
  },
9807
- onEnd(C, I) {
9808
- s.value = I.elementWidth.value;
9807
+ onEnd(C, P) {
9808
+ s.value = P.elementWidth.value;
9809
9809
  }
9810
9810
  }, r = {
9811
9811
  dirs: ["w"],
9812
9812
  maxWidth: 600,
9813
9813
  minWidth: 2,
9814
- onResizing(C, I) {
9815
- a.value = I.elementWidth.value;
9814
+ onResizing(C, P) {
9815
+ a.value = P.elementWidth.value;
9816
9816
  },
9817
- onEnd(C, I) {
9818
- a.value = I.elementWidth.value;
9817
+ onEnd(C, P) {
9818
+ a.value = P.elementWidth.value;
9819
9819
  }
9820
- }, i = k(), g = k(), d = k(), m = k(), f = k(), h = k(), c = k(), _ = k(), w = k(!1), x = k(!1);
9820
+ }, i = k(), g = k(), d = k(), m = k(), f = k(), b = k(), c = k(), w = k(), _ = k(!1), x = k(!1);
9821
9821
  return e({
9822
9822
  brand: i,
9823
9823
  toolbar: g,
9824
9824
  actions: d,
9825
9825
  apps: m,
9826
9826
  workspace: f,
9827
- settings: h,
9827
+ settings: b,
9828
9828
  status: c,
9829
- collapsed: w,
9829
+ collapsed: _,
9830
9830
  settable: x,
9831
9831
  leftWidth: s,
9832
9832
  rightWidth: a,
9833
- preview: _,
9833
+ preview: w,
9834
9834
  isPreview: l
9835
- }), (C, I) => (p(), y(n(gl), { locale: n(yl) }, {
9836
- default: b(() => [
9835
+ }), (C, P) => (p(), y(n(gl), { locale: n(yl) }, {
9836
+ default: h(() => [
9837
9837
  v(n(Wt), { class: "v-skeleton" }, {
9838
- default: b(() => [
9838
+ default: h(() => [
9839
9839
  v(n(fl), {
9840
9840
  class: "v-skeleton__header",
9841
9841
  height: C.headerHeight
9842
9842
  }, {
9843
- default: b(() => [
9843
+ default: h(() => [
9844
9844
  v(n(Ee), {
9845
9845
  ref_key: "brand",
9846
9846
  ref: i,
@@ -9861,15 +9861,15 @@ const Ee = E({
9861
9861
  _: 1
9862
9862
  }, 8, ["height"]),
9863
9863
  v(n(Wt), { class: "v-skeleton__wrapper" }, {
9864
- default: b(() => [
9864
+ default: h(() => [
9865
9865
  l.value ? A("", !0) : De((p(), y(n(Nt), {
9866
9866
  key: 0,
9867
9867
  width: t.leftWidth,
9868
9868
  class: X(["v-skeleton__left", {
9869
- "is-collapsed": w.value
9869
+ "is-collapsed": _.value
9870
9870
  }])
9871
9871
  }, {
9872
- default: b(() => [
9872
+ default: h(() => [
9873
9873
  v(n(Ee), {
9874
9874
  ref_key: "apps",
9875
9875
  ref: m,
@@ -9881,11 +9881,11 @@ const Ee = E({
9881
9881
  [n(Jt), o]
9882
9882
  ]),
9883
9883
  v(n(hl), { class: "v-skeleton__main" }, {
9884
- default: b(() => [
9884
+ default: h(() => [
9885
9885
  l.value ? (p(), y(n(Ee), {
9886
9886
  key: 0,
9887
9887
  ref_key: "preview",
9888
- ref: _,
9888
+ ref: w,
9889
9889
  region: "Preview",
9890
9890
  preview: l.value
9891
9891
  }, null, 8, ["preview"])) : A("", !0),
@@ -9904,10 +9904,10 @@ const Ee = E({
9904
9904
  width: t.rightWidth,
9905
9905
  class: "v-skeleton__right"
9906
9906
  }, {
9907
- default: b(() => [
9907
+ default: h(() => [
9908
9908
  v(n(Ee), {
9909
9909
  ref_key: "settings",
9910
- ref: h,
9910
+ ref: b,
9911
9911
  region: "Settings"
9912
9912
  }, null, 512)
9913
9913
  ]),
@@ -9924,7 +9924,7 @@ const Ee = E({
9924
9924
  class: "v-skeleton__footer",
9925
9925
  height: C.footerHeight
9926
9926
  }, {
9927
- default: b(() => [
9927
+ default: h(() => [
9928
9928
  v(n(Ee), {
9929
9929
  ref_key: "status",
9930
9930
  ref: c,
@@ -9984,11 +9984,11 @@ const Ee = E({
9984
9984
  l("change", x);
9985
9985
  }, f = () => {
9986
9986
  l("remove", t.name);
9987
- }, h = () => {
9987
+ }, b = () => {
9988
9988
  s.value = !0, a.value = Ge(r.value) ? r.value.value : "";
9989
9989
  }, c = () => {
9990
9990
  s.value = !1, a.value = "";
9991
- }, _ = async (x) => re(x, t.context, !0) ? (g[o.value.name] = r.value, r.value = x, l("change", x), !0) : !1, w = async () => {
9991
+ }, w = async (x) => re(x, t.context, !0) ? (g[o.value.name] = r.value, r.value = x, l("change", x), !0) : !1, _ = async () => {
9992
9992
  await Fe("确定要解除绑定吗?") && (c(), r.value = void 0, l("change", void 0));
9993
9993
  };
9994
9994
  return (x, C) => (p(), y(n(hn), {
@@ -9996,13 +9996,13 @@ const Ee = E({
9996
9996
  size: "small",
9997
9997
  "label-positon": "left"
9998
9998
  }, {
9999
- label: b(() => [
9999
+ label: h(() => [
10000
10000
  t.title ? (p(), y(n(vn), {
10001
10001
  key: 0,
10002
10002
  placement: "top-start",
10003
10003
  content: t.title
10004
10004
  }, {
10005
- default: b(() => [
10005
+ default: h(() => [
10006
10006
  K(F(t.label || t.name), 1)
10007
10007
  ]),
10008
10008
  _: 1
@@ -10011,7 +10011,7 @@ const Ee = E({
10011
10011
  title: t.name
10012
10012
  }, F(t.label || t.name), 9, Vu))
10013
10013
  ]),
10014
- default: b(() => [
10014
+ default: h(() => [
10015
10015
  V("div", Au, [
10016
10016
  o.value ? (p(), j("div", ju, [
10017
10017
  i.value ? A("", !0) : (p(), y(sn(o.value.component), ie({
@@ -10021,7 +10021,7 @@ const Ee = E({
10021
10021
  }, o.value.props, {
10022
10022
  options: t.options,
10023
10023
  modelValue: r.value,
10024
- "onUpdate:modelValue": C[0] || (C[0] = (I) => r.value = I),
10024
+ "onUpdate:modelValue": C[0] || (C[0] = (P) => r.value = P),
10025
10025
  onChange: m,
10026
10026
  disabled: i.value
10027
10027
  }), null, 16, ["current", "context", "options", "modelValue", "disabled"])),
@@ -10031,10 +10031,10 @@ const Ee = E({
10031
10031
  disabled: "",
10032
10032
  "model-value": "JSExpression"
10033
10033
  }, {
10034
- prefix: b(() => [
10034
+ prefix: h(() => [
10035
10035
  K(F(Du))
10036
10036
  ]),
10037
- suffix: b(() => [
10037
+ suffix: h(() => [
10038
10038
  K(F(Pu))
10039
10039
  ]),
10040
10040
  _: 1
@@ -10043,7 +10043,7 @@ const Ee = E({
10043
10043
  V("div", Eu, [
10044
10044
  t.variable ? (p(), y(n(Pa), {
10045
10045
  key: 0,
10046
- onClick: h,
10046
+ onClick: b,
10047
10047
  class: X(["v-icon-vars", { "is-active": i.value }]),
10048
10048
  title: "绑定变量"
10049
10049
  }, null, 8, ["class"])) : A("", !0),
@@ -10054,20 +10054,20 @@ const Ee = E({
10054
10054
  "popper-class": "v-setter-switch",
10055
10055
  onCommand: d
10056
10056
  }, {
10057
- dropdown: b(() => [
10057
+ dropdown: h(() => [
10058
10058
  v(n(mn), null, {
10059
- default: b(() => [
10060
- (p(!0), j(O, null, W(t.setters, (I) => (p(), y(n(ht), {
10061
- command: I,
10062
- key: I.name
10059
+ default: h(() => [
10060
+ (p(!0), j(O, null, W(t.setters, (P) => (p(), y(n(ht), {
10061
+ command: P,
10062
+ key: P.name
10063
10063
  }, {
10064
- default: b(() => [
10064
+ default: h(() => [
10065
10065
  v(n(Vn), {
10066
10066
  class: X({
10067
- "is-placeholder": I.name !== o.value.name
10067
+ "is-placeholder": P.name !== o.value.name
10068
10068
  })
10069
10069
  }, null, 8, ["class"]),
10070
- K(" " + F(I.label), 1)
10070
+ K(" " + F(P.label), 1)
10071
10071
  ]),
10072
10072
  _: 2
10073
10073
  }, 1032, ["command"]))), 128))
@@ -10075,7 +10075,7 @@ const Ee = E({
10075
10075
  _: 1
10076
10076
  })
10077
10077
  ]),
10078
- default: b(() => [
10078
+ default: h(() => [
10079
10079
  v(n(Ia), { title: "切换设置器" })
10080
10080
  ]),
10081
10081
  _: 1
@@ -10093,9 +10093,9 @@ const Ee = E({
10093
10093
  context: t.context,
10094
10094
  value: a.value,
10095
10095
  modelValue: s.value,
10096
- "onUpdate:modelValue": C[1] || (C[1] = (I) => s.value = I),
10097
- submitMethod: _,
10098
- onUnbind: w
10096
+ "onUpdate:modelValue": C[1] || (C[1] = (P) => s.value = P),
10097
+ submitMethod: w,
10098
+ onUnbind: _
10099
10099
  }, null, 8, ["current", "context", "value", "modelValue"])) : A("", !0)
10100
10100
  ]),
10101
10101
  _: 1
@@ -10202,41 +10202,41 @@ const Ee = E({
10202
10202
  widgets: s,
10203
10203
  widgetsRef: a,
10204
10204
  setActive: (c) => {
10205
- const _ = o.value.find((w) => w.name === c);
10206
- g.value = _, d.value = _;
10205
+ const w = o.value.find((_) => _.name === c);
10206
+ g.value = w, d.value = w;
10207
10207
  }
10208
- }), (c, _) => (p(), j("div", Wu, [
10208
+ }), (c, w) => (p(), j("div", Wu, [
10209
10209
  V("div", Nu, [
10210
10210
  V("div", Ju, [
10211
- (p(!0), j(O, null, W(o.value, (w) => (p(), y(n(en), {
10212
- key: `icon-${w.name}`,
10213
- icon: w.icon,
10214
- label: w.label,
10215
- active: g.value?.name === w.name,
10216
- open: d.value?.name === w.name,
10217
- onClick: (x) => m(w)
10211
+ (p(!0), j(O, null, W(o.value, (_) => (p(), y(n(en), {
10212
+ key: `icon-${_.name}`,
10213
+ icon: _.icon,
10214
+ label: _.label,
10215
+ active: g.value?.name === _.name,
10216
+ open: d.value?.name === _.name,
10217
+ onClick: (x) => m(_)
10218
10218
  }, null, 8, ["icon", "label", "active", "open", "onClick"]))), 128))
10219
10219
  ]),
10220
10220
  V("div", Mu, [
10221
- (p(!0), j(O, null, W(r.value, (w) => (p(), y(n(en), {
10222
- key: `icon-${w.name}`,
10223
- icon: w.icon,
10224
- label: w.label,
10225
- onClick: (x) => f(w)
10221
+ (p(!0), j(O, null, W(r.value, (_) => (p(), y(n(en), {
10222
+ key: `icon-${_.name}`,
10223
+ icon: _.icon,
10224
+ label: _.label,
10225
+ onClick: (x) => f(_)
10226
10226
  }, null, 8, ["icon", "label", "onClick"]))), 128))
10227
10227
  ])
10228
10228
  ]),
10229
10229
  V("div", Uu, [
10230
- (p(!0), j(O, null, W(o.value, (w) => (p(), y(cn, {
10231
- key: w.name
10230
+ (p(!0), j(O, null, W(o.value, (_) => (p(), y(cn, {
10231
+ key: _.name
10232
10232
  }, [
10233
- g.value?.name === w.name ? (p(), y(n(Ie), {
10233
+ g.value?.name === _.name ? (p(), y(n(Ie), {
10234
10234
  key: 0,
10235
10235
  ref_for: !0,
10236
10236
  ref_key: "widgetsRef",
10237
10237
  ref: a,
10238
10238
  region: c.region,
10239
- widget: w
10239
+ widget: _
10240
10240
  }, null, 8, ["region", "widget"])) : A("", !0)
10241
10241
  ], 1024))), 128))
10242
10242
  ])
@@ -10262,22 +10262,22 @@ const Ee = E({
10262
10262
  ), o = S(() => a?.filter((c) => !c.closable || c.checked)), r = S(() => a.map((c) => ({
10263
10263
  ...c,
10264
10264
  disabled: !c.closable
10265
- }))), i = k(o.value[0]?.name), g = S(() => a.find((_) => _.name === i.value)?.props || {}), d = (c) => {
10266
- const _ = a.find((w) => w.name === c);
10267
- _ && (_.checked = !1), i.value === c && (i.value = o.value[0]?.name);
10265
+ }))), i = k(o.value[0]?.name), g = S(() => a.find((w) => w.name === i.value)?.props || {}), d = (c) => {
10266
+ const w = a.find((_) => _.name === c);
10267
+ w && (w.checked = !1), i.value === c && (i.value = o.value[0]?.name);
10268
10268
  }, m = (c) => {
10269
- const _ = a.find((w) => w.name === c.name);
10270
- _ && _.closable && (_.checked = !_.checked, _.checked && (i.value = _.name), !_.checked && i.value === _.name && (i.value = o.value[0]?.name));
10271
- }, f = (c, _ = {}) => {
10272
- const w = a.find((x) => x.name === c);
10273
- w && (w.props = Object.assign({}, w.props, _), w.checked = !0, i.value = w.name);
10274
- }, h = (c) => {
10269
+ const w = a.find((_) => _.name === c.name);
10270
+ w && w.closable && (w.checked = !w.checked, w.checked && (i.value = w.name), !w.checked && i.value === w.name && (i.value = o.value[0]?.name));
10271
+ }, f = (c, w = {}) => {
10272
+ const _ = a.find((x) => x.name === c);
10273
+ _ && (_.props = Object.assign({}, _.props, w), _.checked = !0, i.value = _.name);
10274
+ }, b = (c) => {
10275
10275
  if (s.value) {
10276
- const _ = s.value[0]?.widgetRef;
10277
- if (!_) return;
10276
+ const w = s.value[0]?.widgetRef;
10277
+ if (!w) return;
10278
10278
  switch (c.name) {
10279
10279
  case "home":
10280
- _.refresh();
10280
+ w.refresh();
10281
10281
  break;
10282
10282
  }
10283
10283
  }
@@ -10287,28 +10287,28 @@ const Ee = E({
10287
10287
  widgets: l,
10288
10288
  widgetsRef: s,
10289
10289
  openTab: f
10290
- }), (c, _) => (p(), y(n(ct), {
10290
+ }), (c, w) => (p(), y(n(ct), {
10291
10291
  class: "v-workspace-region",
10292
10292
  items: o.value,
10293
10293
  menus: r.value,
10294
10294
  modelValue: i.value,
10295
- "onUpdate:modelValue": _[0] || (_[0] = (w) => i.value = w),
10295
+ "onUpdate:modelValue": w[0] || (w[0] = (_) => i.value = _),
10296
10296
  checkable: "",
10297
10297
  onRemove: d,
10298
10298
  onCommand: m,
10299
- onActionClick: h
10299
+ onActionClick: b
10300
10300
  }, {
10301
- default: b(() => [
10302
- (p(!0), j(O, null, W(n(l), (w) => (p(), j(O, {
10303
- key: w.name
10301
+ default: h(() => [
10302
+ (p(!0), j(O, null, W(n(l), (_) => (p(), j(O, {
10303
+ key: _.name
10304
10304
  }, [
10305
- i.value === w.name ? (p(), y(n(Ie), {
10305
+ i.value === _.name ? (p(), y(n(Ie), {
10306
10306
  key: 0,
10307
10307
  ref_for: !0,
10308
10308
  ref_key: "widgetsRef",
10309
10309
  ref: s,
10310
10310
  region: c.region,
10311
- widget: { ...w, props: g.value }
10311
+ widget: { ..._, props: g.value }
10312
10312
  }, null, 8, ["region", "widget"])) : A("", !0)
10313
10313
  ], 64))), 128))
10314
10314
  ]),
@@ -10324,22 +10324,22 @@ const Ee = E({
10324
10324
  setup(u, { expose: e }) {
10325
10325
  const t = u, l = de(), { current: s } = ue(), { selected: a, isSelectBlock: o } = xe(), r = S(
10326
10326
  () => o.value ? he.Block : he.Node
10327
- ), { widgets: i, widgetsRef: g } = Pe(t.region, r), d = k(), m = k(!1), f = S(() => i.value.map((w) => ({
10328
- name: w.name,
10329
- label: w.label,
10330
- actions: w.name === "Style" ? [
10327
+ ), { widgets: i, widgetsRef: g } = Pe(t.region, r), d = k(), m = k(!1), f = S(() => i.value.map((_) => ({
10328
+ name: _.name,
10329
+ label: _.label,
10330
+ actions: _.name === "Style" ? [
10331
10331
  {
10332
10332
  name: "switch",
10333
10333
  icon: Ta,
10334
10334
  background: "hover"
10335
10335
  }
10336
10336
  ] : void 0
10337
- }))), h = S(() => {
10338
- const w = a.value?.model;
10339
- return w ? l.assets.componentMap.get(w.name)?.doc : null;
10337
+ }))), b = S(() => {
10338
+ const _ = a.value?.model;
10339
+ return _ ? l.assets.componentMap.get(_.name)?.doc : null;
10340
10340
  });
10341
- J(s, (w) => {
10342
- l.skeleton?.settable(!!w);
10341
+ J(s, (_) => {
10342
+ l.skeleton?.settable(!!_);
10343
10343
  }), J(
10344
10344
  r,
10345
10345
  () => {
@@ -10350,25 +10350,25 @@ const Ee = E({
10350
10350
  m.value = !1;
10351
10351
  });
10352
10352
  const c = () => {
10353
- if (h.value) {
10354
- const w = l.skeleton?.getRegion("Workspace");
10355
- w && w.regionRef.openTab("Docs", {
10356
- url: h.value
10353
+ if (b.value) {
10354
+ const _ = l.skeleton?.getRegion("Workspace");
10355
+ _ && _.regionRef.openTab("Docs", {
10356
+ url: b.value
10357
10357
  });
10358
10358
  }
10359
- }, _ = (w) => {
10360
- w.name === "switch" && (m.value = !m.value);
10359
+ }, w = (_) => {
10360
+ _.name === "switch" && (m.value = !m.value);
10361
10361
  };
10362
10362
  return e({
10363
10363
  widgets: i,
10364
10364
  widgetsRef: g
10365
- }), (w, x) => n(s) ? (p(), y(n(U), {
10365
+ }), (_, x) => n(s) ? (p(), y(n(U), {
10366
10366
  key: 0,
10367
10367
  class: "v-settings-region",
10368
10368
  fit: "",
10369
10369
  direction: "column"
10370
10370
  }, {
10371
- default: b(() => [
10371
+ default: h(() => [
10372
10372
  n(a) ? (p(), y(n(U), {
10373
10373
  key: 0,
10374
10374
  flex: "",
@@ -10376,9 +10376,9 @@ const Ee = E({
10376
10376
  align: "center",
10377
10377
  class: "v-settings-region__header"
10378
10378
  }, {
10379
- default: b(() => [
10379
+ default: h(() => [
10380
10380
  v(n(U), { class: "v-settings-region__title" }, {
10381
- default: b(() => [
10381
+ default: h(() => [
10382
10382
  v(n(In)),
10383
10383
  V("span", null, [
10384
10384
  K(F(n(a)?.model.name) + ": ", 1),
@@ -10387,8 +10387,8 @@ const Ee = E({
10387
10387
  ]),
10388
10388
  _: 1
10389
10389
  }),
10390
- h.value ? (p(), y(n(U), { key: 0 }, {
10391
- default: b(() => [
10390
+ b.value ? (p(), y(n(U), { key: 0 }, {
10391
+ default: h(() => [
10392
10392
  v(n(be), {
10393
10393
  onClick: c,
10394
10394
  icon: n(Pn),
@@ -10406,16 +10406,16 @@ const Ee = E({
10406
10406
  grow: "",
10407
10407
  padding: !1
10408
10408
  }, {
10409
- default: b(() => [
10409
+ default: h(() => [
10410
10410
  v(n(ct), {
10411
10411
  items: f.value,
10412
10412
  modelValue: d.value,
10413
10413
  "onUpdate:modelValue": x[0] || (x[0] = (C) => d.value = C),
10414
10414
  stretch: "",
10415
10415
  body: { padding: !1 },
10416
- onActionClick: _
10416
+ onActionClick: w
10417
10417
  }, {
10418
- default: b(() => [
10418
+ default: h(() => [
10419
10419
  (p(!0), j(O, null, W(n(i), (C) => (p(), j(O, {
10420
10420
  key: C.name
10421
10421
  }, [
@@ -10424,7 +10424,7 @@ const Ee = E({
10424
10424
  ref_for: !0,
10425
10425
  ref_key: "widgetsRef",
10426
10426
  ref: g,
10427
- region: w.region,
10427
+ region: _.region,
10428
10428
  widget: n(Bt)({ props: { isStyleCodeMode: m.value } }, C)
10429
10429
  }, null, 8, ["region", "widget"])) : A("", !0)
10430
10430
  ], 64))), 128))
@@ -10495,7 +10495,7 @@ const Ee = E({
10495
10495
  modelValue: r.value,
10496
10496
  "onUpdate:modelValue": g[0] || (g[0] = (d) => r.value = d)
10497
10497
  }, {
10498
- default: b(() => [
10498
+ default: h(() => [
10499
10499
  (p(!0), j(O, null, W(n(l), (d) => (p(), y(cn, {
10500
10500
  key: d.name
10501
10501
  }, [