@vtj/designer 0.7.19 → 0.7.21

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,4 +1,4 @@
1
- import { defineComponent as E, openBlock as c, createElementBlock as $, toDisplayString as B, computed as S, unref as t, ref as k, reactive as Oe, watchEffect as kn, watch as H, toValue as st, createVNode as p, withCtx as f, createElementVNode as x, createBlock as b, createCommentVNode as I, createTextVNode as q, Fragment as P, renderList as z, normalizeClass as W, resolveDynamicComponent as Tt, createSlots as Sn, withDirectives as je, vShow as De, renderSlot as ye, withModifiers as ze, toRaw as xn, isRef as at, mergeProps as re, normalizeStyle as Le, nextTick as $e, defineAsyncComponent as Cn, h as Pe, normalizeProps as Jt, guardReactiveProps as Ft, withKeys as Ue, onMounted as Ot, onUnmounted as Nt, createApp as Mt, shallowRef as ot, shallowReactive as Vn, triggerRef as Ce, inject as $n, markRaw as xt, KeepAlive as Wt } from "vue";
1
+ import { defineComponent as $, openBlock as c, createElementBlock as V, toDisplayString as B, computed as S, unref as t, ref as k, reactive as Oe, watchEffect as kn, watch as H, toValue as st, createVNode as p, withCtx as f, createElementVNode as x, createBlock as b, createCommentVNode as E, createTextVNode as q, Fragment as P, renderList as z, normalizeClass as W, resolveDynamicComponent as Tt, createSlots as Sn, withDirectives as je, vShow as De, renderSlot as ye, withModifiers as ze, toRaw as xn, isRef as at, mergeProps as re, normalizeStyle as Le, nextTick as $e, defineAsyncComponent as Cn, h as Pe, normalizeProps as Jt, guardReactiveProps as Ft, withKeys as Ue, onMounted as Ot, onUnmounted as Nt, createApp as Mt, shallowRef as ot, shallowReactive as Vn, triggerRef as Ce, inject as $n, markRaw as xt, KeepAlive as Wt } from "vue";
2
2
  import { ElNotification as Ke, ElMessageBox as ft, ElMessage as Ze, ElButton as ce, ElDivider as ht, ElRadioGroup as Lt, ElRadioButton as He, ElButtonGroup as En, ElDropdown as Ut, ElDropdownMenu as Ht, ElDropdownItem as rt, ElInput as _e, ElEmpty as le, ElTooltip as qt, ElTag as In, ElSwitch as Gt, ElTree as bt, ElAlert as jn, ElRow as it, ElCol as ut, ElCollapse as An, ElCollapseItem as Dn, ElForm as me, ElDrawer as Pn, ElFormItem as Kt, ElBreadcrumb as Rn, ElBreadcrumbItem as Bn, ElLoading as zn, ElSelect as Tn, ElOption as Jn, ElInputNumber as Fn, ElColorPicker as On, ElUpload as Nn, ElSlider as Mn, ElConfigProvider as Wn, ElContainer as Ct, ElHeader as Ln, ElAside as Vt, ElMain as Un, ElFooter as Hn } from "element-plus";
3
3
  import qn from "element-plus/es/locale/lang/zh-cn";
4
4
  import { XIcon as we, XDialog as Ne, XDialogForm as he, XField as D, XPanel as yt, XAction as fe, XTabs as Zt, XContainer as M, XForm as Gn, XActionBar as Kn, XInputUnit as Qt, vResizable as $t, createDialog as Zn } from "@vtj/ui";
@@ -11,10 +11,10 @@ import { useClipboard as sa, useElementSize as Fe, onClickOutside as aa } from "
11
11
  * Copyright (c) 2024, VTJ.PRO All rights reserved.
12
12
  * @name @vtj/designer
13
13
  * @author CHC chenhuachun1549@dingtalk.com
14
- * @version 0.7.19
14
+ * @version 0.7.21
15
15
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
16
16
  */
17
- const oa = "0.7.19", Dt = {
17
+ const oa = "0.7.21", Dt = {
18
18
  width: 390,
19
19
  height: 844
20
20
  }, Pt = {
@@ -45,7 +45,7 @@ const oa = "0.7.19", Dt = {
45
45
  "passive"
46
46
  ];
47
47
  var ve = /* @__PURE__ */ ((u) => (u.Block = "block", u.Node = "node", u))(ve || {}), da = /* @__PURE__ */ ((u) => (u.Brand = "Brand", u.Toolbar = "Toolbar", u.Actions = "Actions", u.Apps = "Apps", u.Workspace = "Workspace", u.Settings = "Settings", u.Status = "Status", u.Preview = "Preview", u))(da || {});
48
- const kt = "data:image/png;base64,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", pa = ["title", "src"], ma = { key: 1 }, va = /* @__PURE__ */ E({
48
+ const kt = "data:image/png;base64,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", pa = ["title", "src"], ma = { key: 1 }, va = /* @__PURE__ */ $({
49
49
  name: "LogoWidget",
50
50
  inheritAttrs: !1,
51
51
  __name: "index",
@@ -58,30 +58,31 @@ const kt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAA
58
58
  const e = u, n = () => {
59
59
  e.link && (location.href = e.link);
60
60
  };
61
- return (l, s) => (c(), $("div", {
61
+ return (l, s) => (c(), V("div", {
62
62
  class: "v-logo-widget",
63
63
  onClick: n
64
64
  }, [
65
- e.icon ? (c(), $("img", {
65
+ e.icon ? (c(), V("img", {
66
66
  key: 0,
67
67
  title: e.text,
68
68
  class: "v-logo-widget__icon",
69
69
  src: e.icon
70
- }, null, 8, pa)) : (c(), $("span", ma, B(e.text), 1))
70
+ }, null, 8, pa)) : (c(), V("span", ma, B(e.text), 1))
71
71
  ]));
72
72
  }
73
- }), ga = { class: "v-empty-widget" }, fa = /* @__PURE__ */ E({
73
+ }), ga = { class: "v-empty-widget" }, fa = /* @__PURE__ */ $({
74
74
  name: "EmptyWidget",
75
75
  __name: "index",
76
76
  setup(u) {
77
- return (e, n) => (c(), $("div", ga, "EmptyWidget"));
77
+ return (e, n) => (c(), V("div", ga, "EmptyWidget"));
78
78
  }
79
79
  });
80
80
  function mn() {
81
- const u = ie(), e = S(() => u.project.value?.dependencies ?? []);
81
+ const u = ie(), e = S(() => u.project.value?.dependencies ?? []), n = S(() => u.project.value?.apis ?? []);
82
82
  return {
83
83
  engine: u,
84
- dependencies: e
84
+ dependencies: e,
85
+ apis: n
85
86
  };
86
87
  }
87
88
  function Ee(u, e) {
@@ -119,7 +120,7 @@ function ya() {
119
120
  label: `${g.label} (${g.count})`,
120
121
  name: g.name,
121
122
  disabled: !g.children?.length
122
- })) : []), a = k(r.value[0]?.name), i = k(""), v = S(() => o.value[a.value]);
123
+ })) : []), a = k(r.value[0]?.name), i = k(""), m = S(() => o.value[a.value]);
123
124
  kn(() => {
124
125
  const g = r.value.reduce(
125
126
  (y, h) => (y[h.name] = ba(
@@ -129,7 +130,7 @@ function ya() {
129
130
  );
130
131
  Object.assign(s, g);
131
132
  });
132
- const m = S(() => {
133
+ const v = S(() => {
133
134
  const g = i.value.toLowerCase();
134
135
  return !g || !e ? [] : e.filter((y) => y.name.toLowerCase().includes(g) || y.label?.toLowerCase().includes(g));
135
136
  });
@@ -141,13 +142,13 @@ function ya() {
141
142
  tabs: r,
142
143
  model: s,
143
144
  currentTab: a,
144
- currentGroup: v,
145
+ currentGroup: m,
145
146
  searchKey: i,
146
- searchResult: m
147
+ searchResult: v
147
148
  };
148
149
  }
149
150
  function oe() {
150
- const u = ie(), e = S(() => u.current.value), n = S(() => u.context.value), l = S(() => u.isEmptyCurrent.value);
151
+ const u = ie(), e = S(() => u.current.value), n = S(() => u.simulator.renderer?.context ?? null), l = S(() => u.isEmptyCurrent.value);
151
152
  return {
152
153
  engine: u,
153
154
  current: e,
@@ -155,23 +156,23 @@ function oe() {
155
156
  context: n
156
157
  };
157
158
  }
158
- function _a(u, e) {
159
- const n = ie();
160
- n.simulator.init(u, e);
161
- const l = S(() => n.simulator.designer.value), s = S(
162
- () => nt("hover", l.value?.hover.value)
163
- ), o = S(
164
- () => nt("dropping", l.value?.dropping.value)
159
+ function _a(u, e, n) {
160
+ const l = ie();
161
+ l.simulator.init(u, e, n);
162
+ const s = S(() => l.simulator.designer.value), o = S(
163
+ () => nt("hover", s.value?.hover.value)
165
164
  ), r = S(
166
- () => nt("selected", l.value?.selected.value)
165
+ () => nt("dropping", s.value?.dropping.value)
166
+ ), a = S(
167
+ () => nt("selected", s.value?.selected.value)
167
168
  );
168
- return H(n.changed, () => {
169
- l.value?.updateRect();
169
+ return H(l.changed, () => {
170
+ s.value?.updateRect();
170
171
  }), {
171
- designer: l,
172
- dropping: o,
173
- hover: s,
174
- selected: r
172
+ designer: s,
173
+ dropping: r,
174
+ hover: o,
175
+ selected: a
175
176
  };
176
177
  }
177
178
  function wa(u, e = !0) {
@@ -228,46 +229,46 @@ function be() {
228
229
  }
229
230
  function Sa(u, e) {
230
231
  const n = k(""), { selected: l, isSelectBlock: s } = be(), o = S(() => l.value?.model.id), r = S(() => {
231
- const i = st(u), v = st(e), m = [];
232
+ const i = st(u), m = st(e), v = [];
232
233
  if (!i)
233
- return m;
234
- const g = v?.__contextRefs[o.value || ""], h = v === g || s.value ? [] : Object.keys(g?.context || {}).filter((j) => !["context", "ref"].includes(j)).map((j) => `this.context.${j}`);
235
- h.length && m.push({ title: "上下文", items: h });
236
- const d = i.inject.map((j) => `this.${j.name}`);
237
- d.length && m.push({ title: "注入", items: d });
234
+ return v;
235
+ const g = m?.__contextRefs[o.value || ""], h = m === g || s.value ? [] : Object.keys(g?.context || {}).filter((A) => !["context", "ref"].includes(A)).map((A) => `this.context.${A}`);
236
+ h.length && v.push({ title: "上下文", items: h });
237
+ const d = i.inject.map((A) => `this.${A.name}`);
238
+ d.length && v.push({ title: "注入", items: d });
238
239
  const _ = i.props.map(
239
- (j) => typeof j == "string" ? `this.$props.${j}` : `this.$props.${j.name}`
240
+ (A) => typeof A == "string" ? `this.$props.${A}` : `this.$props.${A.name}`
240
241
  );
241
- _.length && m.push({ title: "属性", items: _ });
242
- const w = Object.keys(i.state).map((j) => `this.state.${j}`);
243
- w.length && m.push({ title: "状态", items: w });
242
+ _.length && v.push({ title: "属性", items: _ });
243
+ const w = Object.keys(i.state).map((A) => `this.state.${A}`);
244
+ w.length && v.push({ title: "状态", items: w });
244
245
  const C = Object.keys(i.computed).map(
245
- (j) => `this.${j}.value`
246
+ (A) => `this.${A}.value`
246
247
  );
247
- C.length && m.push({ title: "计算属性", items: C });
248
- const V = Object.keys(i.methods).map((j) => `this.${j}`);
249
- V.length && m.push({ title: "方法", items: V });
250
- const A = Object.keys(i.dataSources).map(
251
- (j) => `this.${j}`
248
+ C.length && v.push({ title: "计算属性", items: C });
249
+ const I = Object.keys(i.methods).map((A) => `this.${A}`);
250
+ I.length && v.push({ title: "方法", items: I });
251
+ const j = Object.keys(i.dataSources).map(
252
+ (A) => `this.${A}`
252
253
  );
253
- A.length && m.push({ title: "数据源", items: A });
254
- const O = Object.keys(v?.$refs || {}).map(
255
- (j) => `this.$refs.${j}`
254
+ j.length && v.push({ title: "数据源", items: j });
255
+ const T = Object.keys(m?.$refs || {}).map(
256
+ (A) => `this.$refs.${A}`
256
257
  );
257
- return O.length && m.push({ title: "refs", items: O }), m;
258
+ return T.length && v.push({ title: "refs", items: T }), v;
258
259
  }), a = S(() => {
259
260
  if (!n.value)
260
261
  return r.value;
261
- const i = n.value.toLowerCase(), v = [];
262
- return r.value.forEach((m) => {
263
- const g = m.items.filter(
262
+ const i = n.value.toLowerCase(), m = [];
263
+ return r.value.forEach((v) => {
264
+ const g = v.items.filter(
264
265
  (y) => y.toLowerCase().includes(i)
265
266
  );
266
- g.length && v.push({
267
- title: m.title,
267
+ g.length && m.push({
268
+ title: v.title,
268
269
  items: g
269
270
  });
270
- }), v;
271
+ }), m;
271
272
  });
272
273
  return {
273
274
  keyword: n,
@@ -389,8 +390,8 @@ function gn() {
389
390
  e.value?.cleanHelper(), n.value?.forward();
390
391
  }, o = () => {
391
392
  n.value?.backward(), e.value?.cleanHelper();
392
- }, r = (v) => {
393
- e.value?.cleanHelper(), n.value?.load(v), ue("已载入历史记录", "success");
393
+ }, r = (m) => {
394
+ e.value?.cleanHelper(), n.value?.load(m), ue("已载入历史记录", "success");
394
395
  }, a = S(() => l.value <= 1 ? !0 : (n.value?.index || -1) <= 0), i = S(() => l.value <= 1 ? !0 : (n.value?.index || -1) >= l.value - 1);
395
396
  return {
396
397
  engine: u,
@@ -438,11 +439,11 @@ function Ca(u) {
438
439
  if (!n.value || Q(n.value))
439
440
  return [];
440
441
  const a = n.value.events || {};
441
- return (l.value?.events || e.assets.componentMap.get(n.value.name)?.events || []).map((v) => {
442
- const m = typeof v == "string" ? v : v.name;
442
+ return (l.value?.events || e.assets.componentMap.get(n.value.name)?.events || []).map((m) => {
443
+ const v = typeof m == "string" ? m : m.name;
443
444
  return {
444
- name: m,
445
- event: a[m]
445
+ name: v,
446
+ event: a[v]
446
447
  };
447
448
  });
448
449
  });
@@ -482,7 +483,7 @@ function Ea(u) {
482
483
  return (d ? $a(d) : []).map((w) => (n.value?.directives || []).find(
483
484
  (C) => C.name === "vModel" && C.arg == w.name
484
485
  ) || Va(w.name));
485
- }), o = l("vIf"), r = l("vShow"), a = l("vBind"), i = l("vFor"), v = s(), m = {
486
+ }), o = l("vIf"), r = l("vShow"), a = l("vBind"), i = l("vFor"), m = s(), v = {
486
487
  vIf: o,
487
488
  vShow: r,
488
489
  vBind: a,
@@ -495,9 +496,9 @@ function Ea(u) {
495
496
  vShow: r,
496
497
  vBind: a,
497
498
  vFor: i,
498
- vModels: v,
499
+ vModels: m,
499
500
  onValueChange: (d, _) => {
500
- const w = m[d];
501
+ const w = v[d];
501
502
  n.value && (_ ? (w.value.value = _, n.value.setDirective(w.value)) : (w.value.value = void 0, n.value.removeDirective(w.value)));
502
503
  },
503
504
  onForChange: (d, _) => {
@@ -515,7 +516,7 @@ function Ea(u) {
515
516
  onModelChange: (d, _) => {
516
517
  if (!n.value)
517
518
  return;
518
- const w = parseInt(d), C = v.value[w];
519
+ const w = parseInt(d), C = m.value[w];
519
520
  C && (_ ? (C.value = _, n.value.setDirective(C)) : (C.value = void 0, n.value.removeDirective(C)));
520
521
  }
521
522
  };
@@ -528,7 +529,7 @@ function Ia() {
528
529
  apis: n
529
530
  };
530
531
  }
531
- const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */ E({
532
+ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */ $({
532
533
  name: "SwitcherWidget",
533
534
  inheritAttrs: !1,
534
535
  __name: "index",
@@ -537,7 +538,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
537
538
  const n = e, { engine: l } = oe(), s = S(() => l.project.value?.name), o = S(() => l.project.value?.currentFile?.title), r = () => {
538
539
  n("click", l.project.value);
539
540
  };
540
- return (a, i) => (c(), $("div", ja, [
541
+ return (a, i) => (c(), V("div", ja, [
541
542
  p(t(ce), {
542
543
  size: "small",
543
544
  round: "",
@@ -549,14 +550,14 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
549
550
  o.value ? (c(), b(t(ht), {
550
551
  key: 0,
551
552
  direction: "vertical"
552
- })) : I("", !0),
553
- o.value ? (c(), $("span", Aa, B(o.value), 1)) : I("", !0)
553
+ })) : E("", !0),
554
+ o.value ? (c(), V("span", Aa, B(o.value), 1)) : E("", !0)
554
555
  ]),
555
556
  _: 1
556
557
  })
557
558
  ]));
558
559
  }
559
- }), Pa = { class: "v-toolbar-widget" }, Ra = /* @__PURE__ */ E({
560
+ }), Pa = { class: "v-toolbar-widget" }, Ra = /* @__PURE__ */ $({
560
561
  name: "ToolbarWidget",
561
562
  inheritAttrs: !1,
562
563
  __name: "index",
@@ -567,11 +568,11 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
567
568
  const n = u, { forward: l, backward: s, forwardDisabled: o, backwardDisabled: r } = gn(), a = k("pc");
568
569
  return e({
569
570
  mode: a
570
- }), (i, v) => (c(), $("div", Pa, [
571
+ }), (i, m) => (c(), V("div", Pa, [
571
572
  p(t(Lt), {
572
573
  size: "small",
573
574
  modelValue: a.value,
574
- "onUpdate:modelValue": v[0] || (v[0] = (m) => a.value = m)
575
+ "onUpdate:modelValue": m[0] || (m[0] = (v) => a.value = v)
575
576
  }, {
576
577
  default: f(() => [
577
578
  p(t(He), { label: "pc" }, {
@@ -595,7 +596,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
595
596
  ]),
596
597
  _: 1
597
598
  }, 8, ["modelValue"]),
598
- I("", !0),
599
+ E("", !0),
599
600
  p(t(En), null, {
600
601
  default: f(() => [
601
602
  p(t(ce), {
@@ -625,7 +626,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
625
626
  })
626
627
  ]));
627
628
  }
628
- }), Ba = { class: "v-actions-widget" }, za = /* @__PURE__ */ x("span", null, "发布", -1), Ta = /* @__PURE__ */ E({
629
+ }), Ba = { class: "v-actions-widget" }, za = /* @__PURE__ */ x("span", null, "发布", -1), Ta = /* @__PURE__ */ $({
629
630
  name: "ActionsWidget",
630
631
  inheritAttrs: !1,
631
632
  __name: "index",
@@ -648,15 +649,15 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
648
649
  } else
649
650
  ue("请先打开文件", "warning");
650
651
  }, a = () => {
651
- const v = e.project.value;
652
- v && (v.currentFile ? v.publish(v.currentFile) : ue("请先打开文件", "warning"));
653
- }, i = (v) => {
654
652
  const m = e.project.value;
655
- m && (v === "current" ? a() : m.publish());
653
+ m && (m.currentFile ? m.publish(m.currentFile) : ue("请先打开文件", "warning"));
654
+ }, i = (m) => {
655
+ const v = e.project.value;
656
+ v && (m === "current" ? a() : v.publish());
656
657
  };
657
- return (v, m) => (c(), $("div", Ba, [
658
- I("", !0),
659
- I("", !0),
658
+ return (m, v) => (c(), V("div", Ba, [
659
+ E("", !0),
660
+ E("", !0),
660
661
  p(t(ce), {
661
662
  onClick: r,
662
663
  type: l.value ? "warning" : "default",
@@ -724,7 +725,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
724
725
  })
725
726
  ]));
726
727
  }
727
- }), Ja = { class: "v-icon-setter" }, Fa = { class: "v-icon-setter__content" }, Oa = { class: "v-icon-setter__list" }, fn = /* @__PURE__ */ E({
728
+ }), Ja = { class: "v-icon-setter" }, Fa = { class: "v-icon-setter__content" }, Oa = { class: "v-icon-setter__list" }, fn = /* @__PURE__ */ $({
728
729
  name: "IconSetter",
729
730
  __name: "icon",
730
731
  props: {
@@ -738,16 +739,16 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
738
739
  ), i = S(() => {
739
740
  const h = Object.entries(vt);
740
741
  return r.value ? h.filter((d) => d[0].toLowerCase().includes(r.value)) : h;
741
- }), v = (h) => {
742
+ }), m = (h) => {
742
743
  o.value = h;
743
- }, m = () => {
744
+ }, v = () => {
744
745
  l("change", o.value), l("update:modelValue", o.value), s.value = !1;
745
746
  }, g = () => {
746
747
  o.value = "", l("change", ""), l("update:modelValue", ""), s.value = !1;
747
748
  }, y = () => {
748
749
  s.value = !0;
749
750
  };
750
- return (h, d) => (c(), $("div", Ja, [
751
+ return (h, d) => (c(), V("div", Ja, [
751
752
  p(t(_e), {
752
753
  size: n.size,
753
754
  readonly: "",
@@ -771,7 +772,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
771
772
  clear: "",
772
773
  modelValue: s.value,
773
774
  "onUpdate:modelValue": d[1] || (d[1] = (_) => s.value = _),
774
- onSubmit: m
775
+ onSubmit: v
775
776
  }, {
776
777
  extra: f(() => [
777
778
  p(t(ce), {
@@ -796,20 +797,20 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
796
797
  placeholder: "请输入查询关键字"
797
798
  }, null, 8, ["size", "prefix-icon", "modelValue"]),
798
799
  x("div", Oa, [
799
- (c(!0), $(P, null, z(i.value, (_) => (c(), b(t(we), {
800
+ (c(!0), V(P, null, z(i.value, (_) => (c(), b(t(we), {
800
801
  icon: _[1],
801
- onClick: (w) => v(_[0]),
802
+ onClick: (w) => m(_[0]),
802
803
  class: W({ "is-active": o.value === _[0] })
803
804
  }, null, 8, ["icon", "onClick", "class"]))), 256)),
804
- i.value.length === 0 ? (c(), b(t(le), { key: 0 })) : I("", !0)
805
+ i.value.length === 0 ? (c(), b(t(le), { key: 0 })) : E("", !0)
805
806
  ])
806
807
  ])
807
808
  ]),
808
809
  _: 1
809
- }, 8, ["modelValue"])) : I("", !0)
810
+ }, 8, ["modelValue"])) : E("", !0)
810
811
  ]));
811
812
  }
812
- }), Na = /* @__PURE__ */ E({
813
+ }), Na = /* @__PURE__ */ $({
813
814
  name: "PageForm",
814
815
  __name: "form",
815
816
  props: {
@@ -828,10 +829,10 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
828
829
  }), o = k(e.item || s()), r = [
829
830
  { label: "页面", value: !1 },
830
831
  { label: "目录", value: !0 }
831
- ], a = (v) => {
832
- o.value && (o.value.name = Yt(v));
833
- }, i = async (v) => n.value?.existPageName(v.name, [v.id]) ? (te("页面名称已存在,请更换"), !1) : (e.item ? n.value?.updatePage(v) : n.value?.createPage(v, e.parentId), !0);
834
- return (v, m) => (c(), b(t(he), {
832
+ ], a = (m) => {
833
+ o.value && (o.value.name = Yt(m));
834
+ }, i = async (m) => n.value?.existPageName(m.name, [m.id]) ? (te("页面名称已存在,请更换"), !1) : (e.item ? n.value?.updatePage(m) : n.value?.createPage(m, e.parentId), !0);
835
+ return (m, v) => (c(), b(t(he), {
835
836
  title: l.value,
836
837
  width: "800px",
837
838
  height: "500px",
@@ -869,7 +870,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
869
870
  editor: f(() => [
870
871
  p(fn, {
871
872
  modelValue: o.value.icon,
872
- "onUpdate:modelValue": m[0] || (m[0] = (g) => o.value.icon = g),
873
+ "onUpdate:modelValue": v[0] || (v[0] = (g) => o.value.icon = g),
873
874
  size: "default"
874
875
  }, null, 8, ["modelValue"])
875
876
  ]),
@@ -899,7 +900,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
899
900
  _: 1
900
901
  }, 8, ["title", "model"]));
901
902
  }
902
- }), Bt = /* @__PURE__ */ E({
903
+ }), Bt = /* @__PURE__ */ $({
903
904
  name: "VIcon",
904
905
  __name: "Icon",
905
906
  props: {
@@ -933,7 +934,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
933
934
  _: 1
934
935
  }, 8, ["content"]));
935
936
  }
936
- }), N = /* @__PURE__ */ E({
937
+ }), N = /* @__PURE__ */ $({
937
938
  name: "VPanel",
938
939
  __name: "panel",
939
940
  props: {
@@ -957,9 +958,9 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
957
958
  l("edit");
958
959
  }, i = () => {
959
960
  l("back");
960
- }, v = () => {
961
- l("remove");
962
961
  }, m = () => {
962
+ l("remove");
963
+ }, v = () => {
963
964
  l("save");
964
965
  }, g = S(() => n.header ? {
965
966
  content: n.title,
@@ -987,7 +988,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
987
988
  background: "hover",
988
989
  title: "新增",
989
990
  onClick: r
990
- }, null, 8, ["size", "icon"])) : I("", !0),
991
+ }, null, 8, ["size", "icon"])) : E("", !0),
991
992
  n.edit ? (c(), b(t(fe), {
992
993
  key: 1,
993
994
  size: h.$attrs.size,
@@ -996,7 +997,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
996
997
  background: "hover",
997
998
  title: "编辑",
998
999
  onClick: a
999
- }, null, 8, ["size", "icon"])) : I("", !0),
1000
+ }, null, 8, ["size", "icon"])) : E("", !0),
1000
1001
  n.remove ? (c(), b(t(fe), {
1001
1002
  key: 2,
1002
1003
  size: h.$attrs.size,
@@ -1004,8 +1005,8 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
1004
1005
  icon: t(Bl),
1005
1006
  background: "hover",
1006
1007
  title: "清除",
1007
- onClick: v
1008
- }, null, 8, ["size", "icon"])) : I("", !0),
1008
+ onClick: m
1009
+ }, null, 8, ["size", "icon"])) : E("", !0),
1009
1010
  n.save ? (c(), b(t(fe), {
1010
1011
  key: 3,
1011
1012
  size: h.$attrs.size,
@@ -1013,8 +1014,8 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
1013
1014
  icon: t(zl),
1014
1015
  background: "hover",
1015
1016
  title: "保存",
1016
- onClick: m
1017
- }, null, 8, ["size", "icon"])) : I("", !0),
1017
+ onClick: v
1018
+ }, null, 8, ["size", "icon"])) : E("", !0),
1018
1019
  n.collapsable ? je((c(), b(t(fe), {
1019
1020
  key: 4,
1020
1021
  size: h.$attrs.size,
@@ -1025,7 +1026,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
1025
1026
  onClick: d[0] || (d[0] = (_) => y(!1))
1026
1027
  }, null, 8, ["size", "icon"])), [
1027
1028
  [De, s.value]
1028
- ]) : I("", !0),
1029
+ ]) : E("", !0),
1029
1030
  n.collapsable ? je((c(), b(t(fe), {
1030
1031
  key: 5,
1031
1032
  size: h.$attrs.size,
@@ -1036,7 +1037,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
1036
1037
  onClick: d[1] || (d[1] = (_) => y(!0))
1037
1038
  }, null, 8, ["size", "icon"])), [
1038
1039
  [De, !s.value]
1039
- ]) : I("", !0),
1040
+ ]) : E("", !0),
1040
1041
  ye(h.$slots, "actions")
1041
1042
  ]),
1042
1043
  default: f(() => [
@@ -1056,7 +1057,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
1056
1057
  }), Ma = { class: "v-tabs__header" }, Wa = {
1057
1058
  key: 0,
1058
1059
  class: "v-tabs__actions"
1059
- }, et = /* @__PURE__ */ E({
1060
+ }, et = /* @__PURE__ */ $({
1060
1061
  __name: "tabs",
1061
1062
  props: {
1062
1063
  items: { default: () => [] },
@@ -1090,7 +1091,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
1090
1091
  }, a = (i) => {
1091
1092
  l("action-click", i);
1092
1093
  };
1093
- return (i, v) => (c(), b(t(yt), {
1094
+ return (i, m) => (c(), b(t(yt), {
1094
1095
  class: "v-tabs",
1095
1096
  border: !1,
1096
1097
  fit: "",
@@ -1103,12 +1104,12 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
1103
1104
  items: n.items,
1104
1105
  type: "card",
1105
1106
  modelValue: s.value,
1106
- "onUpdate:modelValue": v[0] || (v[0] = (m) => s.value = m),
1107
+ "onUpdate:modelValue": m[0] || (m[0] = (v) => s.value = v),
1107
1108
  onTabRemove: r,
1108
1109
  onActionClick: a,
1109
1110
  stretch: n.stretch
1110
1111
  }, null, 8, ["items", "modelValue", "stretch"]),
1111
- n.menus && n.menus.length ? (c(), $("div", Wa, [
1112
+ n.menus && n.menus.length ? (c(), V("div", Wa, [
1112
1113
  n.menus && n.menus.length ? (c(), b(t(fe), {
1113
1114
  key: 0,
1114
1115
  mode: "icon",
@@ -1122,21 +1123,21 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
1122
1123
  menus: n.menus,
1123
1124
  onCommand: o
1124
1125
  }, {
1125
- item: f(({ item: m }) => [
1126
+ item: f(({ item: v }) => [
1126
1127
  x("span", null, [
1127
1128
  n.checkable ? (c(), b(t(an), {
1128
1129
  key: 0,
1129
1130
  class: W({
1130
1131
  "v-tabs__checked": !0,
1131
- "is-checked": m.checked
1132
+ "is-checked": v.checked
1132
1133
  })
1133
- }, null, 8, ["class"])) : I("", !0),
1134
- q(" " + B(m.label), 1)
1134
+ }, null, 8, ["class"])) : E("", !0),
1135
+ q(" " + B(v.label), 1)
1135
1136
  ])
1136
1137
  ]),
1137
1138
  _: 1
1138
- }, 8, ["icon", "menus"])) : I("", !0)
1139
- ])) : I("", !0)
1139
+ }, 8, ["icon", "menus"])) : E("", !0)
1140
+ ])) : E("", !0)
1140
1141
  ])
1141
1142
  ]),
1142
1143
  default: f(() => [
@@ -1151,7 +1152,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
1151
1152
  }, Ua = { class: "v-item__content" }, Ha = {
1152
1153
  key: 3,
1153
1154
  class: "v-item__subtitle"
1154
- }, se = /* @__PURE__ */ E({
1155
+ }, se = /* @__PURE__ */ $({
1155
1156
  name: "VItem",
1156
1157
  __name: "item",
1157
1158
  props: {
@@ -1209,10 +1210,10 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
1209
1210
  label: "主页",
1210
1211
  icon: Ol
1211
1212
  }
1212
- }, l = u, s = e, o = k(!!l.modelValue), r = S(() => l.actions.map((m) => {
1213
- const g = n[m];
1213
+ }, l = u, s = e, o = k(!!l.modelValue), r = S(() => l.actions.map((v) => {
1214
+ const g = n[v];
1214
1215
  return {
1215
- name: m,
1216
+ name: v,
1216
1217
  ...g
1217
1218
  };
1218
1219
  })), a = S(() => ({
@@ -1223,25 +1224,25 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
1223
1224
  "is-small": l.small
1224
1225
  })), i = () => {
1225
1226
  s("click", l.modelValue);
1226
- }, v = async (m) => {
1227
- m === "remove" ? await ft.confirm("确定删除吗?", "提示", {
1227
+ }, m = async (v) => {
1228
+ v === "remove" ? await ft.confirm("确定删除吗?", "提示", {
1228
1229
  type: "warning"
1229
1230
  }).catch(() => !1) && s("action", {
1230
- name: m,
1231
+ name: v,
1231
1232
  modelValue: l.modelValue
1232
1233
  }) : s("action", {
1233
- name: m,
1234
+ name: v,
1234
1235
  modelValue: l.modelValue
1235
1236
  });
1236
1237
  };
1237
- return H(o, (m) => {
1238
- s("update:modelValue", m), s("switch", m);
1238
+ return H(o, (v) => {
1239
+ s("update:modelValue", v), s("switch", v);
1239
1240
  }), H(
1240
1241
  () => l.modelValue,
1241
- (m) => {
1242
- o.value = !!m;
1242
+ (v) => {
1243
+ o.value = !!v;
1243
1244
  }
1244
- ), (m, g) => (c(), b(t(M), {
1245
+ ), (v, g) => (c(), b(t(M), {
1245
1246
  class: W(["v-item", a.value]),
1246
1247
  justify: "space-between",
1247
1248
  align: "center",
@@ -1253,11 +1254,11 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
1253
1254
  align: "center"
1254
1255
  }, {
1255
1256
  default: f(() => [
1256
- ye(m.$slots, "default", {}, () => [
1257
- m.icon ? (c(), b(t(we), {
1257
+ ye(v.$slots, "default", {}, () => [
1258
+ v.icon ? (c(), b(t(we), {
1258
1259
  key: 0,
1259
- icon: m.icon
1260
- }, null, 8, ["icon"])) : I("", !0),
1260
+ icon: v.icon
1261
+ }, null, 8, ["icon"])) : E("", !0),
1261
1262
  l.tag ? (c(), b(t(In), {
1262
1263
  key: 1,
1263
1264
  class: "v-item__tag",
@@ -1268,10 +1269,10 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
1268
1269
  q(B(l.tag), 1)
1269
1270
  ]),
1270
1271
  _: 1
1271
- }, 8, ["type"])) : I("", !0),
1272
- m.index !== void 0 ? (c(), $("span", La, " # " + B(m.index), 1)) : I("", !0),
1273
- x("span", Ua, B(m.title), 1),
1274
- m.subtitle ? (c(), $("span", Ha, B(m.subtitle), 1)) : I("", !0)
1272
+ }, 8, ["type"])) : E("", !0),
1273
+ v.index !== void 0 ? (c(), V("span", La, " # " + B(v.index), 1)) : E("", !0),
1274
+ x("span", Ua, B(v.title), 1),
1275
+ v.subtitle ? (c(), V("span", Ha, B(v.subtitle), 1)) : E("", !0)
1275
1276
  ])
1276
1277
  ]),
1277
1278
  _: 3
@@ -1282,7 +1283,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
1282
1283
  }, ["stop"]))
1283
1284
  }, {
1284
1285
  default: f(() => [
1285
- (c(!0), $(P, null, z(r.value, (y) => (c(), b(t(fe), {
1286
+ (c(!0), V(P, null, z(r.value, (y) => (c(), b(t(fe), {
1286
1287
  name: y.name,
1287
1288
  title: y.label,
1288
1289
  mode: "icon",
@@ -1290,7 +1291,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
1290
1291
  background: "none",
1291
1292
  type: "info",
1292
1293
  icon: y.icon,
1293
- onClick: (h) => v(y.name)
1294
+ onClick: (h) => m(y.name)
1294
1295
  }, null, 8, ["name", "title", "icon", "onClick"]))), 256)),
1295
1296
  l.switch ? (c(), b(t(Gt), {
1296
1297
  key: 0,
@@ -1298,8 +1299,8 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
1298
1299
  "onUpdate:modelValue": g[0] || (g[0] = (y) => o.value = y),
1299
1300
  class: "v-item__switch",
1300
1301
  size: "small"
1301
- }, null, 8, ["modelValue"])) : I("", !0),
1302
- ye(m.$slots, "status")
1302
+ }, null, 8, ["modelValue"])) : E("", !0),
1303
+ ye(v.$slots, "status")
1303
1304
  ]),
1304
1305
  _: 3
1305
1306
  })
@@ -1307,7 +1308,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
1307
1308
  _: 3
1308
1309
  }, 8, ["class"]));
1309
1310
  }
1310
- }), qa = ["draggable"], Ga = { class: "v-box__name" }, Ka = { class: "v-box__label" }, gt = /* @__PURE__ */ E({
1311
+ }), qa = ["draggable"], Ga = { class: "v-box__name" }, Ka = { class: "v-box__label" }, gt = /* @__PURE__ */ $({
1311
1312
  name: "VBox",
1312
1313
  __name: "box",
1313
1314
  props: {
@@ -1333,9 +1334,9 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
1333
1334
  }, i = () => {
1334
1335
  l("dragend", n);
1335
1336
  };
1336
- return (v, m) => (c(), $("div", {
1337
+ return (m, v) => (c(), V("div", {
1337
1338
  class: W(["v-box", r.value]),
1338
- draggable: v.draggable,
1339
+ draggable: m.draggable,
1339
1340
  onDragstart: a,
1340
1341
  onDragend: i
1341
1342
  }, [
@@ -1367,20 +1368,20 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
1367
1368
  }, null, 8, ["icon"])
1368
1369
  ]),
1369
1370
  _: 1
1370
- })) : I("", !0)
1371
+ })) : E("", !0)
1371
1372
  ], 42, qa));
1372
1373
  }
1373
- }), Za = { class: "v-context-viewer" }, Qa = /* @__PURE__ */ E({
1374
+ }), Za = { class: "v-context-viewer" }, Qa = /* @__PURE__ */ $({
1374
1375
  __name: "viewer",
1375
1376
  props: {
1376
1377
  context: {}
1377
1378
  },
1378
1379
  emits: ["pick", "copy"],
1379
1380
  setup(u, { emit: e }) {
1380
- const n = u, l = e, s = ["$provider", "$apis", "$components", "context"], o = (m) => {
1381
- const g = m.value, y = tt(g);
1381
+ const n = u, l = e, s = ["$provider", "$apis", "$components", "context"], o = (v) => {
1382
+ const g = v.value, y = tt(g);
1382
1383
  return y === "Object" || y === "Module" ? Object.keys(g || {}).length === 0 : y === "Array" ? g.length === 0 : !0;
1383
- }, r = (m, g = "this") => typeof m == "object" ? Array.isArray(m) ? m.map((y, h) => {
1384
+ }, r = (v, g = "this") => typeof v == "object" ? Array.isArray(v) ? v.map((y, h) => {
1384
1385
  const d = `[${h}]`;
1385
1386
  return {
1386
1387
  label: d,
@@ -1388,27 +1389,27 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
1388
1389
  type: tt(y),
1389
1390
  path: `${g}${d}`
1390
1391
  };
1391
- }) : Object.entries(m).map(([y, h]) => ({
1392
+ }) : Object.entries(v).map(([y, h]) => ({
1392
1393
  label: y,
1393
1394
  value: h,
1394
1395
  type: tt(h),
1395
1396
  path: `${g}.${y}`
1396
1397
  })).filter(
1397
1398
  (y) => !y.label.startsWith("__") && !s.includes(y.label)
1398
- ) : [], a = (m, g) => {
1399
- if (m.level === 0)
1399
+ ) : [], a = (v, g) => {
1400
+ if (v.level === 0)
1400
1401
  g(r(n.context));
1401
1402
  else {
1402
- const y = xn(m.data.value);
1403
- g(r(y, m.data.path));
1403
+ const y = xn(v.data.value);
1404
+ g(r(y, v.data.path));
1404
1405
  }
1405
- }, i = (m) => {
1406
- l("copy", m.path);
1407
- }, v = (m) => {
1408
- l("pick", m.path);
1406
+ }, i = (v) => {
1407
+ l("copy", v.path);
1408
+ }, m = (v) => {
1409
+ l("pick", v.path);
1409
1410
  };
1410
- return (m, g) => (c(), $("div", Za, [
1411
- m.context ? (c(), b(t(bt), {
1411
+ return (v, g) => (c(), V("div", Za, [
1412
+ v.context ? (c(), b(t(bt), {
1412
1413
  key: 0,
1413
1414
  lazy: "",
1414
1415
  load: a,
@@ -1419,7 +1420,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
1419
1420
  p(se, {
1420
1421
  title: y.label,
1421
1422
  clickable: "",
1422
- onClick: (h) => v(y),
1423
+ onClick: (h) => m(y),
1423
1424
  background: "",
1424
1425
  actions: ["copy"],
1425
1426
  onAction: (h) => i(y),
@@ -1428,10 +1429,10 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
1428
1429
  }, null, 8, ["title", "onClick", "onAction"])
1429
1430
  ]),
1430
1431
  _: 1
1431
- }, 8, ["props"])) : I("", !0)
1432
+ }, 8, ["props"])) : E("", !0)
1432
1433
  ]));
1433
1434
  }
1434
- }), St = /* @__PURE__ */ E({
1435
+ }), St = /* @__PURE__ */ $({
1435
1436
  __name: "binder",
1436
1437
  props: {
1437
1438
  title: {},
@@ -1461,7 +1462,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
1461
1462
  name: "viewer",
1462
1463
  label: "高级"
1463
1464
  }
1464
- ], i = k("normal"), v = k(), m = async (C) => {
1465
+ ], i = k("normal"), m = k(), v = async (C) => {
1465
1466
  l("submit", C), n.submitMethod ? await n.submitMethod(C) && g() : g();
1466
1467
  }, g = () => {
1467
1468
  l("update:modelValue", !1), l("close");
@@ -1470,7 +1471,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
1470
1471
  }, h = () => {
1471
1472
  g();
1472
1473
  }, d = async () => {
1473
- v.value?.submit();
1474
+ m.value?.submit();
1474
1475
  }, _ = (C) => {
1475
1476
  l("pick", C);
1476
1477
  }, w = (C) => {
@@ -1478,7 +1479,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
1478
1479
  message: "已经复制到粘贴板"
1479
1480
  });
1480
1481
  };
1481
- return (C, V) => (c(), b(t(Ne), {
1482
+ return (C, I) => (c(), b(t(Ne), {
1482
1483
  "model-value": n.modelValue,
1483
1484
  class: "v-binder",
1484
1485
  title: C.title,
@@ -1505,7 +1506,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
1505
1506
  class: "v-binder__tabs",
1506
1507
  items: a,
1507
1508
  modelValue: i.value,
1508
- "onUpdate:modelValue": V[1] || (V[1] = (A) => i.value = A)
1509
+ "onUpdate:modelValue": I[1] || (I[1] = (j) => i.value = j)
1509
1510
  }, {
1510
1511
  default: f(() => [
1511
1512
  p(t(M), {
@@ -1518,29 +1519,29 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
1518
1519
  je(x("div", null, [
1519
1520
  p(t(_e), {
1520
1521
  modelValue: t(o),
1521
- "onUpdate:modelValue": V[0] || (V[0] = (A) => at(o) ? o.value = A : null),
1522
+ "onUpdate:modelValue": I[0] || (I[0] = (j) => at(o) ? o.value = j : null),
1522
1523
  size: "small",
1523
1524
  clearable: "",
1524
1525
  "prefix-icon": t(ln),
1525
1526
  placeholder: "筛选可用项"
1526
1527
  }, null, 8, ["modelValue", "prefix-icon"]),
1527
- (c(!0), $(P, null, z(t(s), (A) => (c(), $("div", null, [
1528
+ (c(!0), V(P, null, z(t(s), (j) => (c(), V("div", null, [
1528
1529
  p(t(ht), { "border-style": "dotted" }, {
1529
1530
  default: f(() => [
1530
- q(B(A.title), 1)
1531
+ q(B(j.title), 1)
1531
1532
  ]),
1532
1533
  _: 2
1533
1534
  }, 1024),
1534
- (c(!0), $(P, null, z(A.items, (O) => (c(), b(se, {
1535
- title: O,
1535
+ (c(!0), V(P, null, z(j.items, (T) => (c(), b(se, {
1536
+ title: T,
1536
1537
  background: "",
1537
1538
  actions: ["copy"],
1538
1539
  small: "",
1539
- onClick: (j) => _(O),
1540
- onAction: (j) => w(O)
1540
+ onClick: (A) => _(T),
1541
+ onAction: (A) => w(T)
1541
1542
  }, null, 8, ["title", "onClick", "onAction"]))), 256))
1542
1543
  ]))), 256)),
1543
- t(s).length ? I("", !0) : (c(), b(t(le), { key: 0 }))
1544
+ t(s).length ? E("", !0) : (c(), b(t(le), { key: 0 }))
1544
1545
  ], 512), [
1545
1546
  [De, i.value === "normal"]
1546
1547
  ]),
@@ -1580,7 +1581,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
1580
1581
  q(" 移除绑定 ")
1581
1582
  ]),
1582
1583
  _: 1
1583
- })) : I("", !0)
1584
+ })) : E("", !0)
1584
1585
  ]),
1585
1586
  _: 1
1586
1587
  }),
@@ -1616,14 +1617,14 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
1616
1617
  default: f(() => [
1617
1618
  p(t(Gn), {
1618
1619
  ref_key: "formRef",
1619
- ref: v,
1620
+ ref: m,
1620
1621
  class: "v-binder__form",
1621
1622
  footer: !1,
1622
1623
  "label-position": "top",
1623
1624
  "tooltip-message": !1,
1624
1625
  model: n.model,
1625
1626
  rules: n.rules,
1626
- "submit-method": m
1627
+ "submit-method": v
1627
1628
  }, {
1628
1629
  default: f(() => [
1629
1630
  ye(C.$slots, "default")
@@ -1640,7 +1641,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
1640
1641
  _: 3
1641
1642
  }, 8, ["model-value", "title"]));
1642
1643
  }
1643
- }), Xa = { class: "v-slots-picker__sn" }, Ya = /* @__PURE__ */ E({
1644
+ }), Xa = { class: "v-slots-picker__sn" }, Ya = /* @__PURE__ */ $({
1644
1645
  __name: "slots",
1645
1646
  props: {
1646
1647
  slots: { default: () => [] }
@@ -1652,7 +1653,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
1652
1653
  }, a = () => {
1653
1654
  s.value ? (l("submit", s.value), l("update:modelValue", !1)) : te("请选择插槽");
1654
1655
  };
1655
- return (i, v) => (c(), b(t(Ne), re({
1656
+ return (i, m) => (c(), b(t(Ne), re({
1656
1657
  class: "v-slots-picker",
1657
1658
  title: "选择插槽",
1658
1659
  width: "600px",
@@ -1675,15 +1676,15 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
1675
1676
  wrap: "wrap"
1676
1677
  }, {
1677
1678
  default: f(() => [
1678
- (c(!0), $(P, null, z(n.slots, (m, g) => (c(), b(t(M), {
1679
- class: W(["v-slots-picker__item", { "is-active": m.name === s.value?.name }]),
1679
+ (c(!0), V(P, null, z(n.slots, (v, g) => (c(), b(t(M), {
1680
+ class: W(["v-slots-picker__item", { "is-active": v.name === s.value?.name }]),
1680
1681
  grow: "",
1681
1682
  flex: !1,
1682
- onClick: (y) => r(m)
1683
+ onClick: (y) => r(v)
1683
1684
  }, {
1684
1685
  default: f(() => [
1685
1686
  x("span", Xa, "#" + B(g + 1), 1),
1686
- q(" " + B(m.name), 1)
1687
+ q(" " + B(v.name), 1)
1687
1688
  ]),
1688
1689
  _: 2
1689
1690
  }, 1032, ["class", "onClick"]))), 256))
@@ -1694,7 +1695,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
1694
1695
  _: 1
1695
1696
  }, 16, ["height"]));
1696
1697
  }
1697
- }), hn = /* @__PURE__ */ E({
1698
+ }), hn = /* @__PURE__ */ $({
1698
1699
  name: "Viewport",
1699
1700
  __name: "viewport",
1700
1701
  props: {
@@ -1706,8 +1707,8 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
1706
1707
  const e = u, n = S(() => [`is-${e.mode}`]), l = S(() => {
1707
1708
  if (e.mode === "pc")
1708
1709
  return 1;
1709
- const o = e.mode === "mobile" ? Dt : Pt, { width: r, height: a } = o, i = r > 0 ? (e.width || 0) / r : 1, v = a > 0 ? (e.height || 0) / a : 1;
1710
- return Math.min(i, v);
1710
+ const o = e.mode === "mobile" ? Dt : Pt, { width: r, height: a } = o, i = r > 0 ? (e.width || 0) / r : 1, m = a > 0 ? (e.height || 0) / a : 1;
1711
+ return Math.min(i, m);
1711
1712
  }), s = S(() => {
1712
1713
  if (e.mode === "pc")
1713
1714
  return {};
@@ -1720,25 +1721,25 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
1720
1721
  transform: `translate(-50%, -50%) scale(${l.value})`
1721
1722
  };
1722
1723
  });
1723
- return (o, r) => (c(), $("div", {
1724
+ return (o, r) => (c(), V("div", {
1724
1725
  class: W(["v-viewport", n.value]),
1725
1726
  style: Le(s.value)
1726
1727
  }, [
1727
1728
  ye(o.$slots, "default")
1728
1729
  ], 6));
1729
1730
  }
1730
- }), eo = /* @__PURE__ */ E({
1731
+ }), eo = /* @__PURE__ */ $({
1731
1732
  name: "PagesWidget",
1732
1733
  __name: "index",
1733
1734
  setup(u) {
1734
1735
  const { project: e, engine: n } = Ye(), l = S(() => e.value?.pages || []), { current: s } = oe(), o = k(!1), r = k(), a = k(), i = () => {
1735
1736
  a.value = void 0, r.value = void 0, o.value = !0;
1736
- }, v = async (h) => {
1737
+ }, m = async (h) => {
1737
1738
  const { name: d, modelValue: _ } = h, { data: w, node: C } = _;
1738
1739
  if (d === "add" && (r.value = void 0, a.value = w.id, o.value = !0), d === "edit" && (r.value = Qe(w), a.value = void 0, o.value = !0), d === "remove") {
1739
1740
  if (w.dir) {
1740
- const V = e.value?.getPage(w.id);
1741
- if (V && V.children?.length) {
1741
+ const I = e.value?.getPage(w.id);
1742
+ if (I && I.children?.length) {
1742
1743
  te("请先删除子页面");
1743
1744
  return;
1744
1745
  }
@@ -1746,11 +1747,11 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
1746
1747
  e.value?.removePage(w.id);
1747
1748
  }
1748
1749
  if (d === "copy") {
1749
- const V = C.parent?.data.id;
1750
- e.value?.clonePage(w, V);
1750
+ const I = C.parent?.data.id;
1751
+ e.value?.clonePage(w, I);
1751
1752
  }
1752
1753
  d === "home" && (e.value?.setHomepage(w.id), ue("设置主页成功", "success"));
1753
- }, m = async (h) => {
1754
+ }, v = async (h) => {
1754
1755
  h.raw && ue("这是源码模式页面,不能低代码设计", "warning"), h.dir || h.raw ? n.project.value?.deactivate() : n.project.value?.active(h);
1755
1756
  }, g = (h, d, _) => _ === "inner" ? !!d.data.dir : !0, y = () => {
1756
1757
  e.value?.update({
@@ -1781,8 +1782,8 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
1781
1782
  subtitle: _.name,
1782
1783
  "model-value": { data: _, node: w },
1783
1784
  actions: _.dir ? ["add", "edit", "remove"] : _.raw ? ["home", "edit", "remove"] : ["home", "copy", "edit", "remove"],
1784
- onAction: v,
1785
- onClick: (C) => m(_),
1785
+ onAction: m,
1786
+ onClick: (C) => v(_),
1786
1787
  active: t(s)?.id === _.id,
1787
1788
  tag: t(e)?.homepage === _.id ? "主页" : void 0,
1788
1789
  "tag-type": "success",
@@ -1800,54 +1801,54 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
1800
1801
  "onUpdate:modelValue": d[0] || (d[0] = (_) => o.value = _),
1801
1802
  item: r.value,
1802
1803
  "parent-id": a.value
1803
- }, null, 8, ["modelValue", "item", "parent-id"])) : I("", !0)
1804
+ }, null, 8, ["modelValue", "item", "parent-id"])) : E("", !0)
1804
1805
  ]),
1805
1806
  _: 1
1806
1807
  }));
1807
1808
  }
1808
- }), to = /* @__PURE__ */ E({
1809
+ }), to = /* @__PURE__ */ $({
1809
1810
  name: "BlocksWidget",
1810
1811
  __name: "index",
1811
1812
  setup(u) {
1812
- const { span: e } = vn(), { blocks: n, engine: l } = ha(), s = k(void 0), { current: o } = oe(), r = k(!1), a = S(() => s.value?.id ? "编辑" : "新增"), i = S(() => `(共 ${n.value.length} 个)`), v = () => ({
1813
+ const { span: e } = vn(), { blocks: n, engine: l } = ha(), s = k(void 0), { current: o } = oe(), r = k(!1), a = S(() => s.value?.id ? "编辑" : "新增"), i = S(() => `(共 ${n.value.length} 个)`), m = () => ({
1813
1814
  name: "",
1814
1815
  title: "",
1815
1816
  type: "block"
1816
- }), m = async (V) => {
1817
- const A = V, O = l.project.value;
1818
- if (!O)
1817
+ }), v = async (I) => {
1818
+ const j = I, T = l.project.value;
1819
+ if (!T)
1819
1820
  return !1;
1820
- if (V.id)
1821
- if (!O.existBlockName(A.name, [A.id]))
1822
- O.updateBlock(A);
1821
+ if (I.id)
1822
+ if (!T.existBlockName(j.name, [j.id]))
1823
+ T.updateBlock(j);
1823
1824
  else
1824
- return te(`名称【${A.name}】已经存在,请更换名称`), !1;
1825
- else if (!O.existBlockName(A.name))
1826
- O.createBlock(A);
1825
+ return te(`名称【${j.name}】已经存在,请更换名称`), !1;
1826
+ else if (!T.existBlockName(j.name))
1827
+ T.createBlock(j);
1827
1828
  else
1828
- return te(`名称【${A.name}】已经存在,请更换名称`), !1;
1829
+ return te(`名称【${j.name}】已经存在,请更换名称`), !1;
1829
1830
  return !0;
1830
1831
  }, g = () => {
1831
- s.value = v(), r.value = !0;
1832
- }, y = (V) => {
1833
- s.value = Qe(V), r.value = !0;
1834
- }, h = (V) => {
1835
- l.project.value?.removeBlock(V.id);
1836
- }, d = (V) => {
1837
- s.value && (s.value.name = Yt(V));
1838
- }, _ = async (V) => {
1839
- l.project.value?.active(V);
1840
- }, w = async (V) => {
1841
- const A = {
1832
+ s.value = m(), r.value = !0;
1833
+ }, y = (I) => {
1834
+ s.value = Qe(I), r.value = !0;
1835
+ }, h = (I) => {
1836
+ l.project.value?.removeBlock(I.id);
1837
+ }, d = (I) => {
1838
+ s.value && (s.value.name = Yt(I));
1839
+ }, _ = async (I) => {
1840
+ l.project.value?.active(I);
1841
+ }, w = async (I) => {
1842
+ const j = {
1842
1843
  type: "Schema",
1843
- id: V.id
1844
- }, O = await l.assets.getBlockMaterial(A), j = l.skeleton?.getWidget("Designer")?.widgetRef?.designer;
1845
- j && O && j.setDragging(O);
1844
+ id: I.id
1845
+ }, T = await l.assets.getBlockMaterial(j), A = l.skeleton?.getWidget("Designer")?.widgetRef?.designer;
1846
+ A && T && A.setDragging(T);
1846
1847
  }, C = () => {
1847
- const V = l.skeleton?.getWidget("Designer")?.widgetRef?.designer;
1848
- V && V.setDragging(null);
1848
+ const I = l.skeleton?.getWidget("Designer")?.widgetRef?.designer;
1849
+ I && I.setDragging(null);
1849
1850
  };
1850
- return (V, A) => (c(), b(t(N), {
1851
+ return (I, j) => (c(), b(t(N), {
1851
1852
  class: "v-blocks-widget",
1852
1853
  title: "区块管理",
1853
1854
  subtitle: i.value,
@@ -1860,21 +1861,21 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
1860
1861
  gutter: 5
1861
1862
  }, {
1862
1863
  default: f(() => [
1863
- (c(!0), $(P, null, z(t(n), (O) => (c(), b(t(ut), {
1864
- key: O.id,
1864
+ (c(!0), V(P, null, z(t(n), (T) => (c(), b(t(ut), {
1865
+ key: T.id,
1865
1866
  span: t(e)
1866
1867
  }, {
1867
1868
  default: f(() => [
1868
1869
  p(t(gt), {
1869
- name: O.name,
1870
- title: O.title,
1871
- active: t(o)?.id === O.id,
1870
+ name: T.name,
1871
+ title: T.title,
1872
+ active: t(o)?.id === T.id,
1872
1873
  editable: "",
1873
- onEdit: (j) => y(O),
1874
- onRemove: (j) => h(O),
1875
- onClick: (j) => _(O),
1876
- draggable: t(o)?.id !== O.id,
1877
- onDragstart: (j) => w(O),
1874
+ onEdit: (A) => y(T),
1875
+ onRemove: (A) => h(T),
1876
+ onClick: (A) => _(T),
1877
+ draggable: t(o)?.id !== T.id,
1878
+ onDragstart: (A) => w(T),
1878
1879
  onDragend: C
1879
1880
  }, null, 8, ["name", "title", "active", "onEdit", "onRemove", "onClick", "draggable", "onDragstart"])
1880
1881
  ]),
@@ -1883,16 +1884,16 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
1883
1884
  ]),
1884
1885
  _: 1
1885
1886
  }),
1886
- t(n).length ? I("", !0) : (c(), b(t(le), { key: 0 })),
1887
+ t(n).length ? E("", !0) : (c(), b(t(le), { key: 0 })),
1887
1888
  p(t(he), {
1888
1889
  modelValue: r.value,
1889
- "onUpdate:modelValue": A[0] || (A[0] = (O) => r.value = O),
1890
+ "onUpdate:modelValue": j[0] || (j[0] = (T) => r.value = T),
1890
1891
  title: a.value,
1891
1892
  model: s.value,
1892
1893
  width: "600px",
1893
1894
  height: "250px",
1894
1895
  "form-props": { tooltipMessage: !1 },
1895
- "submit-method": m
1896
+ "submit-method": v
1896
1897
  }, {
1897
1898
  default: f(() => [
1898
1899
  p(t(D), {
@@ -1921,14 +1922,14 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
1921
1922
  }), no = { class: "v-components-widget__search" }, lo = {
1922
1923
  key: 0,
1923
1924
  class: "v-components-widget__result"
1924
- }, so = { class: "v-components-widget__list" }, ao = /* @__PURE__ */ E({
1925
+ }, so = { class: "v-components-widget__list" }, ao = /* @__PURE__ */ $({
1925
1926
  name: "ComponentsWidget",
1926
1927
  __name: "index",
1927
1928
  setup(u) {
1928
- const { span: e, engine: n } = vn(), { tabs: l, currentTab: s, currentGroup: o, model: r, searchKey: a, searchResult: i } = ya(), v = (g) => {
1929
+ const { span: e, engine: n } = vn(), { tabs: l, currentTab: s, currentGroup: o, model: r, searchKey: a, searchResult: i } = ya(), m = (g) => {
1929
1930
  const y = n.skeleton?.getWidget("Designer")?.widgetRef?.designer;
1930
1931
  y && y.setDragging(g);
1931
- }, m = () => {
1932
+ }, v = () => {
1932
1933
  const g = n.skeleton?.getWidget("Designer")?.widgetRef?.designer;
1933
1934
  g && g.setDragging(null);
1934
1935
  };
@@ -1952,13 +1953,13 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
1952
1953
  _: 1
1953
1954
  }, 8, ["modelValue"])
1954
1955
  ]),
1955
- t(a) ? (c(), $("div", lo, [
1956
+ t(a) ? (c(), V("div", lo, [
1956
1957
  p(t(it), {
1957
1958
  wrap: "wrap",
1958
1959
  gutter: 5
1959
1960
  }, {
1960
1961
  default: f(() => [
1961
- (c(!0), $(P, null, z(t(i), (h) => (c(), b(t(ut), {
1962
+ (c(!0), V(P, null, z(t(i), (h) => (c(), b(t(ut), {
1962
1963
  span: t(e),
1963
1964
  key: h.name
1964
1965
  }, {
@@ -1967,8 +1968,8 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
1967
1968
  name: h.name,
1968
1969
  title: h.label || h.name,
1969
1970
  draggable: "",
1970
- onDragstart: (d) => v(h),
1971
- onDragend: m
1971
+ onDragstart: (d) => m(h),
1972
+ onDragend: v
1972
1973
  }, null, 8, ["name", "title", "onDragstart"])
1973
1974
  ]),
1974
1975
  _: 2
@@ -1976,7 +1977,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
1976
1977
  ]),
1977
1978
  _: 1
1978
1979
  }),
1979
- t(i).length ? I("", !0) : (c(), b(t(le), { key: 0 }))
1980
+ t(i).length ? E("", !0) : (c(), b(t(le), { key: 0 }))
1980
1981
  ])) : (c(), b(t(Zt), {
1981
1982
  key: 1,
1982
1983
  items: t(l),
@@ -1991,7 +1992,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
1991
1992
  "onUpdate:modelValue": y[1] || (y[1] = (h) => t(r)[t(s)] = h)
1992
1993
  }, {
1993
1994
  default: f(() => [
1994
- (c(!0), $(P, null, z(t(o).children, (h) => (c(), b(t(Dn), {
1995
+ (c(!0), V(P, null, z(t(o).children, (h) => (c(), b(t(Dn), {
1995
1996
  key: h.name,
1996
1997
  name: h.name,
1997
1998
  title: `${h.label} (${h.count})`
@@ -2003,7 +2004,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
2003
2004
  gutter: 5
2004
2005
  }, {
2005
2006
  default: f(() => [
2006
- (c(!0), $(P, null, z(h.components, (d) => (c(), b(t(ut), {
2007
+ (c(!0), V(P, null, z(h.components, (d) => (c(), b(t(ut), {
2007
2008
  span: t(e),
2008
2009
  key: d.name
2009
2010
  }, {
@@ -2012,21 +2013,21 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
2012
2013
  name: d.name,
2013
2014
  title: d.label || d.name,
2014
2015
  draggable: "",
2015
- onDragstart: (_) => v(d),
2016
- onDragend: m
2016
+ onDragstart: (_) => m(d),
2017
+ onDragend: v
2017
2018
  }, null, 8, ["name", "title", "onDragstart"])
2018
2019
  ]),
2019
2020
  _: 2
2020
2021
  }, 1032, ["span"]))), 128))
2021
2022
  ]),
2022
2023
  _: 2
2023
- }, 1024)) : I("", !0)
2024
+ }, 1024)) : E("", !0)
2024
2025
  ]),
2025
2026
  _: 2
2026
2027
  }, 1032, ["name", "title"]))), 128))
2027
2028
  ]),
2028
2029
  _: 1
2029
- }, 8, ["modelValue"])) : I("", !0)
2030
+ }, 8, ["modelValue"])) : E("", !0)
2030
2031
  ])
2031
2032
  ]),
2032
2033
  _: 1
@@ -2035,18 +2036,18 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
2035
2036
  _: 1
2036
2037
  }));
2037
2038
  }
2038
- }), oo = /* @__PURE__ */ E({
2039
+ }), oo = /* @__PURE__ */ $({
2039
2040
  name: "OutlineWidget",
2040
2041
  __name: "index",
2041
2042
  setup(u) {
2042
- const { engine: e, designer: n, selected: l } = be(), { current: s } = oe(), o = k([]), r = (j) => {
2043
- if (Q(j))
2044
- return j.locked ? ["unlock"] : ["lock"];
2045
- const T = j.parent;
2046
- return T && (T.locked || T.invisible) ? [] : s.value?.locked ? [] : j.locked ? ["unlock"] : j.invisible ? ["visible"] : ["lock", "invisible", "copy", "remove"];
2047
- }, a = (j) => {
2048
- const T = [];
2049
- return j.forEach((R) => {
2043
+ const { engine: e, designer: n, selected: l } = be(), { current: s } = oe(), o = k([]), r = (A) => {
2044
+ if (Q(A))
2045
+ return A.locked ? ["unlock"] : ["lock"];
2046
+ const J = A.parent;
2047
+ return J && (J.locked || J.invisible) ? [] : s.value?.locked ? [] : A.locked ? ["unlock"] : A.invisible ? ["visible"] : ["lock", "invisible", "copy", "remove"];
2048
+ }, a = (A) => {
2049
+ const J = [];
2050
+ return A.forEach((R) => {
2050
2051
  const ee = {
2051
2052
  id: R.id,
2052
2053
  label: R.name,
@@ -2054,31 +2055,31 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
2054
2055
  //getNodeType(model),
2055
2056
  model: R
2056
2057
  };
2057
- Array.isArray(R.children) && (ee.children = a(R.children)), T.push(ee);
2058
- }), T;
2058
+ Array.isArray(R.children) && (ee.children = a(R.children)), J.push(ee);
2059
+ }), J;
2059
2060
  }, i = () => {
2060
2061
  if (!s.value)
2061
2062
  return [];
2062
- const { id: j, name: T, nodes: R } = s.value;
2063
+ const { id: A, name: J, nodes: R } = s.value;
2063
2064
  return [
2064
2065
  {
2065
- id: j,
2066
- label: T,
2067
- type: j,
2066
+ id: A,
2067
+ label: J,
2068
+ type: A,
2068
2069
  model: s.value,
2069
2070
  children: a(R)
2070
2071
  }
2071
2072
  ];
2072
- }, v = async () => {
2073
+ }, m = async () => {
2073
2074
  o.value = i(), l.value?.model && (await $e(), n.value?.setSelected(l.value.model));
2074
- }, m = S(() => l.value?.model.id), g = (j) => {
2075
- const T = j.data;
2076
- if (Q(T.model) || T.model.locked || T.model.name === "template")
2075
+ }, v = S(() => l.value?.model.id), g = (A) => {
2076
+ const J = A.data;
2077
+ if (Q(J.model) || J.model.locked || J.model.name === "template")
2077
2078
  return !1;
2078
- const R = e.assets.componentMap.get(T.model.name);
2079
+ const R = e.assets.componentMap.get(J.model.name);
2079
2080
  return R ? (n.value?.setDragging(R), !0) : !1;
2080
- }, y = async (j, T, R) => {
2081
- const ee = T.data, xe = {
2081
+ }, y = async (A, J, R) => {
2082
+ const ee = J.data, xe = {
2082
2083
  prev: "top",
2083
2084
  next: "bottom",
2084
2085
  inner: "inner"
@@ -2091,11 +2092,11 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
2091
2092
  L = !!await n.value?.allowDrop(G, xe), n.value?.setDropping(L ? G : null, "inner");
2092
2093
  }
2093
2094
  return L;
2094
- }, h = (j) => {
2095
- const T = j?.model;
2096
- !T || T.invisible || (n.value?.setSelected(T), n.value?.setHover(null));
2097
- }, d = async (j, T, R) => {
2098
- const ee = j.data, ge = T.data;
2095
+ }, h = (A) => {
2096
+ const J = A?.model;
2097
+ !J || J.invisible || (n.value?.setSelected(J), n.value?.setHover(null));
2098
+ }, d = async (A, J, R) => {
2099
+ const ee = A.data, ge = J.data;
2099
2100
  if (Q(ge.model)) {
2100
2101
  n.value?.setDropping(null), n.value?.setDragging(null);
2101
2102
  return;
@@ -2105,45 +2106,45 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
2105
2106
  xe,
2106
2107
  L
2107
2108
  )) {
2108
- n.value?.setDropping(null), v(), Ze.warning({
2109
+ n.value?.setDropping(null), m(), Ze.warning({
2109
2110
  message: `${ee.model.name}不能放置到该位置`
2110
2111
  }), n.value?.setDragging(null);
2111
2112
  return;
2112
2113
  }
2113
- const J = await n.value?.getDropSlot(
2114
+ const F = await n.value?.getDropSlot(
2114
2115
  R === "inner" ? xe : xe.parent
2115
2116
  );
2116
- if (J !== null) {
2117
+ if (F !== null) {
2117
2118
  const Ae = ee.model;
2118
- Ae.slot = J, s.value?.move(Ae, xe, L);
2119
+ Ae.slot = F, s.value?.move(Ae, xe, L);
2119
2120
  } else
2120
- v();
2121
+ m();
2121
2122
  n.value?.setDropping(null), n.value?.setDragging(null), e.simulator.refresh();
2122
- }, _ = (j) => {
2123
- Q(j.model) ? n.value?.setHover(j.model) : (n.value?.setHover(j.model), j.model.invisible && n.value?.setHover(null), j.model.name === "slot" && n.value?.setHover(null));
2123
+ }, _ = (A) => {
2124
+ Q(A.model) ? n.value?.setHover(A.model) : (n.value?.setHover(A.model), A.model.invisible && n.value?.setHover(null), A.model.name === "slot" && n.value?.setHover(null));
2124
2125
  }, w = () => {
2125
2126
  n.value?.setHover(null);
2126
- }, C = (j) => {
2127
- const T = j.data;
2128
- T.dragging = !0;
2129
- const R = e.assets.componentMap.get(T.model.name);
2127
+ }, C = (A) => {
2128
+ const J = A.data;
2129
+ J.dragging = !0;
2130
+ const R = e.assets.componentMap.get(J.model.name);
2130
2131
  R && n.value?.setDragging(R);
2131
- }, V = async (j) => {
2132
- const T = j.data;
2133
- T.dragging = !1;
2134
- }, A = (j, T) => {
2135
- j && ((j.id === T.id || !Q(j) && T.isChild(j)) && n.value?.setSelected(null), n.value?.setHover(null));
2136
- }, O = (j) => {
2137
- const { name: T, modelValue: R } = j, ee = l.value?.model;
2138
- switch (T) {
2132
+ }, I = async (A) => {
2133
+ const J = A.data;
2134
+ J.dragging = !1;
2135
+ }, j = (A, J) => {
2136
+ A && ((A.id === J.id || !Q(A) && J.isChild(A)) && n.value?.setSelected(null), n.value?.setHover(null));
2137
+ }, T = (A) => {
2138
+ const { name: J, modelValue: R } = A, ee = l.value?.model;
2139
+ switch (J) {
2139
2140
  case "lock":
2140
- A(ee, R), R.lock();
2141
+ j(ee, R), R.lock();
2141
2142
  break;
2142
2143
  case "unlock":
2143
- A(ee, R), R.unlock();
2144
+ j(ee, R), R.unlock();
2144
2145
  break;
2145
2146
  case "invisible":
2146
- A(ee, R), R.setVisible(!1);
2147
+ j(ee, R), R.setVisible(!1);
2147
2148
  break;
2148
2149
  case "visible":
2149
2150
  R.setVisible(!0);
@@ -2153,11 +2154,11 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
2153
2154
  ge && n.value?.setSelected(ge);
2154
2155
  break;
2155
2156
  case "remove":
2156
- A(ee, R), s.value?.removeNode(R);
2157
+ j(ee, R), s.value?.removeNode(R);
2157
2158
  break;
2158
2159
  }
2159
2160
  };
2160
- return H(e.changed, v, { immediate: !0 }), (j, T) => (c(), b(t(N), {
2161
+ return H(e.changed, m, { immediate: !0 }), (A, J) => (c(), b(t(N), {
2161
2162
  class: "v-outline-widget",
2162
2163
  title: "大纲树"
2163
2164
  }, {
@@ -2169,7 +2170,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
2169
2170
  "default-expand-all": "",
2170
2171
  draggable: "",
2171
2172
  "empty-text": "请新建或打开文件",
2172
- "current-node-key": m.value,
2173
+ "current-node-key": v.value,
2173
2174
  "highlight-current": !0,
2174
2175
  "expand-on-click-node": !1,
2175
2176
  "allow-drop": y,
@@ -2177,7 +2178,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
2177
2178
  onCurrentChange: h,
2178
2179
  onNodeDrop: d,
2179
2180
  onNodeDragStart: C,
2180
- onNodeDragEnd: V
2181
+ onNodeDragEnd: I
2181
2182
  }, {
2182
2183
  default: f(({ data: R, node: ee }) => [
2183
2184
  p(t(se), {
@@ -2196,7 +2197,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
2196
2197
  title: R.label,
2197
2198
  subtitle: R.type,
2198
2199
  actions: r(R.model),
2199
- onAction: O,
2200
+ onAction: T,
2200
2201
  onMouseenter: (ge) => _(R),
2201
2202
  onMouseleave: w
2202
2203
  }, null, 8, ["class", "active", "model-value", "icon", "title", "subtitle", "actions", "onMouseenter"])
@@ -2207,7 +2208,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
2207
2208
  _: 1
2208
2209
  }));
2209
2210
  }
2210
- }), ro = /* @__PURE__ */ E({
2211
+ }), ro = /* @__PURE__ */ $({
2211
2212
  name: "HistoryWidget",
2212
2213
  __name: "index",
2213
2214
  setup(u) {
@@ -2227,35 +2228,35 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
2227
2228
  t(l) === 0 ? (c(), b(t(le), {
2228
2229
  key: 0,
2229
2230
  "image-size": 50
2230
- })) : I("", !0),
2231
- t(e) ? (c(!0), $(P, { key: 1 }, z(t(e).items, (v, m) => (c(), b(t(se), {
2232
- index: m + 1,
2233
- title: v.label,
2234
- "model-value": v,
2235
- active: m == t(e).index,
2231
+ })) : E("", !0),
2232
+ t(e) ? (c(!0), V(P, { key: 1 }, z(t(e).items, (m, v) => (c(), b(t(se), {
2233
+ index: v + 1,
2234
+ title: m.label,
2235
+ "model-value": m,
2236
+ active: v == t(e).index,
2236
2237
  small: "",
2237
2238
  background: "",
2238
2239
  actions: ["remove"],
2239
2240
  onAction: o,
2240
- onClick: (g) => t(n)(v.id)
2241
- }, null, 8, ["index", "title", "model-value", "active", "onClick"]))), 256)) : I("", !0)
2241
+ onClick: (g) => t(n)(m.id)
2242
+ }, null, 8, ["index", "title", "model-value", "active", "onClick"]))), 256)) : E("", !0)
2242
2243
  ]),
2243
2244
  _: 1
2244
2245
  }, 8, ["subtitle", "remove"]));
2245
2246
  }
2246
2247
  }), ne = Cn({
2247
2248
  loader: () => import("./Editor-BKlikwSl.js"),
2248
- loadingComponent: E({
2249
+ loadingComponent: $({
2249
2250
  render() {
2250
2251
  return Pe("div", "正在拼命加载...");
2251
2252
  }
2252
2253
  }),
2253
- errorComponent: E({
2254
+ errorComponent: $({
2254
2255
  render() {
2255
2256
  return Pe("div", "组件加载失败!");
2256
2257
  }
2257
2258
  })
2258
- }), io = /* @__PURE__ */ E({
2259
+ }), io = /* @__PURE__ */ $({
2259
2260
  name: "ApisWidget",
2260
2261
  __name: "index",
2261
2262
  setup(u) {
@@ -2278,10 +2279,10 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
2278
2279
  }
2279
2280
  }), i = () => {
2280
2281
  e.value = !0, l.value = !1, n.value = a();
2281
- }, v = ua.map((w) => ({
2282
+ }, m = ua.map((w) => ({
2282
2283
  label: w,
2283
2284
  value: w.toLowerCase()
2284
- })), m = {
2285
+ })), v = {
2285
2286
  get: "success",
2286
2287
  post: "primary",
2287
2288
  put: "warning",
@@ -2301,14 +2302,14 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
2301
2302
  label: "文件",
2302
2303
  value: "data"
2303
2304
  }
2304
- ], y = (w, C, V) => {
2305
+ ], y = (w, C, I) => {
2305
2306
  ae(
2306
2307
  {
2307
2308
  type: "JSExpression",
2308
2309
  value: C
2309
2310
  },
2310
2311
  window
2311
- ) ? V() : V(new Error("代码错误"));
2312
+ ) ? I() : I(new Error("代码错误"));
2312
2313
  }, h = (w) => {
2313
2314
  w.name === "edit" && d(w.modelValue), w.name === "remove" && r.value?.removeApi(w.modelValue.name);
2314
2315
  }, d = (w) => {
@@ -2324,26 +2325,26 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
2324
2325
  onPlus: i
2325
2326
  }, {
2326
2327
  default: f(() => [
2327
- (c(!0), $(P, null, z(o.value, (V) => (c(), b(t(se), {
2328
- key: V.id,
2328
+ (c(!0), V(P, null, z(o.value, (I) => (c(), b(t(se), {
2329
+ key: I.id,
2329
2330
  small: "",
2330
- title: V.name,
2331
- subtitle: V.label,
2332
- "model-value": V,
2333
- tag: V.method?.toUpperCase(),
2334
- "tag-type": m[V.method || "get"],
2331
+ title: I.name,
2332
+ subtitle: I.label,
2333
+ "model-value": I,
2334
+ tag: I.method?.toUpperCase(),
2335
+ "tag-type": v[I.method || "get"],
2335
2336
  background: "",
2336
2337
  actions: ["edit", "remove"],
2337
- onClick: (A) => d(V),
2338
+ onClick: (j) => d(I),
2338
2339
  onAction: h
2339
2340
  }, null, 8, ["title", "subtitle", "model-value", "tag", "tag-type", "onClick"]))), 128)),
2340
2341
  o.value.length === 0 ? (c(), b(t(le), {
2341
2342
  key: 0,
2342
2343
  "image-size": 50
2343
- })) : I("", !0),
2344
+ })) : E("", !0),
2344
2345
  p(t(he), {
2345
2346
  modelValue: e.value,
2346
- "onUpdate:modelValue": C[1] || (C[1] = (V) => e.value = V),
2347
+ "onUpdate:modelValue": C[1] || (C[1] = (I) => e.value = I),
2347
2348
  model: n.value,
2348
2349
  title: s.value,
2349
2350
  width: "1000px",
@@ -2373,7 +2374,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
2373
2374
  label: "请求类型",
2374
2375
  required: "",
2375
2376
  editor: "radio",
2376
- options: t(v),
2377
+ options: t(m),
2377
2378
  props: { button: !0 }
2378
2379
  }, null, 8, ["options"]),
2379
2380
  p(t(D), {
@@ -2462,7 +2463,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
2462
2463
  editor: f(() => [
2463
2464
  p(t(ne), {
2464
2465
  modelValue: n.value.settings.headers.value,
2465
- "onUpdate:modelValue": C[0] || (C[0] = (V) => n.value.settings.headers.value = V),
2466
+ "onUpdate:modelValue": C[0] || (C[0] = (I) => n.value.settings.headers.value = I),
2466
2467
  dark: "",
2467
2468
  height: "200px"
2468
2469
  }, null, 8, ["modelValue"])
@@ -2471,7 +2472,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
2471
2472
  }, 8, ["rules"])
2472
2473
  ]),
2473
2474
  _: 1
2474
- }, 8, ["subtitle"])) : I("", !0),
2475
+ }, 8, ["subtitle"])) : E("", !0),
2475
2476
  n.value.method === "jsonp" ? (c(), b(t(N), {
2476
2477
  key: 1,
2477
2478
  title: "请求配置",
@@ -2503,7 +2504,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
2503
2504
  })
2504
2505
  ]),
2505
2506
  _: 1
2506
- }, 8, ["subtitle"])) : I("", !0)
2507
+ }, 8, ["subtitle"])) : E("", !0)
2507
2508
  ]),
2508
2509
  _: 1
2509
2510
  })
@@ -2517,12 +2518,12 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
2517
2518
  _: 1
2518
2519
  }));
2519
2520
  }
2520
- }), uo = /* @__PURE__ */ E({
2521
+ }), uo = /* @__PURE__ */ $({
2521
2522
  name: "DepsWidget",
2522
2523
  __name: "index",
2523
2524
  setup(u) {
2524
- const { dependencies: e, engine: n } = mn(), l = k(!1), s = k(!1), o = k({}), r = S(() => s.value ? "查看依赖" : o.value ? "编辑依赖" : "新增依赖"), a = (d) => d.required || d.official ? [] : ["edit", "remove"], i = (d) => d.official && !d.required, v = async (d) => (d.urls = d.urls.split(`
2525
- `), n.project.value?.setDeps(d), !0), m = (d) => {
2525
+ const { dependencies: e, engine: n } = mn(), l = k(!1), s = k(!1), o = k({}), r = S(() => s.value ? "查看依赖" : o.value ? "编辑依赖" : "新增依赖"), a = (d) => d.required || d.official ? [] : ["edit", "remove"], i = (d) => d.official && !d.required, m = async (d) => (d.urls = d.urls.split(`
2526
+ `), n.project.value?.setDeps(d), !0), v = (d) => {
2526
2527
  n.project.value?.setDeps(d);
2527
2528
  }, g = () => {
2528
2529
  s.value = !1, l.value = !0, o.value = null;
@@ -2546,7 +2547,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
2546
2547
  onPlus: g
2547
2548
  }, {
2548
2549
  default: f(() => [
2549
- (c(!0), $(P, null, z(t(e), (w) => (c(), b(t(se), {
2550
+ (c(!0), V(P, null, z(t(e), (w) => (c(), b(t(se), {
2550
2551
  key: w.package,
2551
2552
  title: w.package,
2552
2553
  subtitle: w.version,
@@ -2555,7 +2556,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
2555
2556
  switch: i(w),
2556
2557
  modelValue: w.enabled,
2557
2558
  "onUpdate:modelValue": (C) => w.enabled = C,
2558
- onSwitch: (C) => m(w),
2559
+ onSwitch: (C) => v(w),
2559
2560
  onClick: (C) => y(w),
2560
2561
  onAction: (C) => h(w, C)
2561
2562
  }, null, 8, ["title", "subtitle", "actions", "switch", "modelValue", "onUpdate:modelValue", "onSwitch", "onClick", "onAction"]))), 128)),
@@ -2566,7 +2567,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
2566
2567
  height: "500px",
2567
2568
  title: r.value,
2568
2569
  model: o.value,
2569
- submitMethod: v,
2570
+ submitMethod: m,
2570
2571
  formProps: {
2571
2572
  disabled: s.value,
2572
2573
  tooltipMessage: !1
@@ -2612,7 +2613,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
2612
2613
  _: 1
2613
2614
  }));
2614
2615
  }
2615
- }), co = /* @__PURE__ */ E({
2616
+ }), co = /* @__PURE__ */ $({
2616
2617
  __name: "actions",
2617
2618
  props: {
2618
2619
  position: {},
@@ -2621,11 +2622,11 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
2621
2622
  },
2622
2623
  emits: ["action"],
2623
2624
  setup(u, { emit: e }) {
2624
- const n = u, l = e, s = S(() => n.model.name), o = S(() => !Q(n.model) && !n.model.locked), r = S(() => n.path.map((m) => ({
2625
- command: m,
2626
- label: m.name,
2625
+ const n = u, l = e, s = S(() => n.model.name), o = S(() => !Q(n.model) && !n.model.locked), r = S(() => n.path.map((v) => ({
2626
+ command: v,
2627
+ label: v.name,
2627
2628
  onMouseenter: () => {
2628
- l("action", { type: "hover", model: m });
2629
+ l("action", { type: "hover", model: v });
2629
2630
  }
2630
2631
  }))), a = [
2631
2632
  {
@@ -2648,12 +2649,12 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
2648
2649
  icon: Xe,
2649
2650
  title: "删除"
2650
2651
  }
2651
- ], i = (m) => {
2652
- l("action", { type: "selected", model: m.command });
2653
- }, v = async (m) => {
2654
- m.name === "remove" ? await Be("确定删除?") && l("action", { type: m.name, model: n.model }) : l("action", { type: m.name, model: n.model });
2652
+ ], i = (v) => {
2653
+ l("action", { type: "selected", model: v.command });
2654
+ }, m = async (v) => {
2655
+ v.name === "remove" ? await Be("确定删除?") && l("action", { type: v.name, model: n.model }) : l("action", { type: v.name, model: n.model });
2655
2656
  };
2656
- return (m, g) => (c(), $("div", {
2657
+ return (v, g) => (c(), V("div", {
2657
2658
  class: W(["v-actions", [`is-${n.position}`]])
2658
2659
  }, [
2659
2660
  p(t(fe), {
@@ -2671,56 +2672,57 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
2671
2672
  size: "small",
2672
2673
  items: a,
2673
2674
  background: "none",
2674
- onClick: v
2675
+ onClick: m
2675
2676
  }, null, 8, ["disabled"])
2676
2677
  ], 2));
2677
2678
  }
2678
2679
  }), po = {
2679
2680
  key: 1,
2680
2681
  class: "v-designer__placeholder"
2681
- }, mo = /* @__PURE__ */ E({
2682
+ }, mo = /* @__PURE__ */ $({
2682
2683
  name: "VDesigner",
2683
2684
  inheritAttrs: !1,
2684
2685
  __name: "index",
2685
2686
  setup(u, { expose: e }) {
2686
- const n = k(), l = k(), { width: s, height: o } = Fe(n), { dependencies: r, engine: a } = mn(), { current: i, isEmpty: v } = oe(), m = S(() => a.skeleton?.getWidget("Toolbar")?.widgetRef.mode ?? "pc"), { designer: g, hover: y, dropping: h, selected: d } = _a(
2687
+ const n = k(), l = k(), { width: s, height: o } = Fe(n), { dependencies: r, engine: a, apis: i } = mn(), { current: m, isEmpty: v } = oe(), g = S(() => a.skeleton?.getWidget("Toolbar")?.widgetRef.mode ?? "pc"), { designer: y, hover: h, dropping: d, selected: _ } = _a(
2687
2688
  l,
2688
- r
2689
- ), _ = (w) => {
2690
- const C = w.type, V = w.model;
2691
- if (i.value)
2692
- switch (C) {
2689
+ r,
2690
+ i
2691
+ ), w = (C) => {
2692
+ const I = C.type, j = C.model;
2693
+ if (m.value)
2694
+ switch (I) {
2693
2695
  case "remove":
2694
- i.value.removeNode(V), g.value?.setSelected(null);
2696
+ m.value.removeNode(j), y.value?.setSelected(null);
2695
2697
  break;
2696
2698
  case "copy":
2697
- const A = i.value.cloneNode(V);
2698
- g.value?.setSelected(A);
2699
+ const T = m.value.cloneNode(j);
2700
+ y.value?.setSelected(T);
2699
2701
  break;
2700
2702
  case "prev":
2701
- i.value.movePrev(V), g.value?.setSelected(V);
2703
+ m.value.movePrev(j), y.value?.setSelected(j);
2702
2704
  break;
2703
2705
  case "next":
2704
- i.value.moveNext(V), g.value?.setSelected(V);
2706
+ m.value.moveNext(j), y.value?.setSelected(j);
2705
2707
  break;
2706
2708
  case "hover":
2707
- g.value?.setHover(V);
2709
+ y.value?.setHover(j);
2708
2710
  break;
2709
2711
  case "selected":
2710
- g.value?.setSelected(V);
2712
+ y.value?.setSelected(j);
2711
2713
  break;
2712
2714
  }
2713
2715
  };
2714
2716
  return e({
2715
- designer: g,
2716
- mode: m
2717
- }), (w, C) => (c(), $("div", {
2717
+ designer: y,
2718
+ mode: g
2719
+ }), (C, I) => (c(), V("div", {
2718
2720
  ref_key: "container",
2719
2721
  ref: n,
2720
2722
  class: "v-designer"
2721
2723
  }, [
2722
2724
  p(t(hn), {
2723
- mode: m.value,
2725
+ mode: g.value,
2724
2726
  width: t(s),
2725
2727
  height: t(o)
2726
2728
  }, {
@@ -2730,46 +2732,46 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
2730
2732
  ref: l,
2731
2733
  frameborder: "0"
2732
2734
  }, null, 512),
2733
- t(h) ? (c(), $("div", {
2735
+ t(d) ? (c(), V("div", {
2734
2736
  key: 0,
2735
2737
  class: W(["v-designer__dropping", "is-inner"]),
2736
- style: Le(t(h).style)
2737
- }, null, 4)) : I("", !0),
2738
- t(y) ? (c(), $("div", {
2738
+ style: Le(t(d).style)
2739
+ }, null, 4)) : E("", !0),
2740
+ t(h) ? (c(), V("div", {
2739
2741
  key: 1,
2740
2742
  class: "v-designer__hover",
2741
- style: Le(t(y).style)
2743
+ style: Le(t(h).style)
2742
2744
  }, [
2743
2745
  x("span", {
2744
- class: W(`is-${t(y).position}`)
2746
+ class: W(`is-${t(h).position}`)
2745
2747
  }, [
2746
- q(B(t(y).model.name) + ": ", 1),
2747
- x("i", null, B(t(y).model.id), 1)
2748
+ q(B(t(h).model.name) + ": ", 1),
2749
+ x("i", null, B(t(h).model.id), 1)
2748
2750
  ], 2)
2749
- ], 4)) : I("", !0),
2750
- t(d) ? (c(), $("div", {
2751
+ ], 4)) : E("", !0),
2752
+ t(_) ? (c(), V("div", {
2751
2753
  key: 2,
2752
2754
  class: "v-designer__selected",
2753
- style: Le(t(d).style)
2755
+ style: Le(t(_).style)
2754
2756
  }, [
2755
2757
  p(co, {
2756
- position: t(d).position,
2757
- model: t(d).model,
2758
- path: t(d).path,
2759
- onAction: _
2758
+ position: t(_).position,
2759
+ model: t(_).model,
2760
+ path: t(_).path,
2761
+ onAction: w
2760
2762
  }, null, 8, ["position", "model", "path"])
2761
- ], 4)) : I("", !0)
2763
+ ], 4)) : E("", !0)
2762
2764
  ]),
2763
2765
  _: 1
2764
2766
  }, 8, ["mode", "width", "height"]),
2765
- t(i) ? I("", !0) : (c(), b(t(le), {
2767
+ t(m) ? E("", !0) : (c(), b(t(le), {
2766
2768
  key: 0,
2767
2769
  description: "请新建或打开文件"
2768
2770
  })),
2769
- t(i) && t(v) ? (c(), $("div", po, " 您可以拖拽组件放置到这里 ")) : I("", !0)
2771
+ t(m) && t(v) ? (c(), V("div", po, " 您可以拖拽组件放置到这里 ")) : E("", !0)
2770
2772
  ], 512));
2771
2773
  }
2772
- }), Me = /* @__PURE__ */ E({
2774
+ }), Me = /* @__PURE__ */ $({
2773
2775
  __name: "group",
2774
2776
  props: {
2775
2777
  context: {},
@@ -2788,7 +2790,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
2788
2790
  () => r.value ? `编辑${e.title}` : `新增${e.title}`
2789
2791
  ), i = () => {
2790
2792
  r.value = !1, o.value = e.createEmpty(), s.value = !0;
2791
- }, v = (d, _) => {
2793
+ }, m = (d, _) => {
2792
2794
  switch (_.name) {
2793
2795
  case "edit":
2794
2796
  g(d);
@@ -2797,7 +2799,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
2797
2799
  e.remove(d);
2798
2800
  break;
2799
2801
  }
2800
- }, m = (d) => {
2802
+ }, v = (d) => {
2801
2803
  o.value.value = d;
2802
2804
  }, g = (d) => {
2803
2805
  r.value = !0, o.value = {
@@ -2815,14 +2817,14 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
2815
2817
  onPlus: i
2816
2818
  }, {
2817
2819
  default: f(() => [
2818
- (c(!0), $(P, null, z(d.list, (w) => (c(), b(t(se), {
2820
+ (c(!0), V(P, null, z(d.list, (w) => (c(), b(t(se), {
2819
2821
  title: e.itemTitle(w),
2820
2822
  border: "",
2821
2823
  actions: ["edit", "remove"],
2822
- onAction: (C) => v(w, C),
2824
+ onAction: (C) => m(w, C),
2823
2825
  onClick: (C) => g(w)
2824
2826
  }, null, 8, ["title", "onAction", "onClick"]))), 256)),
2825
- d.list.length ? I("", !0) : (c(), b(t(le), {
2827
+ d.list.length ? E("", !0) : (c(), b(t(le), {
2826
2828
  key: 0,
2827
2829
  "image-size": 40
2828
2830
  })),
@@ -2834,7 +2836,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
2834
2836
  model: o.value,
2835
2837
  block: d.current,
2836
2838
  context: d.context,
2837
- onPick: m
2839
+ onPick: v
2838
2840
  }, {
2839
2841
  default: f(() => [
2840
2842
  ye(d.$slots, "fields", Jt(Ft({ model: o.value, isEdit: r.value, nameLabel: d.nameLabel, valueLabel: d.valueLabel })), () => [
@@ -2872,7 +2874,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
2872
2874
  _: 3
2873
2875
  }, 8, ["title"]));
2874
2876
  }
2875
- }), vo = /* @__PURE__ */ E({
2877
+ }), vo = /* @__PURE__ */ $({
2876
2878
  __name: "state",
2877
2879
  props: {
2878
2880
  context: {},
@@ -2883,14 +2885,14 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
2883
2885
  name: "",
2884
2886
  value: ""
2885
2887
  }), s = (r) => e.current?.removeState(r.name), o = async (r, a) => {
2886
- const { name: i, value: v } = r;
2888
+ const { name: i, value: m } = r;
2887
2889
  if (!a && e.current?.state[i])
2888
2890
  return te(`名称 ${i} 已存在,请更换!`), !1;
2889
- const m = {
2891
+ const v = {
2890
2892
  type: "JSExpression",
2891
- value: v
2893
+ value: m
2892
2894
  };
2893
- return ae(m, e.context, !0) ? (e.current?.setState(i, m), !0) : !1;
2895
+ return ae(v, e.context, !0) ? (e.current?.setState(i, v), !0) : !1;
2894
2896
  };
2895
2897
  return (r, a) => (c(), b(Me, {
2896
2898
  title: "状态数据",
@@ -2904,7 +2906,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
2904
2906
  submit: o
2905
2907
  }, null, 8, ["current", "context", "list"]));
2906
2908
  }
2907
- }), go = /* @__PURE__ */ E({
2909
+ }), go = /* @__PURE__ */ $({
2908
2910
  __name: "computed",
2909
2911
  props: {
2910
2912
  context: {},
@@ -2915,14 +2917,14 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
2915
2917
  name: "",
2916
2918
  value: "() => { }"
2917
2919
  }), s = (r) => e.current?.removeFunction("computed", r.name), o = async (r, a) => {
2918
- const { name: i, value: v } = r;
2920
+ const { name: i, value: m } = r;
2919
2921
  if (!a && e.current?.computed[i])
2920
2922
  return te(`名称 ${i} 已存在,请更换!`), !1;
2921
- const m = {
2923
+ const v = {
2922
2924
  type: "JSFunction",
2923
- value: v
2925
+ value: m
2924
2926
  };
2925
- return ae(m, e.context, !0) ? (e.current?.setFunction("computed", i, m), !0) : !1;
2927
+ return ae(v, e.context, !0) ? (e.current?.setFunction("computed", i, v), !0) : !1;
2926
2928
  };
2927
2929
  return (r, a) => (c(), b(Me, {
2928
2930
  title: "计算属性",
@@ -2936,7 +2938,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
2936
2938
  submit: o
2937
2939
  }, null, 8, ["current", "context", "list"]));
2938
2940
  }
2939
- }), fo = /* @__PURE__ */ E({
2941
+ }), fo = /* @__PURE__ */ $({
2940
2942
  __name: "methods",
2941
2943
  props: {
2942
2944
  context: {},
@@ -2947,14 +2949,14 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
2947
2949
  name: "",
2948
2950
  value: "() => { }"
2949
2951
  }), s = (r) => e.current?.removeFunction("methods", r.name), o = async (r, a) => {
2950
- const { name: i, value: v } = r;
2952
+ const { name: i, value: m } = r;
2951
2953
  if (!a && e.current?.methods[i])
2952
2954
  return te(`名称 ${i} 已存在,请更换!`), !1;
2953
- const m = {
2955
+ const v = {
2954
2956
  type: "JSFunction",
2955
- value: v
2957
+ value: m
2956
2958
  };
2957
- return ae(m, e.context, !0) ? (e.current?.setFunction("methods", i, m), !0) : !1;
2959
+ return ae(v, e.context, !0) ? (e.current?.setFunction("methods", i, v), !0) : !1;
2958
2960
  };
2959
2961
  return (r, a) => (c(), b(Me, {
2960
2962
  title: "组件方法",
@@ -2968,7 +2970,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
2968
2970
  submit: o
2969
2971
  }, null, 8, ["current", "context", "list"]));
2970
2972
  }
2971
- }), ho = /* @__PURE__ */ E({
2973
+ }), ho = /* @__PURE__ */ $({
2972
2974
  __name: "lifeCycles",
2973
2975
  props: {
2974
2976
  context: {},
@@ -2978,18 +2980,18 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
2978
2980
  const e = u, n = S(() => gl.map((a) => ({
2979
2981
  label: a,
2980
2982
  value: a
2981
- }))), l = S(() => Object.entries(e.current?.lifeCycles || {}).map(([i, v]) => ({ name: i, value: Re(v) }))), s = () => ({
2983
+ }))), l = S(() => Object.entries(e.current?.lifeCycles || {}).map(([i, m]) => ({ name: i, value: Re(m) }))), s = () => ({
2982
2984
  name: "",
2983
2985
  value: "() => { }"
2984
2986
  }), o = (a) => e.current?.removeFunction("lifeCycles", a.name), r = async (a, i) => {
2985
- const { name: v, value: m } = a;
2986
- if (!i && e.current?.lifeCycles[v])
2987
- return te(`名称 ${v} 已存在,请更换!`), !1;
2987
+ const { name: m, value: v } = a;
2988
+ if (!i && e.current?.lifeCycles[m])
2989
+ return te(`名称 ${m} 已存在,请更换!`), !1;
2988
2990
  const g = {
2989
2991
  type: "JSFunction",
2990
- value: m
2992
+ value: v
2991
2993
  };
2992
- return ae(g, e.context, !0) ? (e.current?.setFunction("lifeCycles", v, g), !0) : !1;
2994
+ return ae(g, e.context, !0) ? (e.current?.setFunction("lifeCycles", m, g), !0) : !1;
2993
2995
  };
2994
2996
  return (a, i) => (c(), b(Me, {
2995
2997
  title: "生命周期",
@@ -3002,10 +3004,10 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
3002
3004
  remove: o,
3003
3005
  submit: r
3004
3006
  }, {
3005
- fields: f(({ model: v, nameLabel: m, isEdit: g, valueLabel: y }) => [
3007
+ fields: f(({ model: m, nameLabel: v, isEdit: g, valueLabel: y }) => [
3006
3008
  p(t(D), {
3007
3009
  name: "name",
3008
- label: m,
3010
+ label: v,
3009
3011
  editor: "select",
3010
3012
  options: n.value,
3011
3013
  required: "",
@@ -3021,8 +3023,8 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
3021
3023
  ref: "editorRef",
3022
3024
  dark: "",
3023
3025
  height: "350px",
3024
- modelValue: v.value,
3025
- "onUpdate:modelValue": (h) => v.value = h
3026
+ modelValue: m.value,
3027
+ "onUpdate:modelValue": (h) => m.value = h
3026
3028
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
3027
3029
  ]),
3028
3030
  _: 2
@@ -3031,7 +3033,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
3031
3033
  _: 1
3032
3034
  }, 8, ["current", "context", "list"]));
3033
3035
  }
3034
- }), bo = /* @__PURE__ */ E({
3036
+ }), bo = /* @__PURE__ */ $({
3035
3037
  __name: "watch",
3036
3038
  props: {
3037
3039
  context: {},
@@ -3048,19 +3050,19 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
3048
3050
  immediate: !1,
3049
3051
  handler: "() => { }"
3050
3052
  }), s = (a) => a.source, o = (a) => e.current?.removeWatch(a), r = async (a, i) => {
3051
- const v = {
3053
+ const m = {
3052
3054
  type: "JSFunction",
3053
3055
  value: a.source
3054
- }, m = {
3056
+ }, v = {
3055
3057
  type: "JSFunction",
3056
3058
  value: a.handler
3057
3059
  };
3058
- if (!ae(v, e.context, !0) || !ae(m, e.context, !0))
3060
+ if (!ae(m, e.context, !0) || !ae(v, e.context, !0))
3059
3061
  return !1;
3060
3062
  const g = {
3061
3063
  ...a,
3062
- source: v,
3063
- handler: m
3064
+ source: m,
3065
+ handler: v
3064
3066
  };
3065
3067
  return e.current?.setWatch(g), !0;
3066
3068
  };
@@ -3077,33 +3079,33 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
3077
3079
  itemTitle: s,
3078
3080
  grow: ""
3079
3081
  }, {
3080
- fields: f(({ model: v, nameLabel: m, valueLabel: g }) => [
3082
+ fields: f(({ model: m, nameLabel: v, valueLabel: g }) => [
3081
3083
  p(t(D), {
3082
3084
  name: "source",
3083
- label: m,
3085
+ label: v,
3084
3086
  required: ""
3085
3087
  }, {
3086
3088
  editor: f(() => [
3087
3089
  p(t(ne), {
3088
3090
  dark: "",
3089
3091
  height: "100px",
3090
- modelValue: v.source,
3091
- "onUpdate:modelValue": (y) => v.source = y
3092
+ modelValue: m.source,
3093
+ "onUpdate:modelValue": (y) => m.source = y
3092
3094
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
3093
3095
  ]),
3094
3096
  _: 2
3095
3097
  }, 1032, ["label"]),
3096
3098
  p(t(D), {
3097
3099
  name: "deep",
3098
- modelValue: v.deep,
3099
- "onUpdate:modelValue": (y) => v.deep = y,
3100
+ modelValue: m.deep,
3101
+ "onUpdate:modelValue": (y) => m.deep = y,
3100
3102
  label: "深度监听",
3101
3103
  editor: "switch"
3102
3104
  }, null, 8, ["modelValue", "onUpdate:modelValue"]),
3103
3105
  p(t(D), {
3104
3106
  name: "immediate",
3105
- modelValue: v.immediate,
3106
- "onUpdate:modelValue": (y) => v.immediate = y,
3107
+ modelValue: m.immediate,
3108
+ "onUpdate:modelValue": (y) => m.immediate = y,
3107
3109
  label: "立即执行",
3108
3110
  editor: "switch"
3109
3111
  }, null, 8, ["modelValue", "onUpdate:modelValue"]),
@@ -3116,8 +3118,8 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
3116
3118
  p(t(ne), {
3117
3119
  dark: "",
3118
3120
  height: "130px",
3119
- modelValue: v.handler,
3120
- "onUpdate:modelValue": (y) => v.handler = y
3121
+ modelValue: m.handler,
3122
+ "onUpdate:modelValue": (y) => m.handler = y
3121
3123
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
3122
3124
  ]),
3123
3125
  _: 2
@@ -3126,7 +3128,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
3126
3128
  _: 1
3127
3129
  }, 8, ["current", "context", "list"]));
3128
3130
  }
3129
- }), yo = /* @__PURE__ */ E({
3131
+ }), yo = /* @__PURE__ */ $({
3130
3132
  __name: "index",
3131
3133
  setup(u) {
3132
3134
  const { current: e, context: n } = oe();
@@ -3160,7 +3162,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
3160
3162
  _: 1
3161
3163
  }));
3162
3164
  }
3163
- }), lt = /* @__PURE__ */ E({
3165
+ }), lt = /* @__PURE__ */ $({
3164
3166
  __name: "setters",
3165
3167
  props: {
3166
3168
  context: {},
@@ -3192,7 +3194,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
3192
3194
  }, ["prevent", "stop"]), ["enter"]))
3193
3195
  }, {
3194
3196
  default: f(() => [
3195
- (c(!0), $(P, null, z(n.items, (i) => (c(), b(t(F), re(i, {
3197
+ (c(!0), V(P, null, z(n.items, (i) => (c(), b(t(O), re(i, {
3196
3198
  key: `${i.name}_${n.node.id}`,
3197
3199
  current: n.current,
3198
3200
  context: n.context,
@@ -3207,7 +3209,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
3207
3209
  _: 1
3208
3210
  }, 8, ["title"]));
3209
3211
  }
3210
- }), _o = /* @__PURE__ */ E({
3212
+ }), _o = /* @__PURE__ */ $({
3211
3213
  name: "PropertiesWidget",
3212
3214
  __name: "index",
3213
3215
  setup(u) {
@@ -3217,20 +3219,20 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
3217
3219
  change: r,
3218
3220
  componentProps: a,
3219
3221
  customProps: i,
3220
- addCustom: v,
3221
- removeCustom: m,
3222
+ addCustom: m,
3223
+ removeCustom: v,
3222
3224
  isExist: g
3223
3225
  } = xa(l), y = k(!1), h = k(), d = () => {
3224
3226
  y.value = !0, h.value = {
3225
3227
  name: ""
3226
3228
  };
3227
3229
  }, _ = async (C) => {
3228
- const V = Object.keys(s.value?.props || {});
3229
- return !g(C.name) && !V.includes(C.name) ? (v(C.name), !0) : (te("已存在该属性名称"), !1);
3230
+ const I = Object.keys(s.value?.props || {});
3231
+ return !g(C.name) && !I.includes(C.name) ? (m(C.name), !0) : (te("已存在该属性名称"), !1);
3230
3232
  }, w = async (C) => {
3231
- await Be("确定删除?") && m(C);
3233
+ await Be("确定删除?") && v(C);
3232
3234
  };
3233
- return (C, V) => t(e) ? (c(), b(t(M), {
3235
+ return (C, I) => t(e) ? (c(), b(t(M), {
3234
3236
  key: 0,
3235
3237
  class: "v-properties-widget",
3236
3238
  direction: "column",
@@ -3245,7 +3247,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
3245
3247
  node: t(s),
3246
3248
  items: t(o),
3247
3249
  onChange: t(r)
3248
- }, null, 8, ["current", "context", "node", "items", "onChange"])) : I("", !0),
3250
+ }, null, 8, ["current", "context", "node", "items", "onChange"])) : E("", !0),
3249
3251
  t(s) && t(a).length ? (c(), b(lt, {
3250
3252
  key: 1,
3251
3253
  title: "组件属性",
@@ -3254,7 +3256,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
3254
3256
  node: t(s),
3255
3257
  items: t(a),
3256
3258
  onChange: t(r)
3257
- }, null, 8, ["current", "context", "node", "items", "onChange"])) : I("", !0),
3259
+ }, null, 8, ["current", "context", "node", "items", "onChange"])) : E("", !0),
3258
3260
  t(s) ? (c(), b(lt, {
3259
3261
  key: 2,
3260
3262
  title: "自定义属性",
@@ -3268,10 +3270,10 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
3268
3270
  grow: "",
3269
3271
  onPlus: d,
3270
3272
  onRemove: w
3271
- }, null, 8, ["current", "context", "node", "items", "onChange"])) : I("", !0),
3273
+ }, null, 8, ["current", "context", "node", "items", "onChange"])) : E("", !0),
3272
3274
  p(t(he), {
3273
3275
  modelValue: y.value,
3274
- "onUpdate:modelValue": V[0] || (V[0] = (A) => y.value = A),
3276
+ "onUpdate:modelValue": I[0] || (I[0] = (j) => y.value = j),
3275
3277
  title: "新增自定义属性",
3276
3278
  width: "400px",
3277
3279
  height: "150px",
@@ -3294,9 +3296,9 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
3294
3296
  }, 8, ["modelValue", "model"])
3295
3297
  ]),
3296
3298
  _: 1
3297
- })) : I("", !0);
3299
+ })) : E("", !0);
3298
3300
  }
3299
- }), wo = /* @__PURE__ */ E({
3301
+ }), wo = /* @__PURE__ */ $({
3300
3302
  name: "VariableBinder",
3301
3303
  __name: "variable",
3302
3304
  props: {
@@ -3341,7 +3343,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
3341
3343
  _: 1
3342
3344
  }, 8, ["block", "context", "model"]));
3343
3345
  }
3344
- }), ko = /* @__PURE__ */ E({
3346
+ }), ko = /* @__PURE__ */ $({
3345
3347
  name: "EventBinder",
3346
3348
  __name: "event",
3347
3349
  props: {
@@ -3390,7 +3392,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
3390
3392
  ref_key: "editorRef",
3391
3393
  ref: n,
3392
3394
  modelValue: s.handler.value,
3393
- "onUpdate:modelValue": i[0] || (i[0] = (v) => s.handler.value = v),
3395
+ "onUpdate:modelValue": i[0] || (i[0] = (m) => s.handler.value = m),
3394
3396
  dark: "",
3395
3397
  height: "350px"
3396
3398
  }, null, 8, ["modelValue"])
@@ -3401,19 +3403,19 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
3401
3403
  _: 1
3402
3404
  }, 8, ["block", "context", "model"]));
3403
3405
  }
3404
- }), So = /* @__PURE__ */ E({
3406
+ }), So = /* @__PURE__ */ $({
3405
3407
  name: "EventsWidget",
3406
3408
  __name: "index",
3407
3409
  setup(u) {
3408
3410
  const { current: e, context: n } = oe(), { selected: l } = be(), { mouseEventList: s, keyboardEventList: o, componentEventList: r } = Ca(l), a = k({
3409
3411
  name: "",
3410
3412
  event: void 0
3411
- }), i = k(!1), v = (d) => {
3413
+ }), i = k(!1), m = (d) => {
3412
3414
  a.value = Qe(d), i.value = !0;
3413
- }, m = async (d) => {
3415
+ }, v = async (d) => {
3414
3416
  const _ = {
3415
3417
  ...d,
3416
- modifiers: d.modifiers.reduce((C, V) => (C[V] = !0, C), {})
3418
+ modifiers: d.modifiers.reduce((C, I) => (C[I] = !0, C), {})
3417
3419
  };
3418
3420
  return ae(_.handler, n.value, !0) ? ((l.value?.model).setEvent(_), !0) : !1;
3419
3421
  }, g = async (d) => {
@@ -3423,7 +3425,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
3423
3425
  a.value.name && await Be("确定要删除该事件吗?") && g(a.value);
3424
3426
  }, h = (d) => {
3425
3427
  const { name: _, modelValue: w } = d;
3426
- _ === "edit" && v(w), _ === "remove" && g(w);
3428
+ _ === "edit" && m(w), _ === "remove" && g(w);
3427
3429
  };
3428
3430
  return (d, _) => (c(), b(t(M), {
3429
3431
  class: "v-events-widget",
@@ -3438,12 +3440,12 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
3438
3440
  fit: !1
3439
3441
  }, {
3440
3442
  default: f(() => [
3441
- t(r).length ? I("", !0) : (c(), b(t(le), {
3443
+ t(r).length ? E("", !0) : (c(), b(t(le), {
3442
3444
  key: 0,
3443
3445
  "image-size": 50,
3444
3446
  description: "该组件无自带事件"
3445
3447
  })),
3446
- (c(!0), $(P, null, z(t(r), (w) => (c(), b(t(se), {
3448
+ (c(!0), V(P, null, z(t(r), (w) => (c(), b(t(se), {
3447
3449
  key: `component_${w.name}`,
3448
3450
  title: w.name,
3449
3451
  "model-value": w,
@@ -3451,7 +3453,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
3451
3453
  small: "",
3452
3454
  actions: w.event ? ["edit", "remove"] : ["edit"],
3453
3455
  active: !!w.event,
3454
- onClick: (C) => v(w),
3456
+ onClick: (C) => m(w),
3455
3457
  onAction: h
3456
3458
  }, null, 8, ["title", "model-value", "actions", "active", "onClick"]))), 128))
3457
3459
  ]),
@@ -3464,7 +3466,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
3464
3466
  fit: !1
3465
3467
  }, {
3466
3468
  default: f(() => [
3467
- (c(!0), $(P, null, z(t(s), (w) => (c(), b(t(se), {
3469
+ (c(!0), V(P, null, z(t(s), (w) => (c(), b(t(se), {
3468
3470
  key: `mouse_${w.name}`,
3469
3471
  title: w.name,
3470
3472
  "model-value": w,
@@ -3472,7 +3474,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
3472
3474
  small: "",
3473
3475
  actions: w.event ? ["edit", "remove"] : ["edit"],
3474
3476
  active: !!w.event,
3475
- onClick: (C) => v(w),
3477
+ onClick: (C) => m(w),
3476
3478
  onAction: h
3477
3479
  }, null, 8, ["title", "model-value", "actions", "active", "onClick"]))), 128))
3478
3480
  ]),
@@ -3486,7 +3488,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
3486
3488
  fit: !1
3487
3489
  }, {
3488
3490
  default: f(() => [
3489
- (c(!0), $(P, null, z(t(o), (w) => (c(), b(t(se), {
3491
+ (c(!0), V(P, null, z(t(o), (w) => (c(), b(t(se), {
3490
3492
  key: `keyboard_${w.name}`,
3491
3493
  title: w.name,
3492
3494
  "model-value": w,
@@ -3494,7 +3496,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
3494
3496
  small: "",
3495
3497
  actions: w.event ? ["edit", "remove"] : ["edit"],
3496
3498
  active: !!w.event,
3497
- onClick: (C) => v(w),
3499
+ onClick: (C) => m(w),
3498
3500
  onAction: h
3499
3501
  }, null, 8, ["title", "model-value", "actions", "active", "onClick"]))), 128))
3500
3502
  ]),
@@ -3508,14 +3510,14 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
3508
3510
  current: t(e),
3509
3511
  name: a.value.name,
3510
3512
  event: a.value.event,
3511
- submitMethod: m,
3513
+ submitMethod: v,
3512
3514
  onUnbind: y
3513
- }, null, 8, ["modelValue", "context", "current", "name", "event"])) : I("", !0)
3515
+ }, null, 8, ["modelValue", "context", "current", "name", "event"])) : E("", !0)
3514
3516
  ]),
3515
3517
  _: 1
3516
3518
  }));
3517
3519
  }
3518
- }), xo = /* @__PURE__ */ E({
3520
+ }), xo = /* @__PURE__ */ $({
3519
3521
  name: "CssWidget",
3520
3522
  __name: "index",
3521
3523
  setup(u) {
@@ -3547,7 +3549,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
3547
3549
  _: 1
3548
3550
  }));
3549
3551
  }
3550
- }), Co = /* @__PURE__ */ E({
3552
+ }), Co = /* @__PURE__ */ $({
3551
3553
  name: "DirectivesWidget",
3552
3554
  __name: "index",
3553
3555
  setup(u) {
@@ -3557,8 +3559,8 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
3557
3559
  vBind: r,
3558
3560
  vFor: a,
3559
3561
  vModels: i,
3560
- onValueChange: v,
3561
- onForChange: m,
3562
+ onValueChange: m,
3563
+ onForChange: v,
3562
3564
  onModelChange: g
3563
3565
  } = Ea(l), y = (h) => h.arg ? typeof h.arg == "string" ? h.arg : Ge(h.arg, {}) : "modelValue";
3564
3566
  return (h, d) => (c(), b(t(M), {
@@ -3581,32 +3583,32 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
3581
3583
  }, ["prevent", "stop"]), ["enter"]))
3582
3584
  }, {
3583
3585
  default: f(() => [
3584
- p(t(F), {
3586
+ p(t(O), {
3585
3587
  name: "vIf",
3586
3588
  label: "v-if",
3587
3589
  setters: "ExpressionSetter",
3588
3590
  current: t(e),
3589
3591
  context: t(n),
3590
3592
  value: t(s).value,
3591
- onChange: t(v)
3593
+ onChange: t(m)
3592
3594
  }, null, 8, ["current", "context", "value", "onChange"]),
3593
- p(t(F), {
3595
+ p(t(O), {
3594
3596
  name: "vShow",
3595
3597
  label: "v-show",
3596
3598
  setters: "ExpressionSetter",
3597
3599
  current: t(e),
3598
3600
  context: t(n),
3599
3601
  value: t(o).value,
3600
- onChange: t(v)
3602
+ onChange: t(m)
3601
3603
  }, null, 8, ["current", "context", "value", "onChange"]),
3602
- p(t(F), {
3604
+ p(t(O), {
3603
3605
  name: "vBind",
3604
3606
  label: "v-bind",
3605
3607
  setters: "ExpressionSetter",
3606
3608
  current: t(e),
3607
3609
  context: t(n),
3608
3610
  value: t(r).value,
3609
- onChange: t(v)
3611
+ onChange: t(m)
3610
3612
  }, null, 8, ["current", "context", "value", "onChange"])
3611
3613
  ]),
3612
3614
  _: 1
@@ -3628,16 +3630,16 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
3628
3630
  }, ["prevent", "stop"]), ["enter"]))
3629
3631
  }, {
3630
3632
  default: f(() => [
3631
- p(t(F), {
3633
+ p(t(O), {
3632
3634
  name: "value",
3633
3635
  label: "循环数据",
3634
3636
  setters: "ExpressionSetter",
3635
3637
  current: t(e),
3636
3638
  context: t(n),
3637
3639
  value: t(a).value,
3638
- onChange: t(m)
3640
+ onChange: t(v)
3639
3641
  }, null, 8, ["current", "context", "value", "onChange"]),
3640
- p(t(F), {
3642
+ p(t(O), {
3641
3643
  name: "item",
3642
3644
  label: "迭代变量名",
3643
3645
  setters: {
@@ -3647,9 +3649,9 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
3647
3649
  current: t(e),
3648
3650
  context: t(n),
3649
3651
  value: t(a).iterator?.item,
3650
- onChange: t(m)
3652
+ onChange: t(v)
3651
3653
  }, null, 8, ["current", "context", "value", "onChange"]),
3652
- p(t(F), {
3654
+ p(t(O), {
3653
3655
  name: "index",
3654
3656
  label: "索引变量名",
3655
3657
  setters: {
@@ -3659,7 +3661,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
3659
3661
  current: t(e),
3660
3662
  context: t(n),
3661
3663
  value: t(a).iterator?.index,
3662
- onChange: t(m)
3664
+ onChange: t(v)
3663
3665
  }, null, 8, ["current", "context", "value", "onChange"])
3664
3666
  ]),
3665
3667
  _: 1
@@ -3675,7 +3677,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
3675
3677
  grow: ""
3676
3678
  }, {
3677
3679
  default: f(() => [
3678
- (c(!0), $(P, null, z(t(i), (_, w) => (c(), b(t(N), {
3680
+ (c(!0), V(P, null, z(t(i), (_, w) => (c(), b(t(N), {
3679
3681
  card: "",
3680
3682
  border: "",
3681
3683
  class: "v-sub-panel",
@@ -3692,7 +3694,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
3692
3694
  }, ["prevent", "stop"]), ["enter"]))
3693
3695
  }, {
3694
3696
  default: f(() => [
3695
- p(t(F), {
3697
+ p(t(O), {
3696
3698
  name: w.toString(),
3697
3699
  label: "绑定变量",
3698
3700
  setters: "ExpressionSetter",
@@ -3707,7 +3709,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
3707
3709
  ]),
3708
3710
  _: 2
3709
3711
  }, 1032, ["title"]))), 256)),
3710
- t(i).length ? I("", !0) : (c(), b(t(le), {
3712
+ t(i).length ? E("", !0) : (c(), b(t(le), {
3711
3713
  key: 0,
3712
3714
  description: "当前组件没有双向绑定属性",
3713
3715
  "image-size": 50
@@ -3719,7 +3721,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
3719
3721
  _: 1
3720
3722
  }));
3721
3723
  }
3722
- }), Vo = /* @__PURE__ */ E({
3724
+ }), Vo = /* @__PURE__ */ $({
3723
3725
  name: "DefinedPropsDialog",
3724
3726
  __name: "props",
3725
3727
  props: {
@@ -3797,7 +3799,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
3797
3799
  _: 1
3798
3800
  }, 8, ["title", "model"]));
3799
3801
  }
3800
- }), $o = /* @__PURE__ */ E({
3802
+ }), $o = /* @__PURE__ */ $({
3801
3803
  name: "DefinedEventsDialog",
3802
3804
  __name: "events",
3803
3805
  props: {
@@ -3832,7 +3834,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
3832
3834
  _: 1
3833
3835
  }, 8, ["title", "model"]));
3834
3836
  }
3835
- }), Eo = /* @__PURE__ */ E({
3837
+ }), Eo = /* @__PURE__ */ $({
3836
3838
  name: "DefinedSlotsDialog",
3837
3839
  __name: "slots",
3838
3840
  props: {
@@ -3867,7 +3869,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
3867
3869
  _: 1
3868
3870
  }, 8, ["title", "model"]));
3869
3871
  }
3870
- }), Io = /* @__PURE__ */ E({
3872
+ }), Io = /* @__PURE__ */ $({
3871
3873
  name: "DefinedInjectsDialog",
3872
3874
  __name: "injects",
3873
3875
  props: {
@@ -3934,38 +3936,38 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
3934
3936
  _: 1
3935
3937
  }, 8, ["title", "model"]));
3936
3938
  }
3937
- }), jo = /* @__PURE__ */ E({
3939
+ }), jo = /* @__PURE__ */ $({
3938
3940
  name: "DefinedWidget",
3939
3941
  __name: "index",
3940
3942
  setup(u) {
3941
- const { current: e, context: n } = oe(), l = S(() => (e.value?.props || []).map((L) => typeof L == "string" ? { name: L } : L)), s = S(() => e.value?.emits || []), o = S(() => e.value?.slots || []), r = S(() => e.value?.inject || []), a = k(!1), i = k(), v = k(!1), m = k(), g = k(!1), y = k(), h = k(!1), d = k(), _ = () => {
3943
+ const { current: e, context: n } = oe(), l = S(() => (e.value?.props || []).map((L) => typeof L == "string" ? { name: L } : L)), s = S(() => e.value?.emits || []), o = S(() => e.value?.slots || []), r = S(() => e.value?.inject || []), a = k(!1), i = k(), m = k(!1), v = k(), g = k(!1), y = k(), h = k(!1), d = k(), _ = () => {
3942
3944
  i.value = void 0, a.value = !0;
3943
3945
  }, w = (L) => {
3944
- const { name: G, modelValue: J } = L;
3945
- G === "edit" && C(J), G === "remove" && e.value?.removeProp(J);
3946
+ const { name: G, modelValue: F } = L;
3947
+ G === "edit" && C(F), G === "remove" && e.value?.removeProp(F);
3946
3948
  }, C = (L) => {
3947
3949
  i.value = L, a.value = !0;
3948
- }, V = () => {
3949
- m.value = void 0, v.value = !0;
3950
- }, A = (L) => {
3951
- m.value = L, v.value = !0;
3952
- }, O = (L) => {
3953
- const { name: G, modelValue: J } = L;
3954
- G === "edit" && A(J), G === "remove" && e.value?.removeEmit(J);
3955
- }, j = () => {
3956
- y.value = void 0, g.value = !0;
3950
+ }, I = () => {
3951
+ v.value = void 0, m.value = !0;
3952
+ }, j = (L) => {
3953
+ v.value = L, m.value = !0;
3957
3954
  }, T = (L) => {
3955
+ const { name: G, modelValue: F } = L;
3956
+ G === "edit" && j(F), G === "remove" && e.value?.removeEmit(F);
3957
+ }, A = () => {
3958
+ y.value = void 0, g.value = !0;
3959
+ }, J = (L) => {
3958
3960
  y.value = L, g.value = !0;
3959
3961
  }, R = (L) => {
3960
- const { name: G, modelValue: J } = L;
3961
- G === "edit" && T(J), G === "remove" && e.value?.removeSlot(J);
3962
+ const { name: G, modelValue: F } = L;
3963
+ G === "edit" && J(F), G === "remove" && e.value?.removeSlot(F);
3962
3964
  }, ee = () => {
3963
3965
  d.value = void 0, h.value = !0;
3964
3966
  }, ge = (L) => {
3965
3967
  d.value = L, h.value = !0;
3966
3968
  }, xe = (L) => {
3967
- const { name: G, modelValue: J } = L;
3968
- G === "edit" && ge(J), G === "remove" && e.value?.removeInject(J);
3969
+ const { name: G, modelValue: F } = L;
3970
+ G === "edit" && ge(F), G === "remove" && e.value?.removeInject(F);
3969
3971
  };
3970
3972
  return (L, G) => t(e) && t(n) ? (c(), b(t(M), {
3971
3973
  key: 0,
@@ -3983,15 +3985,15 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
3983
3985
  onPlus: _
3984
3986
  }, {
3985
3987
  default: f(() => [
3986
- (c(!0), $(P, null, z(l.value, (J) => (c(), b(t(se), {
3987
- "model-value": J,
3988
- title: J.name,
3988
+ (c(!0), V(P, null, z(l.value, (F) => (c(), b(t(se), {
3989
+ "model-value": F,
3990
+ title: F.name,
3989
3991
  border: "",
3990
3992
  actions: ["edit", "remove"],
3991
- onClick: (Ae) => C(J),
3993
+ onClick: (Ae) => C(F),
3992
3994
  onAction: w
3993
3995
  }, null, 8, ["model-value", "title", "onClick"]))), 256)),
3994
- l.value.length ? I("", !0) : (c(), b(t(le), {
3996
+ l.value.length ? E("", !0) : (c(), b(t(le), {
3995
3997
  key: 0,
3996
3998
  "image-size": 50
3997
3999
  })),
@@ -4000,9 +4002,9 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
4000
4002
  current: t(e),
4001
4003
  context: t(n),
4002
4004
  modelValue: a.value,
4003
- "onUpdate:modelValue": G[0] || (G[0] = (J) => a.value = J),
4005
+ "onUpdate:modelValue": G[0] || (G[0] = (F) => a.value = F),
4004
4006
  item: i.value
4005
- }, null, 8, ["current", "context", "modelValue", "item"])) : I("", !0)
4007
+ }, null, 8, ["current", "context", "modelValue", "item"])) : E("", !0)
4006
4008
  ]),
4007
4009
  _: 1
4008
4010
  }),
@@ -4012,29 +4014,29 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
4012
4014
  size: "small",
4013
4015
  plus: "",
4014
4016
  fit: !1,
4015
- onPlus: V
4017
+ onPlus: I
4016
4018
  }, {
4017
4019
  default: f(() => [
4018
- (c(!0), $(P, null, z(s.value, (J) => (c(), b(t(se), {
4019
- "model-value": J,
4020
- title: J,
4020
+ (c(!0), V(P, null, z(s.value, (F) => (c(), b(t(se), {
4021
+ "model-value": F,
4022
+ title: F,
4021
4023
  border: "",
4022
4024
  actions: ["remove"],
4023
- onClick: (Ae) => A(J),
4024
- onAction: O
4025
+ onClick: (Ae) => j(F),
4026
+ onAction: T
4025
4027
  }, null, 8, ["model-value", "title", "onClick"]))), 256)),
4026
- s.value.length ? I("", !0) : (c(), b(t(le), {
4028
+ s.value.length ? E("", !0) : (c(), b(t(le), {
4027
4029
  key: 0,
4028
4030
  "image-size": 50
4029
4031
  })),
4030
- v.value ? (c(), b($o, {
4032
+ m.value ? (c(), b($o, {
4031
4033
  key: 1,
4032
- modelValue: v.value,
4033
- "onUpdate:modelValue": G[1] || (G[1] = (J) => v.value = J),
4034
+ modelValue: m.value,
4035
+ "onUpdate:modelValue": G[1] || (G[1] = (F) => m.value = F),
4034
4036
  current: t(e),
4035
4037
  context: t(n),
4036
- item: m.value
4037
- }, null, 8, ["modelValue", "current", "context", "item"])) : I("", !0)
4038
+ item: v.value
4039
+ }, null, 8, ["modelValue", "current", "context", "item"])) : E("", !0)
4038
4040
  ]),
4039
4041
  _: 1
4040
4042
  }),
@@ -4044,29 +4046,29 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
4044
4046
  size: "small",
4045
4047
  plus: "",
4046
4048
  fit: !1,
4047
- onPlus: j
4049
+ onPlus: A
4048
4050
  }, {
4049
4051
  default: f(() => [
4050
- (c(!0), $(P, null, z(o.value, (J) => (c(), b(t(se), {
4051
- "model-value": J,
4052
- title: J,
4052
+ (c(!0), V(P, null, z(o.value, (F) => (c(), b(t(se), {
4053
+ "model-value": F,
4054
+ title: F,
4053
4055
  border: "",
4054
4056
  actions: ["remove"],
4055
- onClick: (Ae) => T(J),
4057
+ onClick: (Ae) => J(F),
4056
4058
  onAction: R
4057
4059
  }, null, 8, ["model-value", "title", "onClick"]))), 256)),
4058
- o.value.length ? I("", !0) : (c(), b(t(le), {
4060
+ o.value.length ? E("", !0) : (c(), b(t(le), {
4059
4061
  key: 0,
4060
4062
  "image-size": 50
4061
4063
  })),
4062
4064
  g.value ? (c(), b(Eo, {
4063
4065
  key: 1,
4064
4066
  modelValue: g.value,
4065
- "onUpdate:modelValue": G[2] || (G[2] = (J) => g.value = J),
4067
+ "onUpdate:modelValue": G[2] || (G[2] = (F) => g.value = F),
4066
4068
  current: t(e),
4067
4069
  context: t(n),
4068
4070
  item: y.value
4069
- }, null, 8, ["modelValue", "current", "context", "item"])) : I("", !0)
4071
+ }, null, 8, ["modelValue", "current", "context", "item"])) : E("", !0)
4070
4072
  ]),
4071
4073
  _: 1
4072
4074
  }),
@@ -4080,34 +4082,34 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
4080
4082
  onPlus: ee
4081
4083
  }, {
4082
4084
  default: f(() => [
4083
- (c(!0), $(P, null, z(r.value, (J) => (c(), b(t(se), {
4084
- "model-value": J,
4085
- title: J.name,
4085
+ (c(!0), V(P, null, z(r.value, (F) => (c(), b(t(se), {
4086
+ "model-value": F,
4087
+ title: F.name,
4086
4088
  border: "",
4087
4089
  actions: ["remove"],
4088
- onClick: (Ae) => ge(J),
4090
+ onClick: (Ae) => ge(F),
4089
4091
  onAction: xe
4090
4092
  }, null, 8, ["model-value", "title", "onClick"]))), 256)),
4091
- r.value.length ? I("", !0) : (c(), b(t(le), {
4093
+ r.value.length ? E("", !0) : (c(), b(t(le), {
4092
4094
  key: 0,
4093
4095
  "image-size": 50
4094
4096
  })),
4095
4097
  h.value ? (c(), b(Io, {
4096
4098
  key: 1,
4097
4099
  modelValue: h.value,
4098
- "onUpdate:modelValue": G[3] || (G[3] = (J) => h.value = J),
4100
+ "onUpdate:modelValue": G[3] || (G[3] = (F) => h.value = F),
4099
4101
  current: t(e),
4100
4102
  context: t(n),
4101
4103
  item: d.value
4102
- }, null, 8, ["modelValue", "current", "context", "item"])) : I("", !0)
4104
+ }, null, 8, ["modelValue", "current", "context", "item"])) : E("", !0)
4103
4105
  ]),
4104
4106
  _: 1
4105
4107
  })
4106
4108
  ]),
4107
4109
  _: 1
4108
- })) : I("", !0);
4110
+ })) : E("", !0);
4109
4111
  }
4110
- }), Ao = /* @__PURE__ */ E({
4112
+ }), Ao = /* @__PURE__ */ $({
4111
4113
  name: "DataSourceDialogForm",
4112
4114
  __name: "form",
4113
4115
  props: {
@@ -4140,7 +4142,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
4140
4142
  label: h.label || "",
4141
4143
  value: h.id,
4142
4144
  data: h
4143
- }))), v = S(() => e.item ? "编辑数据源" : "新增数据源"), m = (h) => {
4145
+ }))), m = S(() => e.item ? "编辑数据源" : "新增数据源"), v = (h) => {
4144
4146
  const d = n.value.find((_) => _.id === h);
4145
4147
  d && (s.value.name = d.name, s.value.label = d.label || "");
4146
4148
  }, g = async (h) => {
@@ -4174,9 +4176,9 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
4174
4176
  if (!ae(s.value.test, e.context, !0))
4175
4177
  return;
4176
4178
  const d = async (...C) => {
4177
- const V = e.context?.$apis[s.value.ref];
4178
- if (V)
4179
- return await V.apply(V, C);
4179
+ const I = e.context?.$apis[s.value.ref];
4180
+ if (I)
4181
+ return await I.apply(I, C);
4180
4182
  ke.warn(`API【${s.value.ref}】不存在`);
4181
4183
  }, _ = Ge(s.value.test, {
4182
4184
  runApi: d
@@ -4193,7 +4195,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
4193
4195
  return (h, d) => (c(), b(t(he), {
4194
4196
  width: "1000px",
4195
4197
  height: "600px",
4196
- title: v.value,
4198
+ title: m.value,
4197
4199
  model: s.value,
4198
4200
  "form-props": { tooltipMessage: !1 },
4199
4201
  "submit-method": g
@@ -4219,7 +4221,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
4219
4221
  disabled: !!e.item,
4220
4222
  options: i.value,
4221
4223
  props: { filterable: !0 },
4222
- onChange: m
4224
+ onChange: v
4223
4225
  }, {
4224
4226
  option: f(({ option: _ }) => [
4225
4227
  q(B(_.data.label) + " ", 1),
@@ -4293,26 +4295,26 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
4293
4295
  }, null, 8, ["model-value"])
4294
4296
  ]),
4295
4297
  _: 1
4296
- }, 8, ["modelValue"])) : I("", !0)
4298
+ }, 8, ["modelValue"])) : E("", !0)
4297
4299
  ]),
4298
4300
  _: 1
4299
4301
  }, 8, ["title", "model"]));
4300
4302
  }
4301
- }), Do = /* @__PURE__ */ E({
4303
+ }), Do = /* @__PURE__ */ $({
4302
4304
  name: "DataSourcesWidget",
4303
4305
  __name: "index",
4304
4306
  setup(u) {
4305
4307
  const { current: e, context: n } = oe(), l = k(!1), s = k(), o = S(() => Object.values(e.value?.dataSources || {}).filter(
4306
- (v) => v.type === "api"
4308
+ (m) => m.type === "api"
4307
4309
  )), r = () => {
4308
4310
  s.value = void 0, l.value = !0;
4309
- }, a = (v) => {
4310
- s.value = v, l.value = !0;
4311
- }, i = (v) => {
4312
- const { name: m, modelValue: g } = v;
4313
- m === "edit" && a(g), m === "remove" && e.value?.removeDataSource(g.name);
4311
+ }, a = (m) => {
4312
+ s.value = m, l.value = !0;
4313
+ }, i = (m) => {
4314
+ const { name: v, modelValue: g } = m;
4315
+ v === "edit" && a(g), v === "remove" && e.value?.removeDataSource(g.name);
4314
4316
  };
4315
- return (v, m) => (c(), b(t(M), {
4317
+ return (m, v) => (c(), b(t(M), {
4316
4318
  class: "v-data-sources-widget",
4317
4319
  direction: "column",
4318
4320
  fit: ""
@@ -4326,7 +4328,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
4326
4328
  onPlus: r
4327
4329
  }, {
4328
4330
  default: f(() => [
4329
- (c(!0), $(P, null, z(o.value, (g) => (c(), b(t(se), {
4331
+ (c(!0), V(P, null, z(o.value, (g) => (c(), b(t(se), {
4330
4332
  border: "",
4331
4333
  title: g.name,
4332
4334
  subtitle: g.label,
@@ -4335,7 +4337,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
4335
4337
  onAction: i,
4336
4338
  onClick: (y) => a(g)
4337
4339
  }, null, 8, ["title", "subtitle", "model-value", "onClick"]))), 256)),
4338
- o.value.length ? I("", !0) : (c(), b(t(le), {
4340
+ o.value.length ? E("", !0) : (c(), b(t(le), {
4339
4341
  key: 0,
4340
4342
  "image-size": 50
4341
4343
  }))
@@ -4345,16 +4347,16 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
4345
4347
  l.value ? (c(), b(Ao, {
4346
4348
  key: 0,
4347
4349
  modelValue: l.value,
4348
- "onUpdate:modelValue": m[0] || (m[0] = (g) => l.value = g),
4350
+ "onUpdate:modelValue": v[0] || (v[0] = (g) => l.value = g),
4349
4351
  current: t(e),
4350
4352
  context: t(n),
4351
4353
  item: s.value
4352
- }, null, 8, ["modelValue", "current", "context", "item"])) : I("", !0)
4354
+ }, null, 8, ["modelValue", "current", "context", "item"])) : E("", !0)
4353
4355
  ]),
4354
4356
  _: 1
4355
4357
  }));
4356
4358
  }
4357
- }), Po = /* @__PURE__ */ E({
4359
+ }), Po = /* @__PURE__ */ $({
4358
4360
  __name: "layout",
4359
4361
  props: {
4360
4362
  styleJson: {},
@@ -4364,8 +4366,8 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
4364
4366
  const e = u, n = k();
4365
4367
  H(
4366
4368
  () => e.styleJson.display,
4367
- (v) => {
4368
- n.value = v === "flex";
4369
+ (m) => {
4370
+ n.value = m === "flex";
4369
4371
  },
4370
4372
  { immediate: !0 }
4371
4373
  );
@@ -4481,10 +4483,10 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
4481
4483
  value: "stretch",
4482
4484
  svg: is
4483
4485
  }
4484
- ], i = (v, m) => {
4485
- n.value = m === "flex", e.setStyle("display", m), n.value || (e.setStyle("flex-direction", void 0), e.setStyle("justify-content", void 0), e.setStyle("align-items", void 0), e.setStyle("flex-wrap", void 0));
4486
+ ], i = (m, v) => {
4487
+ n.value = v === "flex", e.setStyle("display", v), n.value || (e.setStyle("flex-direction", void 0), e.setStyle("justify-content", void 0), e.setStyle("align-items", void 0), e.setStyle("flex-wrap", void 0));
4486
4488
  };
4487
- return (v, m) => (c(), b(t(N), {
4489
+ return (m, v) => (c(), b(t(N), {
4488
4490
  title: "布局",
4489
4491
  class: "v-sub-panel",
4490
4492
  size: "small",
@@ -4497,7 +4499,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
4497
4499
  "label-width": "80px"
4498
4500
  }, {
4499
4501
  default: f(() => [
4500
- p(t(F), {
4502
+ p(t(O), {
4501
4503
  name: "display",
4502
4504
  label: "排布",
4503
4505
  setters: { name: "TagSetter" },
@@ -4506,8 +4508,8 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
4506
4508
  value: e.styleJson.display,
4507
4509
  onChange: i
4508
4510
  }, null, 8, ["value"]),
4509
- n.value ? (c(), $(P, { key: 0 }, [
4510
- p(t(F), {
4511
+ n.value ? (c(), V(P, { key: 0 }, [
4512
+ p(t(O), {
4511
4513
  name: "flex-direction",
4512
4514
  label: "主轴方向",
4513
4515
  setters: { name: "TagSetter" },
@@ -4516,7 +4518,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
4516
4518
  value: e.styleJson["flex-direction"],
4517
4519
  onChange: e.setStyle
4518
4520
  }, null, 8, ["value", "onChange"]),
4519
- p(t(F), {
4521
+ p(t(O), {
4520
4522
  name: "justify-content",
4521
4523
  label: "主轴对齐",
4522
4524
  setters: { name: "TagSetter" },
@@ -4525,7 +4527,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
4525
4527
  value: e.styleJson["justify-content"],
4526
4528
  onChange: e.setStyle
4527
4529
  }, null, 8, ["value", "onChange"]),
4528
- p(t(F), {
4530
+ p(t(O), {
4529
4531
  name: "align-items",
4530
4532
  label: "辅轴对齐",
4531
4533
  setters: { name: "TagSetter" },
@@ -4534,7 +4536,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
4534
4536
  value: e.styleJson["align-items"],
4535
4537
  onChange: e.setStyle
4536
4538
  }, null, 8, ["value", "onChange"]),
4537
- p(t(F), {
4539
+ p(t(O), {
4538
4540
  name: "flex-wrap",
4539
4541
  label: "换行模式",
4540
4542
  setters: { name: "TagSetter" },
@@ -4543,7 +4545,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
4543
4545
  value: e.styleJson["flex-wrap"],
4544
4546
  onChange: e.setStyle
4545
4547
  }, null, 8, ["value", "onChange"])
4546
- ], 64)) : I("", !0)
4548
+ ], 64)) : E("", !0)
4547
4549
  ]),
4548
4550
  _: 1
4549
4551
  })
@@ -4551,7 +4553,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
4551
4553
  _: 1
4552
4554
  }));
4553
4555
  }
4554
- }), Ro = /* @__PURE__ */ E({
4556
+ }), Ro = /* @__PURE__ */ $({
4555
4557
  name: "StyleWidget",
4556
4558
  __name: "JsonMode",
4557
4559
  setup(u) {
@@ -4593,7 +4595,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
4593
4595
  _: 1
4594
4596
  }));
4595
4597
  }
4596
- }), Bo = { class: "v-spacing-input" }, zo = /* @__PURE__ */ x("div", { class: "v-spacing-input__modal" }, null, -1), To = { class: "v-spacing-input__content" }, Jo = ["onClick"], bn = /* @__PURE__ */ E({
4598
+ }), Bo = { class: "v-spacing-input" }, zo = /* @__PURE__ */ x("div", { class: "v-spacing-input__modal" }, null, -1), To = { class: "v-spacing-input__content" }, Jo = ["onClick"], bn = /* @__PURE__ */ $({
4597
4599
  __name: "spacing-input",
4598
4600
  props: {
4599
4601
  name: {},
@@ -4606,16 +4608,16 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
4606
4608
  aa(r, () => {
4607
4609
  s("close");
4608
4610
  });
4609
- const v = (h) => {
4610
- a.value = typeof h == "number" ? `${h}px` : "auto", m(a.value);
4611
- }, m = (h) => {
4611
+ const m = (h) => {
4612
+ a.value = typeof h == "number" ? `${h}px` : "auto", v(a.value);
4613
+ }, v = (h) => {
4612
4614
  i.value = h === "auto" ? void 0 : "px";
4613
4615
  }, g = () => {
4614
4616
  a.value ? (s("update:modelValue", a.value), s("submit", l.name, a.value), s("close")) : te("请输入有效值", "提示");
4615
4617
  }, y = () => {
4616
4618
  a.value = void 0, s("update:modelValue", a.value), s("submit", l.name, void 0), s("close");
4617
4619
  };
4618
- return (h, d) => (c(), $("div", Bo, [
4620
+ return (h, d) => (c(), V("div", Bo, [
4619
4621
  zo,
4620
4622
  x("div", To, [
4621
4623
  p(t(M), {
@@ -4634,7 +4636,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
4634
4636
  "with-unit": !!i.value,
4635
4637
  unit: i.value,
4636
4638
  format: i.value ? "0" : void 0,
4637
- onChange: m
4639
+ onChange: v
4638
4640
  }, null, 8, ["modelValue", "with-unit", "unit", "format"])
4639
4641
  ]),
4640
4642
  _: 1
@@ -4648,11 +4650,11 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
4648
4650
  }, {
4649
4651
  default: f(() => [
4650
4652
  x("span", {
4651
- onClick: d[1] || (d[1] = (_) => v("auto"))
4653
+ onClick: d[1] || (d[1] = (_) => m("auto"))
4652
4654
  }, "auto")
4653
4655
  ]),
4654
4656
  _: 1
4655
- })) : I("", !0),
4657
+ })) : E("", !0),
4656
4658
  p(t(M), {
4657
4659
  grow: "",
4658
4660
  class: "v-spacing-input__values",
@@ -4660,8 +4662,8 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
4660
4662
  wrap: "wrap"
4661
4663
  }, {
4662
4664
  default: f(() => [
4663
- (c(), $(P, null, z(n, (_) => x("span", {
4664
- onClick: (w) => v(_)
4665
+ (c(), V(P, null, z(n, (_) => x("span", {
4666
+ onClick: (w) => m(_)
4665
4667
  }, B(_), 9, Jo)), 64))
4666
4668
  ]),
4667
4669
  _: 1
@@ -4733,17 +4735,17 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
4733
4735
  "dominant-baseline": "hanging"
4734
4736
  }, " margin ", -1), vr = [
4735
4737
  mr
4736
- ], K = 36, Z = 24, gr = /* @__PURE__ */ E({
4738
+ ], K = 36, Z = 24, gr = /* @__PURE__ */ $({
4737
4739
  __name: "spacing",
4738
4740
  props: {
4739
4741
  styleJson: {},
4740
4742
  setStyle: { type: Function }
4741
4743
  },
4742
4744
  setup(u) {
4743
- const e = u, n = k(), l = k(), { width: s, height: o } = Fe(n), { width: r, height: a } = Fe(l), i = k(!1), v = k(), m = k(), g = () => {
4744
- i.value = !1, v.value = void 0, m.value = void 0;
4745
+ const e = u, n = k(), l = k(), { width: s, height: o } = Fe(n), { width: r, height: a } = Fe(l), i = k(!1), m = k(), v = k(), g = () => {
4746
+ i.value = !1, m.value = void 0, v.value = void 0;
4745
4747
  }, y = (h) => {
4746
- v.value = h, m.value = e.styleJson[h], i.value = !0;
4748
+ m.value = h, v.value = e.styleJson[h], i.value = !0;
4747
4749
  };
4748
4750
  return (h, d) => (c(), b(t(N), {
4749
4751
  title: "间距",
@@ -4760,7 +4762,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
4760
4762
  }, [
4761
4763
  x("div", Fo, [
4762
4764
  x("div", Oo, [
4763
- t(s) && t(o) ? (c(), $("svg", {
4765
+ t(s) && t(o) ? (c(), V("svg", {
4764
4766
  key: 0,
4765
4767
  xmlns: "http://www.w3.org/2000/svg",
4766
4768
  width: t(s),
@@ -4887,7 +4889,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
4887
4889
  ry: "2",
4888
4890
  style: { "pointer-events": "none", "stroke-width": "2px" }
4889
4891
  }, null, 8, Qo)
4890
- ], 8, No)) : I("", !0),
4892
+ ], 8, No)) : E("", !0),
4891
4893
  x("div", {
4892
4894
  class: W(["spacing-edit margin-top", { "is-setting": e.styleJson["margin-top"] }]),
4893
4895
  onClick: d[4] || (d[4] = (_) => y("margin-top"))
@@ -4910,7 +4912,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
4910
4912
  ref: l,
4911
4913
  class: "spacing-min-icon"
4912
4914
  }, [
4913
- t(s) && t(o) ? (c(), $("svg", {
4915
+ t(s) && t(o) ? (c(), V("svg", {
4914
4916
  key: 0,
4915
4917
  xmlns: "http://www.w3.org/2000/svg",
4916
4918
  width: t(r),
@@ -5037,7 +5039,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
5037
5039
  ry: "2",
5038
5040
  style: { "pointer-events": "none", "stroke-width": "2px" }
5039
5041
  }, null, 8, ir)
5040
- ], 8, Xo)) : I("", !0),
5042
+ ], 8, Xo)) : E("", !0),
5041
5043
  x("div", {
5042
5044
  class: W(["spacing-edit padding-top", { "is-setting": e.styleJson["padding-top"] }]),
5043
5045
  onClick: d[12] || (d[12] = (_) => y("padding-top"))
@@ -5055,23 +5057,23 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
5055
5057
  onClick: d[15] || (d[15] = (_) => y("padding-left"))
5056
5058
  }, B(e.styleJson["padding-left"] || "-"), 3)
5057
5059
  ], 512),
5058
- (c(), $("svg", ur, dr)),
5059
- (c(), $("svg", pr, vr))
5060
+ (c(), V("svg", ur, dr)),
5061
+ (c(), V("svg", pr, vr))
5060
5062
  ]),
5061
5063
  i.value ? (c(), b(bn, {
5062
5064
  key: 0,
5063
- name: v.value,
5064
- modelValue: m.value,
5065
- "onUpdate:modelValue": d[16] || (d[16] = (_) => m.value = _),
5065
+ name: m.value,
5066
+ modelValue: v.value,
5067
+ "onUpdate:modelValue": d[16] || (d[16] = (_) => v.value = _),
5066
5068
  onClose: g,
5067
5069
  onSubmit: e.setStyle
5068
- }, null, 8, ["name", "modelValue", "onSubmit"])) : I("", !0)
5070
+ }, null, 8, ["name", "modelValue", "onSubmit"])) : E("", !0)
5069
5071
  ], 512)
5070
5072
  ]),
5071
5073
  _: 1
5072
5074
  }));
5073
5075
  }
5074
- }), fr = /* @__PURE__ */ E({
5076
+ }), fr = /* @__PURE__ */ $({
5075
5077
  __name: "sizing",
5076
5078
  props: {
5077
5079
  styleJson: {},
@@ -5148,7 +5150,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
5148
5150
  inline: ""
5149
5151
  }, {
5150
5152
  default: f(() => [
5151
- (c(), $(P, null, z(s, (a) => p(t(F), {
5153
+ (c(), V(P, null, z(s, (a) => p(t(O), {
5152
5154
  name: a.name,
5153
5155
  label: a.label,
5154
5156
  setters: { name: a.setter },
@@ -5164,7 +5166,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
5164
5166
  _: 1
5165
5167
  }));
5166
5168
  }
5167
- }), hr = { class: "v-style-widget__positioning" }, br = { class: "spacing-wrap" }, yr = ["width", "height"], _r = ["d"], wr = ["d"], kr = ["d"], Sr = ["d"], xr = { id: "margin-outer" }, Cr = ["width", "height"], Vr = ["width", "height"], $r = { id: "margin-inner" }, Er = ["width", "height"], Ir = ["width", "height"], de = 36, pe = 24, jr = /* @__PURE__ */ E({
5169
+ }), hr = { class: "v-style-widget__positioning" }, br = { class: "spacing-wrap" }, yr = ["width", "height"], _r = ["d"], wr = ["d"], kr = ["d"], Sr = ["d"], xr = { id: "margin-outer" }, Cr = ["width", "height"], Vr = ["width", "height"], $r = { id: "margin-inner" }, Er = ["width", "height"], Ir = ["width", "height"], de = 36, pe = 24, jr = /* @__PURE__ */ $({
5168
5170
  __name: "positioning",
5169
5171
  props: {
5170
5172
  styleJson: {},
@@ -5177,7 +5179,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
5177
5179
  { label: "绝对", value: "absolute" },
5178
5180
  { label: "固定", value: "fixed" },
5179
5181
  { label: "粘性", value: "sticky" }
5180
- ], v = [
5182
+ ], m = [
5181
5183
  { label: "左上", svg: us, value: "0% auto auto 0%" },
5182
5184
  { label: "右上", svg: cs, value: "0% 0% auto auto" },
5183
5185
  { label: "左下", svg: ds, value: "auto auto 0% 0%" },
@@ -5187,7 +5189,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
5187
5189
  { label: "上", svg: gs, value: "auto 0% 0% 0%" },
5188
5190
  { label: "下", svg: fs, value: "0% 0% auto 0%" },
5189
5191
  { label: "填充", svg: hs, value: "0% 0% 0% 0%" }
5190
- ], m = S(() => (e.styleJson.inset || "").split(" ")), g = (h) => {
5192
+ ], v = S(() => (e.styleJson.inset || "").split(" ")), g = (h) => {
5191
5193
  r.value = h, a.value = e.styleJson[h], o.value = !0;
5192
5194
  }, y = () => {
5193
5195
  o.value = !1, r.value = void 0, a.value = void 0;
@@ -5206,7 +5208,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
5206
5208
  size: "small"
5207
5209
  }, {
5208
5210
  default: f(() => [
5209
- p(t(F), {
5211
+ p(t(O), {
5210
5212
  name: "position",
5211
5213
  label: "定位",
5212
5214
  setters: { name: "SelectSetter" },
@@ -5215,11 +5217,11 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
5215
5217
  value: e.styleJson.position,
5216
5218
  onChange: e.setStyle
5217
5219
  }, null, 8, ["value", "onChange"]),
5218
- p(t(F), {
5220
+ p(t(O), {
5219
5221
  name: "inset",
5220
5222
  label: " ",
5221
5223
  setters: { name: "TagSetter" },
5222
- options: v,
5224
+ options: m,
5223
5225
  variable: !1,
5224
5226
  value: e.styleJson.inset,
5225
5227
  onChange: e.setStyle
@@ -5232,7 +5234,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
5232
5234
  ref: n,
5233
5235
  class: "spacing-min-icon"
5234
5236
  }, [
5235
- t(l) && t(l) ? (c(), $("svg", {
5237
+ t(l) && t(l) ? (c(), V("svg", {
5236
5238
  key: 0,
5237
5239
  xmlns: "http://www.w3.org/2000/svg",
5238
5240
  width: t(l),
@@ -5359,23 +5361,23 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
5359
5361
  ry: "2",
5360
5362
  style: { "pointer-events": "none", "stroke-width": "2px" }
5361
5363
  }, null, 8, Ir)
5362
- ], 8, yr)) : I("", !0),
5364
+ ], 8, yr)) : E("", !0),
5363
5365
  x("div", {
5364
5366
  class: W(["spacing-edit padding-top", { "is-setting": e.styleJson.top }]),
5365
5367
  onClick: d[4] || (d[4] = (_) => g("top"))
5366
- }, B(e.styleJson.top || m.value[0] || "-"), 3),
5368
+ }, B(e.styleJson.top || v.value[0] || "-"), 3),
5367
5369
  x("div", {
5368
5370
  class: W(["spacing-edit padding-right", { "is-setting": e.styleJson.right }]),
5369
5371
  onClick: d[5] || (d[5] = (_) => g("right"))
5370
- }, B(e.styleJson.right || m.value[1] || "-"), 3),
5372
+ }, B(e.styleJson.right || v.value[1] || "-"), 3),
5371
5373
  x("div", {
5372
5374
  class: W(["spacing-edit padding-bottom", { "is-setting": e.styleJson.bottom }]),
5373
5375
  onClick: d[6] || (d[6] = (_) => g("bottom"))
5374
- }, B(e.styleJson.bottom || m.value[2] || "-"), 3),
5376
+ }, B(e.styleJson.bottom || v.value[2] || "-"), 3),
5375
5377
  x("div", {
5376
5378
  class: W(["spacing-edit padding-left", { "is-setting": e.styleJson.left }]),
5377
5379
  onClick: d[7] || (d[7] = (_) => g("left"))
5378
- }, B(e.styleJson.left || m.value[3] || "-"), 3)
5380
+ }, B(e.styleJson.left || v.value[3] || "-"), 3)
5379
5381
  ], 512),
5380
5382
  o.value ? (c(), b(bn, {
5381
5383
  key: 0,
@@ -5385,12 +5387,12 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
5385
5387
  "onUpdate:modelValue": d[8] || (d[8] = (_) => a.value = _),
5386
5388
  onClose: y,
5387
5389
  onSubmit: e.setStyle
5388
- }, null, 8, ["name", "modelValue", "onSubmit"])) : I("", !0)
5390
+ }, null, 8, ["name", "modelValue", "onSubmit"])) : E("", !0)
5389
5391
  ])
5390
5392
  ]),
5391
5393
  _: 1
5392
5394
  }),
5393
- p(t(F), {
5395
+ p(t(O), {
5394
5396
  name: "z-index",
5395
5397
  label: "层级",
5396
5398
  setters: { name: "NumberSetter" },
@@ -5406,7 +5408,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
5406
5408
  _: 1
5407
5409
  }));
5408
5410
  }
5409
- }), Ar = /* @__PURE__ */ E({
5411
+ }), Ar = /* @__PURE__ */ $({
5410
5412
  __name: "texting",
5411
5413
  props: {
5412
5414
  styleJson: {},
@@ -5490,7 +5492,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
5490
5492
  inline: ""
5491
5493
  }, {
5492
5494
  default: f(() => [
5493
- (c(), $(P, null, z(n, (i) => p(t(F), {
5495
+ (c(), V(P, null, z(n, (i) => p(t(O), {
5494
5496
  name: i.name,
5495
5497
  label: i.label,
5496
5498
  setters: { name: i.setter },
@@ -5507,7 +5509,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
5507
5509
  "label-width": "60px"
5508
5510
  }, {
5509
5511
  default: f(() => [
5510
- p(t(F), {
5512
+ p(t(O), {
5511
5513
  name: "color",
5512
5514
  label: "颜色",
5513
5515
  setters: { name: "ColorSetter" },
@@ -5515,7 +5517,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
5515
5517
  value: e.styleJson.color,
5516
5518
  onChange: r.setStyle
5517
5519
  }, null, 8, ["value", "onChange"]),
5518
- p(t(F), {
5520
+ p(t(O), {
5519
5521
  name: "text-align",
5520
5522
  label: "对齐",
5521
5523
  setters: { name: "TagSetter" },
@@ -5524,7 +5526,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
5524
5526
  value: e.styleJson["text-align"],
5525
5527
  onChange: r.setStyle
5526
5528
  }, null, 8, ["value", "onChange"]),
5527
- p(t(F), {
5529
+ p(t(O), {
5528
5530
  name: "font-style",
5529
5531
  label: "风格",
5530
5532
  setters: { name: "TagSetter" },
@@ -5533,7 +5535,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
5533
5535
  value: e.styleJson["font-style"],
5534
5536
  onChange: r.setStyle
5535
5537
  }, null, 8, ["value", "onChange"]),
5536
- p(t(F), {
5538
+ p(t(O), {
5537
5539
  name: "text-decoration",
5538
5540
  label: "修饰",
5539
5541
  setters: { name: "TagSetter" },
@@ -5549,18 +5551,18 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
5549
5551
  _: 1
5550
5552
  }));
5551
5553
  }
5552
- }), Dr = /* @__PURE__ */ E({
5554
+ }), Dr = /* @__PURE__ */ $({
5553
5555
  __name: "backgound",
5554
5556
  props: {
5555
5557
  styleJson: {},
5556
5558
  setStyle: { type: Function }
5557
5559
  },
5558
5560
  setup(u) {
5559
- const e = u, n = (i, v) => {
5560
- v ? e.setStyle("background-image", `url(${v})`) : e.setStyle("background-image", void 0);
5561
+ const e = u, n = (i, m) => {
5562
+ m ? e.setStyle("background-image", `url(${m})`) : e.setStyle("background-image", void 0);
5561
5563
  }, l = (i) => {
5562
- const v = /^url\(([\w\W]+)\)$/;
5563
- return i?.match(v)?.[1];
5564
+ const m = /^url\(([\w\W]+)\)$/;
5565
+ return i?.match(m)?.[1];
5564
5566
  }, s = [
5565
5567
  { label: "重复", value: "repeat", svg: $s },
5566
5568
  { label: "水平重复", value: "repeat-x", svg: Es },
@@ -5580,7 +5582,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
5580
5582
  { label: "覆盖", value: "cover" },
5581
5583
  { label: "填充", value: "contain" }
5582
5584
  ];
5583
- return (i, v) => (c(), b(t(N), {
5585
+ return (i, m) => (c(), b(t(N), {
5584
5586
  title: "背景",
5585
5587
  class: "v-sub-panel",
5586
5588
  size: "small",
@@ -5593,7 +5595,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
5593
5595
  size: "small"
5594
5596
  }, {
5595
5597
  default: f(() => [
5596
- p(t(F), {
5598
+ p(t(O), {
5597
5599
  name: "background-image",
5598
5600
  label: "图片",
5599
5601
  setters: { name: "ImageSetter" },
@@ -5601,7 +5603,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
5601
5603
  value: l(e.styleJson["background-image"]),
5602
5604
  onChange: n
5603
5605
  }, null, 8, ["value"]),
5604
- p(t(F), {
5606
+ p(t(O), {
5605
5607
  name: "background-color",
5606
5608
  label: "颜色",
5607
5609
  setters: { name: "ColorSetter" },
@@ -5609,7 +5611,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
5609
5611
  value: e.styleJson["background-color"],
5610
5612
  onChange: e.setStyle
5611
5613
  }, null, 8, ["value", "onChange"]),
5612
- p(t(F), {
5614
+ p(t(O), {
5613
5615
  name: "background-repeat",
5614
5616
  label: "重复",
5615
5617
  setters: { name: "TagSetter" },
@@ -5618,7 +5620,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
5618
5620
  options: s,
5619
5621
  onChange: e.setStyle
5620
5622
  }, null, 8, ["value", "onChange"]),
5621
- p(t(F), {
5623
+ p(t(O), {
5622
5624
  name: "background-attachment",
5623
5625
  label: "固定",
5624
5626
  setters: { name: "RadioSetter" },
@@ -5627,7 +5629,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
5627
5629
  options: o,
5628
5630
  onChange: e.setStyle
5629
5631
  }, null, 8, ["value", "onChange"]),
5630
- p(t(F), {
5632
+ p(t(O), {
5631
5633
  name: "background-position",
5632
5634
  label: "位置",
5633
5635
  setters: { name: "SectionSetter", props: { sections: 2 } },
@@ -5635,7 +5637,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
5635
5637
  value: e.styleJson["background-position"],
5636
5638
  onChange: e.setStyle
5637
5639
  }, null, 8, ["value", "onChange"]),
5638
- p(t(F), {
5640
+ p(t(O), {
5639
5641
  name: "background-size",
5640
5642
  label: "大小",
5641
5643
  setters: { name: "SelectSetter" },
@@ -5644,7 +5646,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
5644
5646
  options: a,
5645
5647
  onChange: e.setStyle
5646
5648
  }, null, 8, ["value", "onChange"]),
5647
- p(t(F), {
5649
+ p(t(O), {
5648
5650
  name: "background-clip",
5649
5651
  label: "裁剪",
5650
5652
  setters: { name: "SelectSetter" },
@@ -5660,7 +5662,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
5660
5662
  _: 1
5661
5663
  }));
5662
5664
  }
5663
- }), Pr = /* @__PURE__ */ E({
5665
+ }), Pr = /* @__PURE__ */ $({
5664
5666
  __name: "border",
5665
5667
  props: {
5666
5668
  styleJson: {},
@@ -5694,7 +5696,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
5694
5696
  size: "small"
5695
5697
  }, {
5696
5698
  default: f(() => [
5697
- p(t(F), {
5699
+ p(t(O), {
5698
5700
  name: "border-radius",
5699
5701
  label: "圆角",
5700
5702
  setters: { name: "SectionSetter", props: { sections: 4 } },
@@ -5702,7 +5704,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
5702
5704
  value: e.styleJson["border-radius"],
5703
5705
  onChange: e.setStyle
5704
5706
  }, null, 8, ["value", "onChange"]),
5705
- p(t(F), {
5707
+ p(t(O), {
5706
5708
  name: "borders",
5707
5709
  label: "边框",
5708
5710
  setters: { name: "TagSetter" },
@@ -5711,8 +5713,8 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
5711
5713
  value: n.value,
5712
5714
  onChange: o
5713
5715
  }, null, 8, ["value"]),
5714
- n.value ? (c(), $(P, { key: 0 }, [
5715
- (c(), b(t(F), {
5716
+ n.value ? (c(), V(P, { key: 0 }, [
5717
+ (c(), b(t(O), {
5716
5718
  name: `${n.value}-width`,
5717
5719
  key: `${n.value}-width`,
5718
5720
  label: "宽度",
@@ -5721,7 +5723,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
5721
5723
  value: e.styleJson[`${n.value}-width`],
5722
5724
  onChange: e.setStyle
5723
5725
  }, null, 8, ["name", "value", "onChange"])),
5724
- (c(), b(t(F), {
5726
+ (c(), b(t(O), {
5725
5727
  name: `${n.value}-style`,
5726
5728
  key: `${n.value}-style`,
5727
5729
  label: "样式",
@@ -5731,7 +5733,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
5731
5733
  value: e.styleJson[`${n.value}-style`],
5732
5734
  onChange: e.setStyle
5733
5735
  }, null, 8, ["name", "value", "onChange"])),
5734
- (c(), b(t(F), {
5736
+ (c(), b(t(O), {
5735
5737
  name: `${n.value}-color`,
5736
5738
  key: `${n.value}-color`,
5737
5739
  label: "颜色",
@@ -5740,7 +5742,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
5740
5742
  value: e.styleJson[`${n.value}-color`],
5741
5743
  onChange: e.setStyle
5742
5744
  }, null, 8, ["name", "value", "onChange"]))
5743
- ], 64)) : I("", !0)
5745
+ ], 64)) : E("", !0)
5744
5746
  ]),
5745
5747
  _: 1
5746
5748
  })
@@ -5748,7 +5750,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
5748
5750
  _: 1
5749
5751
  }));
5750
5752
  }
5751
- }), Rr = /* @__PURE__ */ E({
5753
+ }), Rr = /* @__PURE__ */ $({
5752
5754
  __name: "effect",
5753
5755
  props: {
5754
5756
  styleJson: {},
@@ -5812,7 +5814,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
5812
5814
  size: "small"
5813
5815
  }, {
5814
5816
  default: f(() => [
5815
- p(t(F), {
5817
+ p(t(O), {
5816
5818
  name: "opacity",
5817
5819
  label: "透明度",
5818
5820
  setters: { name: "SliderSetter" },
@@ -5820,7 +5822,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
5820
5822
  value: o(),
5821
5823
  onChange: s
5822
5824
  }, null, 8, ["value"]),
5823
- p(t(F), {
5825
+ p(t(O), {
5824
5826
  name: "box-shadow",
5825
5827
  label: "阴影",
5826
5828
  setters: { name: "SelectSetter" },
@@ -5829,7 +5831,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
5829
5831
  value: e.styleJson["box-shadow"],
5830
5832
  onChange: e.setStyle
5831
5833
  }, null, 8, ["value", "onChange"]),
5832
- p(t(F), {
5834
+ p(t(O), {
5833
5835
  name: "cursor",
5834
5836
  label: "光标",
5835
5837
  setters: { name: "TagSetter" },
@@ -5845,7 +5847,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
5845
5847
  _: 1
5846
5848
  }));
5847
5849
  }
5848
- }), Br = /* @__PURE__ */ E({
5850
+ }), Br = /* @__PURE__ */ $({
5849
5851
  name: "StyleWidget",
5850
5852
  __name: "index",
5851
5853
  props: {
@@ -5912,42 +5914,42 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
5912
5914
  _: 1
5913
5915
  }));
5914
5916
  }
5915
- }), zr = ["src"], Tr = /* @__PURE__ */ E({
5917
+ }), zr = ["src"], Tr = /* @__PURE__ */ $({
5916
5918
  name: "PreviewerWidget",
5917
5919
  __name: "index",
5918
5920
  props: {
5919
5921
  path: { type: Function }
5920
5922
  },
5921
5923
  setup(u, { expose: e }) {
5922
- const n = u, l = k(), s = k(Symbol()), { current: o, engine: r } = oe(), { width: a, height: i } = Fe(l), v = S(() => o.value && n.path ? n.path(o.value) : null), m = S(() => r.skeleton?.getWidget("Toolbar")?.widgetRef.mode ?? "pc");
5924
+ const n = u, l = k(), s = k(Symbol()), { current: o, engine: r } = oe(), { width: a, height: i } = Fe(l), m = S(() => o.value && n.path ? n.path(o.value) : null), v = S(() => r.skeleton?.getWidget("Toolbar")?.widgetRef.mode ?? "pc");
5923
5925
  return e({
5924
5926
  refresh: () => {
5925
5927
  s.value = Symbol();
5926
5928
  }
5927
- }), (y, h) => (c(), $("div", {
5929
+ }), (y, h) => (c(), V("div", {
5928
5930
  ref_key: "container",
5929
5931
  ref: l,
5930
5932
  class: "v-previewer",
5931
5933
  key: s.value
5932
5934
  }, [
5933
5935
  p(t(hn), {
5934
- mode: m.value,
5936
+ mode: v.value,
5935
5937
  width: t(a),
5936
5938
  height: t(i)
5937
5939
  }, {
5938
5940
  default: f(() => [
5939
- v.value ? (c(), $("iframe", {
5941
+ m.value ? (c(), V("iframe", {
5940
5942
  key: 0,
5941
5943
  ref: "iframe",
5942
5944
  frameborder: "0",
5943
- src: v.value
5944
- }, null, 8, zr)) : I("", !0)
5945
+ src: m.value
5946
+ }, null, 8, zr)) : E("", !0)
5945
5947
  ]),
5946
5948
  _: 1
5947
5949
  }, 8, ["mode", "width", "height"])
5948
5950
  ]));
5949
5951
  }
5950
- }), Jr = /* @__PURE__ */ E({
5952
+ }), Jr = /* @__PURE__ */ $({
5951
5953
  name: "NodePathWidget",
5952
5954
  inheritAttrs: !1,
5953
5955
  __name: "index",
@@ -5963,9 +5965,9 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
5963
5965
  "separator-icon": t(Ws)
5964
5966
  }, {
5965
5967
  default: f(() => [
5966
- (c(!0), $(P, null, z(l.value, (i) => (c(), b(t(Bn), {
5967
- onClick: (v) => s(i),
5968
- onMouseover: (v) => o(i)
5968
+ (c(!0), V(P, null, z(l.value, (i) => (c(), b(t(Bn), {
5969
+ onClick: (m) => s(i),
5970
+ onMouseover: (m) => o(i)
5969
5971
  }, {
5970
5972
  default: f(() => [
5971
5973
  q(B(i.name), 1)
@@ -5974,9 +5976,9 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
5974
5976
  }, 1032, ["onClick", "onMouseover"]))), 256))
5975
5977
  ]),
5976
5978
  _: 1
5977
- }, 8, ["separator-icon"])) : I("", !0);
5979
+ }, 8, ["separator-icon"])) : E("", !0);
5978
5980
  }
5979
- }), Fr = /* @__PURE__ */ E({
5981
+ }), Fr = /* @__PURE__ */ $({
5980
5982
  name: "SchemaWidget",
5981
5983
  __name: "index",
5982
5984
  setup(u) {
@@ -5988,10 +5990,10 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
5988
5990
  "手动修改DSL有风险,可能导致页面无法加载,请确认您的操作无误。"
5989
5991
  ))
5990
5992
  try {
5991
- const v = JSON.parse(a);
5992
- e.value?.update(v), ue("保存成功");
5993
- } catch (v) {
5994
- te(v?.message);
5993
+ const m = JSON.parse(a);
5994
+ e.value?.update(m), ue("保存成功");
5995
+ } catch (m) {
5996
+ te(m?.message);
5995
5997
  }
5996
5998
  };
5997
5999
  return (r, a) => (c(), b(t(N), {
@@ -6016,7 +6018,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
6016
6018
  _: 1
6017
6019
  }, 8, ["title"]));
6018
6020
  }
6019
- }), Or = /* @__PURE__ */ E({
6021
+ }), Or = /* @__PURE__ */ $({
6020
6022
  name: "SchemaWidget",
6021
6023
  __name: "index",
6022
6024
  setup(u) {
@@ -6055,7 +6057,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
6055
6057
  _: 1
6056
6058
  }, 8, ["title", "subtitle"]));
6057
6059
  }
6058
- }), Nr = ["src"], Mr = /* @__PURE__ */ E({
6060
+ }), Nr = ["src"], Mr = /* @__PURE__ */ $({
6059
6061
  name: "DocsWidget",
6060
6062
  __name: "index",
6061
6063
  props: {
@@ -6091,11 +6093,11 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
6091
6093
  _: 1
6092
6094
  }, 512));
6093
6095
  }
6094
- }), Wr = { class: "v-about-widget" }, Lr = { class: "v-about-widget__logo" }, Ur = ["src"], Hr = /* @__PURE__ */ x("div", { class: "v-about-widget__name" }, "VTJ.PRO", -1), qr = { class: "v-about-widget__version" }, Gr = /* @__PURE__ */ E({
6096
+ }), Wr = { class: "v-about-widget" }, Lr = { class: "v-about-widget__logo" }, Ur = ["src"], Hr = /* @__PURE__ */ x("div", { class: "v-about-widget__name" }, "VTJ.PRO", -1), qr = { class: "v-about-widget__version" }, Gr = /* @__PURE__ */ $({
6095
6097
  name: "AboutWidget",
6096
6098
  __name: "index",
6097
6099
  setup(u) {
6098
- return (e, n) => (c(), $("div", Wr, [
6100
+ return (e, n) => (c(), V("div", Wr, [
6099
6101
  x("div", Lr, [
6100
6102
  x("img", { src: t(kt) }, null, 8, Ur)
6101
6103
  ]),
@@ -6936,13 +6938,13 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
6936
6938
  categories: Qr,
6937
6939
  components: Yr
6938
6940
  }
6939
- ], ti = /* @__PURE__ */ E({
6941
+ ], ti = /* @__PURE__ */ $({
6940
6942
  name: "StringSetter",
6941
6943
  __name: "string",
6942
6944
  setup(u) {
6943
6945
  return (e, n) => (c(), b(t(_e), re({ clearable: "" }, e.$attrs), null, 16));
6944
6946
  }
6945
- }), ni = /* @__PURE__ */ E({
6947
+ }), ni = /* @__PURE__ */ $({
6946
6948
  name: "BooleanSetter",
6947
6949
  __name: "boolean",
6948
6950
  setup(u) {
@@ -6950,7 +6952,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
6950
6952
  "model-value": !!e.$attrs.modelValue
6951
6953
  }), null, 16, ["model-value"]));
6952
6954
  }
6953
- }), li = "{{", si = "}}", ai = /* @__PURE__ */ E({
6955
+ }), li = "{{", si = "}}", ai = /* @__PURE__ */ $({
6954
6956
  name: "ExpressionSetter",
6955
6957
  __name: "expression",
6956
6958
  props: {
@@ -6973,16 +6975,16 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
6973
6975
  }
6974
6976
  );
6975
6977
  const a = (i) => {
6976
- const v = {
6978
+ const m = {
6977
6979
  type: "JSExpression",
6978
6980
  value: i
6979
6981
  };
6980
- o(v) && s("change", v);
6982
+ o(m) && s("change", m);
6981
6983
  };
6982
- return (i, v) => (c(), b(t(_e), {
6984
+ return (i, m) => (c(), b(t(_e), {
6983
6985
  class: "v-expression-setter",
6984
6986
  modelValue: r.value,
6985
- "onUpdate:modelValue": v[0] || (v[0] = (m) => r.value = m),
6987
+ "onUpdate:modelValue": m[0] || (m[0] = (v) => r.value = v),
6986
6988
  onChange: a
6987
6989
  }, {
6988
6990
  prefix: f(() => [
@@ -6994,7 +6996,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
6994
6996
  _: 1
6995
6997
  }, 8, ["modelValue"]));
6996
6998
  }
6997
- }), oi = /* @__PURE__ */ E({
6999
+ }), oi = /* @__PURE__ */ $({
6998
7000
  name: "SelectSetter",
6999
7001
  __name: "select",
7000
7002
  props: {
@@ -7004,14 +7006,14 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
7004
7006
  const e = u;
7005
7007
  return (n, l) => (c(), b(t(Tn), re({ clearable: "" }, n.$attrs), {
7006
7008
  default: f(() => [
7007
- (c(!0), $(P, null, z(e.options, (s) => (c(), b(t(Jn), re({
7009
+ (c(!0), V(P, null, z(e.options, (s) => (c(), b(t(Jn), re({
7008
7010
  key: s.label
7009
7011
  }, s), null, 16))), 128))
7010
7012
  ]),
7011
7013
  _: 1
7012
7014
  }, 16));
7013
7015
  }
7014
- }), ri = /* @__PURE__ */ E({
7016
+ }), ri = /* @__PURE__ */ $({
7015
7017
  name: "NumberSetter",
7016
7018
  __name: "number",
7017
7019
  props: {
@@ -7028,13 +7030,13 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
7028
7030
  "model-value": s.value
7029
7031
  }, r.$attrs, { onChange: o }), null, 16, ["model-value"]));
7030
7032
  }
7031
- }), ii = /* @__PURE__ */ E({
7033
+ }), ii = /* @__PURE__ */ $({
7032
7034
  name: "ColorSetter",
7033
7035
  __name: "color",
7034
7036
  setup(u) {
7035
7037
  return (e, n) => (c(), b(t(On), Jt(Ft(e.$attrs)), null, 16));
7036
7038
  }
7037
- }), ui = /* @__PURE__ */ E({
7039
+ }), ui = /* @__PURE__ */ $({
7038
7040
  name: "JsonSetter",
7039
7041
  __name: "json",
7040
7042
  props: {
@@ -7062,18 +7064,18 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
7062
7064
  });
7063
7065
  }
7064
7066
  return h;
7065
- }, v = () => {
7067
+ }, m = () => {
7066
7068
  const y = l.value?.getEditor();
7067
7069
  if (y) {
7068
7070
  const h = y.getValue();
7069
7071
  i(h) && (s.value = h, a("change", JSON.parse(h)), r.value = !1);
7070
7072
  }
7071
- }, m = () => {
7073
+ }, v = () => {
7072
7074
  s.value = "", a("change", void 0), r.value = !1;
7073
7075
  }, g = () => {
7074
7076
  r.value = !0;
7075
7077
  };
7076
- return (y, h) => (c(), $("div", {
7078
+ return (y, h) => (c(), V("div", {
7077
7079
  class: W(["v-json-setter", { "is-active": o.value }])
7078
7080
  }, [
7079
7081
  p(t(_e), re({
@@ -7092,8 +7094,8 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
7092
7094
  cancel: "",
7093
7095
  submit: "",
7094
7096
  clear: "",
7095
- onSubmit: v,
7096
- onClear: m
7097
+ onSubmit: m,
7098
+ onClear: v
7097
7099
  }, {
7098
7100
  default: f(() => [
7099
7101
  p(t(ne), {
@@ -7106,10 +7108,10 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
7106
7108
  }, null, 8, ["model-value"])
7107
7109
  ]),
7108
7110
  _: 1
7109
- }, 8, ["modelValue", "title"])) : I("", !0)
7111
+ }, 8, ["modelValue", "title"])) : E("", !0)
7110
7112
  ], 2));
7111
7113
  }
7112
- }), ci = /* @__PURE__ */ E({
7114
+ }), ci = /* @__PURE__ */ $({
7113
7115
  name: "FunctionSetter",
7114
7116
  __name: "function",
7115
7117
  props: {
@@ -7129,17 +7131,17 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
7129
7131
  };
7130
7132
  ae(h, {}) && (s.value = y, a("change", h), o.value = !1);
7131
7133
  }
7132
- }, v = () => {
7133
- s.value = "", a("change", void 0), o.value = !1;
7134
7134
  }, m = () => {
7135
+ s.value = "", a("change", void 0), o.value = !1;
7136
+ }, v = () => {
7135
7137
  o.value = !0;
7136
7138
  };
7137
- return (g, y) => (c(), $("div", {
7139
+ return (g, y) => (c(), V("div", {
7138
7140
  class: W(["v-function-setter", { "is-active": r.value }])
7139
7141
  }, [
7140
7142
  p(t(_e), re({
7141
7143
  readonly: "",
7142
- onFocus: m,
7144
+ onFocus: v,
7143
7145
  "model-value": "JSFunction",
7144
7146
  "suffix-icon": t(wt)
7145
7147
  }, g.$attrs), null, 16, ["suffix-icon"]),
@@ -7154,7 +7156,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
7154
7156
  submit: "",
7155
7157
  clear: "",
7156
7158
  onSubmit: i,
7157
- onClear: v
7159
+ onClear: m
7158
7160
  }, {
7159
7161
  default: f(() => [
7160
7162
  p(t(ne), {
@@ -7166,10 +7168,10 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
7166
7168
  }, null, 8, ["model-value"])
7167
7169
  ]),
7168
7170
  _: 1
7169
- }, 8, ["modelValue"])) : I("", !0)
7171
+ }, 8, ["modelValue"])) : E("", !0)
7170
7172
  ], 2));
7171
7173
  }
7172
- }), di = /* @__PURE__ */ E({
7174
+ }), di = /* @__PURE__ */ $({
7173
7175
  name: "RadioSetter",
7174
7176
  __name: "radio",
7175
7177
  props: {
@@ -7182,25 +7184,26 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
7182
7184
  size: "small"
7183
7185
  }, n.$attrs), {
7184
7186
  default: f(() => [
7185
- (c(!0), $(P, null, z(e.options, (s) => (c(), b(t(He), {
7186
- label: s.value,
7187
+ (c(!0), V(P, null, z(e.options, (s) => (c(), b(t(He), {
7188
+ label: s.label,
7189
+ value: s.value,
7187
7190
  title: s.label
7188
7191
  }, {
7189
7192
  default: f(() => [
7190
7193
  s.svg ? (c(), b(t(we), {
7191
7194
  key: 0,
7192
7195
  src: s.svg
7193
- }, null, 8, ["src"])) : (c(), $(P, { key: 1 }, [
7196
+ }, null, 8, ["src"])) : (c(), V(P, { key: 1 }, [
7194
7197
  q(B(s.label), 1)
7195
7198
  ], 64))
7196
7199
  ]),
7197
7200
  _: 2
7198
- }, 1032, ["label", "title"]))), 256))
7201
+ }, 1032, ["label", "value", "title"]))), 256))
7199
7202
  ]),
7200
7203
  _: 1
7201
7204
  }, 16));
7202
7205
  }
7203
- }), pi = ["label", "title", "onClick"], mi = /* @__PURE__ */ E({
7206
+ }), pi = ["label", "title", "onClick"], mi = /* @__PURE__ */ $({
7204
7207
  name: "TagSetter",
7205
7208
  __name: "tag",
7206
7209
  props: {
@@ -7212,11 +7215,11 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
7212
7215
  const n = u, l = e, s = (o) => {
7213
7216
  o.value === n.modelValue ? (l("update:modelValue", void 0), l("change", void 0)) : (l("update:modelValue", o.value), l("change", o.value));
7214
7217
  };
7215
- return (o, r) => (c(), $("div", re({
7218
+ return (o, r) => (c(), V("div", re({
7216
7219
  class: "v-tag-setter",
7217
7220
  size: "small"
7218
7221
  }, o.$attrs), [
7219
- (c(!0), $(P, null, z(n.options, (a) => (c(), $("span", {
7222
+ (c(!0), V(P, null, z(n.options, (a) => (c(), V("span", {
7220
7223
  label: a.value,
7221
7224
  title: a.label,
7222
7225
  class: W({
@@ -7228,13 +7231,13 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
7228
7231
  key: 0,
7229
7232
  src: a.svg,
7230
7233
  size: 16
7231
- }, null, 8, ["src"])) : (c(), $(P, { key: 1 }, [
7234
+ }, null, 8, ["src"])) : (c(), V(P, { key: 1 }, [
7232
7235
  q(B(a.label), 1)
7233
7236
  ], 64))
7234
7237
  ], 10, pi))), 256))
7235
7238
  ], 16));
7236
7239
  }
7237
- }), yn = /* @__PURE__ */ E({
7240
+ }), yn = /* @__PURE__ */ $({
7238
7241
  name: "SizeSetter",
7239
7242
  __name: "size",
7240
7243
  props: {
@@ -7253,16 +7256,16 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
7253
7256
  i && (s.value = i.endsWith("px"), r.value = i);
7254
7257
  },
7255
7258
  { immediate: !0 }
7256
- ), (i, v) => (c(), b(t(Qt), re({
7259
+ ), (i, m) => (c(), b(t(Qt), re({
7257
7260
  clearable: "",
7258
7261
  unit: o.value,
7259
7262
  "with-unit": !!o.value,
7260
7263
  modelValue: r.value,
7261
- "onUpdate:modelValue": v[0] || (v[0] = (m) => r.value = m),
7264
+ "onUpdate:modelValue": m[0] || (m[0] = (v) => r.value = v),
7262
7265
  onChange: a
7263
7266
  }, i.$attrs), null, 16, ["unit", "with-unit", "modelValue"]));
7264
7267
  }
7265
- }), vi = { class: "v-image-setter__plus" }, gi = /* @__PURE__ */ E({
7268
+ }), vi = { class: "v-image-setter__plus" }, gi = /* @__PURE__ */ $({
7266
7269
  name: "ImageSetter",
7267
7270
  __name: "image",
7268
7271
  props: {
@@ -7271,8 +7274,8 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
7271
7274
  },
7272
7275
  emits: ["change"],
7273
7276
  setup(u, { emit: e }) {
7274
- const n = u, l = e, s = k([]), o = S(() => s.value.length < n.limit), r = (i) => i.type.includes("image") ? (Xn(i).then((v) => {
7275
- s.value = [{ name: i.name, url: v }];
7277
+ const n = u, l = e, s = k([]), o = S(() => s.value.length < n.limit), r = (i) => i.type.includes("image") ? (Xn(i).then((m) => {
7278
+ s.value = [{ name: i.name, url: m }];
7276
7279
  }), !1) : (Ze.error("只能上传图片"), !1), a = () => {
7277
7280
  s.value = [];
7278
7281
  };
@@ -7286,13 +7289,13 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
7286
7289
  }
7287
7290
  ), H(s, () => {
7288
7291
  l("change", s.value[0]?.url);
7289
- }), (i, v) => (c(), b(t(Nn), re({
7292
+ }), (i, m) => (c(), b(t(Nn), re({
7290
7293
  class: ["v-image-setter", { "v-image-setter--addable": o.value }],
7291
7294
  "list-type": "picture-card",
7292
7295
  limit: 1,
7293
7296
  action: "#",
7294
7297
  "file-list": s.value,
7295
- "onUpdate:fileList": v[0] || (v[0] = (m) => s.value = m),
7298
+ "onUpdate:fileList": m[0] || (m[0] = (v) => s.value = v),
7296
7299
  "before-upload": r,
7297
7300
  "auto-upload": !0,
7298
7301
  "on-remove": a
@@ -7305,7 +7308,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
7305
7308
  _: 1
7306
7309
  }, 16, ["class", "file-list"]));
7307
7310
  }
7308
- }), fi = { class: "v-section-setter" }, hi = /* @__PURE__ */ E({
7311
+ }), fi = { class: "v-section-setter" }, hi = /* @__PURE__ */ $({
7309
7312
  name: "SectionSetter",
7310
7313
  __name: "section",
7311
7314
  props: {
@@ -7325,17 +7328,17 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
7325
7328
  const o = () => {
7326
7329
  l("change", s.value.join(" ").trim());
7327
7330
  };
7328
- return (r, a) => (c(), $("div", fi, [
7329
- (c(!0), $(P, null, z(n.sections, (i) => (c(), b(yn, {
7331
+ return (r, a) => (c(), V("div", fi, [
7332
+ (c(!0), V(P, null, z(n.sections, (i) => (c(), b(yn, {
7330
7333
  name: i - 1,
7331
7334
  modelValue: s.value[i - 1],
7332
- "onUpdate:modelValue": (v) => s.value[i - 1] = v,
7335
+ "onUpdate:modelValue": (m) => s.value[i - 1] = m,
7333
7336
  onChange: o,
7334
7337
  class: "v-section-setter__item"
7335
7338
  }, null, 8, ["name", "modelValue", "onUpdate:modelValue"]))), 256))
7336
7339
  ]));
7337
7340
  }
7338
- }), bi = { class: "v-slider-setter" }, yi = /* @__PURE__ */ E({
7341
+ }), bi = { class: "v-slider-setter" }, yi = /* @__PURE__ */ $({
7339
7342
  name: "SliderSetter",
7340
7343
  __name: "slider",
7341
7344
  props: {
@@ -7356,7 +7359,7 @@ const ja = { class: "v-switcher-widget" }, Aa = { key: 1 }, Da = /* @__PURE__ */
7356
7359
  const o = () => {
7357
7360
  s.value = void 0, l("change", void 0), l("update:modelValue", void 0);
7358
7361
  };
7359
- return (r, a) => (c(), $("div", bi, [
7362
+ return (r, a) => (c(), V("div", bi, [
7360
7363
  p(t(Mn), re({ size: "small" }, r.$attrs, {
7361
7364
  modelValue: s.value,
7362
7365
  "onUpdate:modelValue": a[0] || (a[0] = (i) => s.value = i)
@@ -7765,16 +7768,16 @@ class $i {
7765
7768
  const a = r.model, i = s.value.type;
7766
7769
  if (!await this.allowDrop(a, i))
7767
7770
  return;
7768
- const v = this.createNodeDsl(l), m = new Et(v);
7771
+ const m = this.createNodeDsl(l), v = new Et(m);
7769
7772
  if (Q(a))
7770
- o.addNode(m, void 0, i);
7773
+ o.addNode(v, void 0, i);
7771
7774
  else {
7772
7775
  const g = await this.getDropSlot(i === "inner" ? a : a.parent);
7773
7776
  if (g === null) {
7774
7777
  this.dropping.value = null;
7775
7778
  return;
7776
7779
  }
7777
- m.slot = g, o.addNode(m, a, i);
7780
+ v.slot = g, o.addNode(v, a, i);
7778
7781
  }
7779
7782
  this.dropping.value = null;
7780
7783
  }
@@ -7932,7 +7935,7 @@ class $i {
7932
7935
  const r = s.assets.componentMap, a = n !== "inner" && e.parent || e, i = await s.assets.getBlockMaterial(a.from) || r.get(a.name);
7933
7936
  if (!i)
7934
7937
  return !1;
7935
- const { parentIncludes: v = !0, name: m } = l, { childIncludes: g = !0 } = i, y = v === !0 || Array.isArray(v) && v.includes(a.name), h = g === !0 || Array.isArray(g) && g.includes(m);
7938
+ const { parentIncludes: m = !0, name: v } = l, { childIncludes: g = !0 } = i, y = m === !0 || Array.isArray(m) && m.includes(a.name), h = g === !0 || Array.isArray(g) && g.includes(v);
7936
7939
  return y && h;
7937
7940
  }
7938
7941
  dispose() {
@@ -7960,7 +7963,7 @@ class Ei {
7960
7963
  }
7961
7964
  const o = Object.values(n);
7962
7965
  Object.assign(e.config.globalProperties, l), e.config.errorHandler = (r, a, i) => {
7963
- const v = a?.$options.name, m = r?.message || r?.msg || "未知错误", g = `[ ${v} ] ${m}`;
7966
+ const m = a?.$options.name, v = r?.message || r?.msg || "未知错误", g = `[ ${m} ] ${v}`;
7964
7967
  console.error({
7965
7968
  err: r,
7966
7969
  instance: a,
@@ -7983,7 +7986,7 @@ class Ei {
7983
7986
  apis: a
7984
7987
  } = this.env, i = n.document.createElement("div");
7985
7988
  i.id = "app", l.appendChild(i), this.dsl = s.reactive(e.toDsl());
7986
- const v = hl({
7989
+ const m = hl({
7987
7990
  getDsl: async (y) => await this.service.getFile(y) || null,
7988
7991
  options: {
7989
7992
  mode: mt.Design,
@@ -7993,17 +7996,17 @@ class Ei {
7993
7996
  apis: a,
7994
7997
  window: n
7995
7998
  }
7996
- }), { renderer: m, context: g } = bl({
7999
+ }), { renderer: v, context: g } = bl({
7997
8000
  Vue: s,
7998
8001
  mode: mt.Design,
7999
8002
  dsl: this.dsl,
8000
8003
  components: o,
8001
8004
  libs: r,
8002
8005
  apis: a,
8003
- loader: v,
8006
+ loader: m,
8004
8007
  window: n
8005
8008
  });
8006
- this.app = s.createApp(m), this.install(this.app);
8009
+ this.app = s.createApp(v), this.install(this.app);
8007
8010
  try {
8008
8011
  this.app.mount(i);
8009
8012
  } catch (y) {
@@ -8051,9 +8054,9 @@ class Ii extends tn {
8051
8054
  this.refresh();
8052
8055
  });
8053
8056
  }
8054
- init(e, n) {
8057
+ init(e, n, l) {
8055
8058
  H(
8056
- [e, n],
8059
+ [e, n, l],
8057
8060
  () => {
8058
8061
  e.value && n.value.length && (this.resetReady(), this.setup(e.value, n.value), this.contentWindow && (this.designer.value?.dispose(), this.designer.value = new $i(
8059
8062
  this.engine,
@@ -8078,8 +8081,8 @@ class Ii extends tn {
8078
8081
  css: r,
8079
8082
  materials: a,
8080
8083
  libraryExports: i,
8081
- materialExports: v,
8082
- materialMapLibrary: m
8084
+ materialExports: m,
8085
+ materialMapLibrary: v
8083
8086
  } = yl(n, this.materialPath);
8084
8087
  s.open(), s.write(`
8085
8088
  <!DOCTYPE html>
@@ -8106,37 +8109,37 @@ class Ii extends tn {
8106
8109
  </body>
8107
8110
  <script>
8108
8111
  __simulator__.emitReady(${JSON.stringify(i)},
8109
- ${JSON.stringify(v)},
8110
- ${JSON.stringify(m)});
8112
+ ${JSON.stringify(m)},
8113
+ ${JSON.stringify(v)});
8111
8114
  <\/script>
8112
8115
  </html>
8113
8116
  `), s.close();
8114
8117
  }
8115
8118
  async emitReady(e = [], n = [], l = {}) {
8116
8119
  this.renderer?.dispose(), this.renderer = null;
8117
- const s = this.contentWindow, { assets: o, service: r, current: a, provider: i } = this.engine, v = i.materials || {}, m = [];
8120
+ const s = this.contentWindow, { assets: o, service: r, current: a, provider: i } = this.engine, m = i.materials || {}, v = [];
8118
8121
  for (const y of n) {
8119
- const h = v[y] ? (await v[y]()).default : s[y];
8120
- m.push(h);
8122
+ const h = m[y] ? (await m[y]()).default : s[y];
8123
+ v.push(h);
8121
8124
  }
8122
- o.load(m);
8123
- const g = this.createEnv(e, l, m);
8125
+ o.load(v);
8126
+ const g = this.createEnv(e, l, v);
8124
8127
  this.renderer = new Ei(g, r, this.designer.value), a.value && this.renderer.render(a.value), this.triggerReady();
8125
8128
  }
8126
8129
  createEnv(e = [], n = {}, l = []) {
8127
- const s = this.contentWindow, { engine: o } = this, { project: r, assets: a, provider: i } = o, v = e.reduce((w, C) => (w[C] = s[C], w), {}), m = {}, { groups: g, componentMap: y } = a;
8130
+ const s = this.contentWindow, { engine: o } = this, { project: r, assets: a, provider: i } = o, m = e.reduce((w, C) => (w[C] = s[C], w), {}), v = {}, { groups: g, componentMap: y } = a;
8128
8131
  for (const w of g.value) {
8129
8132
  const C = w.names || [];
8130
8133
  if (w.name === ct)
8131
- C.forEach((V) => {
8132
- const A = y.get(V), O = A?.package || "", j = ll[O], T = v[j];
8133
- T && A && (m[V] = At(A, T));
8134
+ C.forEach((I) => {
8135
+ const j = y.get(I), T = j?.package || "", A = ll[T], J = m[A];
8136
+ J && j && (v[I] = At(j, J));
8134
8137
  });
8135
8138
  else {
8136
- const V = v[n[w.library || ""]];
8137
- V && C.forEach((A) => {
8138
- const O = y.get(A);
8139
- O ? m[A] = At(O, V) : m[A] = V[A];
8139
+ const I = m[n[w.library || ""]];
8140
+ I && C.forEach((j) => {
8141
+ const T = y.get(j);
8142
+ T ? v[j] = At(T, I) : v[j] = I[j];
8140
8143
  });
8141
8144
  }
8142
8145
  }
@@ -8145,9 +8148,9 @@ class Ii extends tn {
8145
8148
  window: s,
8146
8149
  Vue: s.Vue,
8147
8150
  VueRouter: s.VueRouter,
8148
- library: v,
8151
+ library: m,
8149
8152
  materials: l,
8150
- components: m,
8153
+ components: v,
8151
8154
  container: s.document.body,
8152
8155
  apis: _,
8153
8156
  globals: d
@@ -8159,7 +8162,7 @@ class Ii extends tn {
8159
8162
  e && this.renderer?.render(e);
8160
8163
  }
8161
8164
  dispose() {
8162
- this.renderer?.dispose(), this.designer.value?.dispose(), this.contentWindow = null, this.renderer = null, this.designer.value = null;
8165
+ this.renderer?.dispose(), this.designer.value?.dispose(), this.contentWindow = null, this.renderer = null, this.designer.value = null, this.resetReady();
8163
8166
  }
8164
8167
  }
8165
8168
  class ji {
@@ -8186,15 +8189,15 @@ class ji {
8186
8189
  const { categories: s, components: o, label: r, name: a, library: i } = l;
8187
8190
  if (!s || !o)
8188
8191
  continue;
8189
- const v = o.filter((h) => !!h.package).map((h) => h.name), m = s.map(
8192
+ const m = o.filter((h) => !!h.package).map((h) => h.name), v = s.map(
8190
8193
  (h) => this.getCateoryComponents(h, o)
8191
- ), g = m.reduce((h, d) => d.count + h, 0), y = {
8194
+ ), g = v.reduce((h, d) => d.count + h, 0), y = {
8192
8195
  name: l.name,
8193
8196
  label: r || a,
8194
8197
  count: g,
8195
- names: v,
8198
+ names: m,
8196
8199
  library: i,
8197
- children: m
8200
+ children: v
8198
8201
  };
8199
8202
  n.push(y);
8200
8203
  }
@@ -8216,7 +8219,7 @@ class ji {
8216
8219
  const l = await this.service.getFile(n);
8217
8220
  if (!l)
8218
8221
  return null;
8219
- const { id: s, name: o, slots: r, props: a, emits: i } = l, v = (g) => {
8222
+ const { id: s, name: o, slots: r, props: a, emits: i } = l, m = (g) => {
8220
8223
  const y = Array.isArray(g) ? g : [g];
8221
8224
  let h = [];
8222
8225
  for (const d of y)
@@ -8235,7 +8238,7 @@ class ji {
8235
8238
  } : {
8236
8239
  name: g.name,
8237
8240
  type: g.type,
8238
- setters: v(g.type)
8241
+ setters: m(g.type)
8239
8242
  }),
8240
8243
  events: i,
8241
8244
  slots: r,
@@ -8434,7 +8437,7 @@ function ie() {
8434
8437
  const u = $n(wn, null);
8435
8438
  return u || ke.error("VTJEngine is not exist"), u;
8436
8439
  }
8437
- const Ve = E({
8440
+ const Ve = $({
8438
8441
  name: "RegionWrapper",
8439
8442
  props: {
8440
8443
  region: {
@@ -8451,7 +8454,7 @@ const Ve = E({
8451
8454
  const u = zt[this.region] || zt.EmptyRegion;
8452
8455
  return Pe(u, { ...this.$props, ...this.$attrs, ref: "regionRef" });
8453
8456
  }
8454
- }), Ie = E({
8457
+ }), Ie = $({
8455
8458
  name: "WidgetWrapper",
8456
8459
  props: {
8457
8460
  region: {
@@ -8476,7 +8479,7 @@ const Ve = E({
8476
8479
  ref: "widgetRef"
8477
8480
  });
8478
8481
  }
8479
- }), Ai = E({
8482
+ }), Ai = $({
8480
8483
  name: "SkeletonWrapper",
8481
8484
  setup() {
8482
8485
  const u = k(), e = ie(), n = k({});
@@ -8548,7 +8551,7 @@ const Ve = E({
8548
8551
  this.skeletonRef && (this.skeletonRef.isPreview = !1);
8549
8552
  }
8550
8553
  }
8551
- }), F = E({
8554
+ }), O = $({
8552
8555
  name: "SetterWrapper",
8553
8556
  props: {
8554
8557
  context: {
@@ -8635,8 +8638,8 @@ const Ve = E({
8635
8638
  computedSetters: r,
8636
8639
  computedOptions: a,
8637
8640
  variable: i,
8638
- changeValue: v,
8639
- defaultSetter: m,
8641
+ changeValue: m,
8642
+ defaultSetter: v,
8640
8643
  removable: g,
8641
8644
  onRemove: y
8642
8645
  } = this;
@@ -8647,12 +8650,12 @@ const Ve = E({
8647
8650
  label: l,
8648
8651
  title: s,
8649
8652
  setters: r,
8650
- defaultSetter: m,
8653
+ defaultSetter: v,
8651
8654
  variable: i,
8652
8655
  value: o,
8653
8656
  removable: g,
8654
8657
  options: a,
8655
- onChange: v,
8658
+ onChange: m,
8656
8659
  onRemove: y
8657
8660
  });
8658
8661
  },
@@ -8668,7 +8671,7 @@ const Ve = E({
8668
8671
  this.$emit("remove", u);
8669
8672
  }
8670
8673
  }
8671
- }), Di = /* @__PURE__ */ E({
8674
+ }), Di = /* @__PURE__ */ $({
8672
8675
  name: "Skeletion",
8673
8676
  __name: "skeleton",
8674
8677
  props: {
@@ -8682,27 +8685,27 @@ const Ve = E({
8682
8685
  dirs: ["e"],
8683
8686
  maxWidth: 600,
8684
8687
  minWidth: 49,
8685
- onResizing(V, A) {
8686
- s.value = A.elementWidth.value;
8688
+ onResizing(I, j) {
8689
+ s.value = j.elementWidth.value;
8687
8690
  },
8688
- onEnd(V, A) {
8689
- s.value = A.elementWidth.value;
8691
+ onEnd(I, j) {
8692
+ s.value = j.elementWidth.value;
8690
8693
  }
8691
8694
  }, a = {
8692
8695
  dirs: ["w"],
8693
8696
  maxWidth: 600,
8694
8697
  minWidth: 2,
8695
- onResizing(V, A) {
8696
- o.value = A.elementWidth.value;
8698
+ onResizing(I, j) {
8699
+ o.value = j.elementWidth.value;
8697
8700
  },
8698
- onEnd(V, A) {
8699
- o.value = A.elementWidth.value;
8701
+ onEnd(I, j) {
8702
+ o.value = j.elementWidth.value;
8700
8703
  }
8701
- }, i = k(), v = k(), m = k(), g = k(), y = k(), h = k(), d = k(), _ = k(), w = k(!1), C = k(!1);
8704
+ }, i = k(), m = k(), v = k(), g = k(), y = k(), h = k(), d = k(), _ = k(), w = k(!1), C = k(!1);
8702
8705
  return e({
8703
8706
  brand: i,
8704
- toolbar: v,
8705
- actions: m,
8707
+ toolbar: m,
8708
+ actions: v,
8706
8709
  apps: g,
8707
8710
  workspace: y,
8708
8711
  settings: h,
@@ -8713,13 +8716,13 @@ const Ve = E({
8713
8716
  rightWidth: o,
8714
8717
  preview: _,
8715
8718
  isPreview: l
8716
- }), (V, A) => (c(), b(t(Wn), { locale: t(qn) }, {
8719
+ }), (I, j) => (c(), b(t(Wn), { locale: t(qn) }, {
8717
8720
  default: f(() => [
8718
8721
  p(t(Ct), { class: "v-skeleton" }, {
8719
8722
  default: f(() => [
8720
8723
  p(t(Ln), {
8721
8724
  class: "v-skeleton__header",
8722
- height: V.headerHeight
8725
+ height: I.headerHeight
8723
8726
  }, {
8724
8727
  default: f(() => [
8725
8728
  p(t(Ve), {
@@ -8729,13 +8732,13 @@ const Ve = E({
8729
8732
  }, null, 512),
8730
8733
  p(t(Ve), {
8731
8734
  ref_key: "toolbar",
8732
- ref: v,
8735
+ ref: m,
8733
8736
  region: "Toolbar",
8734
8737
  preview: l.value
8735
8738
  }, null, 8, ["preview"]),
8736
8739
  p(t(Ve), {
8737
8740
  ref_key: "actions",
8738
- ref: m,
8741
+ ref: v,
8739
8742
  region: "Actions"
8740
8743
  }, null, 512)
8741
8744
  ]),
@@ -8743,7 +8746,7 @@ const Ve = E({
8743
8746
  }, 8, ["height"]),
8744
8747
  p(t(Ct), { class: "v-skeleton__wrapper" }, {
8745
8748
  default: f(() => [
8746
- l.value ? I("", !0) : je((c(), b(t(Vt), {
8749
+ l.value ? E("", !0) : je((c(), b(t(Vt), {
8747
8750
  key: 0,
8748
8751
  width: n.leftWidth,
8749
8752
  class: W(["v-skeleton__left", {
@@ -8769,7 +8772,7 @@ const Ve = E({
8769
8772
  ref: _,
8770
8773
  region: "Preview",
8771
8774
  preview: l.value
8772
- }, null, 8, ["preview"])) : I("", !0),
8775
+ }, null, 8, ["preview"])) : E("", !0),
8773
8776
  je(p(t(Ve), {
8774
8777
  ref_key: "workspace",
8775
8778
  ref: y,
@@ -8780,7 +8783,7 @@ const Ve = E({
8780
8783
  ]),
8781
8784
  _: 1
8782
8785
  }),
8783
- l.value ? I("", !0) : je((c(), b(t(Vt), {
8786
+ l.value ? E("", !0) : je((c(), b(t(Vt), {
8784
8787
  key: 1,
8785
8788
  width: n.rightWidth,
8786
8789
  class: "v-skeleton__right"
@@ -8800,10 +8803,10 @@ const Ve = E({
8800
8803
  ]),
8801
8804
  _: 1
8802
8805
  }),
8803
- l.value ? I("", !0) : (c(), b(t(Hn), {
8806
+ l.value ? E("", !0) : (c(), b(t(Hn), {
8804
8807
  key: 0,
8805
8808
  class: "v-skeleton__footer",
8806
- height: V.footerHeight
8809
+ height: I.footerHeight
8807
8810
  }, {
8808
8811
  default: f(() => [
8809
8812
  p(t(Ve), {
@@ -8824,7 +8827,7 @@ const Ve = E({
8824
8827
  }), Pi = { key: 1 }, Ri = { class: "v-setter__content" }, Bi = {
8825
8828
  key: 0,
8826
8829
  class: "v-setter__input"
8827
- }, zi = { class: "v-setter__action" }, Ti = "{{", Ji = "}}", Fi = /* @__PURE__ */ E({
8830
+ }, zi = { class: "v-setter__action" }, Ti = "{{", Ji = "}}", Fi = /* @__PURE__ */ $({
8828
8831
  __name: "setter",
8829
8832
  props: {
8830
8833
  context: {},
@@ -8843,10 +8846,10 @@ const Ve = E({
8843
8846
  setup(u, { emit: e }) {
8844
8847
  const n = u, l = e, s = k(!1), o = k(""), r = k(
8845
8848
  n.setters.find((C) => C.name === n.defaultSetter) || n.setters[0]
8846
- ), a = k(n.value), i = S(() => !!Je(a.value)), v = {
8849
+ ), a = k(n.value), i = S(() => !!Je(a.value)), m = {
8847
8850
  [r.value.name]: a.value
8848
- }, m = (C) => {
8849
- v[r.value.name] = a.value, r.value = C, a.value = v[C.name] ?? void 0, g(a.value);
8851
+ }, v = (C) => {
8852
+ m[r.value.name] = a.value, r.value = C, a.value = m[C.name] ?? void 0, g(a.value);
8850
8853
  };
8851
8854
  H(
8852
8855
  () => n.value,
@@ -8869,10 +8872,10 @@ const Ve = E({
8869
8872
  s.value = !0, o.value = Je(a.value) ? a.value.value : "";
8870
8873
  }, d = () => {
8871
8874
  s.value = !1, o.value = "";
8872
- }, _ = async (C) => ae(C, n.context, !0) ? (v[r.value.name] = a.value, a.value = C, l("change", C), !0) : !1, w = async () => {
8875
+ }, _ = async (C) => ae(C, n.context, !0) ? (m[r.value.name] = a.value, a.value = C, l("change", C), !0) : !1, w = async () => {
8873
8876
  await Be("确定要解除绑定吗?") && (d(), a.value = void 0, l("change", ""));
8874
8877
  };
8875
- return (C, V) => (c(), b(t(Kt), {
8878
+ return (C, I) => (c(), b(t(Kt), {
8876
8879
  class: "v-setter",
8877
8880
  size: "small",
8878
8881
  "label-positon": "left"
@@ -8887,19 +8890,19 @@ const Ve = E({
8887
8890
  q(B(n.label || n.name), 1)
8888
8891
  ]),
8889
8892
  _: 1
8890
- }, 8, ["content"])) : (c(), $("span", Pi, B(n.label || n.name), 1))
8893
+ }, 8, ["content"])) : (c(), V("span", Pi, B(n.label || n.name), 1))
8891
8894
  ]),
8892
8895
  default: f(() => [
8893
8896
  x("div", Ri, [
8894
- r.value ? (c(), $("div", Bi, [
8895
- i.value ? I("", !0) : (c(), b(Tt(r.value.component), re({
8897
+ r.value ? (c(), V("div", Bi, [
8898
+ i.value ? E("", !0) : (c(), b(Tt(r.value.component), re({
8896
8899
  key: 0,
8897
8900
  current: n.current,
8898
8901
  context: n.context
8899
8902
  }, r.value.props, {
8900
8903
  options: n.options,
8901
8904
  modelValue: a.value,
8902
- "onUpdate:modelValue": V[0] || (V[0] = (A) => a.value = A),
8905
+ "onUpdate:modelValue": I[0] || (I[0] = (j) => a.value = j),
8903
8906
  onChange: g,
8904
8907
  disabled: i.value
8905
8908
  }), null, 16, ["current", "context", "options", "modelValue", "disabled"])),
@@ -8916,36 +8919,36 @@ const Ve = E({
8916
8919
  q(B(Ji))
8917
8920
  ]),
8918
8921
  _: 1
8919
- })) : I("", !0)
8920
- ])) : I("", !0),
8922
+ })) : E("", !0)
8923
+ ])) : E("", !0),
8921
8924
  x("div", zi, [
8922
8925
  n.variable ? (c(), b(t(ea), {
8923
8926
  key: 0,
8924
8927
  onClick: h,
8925
8928
  class: W(["v-icon-vars", { "is-active": i.value }]),
8926
8929
  title: "绑定变量"
8927
- }, null, 8, ["class"])) : I("", !0),
8930
+ }, null, 8, ["class"])) : E("", !0),
8928
8931
  n.setters.length > 1 ? (c(), b(t(Ut), {
8929
8932
  key: 1,
8930
8933
  disabled: i.value,
8931
8934
  size: "small",
8932
8935
  "popper-class": "v-setter-switch",
8933
- onCommand: m
8936
+ onCommand: v
8934
8937
  }, {
8935
8938
  dropdown: f(() => [
8936
8939
  p(t(Ht), null, {
8937
8940
  default: f(() => [
8938
- (c(!0), $(P, null, z(n.setters, (A) => (c(), b(t(rt), {
8939
- command: A,
8940
- key: A.name
8941
+ (c(!0), V(P, null, z(n.setters, (j) => (c(), b(t(rt), {
8942
+ command: j,
8943
+ key: j.name
8941
8944
  }, {
8942
8945
  default: f(() => [
8943
8946
  p(t(an), {
8944
8947
  class: W({
8945
- "is-placeholder": A.name !== r.value.name
8948
+ "is-placeholder": j.name !== r.value.name
8946
8949
  })
8947
8950
  }, null, 8, ["class"]),
8948
- q(" " + B(A.label), 1)
8951
+ q(" " + B(j.label), 1)
8949
8952
  ]),
8950
8953
  _: 2
8951
8954
  }, 1032, ["command"]))), 128))
@@ -8957,12 +8960,12 @@ const Ve = E({
8957
8960
  p(t(ta), { title: "切换设置器" })
8958
8961
  ]),
8959
8962
  _: 1
8960
- }, 8, ["disabled"])) : I("", !0),
8963
+ }, 8, ["disabled"])) : E("", !0),
8961
8964
  n.removable ? (c(), b(t(Xe), {
8962
8965
  key: 2,
8963
8966
  onClick: y,
8964
8967
  title: "删除"
8965
- })) : I("", !0)
8968
+ })) : E("", !0)
8966
8969
  ])
8967
8970
  ]),
8968
8971
  s.value ? (c(), b(t(wo), {
@@ -8971,24 +8974,24 @@ const Ve = E({
8971
8974
  context: n.context,
8972
8975
  value: o.value,
8973
8976
  modelValue: s.value,
8974
- "onUpdate:modelValue": V[1] || (V[1] = (A) => s.value = A),
8977
+ "onUpdate:modelValue": I[1] || (I[1] = (j) => s.value = j),
8975
8978
  submitMethod: _,
8976
8979
  onUnbind: w
8977
- }, null, 8, ["current", "context", "value", "modelValue"])) : I("", !0)
8980
+ }, null, 8, ["current", "context", "value", "modelValue"])) : E("", !0)
8978
8981
  ]),
8979
8982
  _: 1
8980
8983
  }));
8981
8984
  }
8982
- }), Oi = { class: "v-empty-region" }, Ni = /* @__PURE__ */ E({
8985
+ }), Oi = { class: "v-empty-region" }, Ni = /* @__PURE__ */ $({
8983
8986
  name: "EmptyRegion",
8984
8987
  __name: "empty",
8985
8988
  props: {
8986
8989
  region: {}
8987
8990
  },
8988
8991
  setup(u) {
8989
- return (e, n) => (c(), $("div", Oi, "找不到符合【" + B(e.region) + "】名称的区域组件", 1));
8992
+ return (e, n) => (c(), V("div", Oi, "找不到符合【" + B(e.region) + "】名称的区域组件", 1));
8990
8993
  }
8991
- }), Mi = { class: "v-brand-region" }, Wi = /* @__PURE__ */ E({
8994
+ }), Mi = { class: "v-brand-region" }, Wi = /* @__PURE__ */ $({
8992
8995
  name: "BrandRegion",
8993
8996
  inheritAttrs: !1,
8994
8997
  __name: "brand",
@@ -9000,8 +9003,8 @@ const Ve = E({
9000
9003
  return e({
9001
9004
  widgets: l,
9002
9005
  widgetsRef: s
9003
- }), (o, r) => (c(), $("div", Mi, [
9004
- (c(!0), $(P, null, z(t(l), (a) => (c(), b(t(Ie), {
9006
+ }), (o, r) => (c(), V("div", Mi, [
9007
+ (c(!0), V(P, null, z(t(l), (a) => (c(), b(t(Ie), {
9005
9008
  ref_for: !0,
9006
9009
  ref_key: "widgetsRef",
9007
9010
  ref: s,
@@ -9010,7 +9013,7 @@ const Ve = E({
9010
9013
  }, null, 8, ["region", "widget"]))), 256))
9011
9014
  ]));
9012
9015
  }
9013
- }), Li = { class: "v-toolbar-region" }, Ui = /* @__PURE__ */ E({
9016
+ }), Li = { class: "v-toolbar-region" }, Ui = /* @__PURE__ */ $({
9014
9017
  name: "ToolbarRegion",
9015
9018
  __name: "toolbar",
9016
9019
  props: {
@@ -9022,8 +9025,8 @@ const Ve = E({
9022
9025
  return e({
9023
9026
  widgets: l,
9024
9027
  widgetsRef: s
9025
- }), (o, r) => (c(), $("div", Li, [
9026
- (c(!0), $(P, null, z(t(l), (a) => (c(), b(t(Ie), {
9028
+ }), (o, r) => (c(), V("div", Li, [
9029
+ (c(!0), V(P, null, z(t(l), (a) => (c(), b(t(Ie), {
9027
9030
  ref_for: !0,
9028
9031
  ref_key: "widgetsRef",
9029
9032
  ref: s,
@@ -9033,7 +9036,7 @@ const Ve = E({
9033
9036
  }, null, 8, ["region", "widget", "preview"]))), 256))
9034
9037
  ]));
9035
9038
  }
9036
- }), Hi = { class: "v-actions-region" }, qi = /* @__PURE__ */ E({
9039
+ }), Hi = { class: "v-actions-region" }, qi = /* @__PURE__ */ $({
9037
9040
  name: "ActionsRegion",
9038
9041
  inheritAttrs: !1,
9039
9042
  __name: "actions",
@@ -9045,8 +9048,8 @@ const Ve = E({
9045
9048
  return e({
9046
9049
  widgets: l,
9047
9050
  widgetsRef: s
9048
- }), (o, r) => (c(), $("div", Hi, [
9049
- (c(!0), $(P, null, z(t(l), (a) => (c(), b(t(Ie), {
9051
+ }), (o, r) => (c(), V("div", Hi, [
9052
+ (c(!0), V(P, null, z(t(l), (a) => (c(), b(t(Ie), {
9050
9053
  ref_for: !0,
9051
9054
  ref_key: "widgetsRef",
9052
9055
  ref: s,
@@ -9055,7 +9058,7 @@ const Ve = E({
9055
9058
  }, null, 8, ["region", "widget"]))), 256))
9056
9059
  ]));
9057
9060
  }
9058
- }), Gi = { class: "v-apps-region" }, Ki = { class: "v-apps-region__header" }, Zi = { class: "v-apps-region__top" }, Qi = { class: "v-apps-region__bottom" }, Xi = { class: "v-apps-region__panels" }, Yi = /* @__PURE__ */ E({
9061
+ }), Gi = { class: "v-apps-region" }, Ki = { class: "v-apps-region__header" }, Zi = { class: "v-apps-region__top" }, Qi = { class: "v-apps-region__bottom" }, Xi = { class: "v-apps-region__panels" }, Yi = /* @__PURE__ */ $({
9059
9062
  name: "AppsRegion",
9060
9063
  inheritAttrs: !1,
9061
9064
  __name: "apps",
@@ -9064,8 +9067,8 @@ const Ve = E({
9064
9067
  index: { default: 0 }
9065
9068
  },
9066
9069
  setup(u, { expose: e }) {
9067
- const n = u, l = ie(), { widgets: s, widgetsRef: o } = Ee(n.region), r = S(() => s.value.filter((d) => d.openType === "panel")), a = S(() => s.value.filter((d) => d.openType !== "panel")), i = r.value[n.index], v = k(i), m = k(i), g = (d) => {
9068
- v.value = d, m.value = m.value?.name === d.name ? null : d;
9070
+ const n = u, l = ie(), { widgets: s, widgetsRef: o } = Ee(n.region), r = S(() => s.value.filter((d) => d.openType === "panel")), a = S(() => s.value.filter((d) => d.openType !== "panel")), i = r.value[n.index], m = k(i), v = k(i), g = (d) => {
9071
+ m.value = d, v.value = v.value?.name === d.name ? null : d;
9069
9072
  }, y = (d) => {
9070
9073
  d.openType === "link" && d.url && window.open(d.url), d.openType === "dialog" && Zn({
9071
9074
  title: d.label,
@@ -9074,29 +9077,29 @@ const Ve = E({
9074
9077
  content: d.component
9075
9078
  });
9076
9079
  };
9077
- return H(m, (d) => {
9080
+ return H(v, (d) => {
9078
9081
  l.skeleton?.toggleCollapse(!d);
9079
9082
  }), e({
9080
9083
  widgets: s,
9081
9084
  widgetsRef: o,
9082
9085
  setActive: (d) => {
9083
9086
  const _ = r.value.find((w) => w.name === d);
9084
- v.value = _, m.value = _;
9087
+ m.value = _, v.value = _;
9085
9088
  }
9086
- }), (d, _) => (c(), $("div", Gi, [
9089
+ }), (d, _) => (c(), V("div", Gi, [
9087
9090
  x("div", Ki, [
9088
9091
  x("div", Zi, [
9089
- (c(!0), $(P, null, z(r.value, (w) => (c(), b(t(Bt), {
9092
+ (c(!0), V(P, null, z(r.value, (w) => (c(), b(t(Bt), {
9090
9093
  key: `icon-${w.name}`,
9091
9094
  icon: w.icon,
9092
9095
  label: w.label,
9093
- active: v.value?.name === w.name,
9094
- open: m.value?.name === w.name,
9096
+ active: m.value?.name === w.name,
9097
+ open: v.value?.name === w.name,
9095
9098
  onClick: (C) => g(w)
9096
9099
  }, null, 8, ["icon", "label", "active", "open", "onClick"]))), 128))
9097
9100
  ]),
9098
9101
  x("div", Qi, [
9099
- (c(!0), $(P, null, z(a.value, (w) => (c(), b(t(Bt), {
9102
+ (c(!0), V(P, null, z(a.value, (w) => (c(), b(t(Bt), {
9100
9103
  key: `icon-${w.name}`,
9101
9104
  icon: w.icon,
9102
9105
  label: w.label,
@@ -9105,22 +9108,22 @@ const Ve = E({
9105
9108
  ])
9106
9109
  ]),
9107
9110
  x("div", Xi, [
9108
- (c(!0), $(P, null, z(r.value, (w) => (c(), b(Wt, {
9111
+ (c(!0), V(P, null, z(r.value, (w) => (c(), b(Wt, {
9109
9112
  key: w.name
9110
9113
  }, [
9111
- v.value?.name === w.name ? (c(), b(t(Ie), {
9114
+ m.value?.name === w.name ? (c(), b(t(Ie), {
9112
9115
  key: 0,
9113
9116
  ref_for: !0,
9114
9117
  ref_key: "widgetsRef",
9115
9118
  ref: o,
9116
9119
  region: d.region,
9117
9120
  widget: w
9118
- }, null, 8, ["region", "widget"])) : I("", !0)
9121
+ }, null, 8, ["region", "widget"])) : E("", !0)
9119
9122
  ], 1024))), 128))
9120
9123
  ])
9121
9124
  ]));
9122
9125
  }
9123
- }), eu = /* @__PURE__ */ E({
9126
+ }), eu = /* @__PURE__ */ $({
9124
9127
  name: "WorkspaceRegion",
9125
9128
  __name: "workspace",
9126
9129
  props: {
@@ -9139,7 +9142,7 @@ const Ve = E({
9139
9142
  ), r = S(() => o.filter((h) => !h.closable || h.checked)), a = S(() => o.map((h) => ({
9140
9143
  ...h,
9141
9144
  disabled: !h.closable
9142
- }))), i = k(r.value[0]?.name), v = S(() => o.find((d) => d.name === i.value)?.props || {}), m = (h) => {
9145
+ }))), i = k(r.value[0]?.name), m = S(() => o.find((d) => d.name === i.value)?.props || {}), v = (h) => {
9143
9146
  const d = o.find((_) => _.name === h);
9144
9147
  d && (d.checked = !1), i.value === h && (i.value = r.value[0]?.name);
9145
9148
  }, g = (h) => {
@@ -9161,11 +9164,11 @@ const Ve = E({
9161
9164
  modelValue: i.value,
9162
9165
  "onUpdate:modelValue": d[0] || (d[0] = (_) => i.value = _),
9163
9166
  checkable: "",
9164
- onRemove: m,
9167
+ onRemove: v,
9165
9168
  onCommand: g
9166
9169
  }, {
9167
9170
  default: f(() => [
9168
- (c(!0), $(P, null, z(t(l), (_) => (c(), $(P, {
9171
+ (c(!0), V(P, null, z(t(l), (_) => (c(), V(P, {
9169
9172
  key: _.name
9170
9173
  }, [
9171
9174
  i.value === _.name ? (c(), b(t(Ie), {
@@ -9174,14 +9177,14 @@ const Ve = E({
9174
9177
  ref_key: "widgetsRef",
9175
9178
  ref: s,
9176
9179
  region: h.region,
9177
- widget: { ..._, props: v.value }
9178
- }, null, 8, ["region", "widget"])) : I("", !0)
9180
+ widget: { ..._, props: m.value }
9181
+ }, null, 8, ["region", "widget"])) : E("", !0)
9179
9182
  ], 64))), 128))
9180
9183
  ]),
9181
9184
  _: 1
9182
9185
  }, 8, ["items", "menus", "modelValue"]));
9183
9186
  }
9184
- }), tu = /* @__PURE__ */ E({
9187
+ }), tu = /* @__PURE__ */ $({
9185
9188
  name: "SettingsRegion",
9186
9189
  __name: "settings",
9187
9190
  props: {
@@ -9190,7 +9193,7 @@ const Ve = E({
9190
9193
  setup(u, { expose: e }) {
9191
9194
  const n = u, l = ie(), { current: s } = oe(), { selected: o, isSelectBlock: r } = be(), a = S(
9192
9195
  () => r.value ? ve.Block : ve.Node
9193
- ), { widgets: i, widgetsRef: v } = Ee(n.region, a), m = k(), g = k(!1), y = S(() => i.value.map((w) => ({
9196
+ ), { widgets: i, widgetsRef: m } = Ee(n.region, a), v = k(), g = k(!1), y = S(() => i.value.map((w) => ({
9194
9197
  name: w.name,
9195
9198
  label: w.label,
9196
9199
  actions: w.name === "Style" ? [
@@ -9209,10 +9212,10 @@ const Ve = E({
9209
9212
  }), H(
9210
9213
  a,
9211
9214
  () => {
9212
- m.value = y.value[0]?.name;
9215
+ v.value = y.value[0]?.name;
9213
9216
  },
9214
9217
  { immediate: !0 }
9215
- ), H(m, () => {
9218
+ ), H(v, () => {
9216
9219
  g.value = !1;
9217
9220
  });
9218
9221
  const d = () => {
@@ -9227,7 +9230,7 @@ const Ve = E({
9227
9230
  };
9228
9231
  return e({
9229
9232
  widgets: i,
9230
- widgetsRef: v
9233
+ widgetsRef: m
9231
9234
  }), (w, C) => t(s) ? (c(), b(t(M), {
9232
9235
  key: 0,
9233
9236
  class: "v-settings-region",
@@ -9263,10 +9266,10 @@ const Ve = E({
9263
9266
  }, null, 8, ["icon"])
9264
9267
  ]),
9265
9268
  _: 1
9266
- })) : I("", !0)
9269
+ })) : E("", !0)
9267
9270
  ]),
9268
9271
  _: 1
9269
- })) : I("", !0),
9272
+ })) : E("", !0),
9270
9273
  t(o) && !t(o).model.locked ? (c(), b(t(M), {
9271
9274
  key: 1,
9272
9275
  grow: "",
@@ -9275,32 +9278,32 @@ const Ve = E({
9275
9278
  default: f(() => [
9276
9279
  p(t(et), {
9277
9280
  items: y.value,
9278
- modelValue: m.value,
9279
- "onUpdate:modelValue": C[0] || (C[0] = (V) => m.value = V),
9281
+ modelValue: v.value,
9282
+ "onUpdate:modelValue": C[0] || (C[0] = (I) => v.value = I),
9280
9283
  stretch: "",
9281
9284
  body: { padding: !1 },
9282
9285
  onActionClick: _
9283
9286
  }, {
9284
9287
  default: f(() => [
9285
- (c(!0), $(P, null, z(t(i), (V) => (c(), $(P, {
9286
- key: V.name
9288
+ (c(!0), V(P, null, z(t(i), (I) => (c(), V(P, {
9289
+ key: I.name
9287
9290
  }, [
9288
- m.value === V.name ? (c(), b(t(Ie), {
9291
+ v.value === I.name ? (c(), b(t(Ie), {
9289
9292
  key: 0,
9290
9293
  ref_for: !0,
9291
9294
  ref_key: "widgetsRef",
9292
- ref: v,
9295
+ ref: m,
9293
9296
  region: w.region,
9294
- widget: t(_t)({ props: { isStyleCodeMode: g.value } }, V)
9295
- }, null, 8, ["region", "widget"])) : I("", !0)
9297
+ widget: t(_t)({ props: { isStyleCodeMode: g.value } }, I)
9298
+ }, null, 8, ["region", "widget"])) : E("", !0)
9296
9299
  ], 64))), 128))
9297
9300
  ]),
9298
9301
  _: 1
9299
9302
  }, 8, ["items", "modelValue"])
9300
9303
  ]),
9301
9304
  _: 1
9302
- })) : I("", !0),
9303
- t(o) ? I("", !0) : (c(), b(t(le), {
9305
+ })) : E("", !0),
9306
+ t(o) ? E("", !0) : (c(), b(t(le), {
9304
9307
  key: 2,
9305
9308
  description: "请在左侧画布选中节点"
9306
9309
  })),
@@ -9308,12 +9311,12 @@ const Ve = E({
9308
9311
  key: 3,
9309
9312
  "image-size": 1,
9310
9313
  description: "节点已被锁定, 禁止编辑"
9311
- })) : I("", !0)
9314
+ })) : E("", !0)
9312
9315
  ]),
9313
9316
  _: 1
9314
- })) : I("", !0);
9317
+ })) : E("", !0);
9315
9318
  }
9316
- }), nu = { class: "v-status-region" }, lu = /* @__PURE__ */ E({
9319
+ }), nu = { class: "v-status-region" }, lu = /* @__PURE__ */ $({
9317
9320
  name: "StatusRegion",
9318
9321
  inheritAttrs: !1,
9319
9322
  __name: "status",
@@ -9325,8 +9328,8 @@ const Ve = E({
9325
9328
  return e({
9326
9329
  widgets: l,
9327
9330
  widgetsRef: s
9328
- }), (o, r) => (c(), $("div", nu, [
9329
- (c(!0), $(P, null, z(t(l), (a) => (c(), b(t(Ie), {
9331
+ }), (o, r) => (c(), V("div", nu, [
9332
+ (c(!0), V(P, null, z(t(l), (a) => (c(), b(t(Ie), {
9330
9333
  ref_for: !0,
9331
9334
  ref_key: "widgetsRef",
9332
9335
  ref: s,
@@ -9335,7 +9338,7 @@ const Ve = E({
9335
9338
  }, null, 8, ["region", "widget"]))), 256))
9336
9339
  ]));
9337
9340
  }
9338
- }), su = /* @__PURE__ */ E({
9341
+ }), su = /* @__PURE__ */ $({
9339
9342
  name: "PreviewRegion",
9340
9343
  __name: "preview",
9341
9344
  props: {
@@ -9355,24 +9358,24 @@ const Ve = E({
9355
9358
  currentTab: a,
9356
9359
  widgets: l,
9357
9360
  widgetsRef: s
9358
- }), (i, v) => (c(), b(t(et), {
9361
+ }), (i, m) => (c(), b(t(et), {
9359
9362
  class: "v-workspace-region",
9360
9363
  items: r.value,
9361
9364
  modelValue: a.value,
9362
- "onUpdate:modelValue": v[0] || (v[0] = (m) => a.value = m)
9365
+ "onUpdate:modelValue": m[0] || (m[0] = (v) => a.value = v)
9363
9366
  }, {
9364
9367
  default: f(() => [
9365
- (c(!0), $(P, null, z(t(l), (m) => (c(), b(Wt, {
9366
- key: m.name
9368
+ (c(!0), V(P, null, z(t(l), (v) => (c(), b(Wt, {
9369
+ key: v.name
9367
9370
  }, [
9368
- a.value === m.name ? (c(), b(t(Ie), {
9371
+ a.value === v.name ? (c(), b(t(Ie), {
9369
9372
  key: 0,
9370
9373
  ref_for: !0,
9371
9374
  ref_key: "widgetsRef",
9372
9375
  ref: s,
9373
9376
  region: i.region,
9374
- widget: m
9375
- }, null, 8, ["region", "widget"])) : I("", !0)
9377
+ widget: v
9378
+ }, null, 8, ["region", "widget"])) : E("", !0)
9376
9379
  ], 1024))), 128))
9377
9380
  ]),
9378
9381
  _: 1
@@ -9411,7 +9414,7 @@ export {
9411
9414
  Ve as RegionWrapper,
9412
9415
  Ei as Renderer,
9413
9416
  Fi as SetterView,
9414
- F as SetterWrapper,
9417
+ O as SetterWrapper,
9415
9418
  Ii as Simulator,
9416
9419
  Di as Skeleton,
9417
9420
  Ai as SkeletonWrapper,