@vtj/designer 0.8.144 → 0.8.146

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,23 +1,23 @@
1
- var qn = Object.defineProperty;
2
- var Hn = (u, e, t) => e in u ? qn(u, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : u[e] = t;
3
- var $ = (u, e, t) => Hn(u, typeof e != "symbol" ? e + "" : e, t);
4
- import { computed as S, unref as n, ref as k, reactive as Ke, watchEffect as Gn, watch as J, toValue as vt, defineComponent as E, openBlock as p, createElementBlock as j, toDisplayString as F, createVNode as v, withCtx as b, createElementVNode as V, createBlock as y, createCommentVNode as A, createTextVNode as K, readonly as Xn, getCurrentScope as Kn, onScopeDispose as Qn, onMounted as st, nextTick as ke, getCurrentInstance as nn, shallowRef as Ue, toRaw as ln, Fragment as O, renderList as L, normalizeClass as X, resolveDynamicComponent as sn, createSlots as Yn, withDirectives as Pe, vShow as Te, renderSlot as Ce, withModifiers as Je, isRef as gt, mergeProps as ie, normalizeStyle as et, defineAsyncComponent as Zn, h as Oe, inject as Ct, provide as el, normalizeProps as an, guardReactiveProps as on, withKeys as tt, onUnmounted as rn, markRaw as ft, createApp as un, shallowReactive as tl, triggerRef as je, KeepAlive as cn } from "vue";
5
- import { ElNotification as Vt, ElMessageBox as At, ElMessage as Qe, ElButton as ae, ElDivider as jt, ElRadioGroup as dn, ElRadioButton as nt, ElButtonGroup as nl, ElDropdown as pn, ElDropdownMenu as mn, ElDropdownItem as ht, ElInput as _e, ElEmpty as oe, ElAlert as Et, ElTooltip as vn, ElTag as ll, ElSwitch as gn, ElTree as Pt, ElRow as bt, ElCol as yt, ElCollapse as sl, ElCollapseItem as al, ElDrawer as fn, ElForm as fe, ElFormItem as hn, ElBreadcrumb as ol, ElBreadcrumbItem as rl, ElLoading as il, ElSelect as ul, ElOption as cl, ElInputNumber as dl, ElColorPicker as pl, ElUpload as ml, ElSlider as vl, ElConfigProvider as gl, ElContainer as Lt, ElHeader as fl, ElAside as Nt, ElMain as hl, ElFooter as bl } from "element-plus";
1
+ var Hn = Object.defineProperty;
2
+ var qn = (u, e, t) => e in u ? Hn(u, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : u[e] = t;
3
+ var $ = (u, e, t) => qn(u, typeof e != "symbol" ? e + "" : e, t);
4
+ import { computed as S, unref as n, ref as k, reactive as Ke, watchEffect as Gn, watch as J, toValue as vt, defineComponent as E, openBlock as p, createElementBlock as j, toDisplayString as F, createVNode as v, withCtx as b, createElementVNode as V, createBlock as y, createCommentVNode as A, createTextVNode as K, readonly as Xn, getCurrentScope as Kn, onScopeDispose as Qn, onMounted as st, nextTick as ke, getCurrentInstance as nn, shallowRef as Ue, toRaw as ln, Fragment as O, renderList as W, normalizeClass as X, resolveDynamicComponent as sn, createSlots as Yn, withDirectives as De, vShow as Te, renderSlot as Ce, withModifiers as Je, isRef as gt, mergeProps as ie, normalizeStyle as et, defineAsyncComponent as Zn, h as Oe, inject as Ct, provide as el, normalizeProps as an, guardReactiveProps as on, withKeys as tt, onUnmounted as rn, markRaw as ft, createApp as un, shallowReactive as tl, triggerRef as je, KeepAlive as cn } from "vue";
5
+ import { ElNotification as Vt, ElMessageBox as At, ElMessage as Qe, ElButton as ae, ElDivider as jt, ElRadioGroup as dn, ElRadioButton as nt, ElButtonGroup as nl, ElDropdown as pn, ElDropdownMenu as mn, ElDropdownItem as ht, ElInput as _e, ElEmpty as oe, ElAlert as Et, ElTooltip as vn, ElTag as ll, ElSwitch as gn, ElTree as Dt, ElRow as bt, ElCol as yt, ElCollapse as sl, ElCollapseItem as al, ElDrawer as fn, ElForm as fe, ElFormItem as hn, ElBreadcrumb as ol, ElBreadcrumbItem as rl, ElLoading as il, ElSelect as ul, ElOption as cl, ElInputNumber as dl, ElColorPicker as pl, ElUpload as ml, ElSlider as vl, ElConfigProvider as gl, ElContainer as Wt, ElHeader as fl, ElAside as Nt, ElMain as hl, ElFooter as bl } from "element-plus";
6
6
  import yl from "element-plus/es/locale/lang/zh-cn";
7
- import { XIcon as Se, XDialog as Be, XDialogForm as Ae, XField as T, XPanel as at, XAction as be, XTabs as Dt, XContainer as U, XForm as It, XAttachment as _l, XActionBar as wl, XInputUnit as bn, vResizable as Jt, createDialog as kl } from "@vtj/ui";
7
+ import { XIcon as Se, XDialog as Be, XDialogForm as Ae, XField as T, XPanel as at, XAction as be, XTabs as Pt, XContainer as U, XForm as It, XAttachment as _l, XActionBar as wl, XInputUnit as bn, vResizable as Jt, createDialog as kl } from "@vtj/ui";
8
8
  import { delay as Tt, upperFirstCamelCase as yn, toRawType as dt, cloneDeep as ot, logger as Ve, isPlainObject as Sl, fileToBase64 as xl, merge as Bt, debounce as Cl, arrayToMap as Vl, toArray as Al } from "@vtj/utils";
9
- import { isBlock as te, DirectiveModel as _n, createNodeFrom as jl, BUILT_IN_VUE as El, BUILT_IN_VUE_ROUTER as Pl, BUILT_IN_NAME as _t, emitter as ne, EVENT_PROJECT_ACTIVED as wt, EVENT_NODE_CHANGE as qe, NodeModel as Mt, EVENT_BLOCK_CHANGE as kt, Base as wn, BUILT_IN_LIBRARAY_MAP as Dl, ProjectModel as Il, EVENT_PROJECT_CHANGE as Tl, EVENT_PROJECT_BLOCKS_CHANGE as Bl, EVENT_PROJECT_PAGES_CHANGE as Rl, EVENT_PROJECT_DEPS_CHANGE as $l, EVENT_PROJECT_PUBLISH as Ol, EVENT_PROJECT_FILE_PUBLISH as zl, EVENT_HISTORY_CHANGE as Fl, EVENT_HISTORY_LOAD as Wl, BlockModel as Ut, HistoryModel as Ll } from "@vtj/core";
10
- import { parseExpression as He, parseFunction as Nl, JSCodeToString as ze, LIFE_CYCLES_LIST as Jl, DATA_TYPES as Ml, isJSExpression as Ge, ContextMode as kn, parseDeps as Ul, createAssetsCss as ql, createAssetScripts as qt, getRawComponent as Ht, createSchemaApis as Hl, mockCleanup as Gl, mockApis as Xl, Provider as Kl, isJSFunction as Ql } from "@vtj/renderer";
11
- import { VtjIconBack as Yl, VtjIconPc as Zl, VtjIconPhone as es, VtjIconPad as ts, VtjIconUndo as ns, VtjIconRedo as ls, VtjIconPreview as ss, VtjIconRefresh as as, VtjIconSetting as Sn, icons as St, ArrowDown as xn, Search as Rt, CopyDocument as os, Back as rs, VtjIconPlus as Cn, EditPen as is, Delete as us, VtjIconSave as cs, ArrowUp as ds, MoreFilled as $t, VtjIconCheck as Vn, VtjIconCopy as An, VtjIconEdit as jn, VtjIconRemove as rt, VtjIconLock as En, VtjIconUnlock as ps, VtjIconInvisible as Pn, VtjIconVisible as ms, VtjIconHome as vs, Files as gs, VtjIconSearch as fs, VtjIconHelp as Dn, VtjIconLayers as In, Rank as hs, VtjIconArrowUp as bs, VtjIconArrowDown as ys, IconDisplayBlock as _s, IconDisplayFlex as ws, IconDisplayInlineBlock as ks, IconDisplayInline as Ss, IconEyeInvisible as xs, IconFlexDirectionrow as Cs, IconFlexDirectionrowReverse as Vs, IconFlexDirectioncolumn as As, IconFlexDirectioncolumnReverse as js, IconFlexJustifyflexStartrow as Es, IconFlexJustifyflexEndrow as Ps, IconFlexJustifycenterrow as Ds, IconFlexJustifyspaceBetweenrow as Is, IconFlexJustifyspaceAroundrow as Ts, IconFlexAlignflexStartrow as Bs, IconFlexAlignflexEndrow as Rs, IconFlexAligncenterrow as $s, IconFlexAlignbaselinerow as Os, IconFlexAlignstretchrow as zs, IconPositionTopLeft as Fs, IconPositionTopRight as Ws, IconPositionBottomLeft as Ls, IconPositionBottomRight as Ns, IconPositionLeft as Js, IconPositionRight as Ms, IconPositionTop as Us, IconPositionBottom as qs, IconPositionAll as Hs, IconTextAlignLeft as Gs, IconTextAlignCenter as Xs, IconTextAlignRight as Ks, IconTextAlignJustify as Qs, IconFontStyleNone as Ys, IconFontStyleItalic as Zs, IconCross as Tn, IconTextDecorationUnderline as ea, IconTextDecorationStrike as ta, IconTextDecorationOverline as na, IconTileXy as la, IconTileX as sa, IconTileY as aa, IconClose as oa, IconBorderAll as ra, IconBorderLeft as ia, IconBorderTop as ua, IconBorderBottom as ca, IconBorderRight as da, IconBorderStyleSolid as pa, IconBorderStyleDashed as ma, IconBorderStyleDotted as va, IconCursorAuto as ga, IconCursorPointer as fa, IconCursorNotAllowed as ha, IconCursorNone as ba, ArrowRight as ya, VtjIconDocument as _a, VtjIconComponents as wa, VtjIconBlock as ka, VtjIconOutline as Sa, VtjIconHistory as xa, VtjIconApi as Ca, VtjIconCategory as Va, VtjIconInfo as Aa, HomeFilled as ja, Plus as Ea, Close as Pa, VtjIconVars as Da, VtjIconSwitch as Ia, Switch as Ta } from "@vtj/icons";
9
+ import { isBlock as te, DirectiveModel as _n, createNodeFrom as jl, BUILT_IN_VUE as El, BUILT_IN_VUE_ROUTER as Dl, BUILT_IN_NAME as _t, emitter as ne, EVENT_PROJECT_ACTIVED as wt, EVENT_NODE_CHANGE as He, NodeModel as Mt, EVENT_BLOCK_CHANGE as kt, Base as wn, BUILT_IN_LIBRARAY_MAP as Pl, ProjectModel as Il, EVENT_PROJECT_CHANGE as Tl, EVENT_PROJECT_BLOCKS_CHANGE as Bl, EVENT_PROJECT_PAGES_CHANGE as Rl, EVENT_PROJECT_DEPS_CHANGE as $l, EVENT_PROJECT_PUBLISH as Ol, EVENT_PROJECT_FILE_PUBLISH as zl, EVENT_HISTORY_CHANGE as Fl, EVENT_HISTORY_LOAD as Ll, BlockModel as Ut, HistoryModel as Wl } from "@vtj/core";
10
+ import { parseExpression as qe, parseFunction as Nl, JSCodeToString as ze, LIFE_CYCLES_LIST as Jl, DATA_TYPES as Ml, isJSExpression as Ge, ContextMode as kn, parseDeps as Ul, createAssetsCss as Hl, createAssetScripts as Ht, getRawComponent as qt, createSchemaApis as ql, mockCleanup as Gl, mockApis as Xl, Provider as Kl, isJSFunction as Ql } from "@vtj/renderer";
11
+ import { VtjIconBack as Yl, VtjIconPc as Zl, VtjIconPhone as es, VtjIconPad as ts, VtjIconUndo as ns, VtjIconRedo as ls, VtjIconPreview as ss, VtjIconRefresh as as, VtjIconSetting as Sn, icons as St, ArrowDown as xn, Search as Rt, CopyDocument as os, Back as rs, VtjIconPlus as Cn, EditPen as is, Delete as us, VtjIconSave as cs, ArrowUp as ds, MoreFilled as $t, VtjIconCheck as Vn, VtjIconCopy as An, VtjIconEdit as jn, VtjIconRemove as rt, VtjIconLock as En, VtjIconUnlock as ps, VtjIconInvisible as Dn, VtjIconVisible as ms, VtjIconHome as vs, Files as gs, VtjIconSearch as fs, VtjIconHelp as Pn, VtjIconLayers as In, Rank as hs, VtjIconArrowUp as bs, VtjIconArrowDown as ys, IconDisplayBlock as _s, IconDisplayFlex as ws, IconDisplayInlineBlock as ks, IconDisplayInline as Ss, IconEyeInvisible as xs, IconFlexDirectionrow as Cs, IconFlexDirectionrowReverse as Vs, IconFlexDirectioncolumn as As, IconFlexDirectioncolumnReverse as js, IconFlexJustifyflexStartrow as Es, IconFlexJustifyflexEndrow as Ds, IconFlexJustifycenterrow as Ps, IconFlexJustifyspaceBetweenrow as Is, IconFlexJustifyspaceAroundrow as Ts, IconFlexAlignflexStartrow as Bs, IconFlexAlignflexEndrow as Rs, IconFlexAligncenterrow as $s, IconFlexAlignbaselinerow as Os, IconFlexAlignstretchrow as zs, IconPositionTopLeft as Fs, IconPositionTopRight as Ls, IconPositionBottomLeft as Ws, IconPositionBottomRight as Ns, IconPositionLeft as Js, IconPositionRight as Ms, IconPositionTop as Us, IconPositionBottom as Hs, IconPositionAll as qs, IconTextAlignLeft as Gs, IconTextAlignCenter as Xs, IconTextAlignRight as Ks, IconTextAlignJustify as Qs, IconFontStyleNone as Ys, IconFontStyleItalic as Zs, IconCross as Tn, IconTextDecorationUnderline as ea, IconTextDecorationStrike as ta, IconTextDecorationOverline as na, IconTileXy as la, IconTileX as sa, IconTileY as aa, IconClose as oa, IconBorderAll as ra, IconBorderLeft as ia, IconBorderTop as ua, IconBorderBottom as ca, IconBorderRight as da, IconBorderStyleSolid as pa, IconBorderStyleDashed as ma, IconBorderStyleDotted as va, IconCursorAuto as ga, IconCursorPointer as fa, IconCursorNotAllowed as ha, IconCursorNone as ba, ArrowRight as ya, VtjIconDocument as _a, VtjIconComponents as wa, VtjIconBlock as ka, VtjIconOutline as Sa, VtjIconHistory as xa, VtjIconApi as Ca, VtjIconCategory as Va, VtjIconInfo as Aa, HomeFilled as ja, Plus as Ea, Close as Da, VtjIconVars as Pa, VtjIconSwitch as Ia, Switch as Ta } from "@vtj/icons";
12
12
  import Ba from "mockjs";
13
13
  /**!
14
14
  * Copyright (c) 2024, VTJ.PRO All rights reserved.
15
15
  * @name @vtj/designer
16
16
  * @author CHC chenhuachun1549@dingtalk.com
17
- * @version 0.8.144
17
+ * @version 0.8.146
18
18
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
19
19
  */
20
- const Ra = "0.8.144", Gt = {
20
+ const Ra = "0.8.146", Gt = {
21
21
  width: 390,
22
22
  height: 844
23
23
  }, Xt = {
@@ -46,7 +46,7 @@ const Ra = "0.8.144", Gt = {
46
46
  "self",
47
47
  "once",
48
48
  "passive"
49
- ], Kt = "__vue-devtools-frame-state__", Wa = "@id/virtual:vue-devtools-path:overlay.js", La = "@id/virtual:vue-devtools-path:overlay/devtools-overlay.mjs";
49
+ ], Kt = "__vue-devtools-frame-state__", La = "@id/virtual:vue-devtools-path:overlay.js", Wa = "@id/virtual:vue-devtools-path:overlay/devtools-overlay.mjs";
50
50
  var he = /* @__PURE__ */ ((u) => (u.Block = "block", u.Node = "node", u))(he || {}), Na = /* @__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))(Na || {});
51
51
  function Bn() {
52
52
  const u = de(), e = S(() => u.project.value?.dependencies ?? []), t = S(() => u.project.value?.apis ?? []), l = S(() => u.project.value?.meta ?? []);
@@ -57,7 +57,7 @@ function Bn() {
57
57
  meta: l
58
58
  };
59
59
  }
60
- function De(u, e) {
60
+ function Pe(u, e) {
61
61
  const t = S(() => Mn.getWidgets(n(u), n(e)).filter((s) => !s.invisible)), l = k();
62
62
  return {
63
63
  widgets: t,
@@ -134,7 +134,7 @@ function ue() {
134
134
  context: t
135
135
  };
136
136
  }
137
- function qa(u, e, t, l, s) {
137
+ function Ha(u, e, t, l, s) {
138
138
  const a = de();
139
139
  a.simulator.init(u, e, t, l, s);
140
140
  const o = S(() => a.simulator.designer.value), r = S(
@@ -153,7 +153,7 @@ function qa(u, e, t, l, s) {
153
153
  selected: g
154
154
  };
155
155
  }
156
- function Ha(u, e = !0) {
156
+ function qa(u, e = !0) {
157
157
  const { top: t, height: l, width: s, left: a } = u || {};
158
158
  if (l > 100 && s > 200)
159
159
  return "inner";
@@ -190,7 +190,7 @@ function pt(u, e) {
190
190
  return {
191
191
  ...e,
192
192
  style: o,
193
- position: Ha(e.rect, u !== "selected")
193
+ position: qa(e.rect, u !== "selected")
194
194
  };
195
195
  }
196
196
  function xe() {
@@ -359,7 +359,7 @@ function re(u, e, t = !1) {
359
359
  let l = !0;
360
360
  const s = Qa(e);
361
361
  try {
362
- u.type === "JSExpression" ? He(u, s, t, !0) : Nl(u, s, t, !0);
362
+ u.type === "JSExpression" ? qe(u, s, t, !0) : Nl(u, s, t, !0);
363
363
  } catch (a) {
364
364
  l = !1, Vt.error({
365
365
  title: "代码错误",
@@ -760,7 +760,7 @@ const so = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
760
760
  function Ot(u) {
761
761
  return Kn() ? (Qn(u), !0) : !1;
762
762
  }
763
- function We(u) {
763
+ function Le(u) {
764
764
  return typeof u == "function" ? u() : n(u);
765
765
  }
766
766
  const it = typeof window < "u" && typeof document < "u";
@@ -801,7 +801,7 @@ function Co(u, e, t = {}) {
801
801
  function i(...g) {
802
802
  o(), s.value = !0, a = setTimeout(() => {
803
803
  s.value = !1, a = null, u(...g);
804
- }, We(e));
804
+ }, Le(e));
805
805
  }
806
806
  return l && (s.value = !0, it && i()), Ot(r), {
807
807
  isPending: Xn(s),
@@ -812,7 +812,7 @@ function Co(u, e, t = {}) {
812
812
  const ut = it ? window : void 0, On = it ? window.navigator : void 0;
813
813
  function ye(u) {
814
814
  var e;
815
- const t = We(u);
815
+ const t = Le(u);
816
816
  return (e = t?.$el) != null ? e : t;
817
817
  }
818
818
  function Me(...u) {
@@ -823,7 +823,7 @@ function Me(...u) {
823
823
  const a = [], o = () => {
824
824
  a.forEach((d) => d()), a.length = 0;
825
825
  }, r = (d, m, f, h) => (d.addEventListener(m, f, h), () => d.removeEventListener(m, f, h)), i = J(
826
- () => [ye(e), We(s)],
826
+ () => [ye(e), Le(s)],
827
827
  ([d, m]) => {
828
828
  if (o(), !d)
829
829
  return;
@@ -845,7 +845,7 @@ function Vo(u, e, t = {}) {
845
845
  return lt;
846
846
  _o && !Yt && (Yt = !0, Array.from(l.document.body.children).forEach((h) => h.addEventListener("click", lt)), l.document.documentElement.addEventListener("click", lt));
847
847
  let r = !0;
848
- const i = (h) => We(s).some((c) => {
848
+ const i = (h) => Le(s).some((c) => {
849
849
  if (typeof c == "string")
850
850
  return Array.from(l.document.querySelectorAll(c)).some((_) => _ === h.target || h.composedPath().includes(_));
851
851
  {
@@ -936,7 +936,7 @@ function zn(u = {}) {
936
936
  }) : d.value = w();
937
937
  }
938
938
  g.value && t && Me(["copy", "cut"], h);
939
- async function c(C = We(l)) {
939
+ async function c(C = Le(l)) {
940
940
  g.value && C != null && (o.value && x(i.value) ? await e.clipboard.writeText(C) : _(C), d.value = C, m.value = !0, f.start());
941
941
  }
942
942
  function _(C) {
@@ -963,7 +963,7 @@ function jo(u, e, t = {}) {
963
963
  const o = zt(() => l && "ResizeObserver" in l), r = () => {
964
964
  a && (a.disconnect(), a = void 0);
965
965
  }, i = S(() => {
966
- const m = We(u);
966
+ const m = Le(u);
967
967
  return Array.isArray(m) ? m.map((f) => ye(f)) : [ye(m)];
968
968
  }), g = J(
969
969
  i,
@@ -1024,7 +1024,7 @@ function Xe(u, e = { width: 0, height: 0 }, t = {}) {
1024
1024
  stop: d
1025
1025
  };
1026
1026
  }
1027
- const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" }, Do = { class: "v-icon-setter__list" }, Fn = /* @__PURE__ */ E({
1027
+ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" }, Po = { class: "v-icon-setter__list" }, Fn = /* @__PURE__ */ E({
1028
1028
  name: "IconSetter",
1029
1029
  __name: "icon",
1030
1030
  props: {
@@ -1086,7 +1086,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1086
1086
  })
1087
1087
  ]),
1088
1088
  default: b(() => [
1089
- V("div", Po, [
1089
+ V("div", Do, [
1090
1090
  v(n(_e), {
1091
1091
  size: t.size,
1092
1092
  "prefix-icon": n(Rt),
@@ -1095,8 +1095,8 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1095
1095
  "onUpdate:modelValue": c[0] || (c[0] = (_) => o.value = _),
1096
1096
  placeholder: "请输入查询关键字"
1097
1097
  }, null, 8, ["size", "prefix-icon", "modelValue"]),
1098
- V("div", Do, [
1099
- (p(!0), j(O, null, L(i.value, (_) => (p(), y(n(Se), {
1098
+ V("div", Po, [
1099
+ (p(!0), j(O, null, W(i.value, (_) => (p(), y(n(Se), {
1100
1100
  icon: _[1],
1101
1101
  onClick: (w) => g(_[0]),
1102
1102
  class: X({ "is-active": a.value === _[0] })
@@ -1256,7 +1256,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1256
1256
  _: 1
1257
1257
  }, 8, ["content"]));
1258
1258
  }
1259
- }), H = /* @__PURE__ */ E({
1259
+ }), q = /* @__PURE__ */ E({
1260
1260
  name: "VPanel",
1261
1261
  __name: "panel",
1262
1262
  props: {
@@ -1338,7 +1338,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1338
1338
  title: "保存",
1339
1339
  onClick: d
1340
1340
  }, null, 8, ["size", "icon"])) : A("", !0),
1341
- t.collapsable ? Pe((p(), y(n(be), {
1341
+ t.collapsable ? De((p(), y(n(be), {
1342
1342
  key: 4,
1343
1343
  size: h.$attrs.size,
1344
1344
  mode: "icon",
@@ -1349,7 +1349,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1349
1349
  }, null, 8, ["size", "icon"])), [
1350
1350
  [Te, s.value]
1351
1351
  ]) : A("", !0),
1352
- t.collapsable ? Pe((p(), y(n(be), {
1352
+ t.collapsable ? De((p(), y(n(be), {
1353
1353
  key: 5,
1354
1354
  size: h.$attrs.size,
1355
1355
  mode: "icon",
@@ -1421,7 +1421,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1421
1421
  }, {
1422
1422
  header: b(() => [
1423
1423
  V("div", To, [
1424
- v(n(Dt), {
1424
+ v(n(Pt), {
1425
1425
  class: "v-tabs__tabs",
1426
1426
  items: t.items,
1427
1427
  type: "card",
@@ -1520,7 +1520,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1520
1520
  },
1521
1521
  invisible: {
1522
1522
  label: "隐藏",
1523
- icon: Pn
1523
+ icon: Dn
1524
1524
  },
1525
1525
  visible: {
1526
1526
  label: "显示",
@@ -1606,7 +1606,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1606
1606
  }, ["stop"]))
1607
1607
  }, {
1608
1608
  default: b(() => [
1609
- (p(!0), j(O, null, L(o.value, (f) => (p(), y(n(be), {
1609
+ (p(!0), j(O, null, W(o.value, (f) => (p(), y(n(be), {
1610
1610
  name: f.name,
1611
1611
  title: f.label,
1612
1612
  mode: "icon",
@@ -1700,7 +1700,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1700
1700
  }, F(t.tag), 3)) : A("", !0)
1701
1701
  ], 42, Oo));
1702
1702
  }
1703
- }), Wo = { class: "v-context-viewer" }, Lo = /* @__PURE__ */ E({
1703
+ }), Lo = { class: "v-context-viewer" }, Wo = /* @__PURE__ */ E({
1704
1704
  __name: "viewer",
1705
1705
  props: {
1706
1706
  context: {}
@@ -1740,8 +1740,8 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1740
1740
  }, g = (d) => {
1741
1741
  l("pick", d.path);
1742
1742
  };
1743
- return (d, m) => (p(), j("div", Wo, [
1744
- d.context ? (p(), y(n(Pt), {
1743
+ return (d, m) => (p(), j("div", Lo, [
1744
+ d.context ? (p(), y(n(Dt), {
1745
1745
  key: 0,
1746
1746
  lazy: "",
1747
1747
  load: r,
@@ -1851,7 +1851,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1851
1851
  flex: !1
1852
1852
  }, {
1853
1853
  default: b(() => [
1854
- Pe(V("div", null, [
1854
+ De(V("div", null, [
1855
1855
  v(n(_e), {
1856
1856
  modelValue: n(a),
1857
1857
  "onUpdate:modelValue": C[0] || (C[0] = (I) => gt(a) ? a.value = I : null),
@@ -1860,14 +1860,14 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1860
1860
  "prefix-icon": n(Rt),
1861
1861
  placeholder: "筛选可用项"
1862
1862
  }, null, 8, ["modelValue", "prefix-icon"]),
1863
- (p(!0), j(O, null, L(n(s), (I) => (p(), j("div", null, [
1863
+ (p(!0), j(O, null, W(n(s), (I) => (p(), j("div", null, [
1864
1864
  v(n(jt), { "border-style": "dotted" }, {
1865
1865
  default: b(() => [
1866
1866
  K(F(I.title), 1)
1867
1867
  ]),
1868
1868
  _: 2
1869
1869
  }, 1024),
1870
- (p(!0), j(O, null, L(I.items, (z) => (p(), y(ce, {
1870
+ (p(!0), j(O, null, W(I.items, (z) => (p(), y(ce, {
1871
1871
  title: z,
1872
1872
  background: "",
1873
1873
  actions: ["copy"],
@@ -1880,7 +1880,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1880
1880
  ], 512), [
1881
1881
  [Te, i.value === "normal"]
1882
1882
  ]),
1883
- Pe(v(Lo, {
1883
+ De(v(Wo, {
1884
1884
  context: t.context,
1885
1885
  onCopy: w,
1886
1886
  onPick: _
@@ -2011,7 +2011,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2011
2011
  wrap: "wrap"
2012
2012
  }, {
2013
2013
  default: b(() => [
2014
- (p(!0), j(O, null, L(t.slots, (d, m) => (p(), y(n(U), {
2014
+ (p(!0), j(O, null, W(t.slots, (d, m) => (p(), y(n(U), {
2015
2015
  class: X(["v-slots-picker__item", { "is-active": d.name === s.value?.name }]),
2016
2016
  grow: "",
2017
2017
  flex: !1,
@@ -2030,7 +2030,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2030
2030
  _: 1
2031
2031
  }, 16, ["height"]));
2032
2032
  }
2033
- }), Wn = /* @__PURE__ */ E({
2033
+ }), Ln = /* @__PURE__ */ E({
2034
2034
  name: "Viewport",
2035
2035
  __name: "viewport",
2036
2036
  props: {
@@ -2091,7 +2091,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2091
2091
  pages: vt(l)
2092
2092
  });
2093
2093
  };
2094
- return (h, c) => (p(), y(n(H), {
2094
+ return (h, c) => (p(), y(n(q), {
2095
2095
  class: "v-pages-widget",
2096
2096
  title: "页面管理",
2097
2097
  plus: "",
@@ -2099,7 +2099,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2099
2099
  onPlus: i
2100
2100
  }, {
2101
2101
  default: b(() => [
2102
- v(n(Pt), {
2102
+ v(n(Dt), {
2103
2103
  data: l.value,
2104
2104
  "node-key": "id",
2105
2105
  "default-expand-all": "",
@@ -2139,7 +2139,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2139
2139
  _: 1
2140
2140
  }));
2141
2141
  }
2142
- }), Uo = { class: "v-file-setter" }, Wt = /* @__PURE__ */ E({
2142
+ }), Uo = { class: "v-file-setter" }, Lt = /* @__PURE__ */ E({
2143
2143
  name: "FileSetter",
2144
2144
  __name: "file",
2145
2145
  props: {
@@ -2176,7 +2176,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2176
2176
  return le("请选择文件"), !1;
2177
2177
  const C = (t.attachment?.accept || "").toLowerCase().split(",");
2178
2178
  return C.length > 0 ? [].concat(m.value).every((R) => {
2179
- const D = R.name || R.url.split("?")[0], B = D.substring(D.lastIndexOf(".")).toLowerCase();
2179
+ const P = R.name || R.url.split("?")[0], B = P.substring(P.lastIndexOf(".")).toLowerCase();
2180
2180
  return C.includes(B);
2181
2181
  }) ? !0 : (le(`只支持 ${C.join(",")} 文件`), !1) : !0;
2182
2182
  }, c = () => {
@@ -2234,7 +2234,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2234
2234
  }, 8, ["modelValue"])) : A("", !0)
2235
2235
  ]));
2236
2236
  }
2237
- }), qo = /* @__PURE__ */ E({
2237
+ }), Ho = /* @__PURE__ */ E({
2238
2238
  name: "BlocksWidget",
2239
2239
  __name: "index",
2240
2240
  setup(u) {
@@ -2279,37 +2279,37 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2279
2279
  return ".json";
2280
2280
  if (o.value?.fromType === "Plugin")
2281
2281
  return ".js,.css,.json";
2282
- }), h = S(() => o.value?.fromType === "Plugin"), c = async (D) => {
2283
- const B = D, P = l.project.value;
2284
- if (!P) return !1;
2285
- if (D.id)
2286
- if (!P.existBlockName(B.name, [B.id]))
2287
- P.updateBlock(B);
2282
+ }), h = S(() => o.value?.fromType === "Plugin"), c = async (P) => {
2283
+ const B = P, D = l.project.value;
2284
+ if (!D) return !1;
2285
+ if (P.id)
2286
+ if (!D.existBlockName(B.name, [B.id]))
2287
+ D.updateBlock(B);
2288
2288
  else
2289
2289
  return le(`名称【${B.name}】已经存在,请更换名称`), !1;
2290
- else if (!P.existBlockName(B.name))
2291
- P.createBlock(B);
2290
+ else if (!D.existBlockName(B.name))
2291
+ D.createBlock(B);
2292
2292
  else
2293
2293
  return le(`名称【${B.name}】已经存在,请更换名称`), !1;
2294
2294
  return !0;
2295
2295
  }, _ = () => {
2296
2296
  o.value = m(), i.value = !0;
2297
- }, w = (D) => {
2298
- o.value = ot(D), i.value = !0;
2299
- }, x = (D) => {
2300
- l.project.value?.removeBlock(D.id);
2301
- }, C = (D) => {
2302
- o.value && (o.value.name = yn(D));
2303
- }, I = async (D) => {
2304
- (!D.fromType || D.fromType === "Schema") && l.project.value?.active(D);
2305
- }, z = async (D) => {
2306
- const B = jl(D), P = await l.assets.getBlockMaterial(B, D.name), G = l.skeleton?.getWidget("Designer")?.widgetRef?.designer;
2307
- G && P && G.setDragging(P);
2297
+ }, w = (P) => {
2298
+ o.value = ot(P), i.value = !0;
2299
+ }, x = (P) => {
2300
+ l.project.value?.removeBlock(P.id);
2301
+ }, C = (P) => {
2302
+ o.value && (o.value.name = yn(P));
2303
+ }, I = async (P) => {
2304
+ (!P.fromType || P.fromType === "Schema") && l.project.value?.active(P);
2305
+ }, z = async (P) => {
2306
+ const B = jl(P), D = await l.assets.getBlockMaterial(B, P.name), G = l.skeleton?.getWidget("Designer")?.widgetRef?.designer;
2307
+ G && D && G.setDragging(D);
2308
2308
  }, R = () => {
2309
- const D = l.skeleton?.getWidget("Designer")?.widgetRef?.designer;
2310
- D && D.setDragging(null);
2309
+ const P = l.skeleton?.getWidget("Designer")?.widgetRef?.designer;
2310
+ P && P.setDragging(null);
2311
2311
  };
2312
- return (D, B) => (p(), y(n(H), {
2312
+ return (P, B) => (p(), y(n(q), {
2313
2313
  class: "v-blocks-widget",
2314
2314
  title: "区块管理",
2315
2315
  subtitle: d.value,
@@ -2322,23 +2322,23 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2322
2322
  gutter: 5
2323
2323
  }, {
2324
2324
  default: b(() => [
2325
- (p(!0), j(O, null, L(n(t), (P) => (p(), y(n(yt), {
2326
- key: P.id,
2325
+ (p(!0), j(O, null, W(n(t), (D) => (p(), y(n(yt), {
2326
+ key: D.id,
2327
2327
  span: n(e)
2328
2328
  }, {
2329
2329
  default: b(() => [
2330
2330
  v(n(xt), {
2331
- name: P.name,
2332
- title: P.title,
2333
- active: n(r)?.id === P.id,
2334
- editable: !P.preset,
2335
- tag: a[P.fromType || "Schema"]?.label,
2336
- tagType: a[P.fromType || "Schema"]?.type,
2337
- onEdit: (G) => w(P),
2338
- onRemove: (G) => x(P),
2339
- onClick: (G) => I(P),
2340
- draggable: n(r)?.id !== P.id,
2341
- onDragstart: (G) => z(P),
2331
+ name: D.name,
2332
+ title: D.title,
2333
+ active: n(r)?.id === D.id,
2334
+ editable: !D.preset,
2335
+ tag: a[D.fromType || "Schema"]?.label,
2336
+ tagType: a[D.fromType || "Schema"]?.type,
2337
+ onEdit: (G) => w(D),
2338
+ onRemove: (G) => x(D),
2339
+ onClick: (G) => I(D),
2340
+ draggable: n(r)?.id !== D.id,
2341
+ onDragstart: (G) => z(D),
2342
2342
  onDragend: R
2343
2343
  }, null, 8, ["name", "title", "active", "editable", "tag", "tagType", "onEdit", "onRemove", "onClick", "draggable", "onDragstart"])
2344
2344
  ]),
@@ -2350,7 +2350,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2350
2350
  n(t).length ? A("", !0) : (p(), y(n(oe), { key: 0 })),
2351
2351
  v(n(Ae), {
2352
2352
  modelValue: i.value,
2353
- "onUpdate:modelValue": B[0] || (B[0] = (P) => i.value = P),
2353
+ "onUpdate:modelValue": B[0] || (B[0] = (D) => i.value = D),
2354
2354
  title: g.value,
2355
2355
  model: o.value,
2356
2356
  width: "600px",
@@ -2394,7 +2394,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2394
2394
  name: "urls",
2395
2395
  label: "资源文件",
2396
2396
  required: "",
2397
- editor: Wt,
2397
+ editor: Lt,
2398
2398
  props: { attachment: { accept: f.value, multiple: h.value } }
2399
2399
  }, null, 8, ["props"])) : A("", !0)
2400
2400
  ]),
@@ -2404,7 +2404,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2404
2404
  _: 1
2405
2405
  }, 8, ["subtitle"]));
2406
2406
  }
2407
- }), Ho = { class: "v-components-widget__search" }, Go = {
2407
+ }), qo = { class: "v-components-widget__search" }, Go = {
2408
2408
  key: 0,
2409
2409
  class: "v-components-widget__result"
2410
2410
  }, Xo = { class: "v-components-widget__list" }, Ko = /* @__PURE__ */ E({
@@ -2418,13 +2418,13 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2418
2418
  const m = t.skeleton?.getWidget("Designer")?.widgetRef?.designer;
2419
2419
  m && m.setDragging(null);
2420
2420
  };
2421
- return (m, f) => (p(), y(n(H), {
2421
+ return (m, f) => (p(), y(n(q), {
2422
2422
  class: "v-components-widget",
2423
2423
  title: "组件库",
2424
2424
  body: { flex: !0, direction: "column" }
2425
2425
  }, {
2426
2426
  default: b(() => [
2427
- V("div", Ho, [
2427
+ V("div", qo, [
2428
2428
  v(n(_e), {
2429
2429
  modelValue: n(r),
2430
2430
  "onUpdate:modelValue": f[0] || (f[0] = (h) => gt(r) ? r.value = h : null),
@@ -2444,7 +2444,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2444
2444
  gutter: 5
2445
2445
  }, {
2446
2446
  default: b(() => [
2447
- (p(!0), j(O, null, L(n(i), (h) => (p(), y(n(yt), {
2447
+ (p(!0), j(O, null, W(n(i), (h) => (p(), y(n(yt), {
2448
2448
  span: n(e),
2449
2449
  key: h.name
2450
2450
  }, {
@@ -2463,7 +2463,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2463
2463
  _: 1
2464
2464
  }),
2465
2465
  n(i).length ? A("", !0) : (p(), y(n(oe), { key: 0 }))
2466
- ])) : (p(), y(n(Dt), {
2466
+ ])) : (p(), y(n(Pt), {
2467
2467
  key: 1,
2468
2468
  items: n(l),
2469
2469
  modelValue: n(s),
@@ -2477,7 +2477,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2477
2477
  "onUpdate:modelValue": f[1] || (f[1] = (h) => n(o)[n(s)] = h)
2478
2478
  }, {
2479
2479
  default: b(() => [
2480
- (p(!0), j(O, null, L(n(a).children, (h) => (p(), y(n(al), {
2480
+ (p(!0), j(O, null, W(n(a).children, (h) => (p(), y(n(al), {
2481
2481
  key: h.name,
2482
2482
  name: h.name,
2483
2483
  title: `${h.label} (${h.count})`
@@ -2489,7 +2489,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2489
2489
  gutter: 5
2490
2490
  }, {
2491
2491
  default: b(() => [
2492
- (p(!0), j(O, null, L(h.components, (c) => (p(), y(n(yt), {
2492
+ (p(!0), j(O, null, W(h.components, (c) => (p(), y(n(yt), {
2493
2493
  span: n(e),
2494
2494
  key: c.name
2495
2495
  }, {
@@ -2525,94 +2525,94 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2525
2525
  name: "OutlineWidget",
2526
2526
  __name: "index",
2527
2527
  setup(u) {
2528
- const { engine: e, designer: t, selected: l } = xe(), { current: s } = ue(), a = k([]), o = (D, B) => {
2528
+ const { engine: e, designer: t, selected: l } = xe(), { current: s } = ue(), a = k([]), o = (P, B) => {
2529
2529
  if (B === "slot") return [];
2530
- if (te(D))
2531
- return D.locked ? ["unlock"] : ["lock"];
2532
- const P = D.parent;
2533
- return P && (P.locked || P.invisible) ? [] : s.value?.locked ? [] : D.locked ? ["unlock"] : D.invisible ? ["visible"] : ["lock", "invisible", "copy", "remove"];
2534
- }, r = (D, B) => {
2535
- const P = {};
2536
- if (!D.some((W) => W.slot)) return i(D);
2537
- for (const W of D) {
2538
- const q = W.slot?.name || "default";
2539
- P[q] || (P[q] = []), P[q].push(W);
2530
+ if (te(P))
2531
+ return P.locked ? ["unlock"] : ["lock"];
2532
+ const D = P.parent;
2533
+ return D && (D.locked || D.invisible) ? [] : s.value?.locked ? [] : P.locked ? ["unlock"] : P.invisible ? ["visible"] : ["lock", "invisible", "copy", "remove"];
2534
+ }, r = (P, B) => {
2535
+ const D = {};
2536
+ if (!P.some((L) => L.slot)) return i(P);
2537
+ for (const L of P) {
2538
+ const H = L.slot?.name || "default";
2539
+ D[H] || (D[H] = []), D[H].push(L);
2540
2540
  }
2541
2541
  const me = [];
2542
- for (const [W, q] of Object.entries(P))
2542
+ for (const [L, H] of Object.entries(D))
2543
2543
  me.push({
2544
- id: `${B.id}-${W}`,
2545
- label: `#${W}`,
2544
+ id: `${B.id}-${L}`,
2545
+ label: `#${L}`,
2546
2546
  type: "slot",
2547
2547
  model: B,
2548
2548
  disabled: !0,
2549
- children: i(q)
2549
+ children: i(H)
2550
2550
  });
2551
2551
  return me;
2552
- }, i = (D) => {
2552
+ }, i = (P) => {
2553
2553
  const B = [];
2554
- return D.forEach((P) => {
2554
+ return P.forEach((D) => {
2555
2555
  const G = {
2556
- id: P.id,
2557
- label: P.name,
2558
- type: P.id,
2556
+ id: D.id,
2557
+ label: D.name,
2558
+ type: D.id,
2559
2559
  //getNodeType(model),
2560
- model: P
2560
+ model: D
2561
2561
  };
2562
- Array.isArray(P.children) && (G.children = r(P.children, P)), B.push(G);
2562
+ Array.isArray(D.children) && (G.children = r(D.children, D)), B.push(G);
2563
2563
  }), B;
2564
2564
  }, g = () => {
2565
2565
  if (!s.value) return [];
2566
- const { id: D, name: B, nodes: P } = s.value;
2566
+ const { id: P, name: B, nodes: D } = s.value;
2567
2567
  return [
2568
2568
  {
2569
- id: D,
2569
+ id: P,
2570
2570
  label: B,
2571
- type: D,
2571
+ type: P,
2572
2572
  model: s.value,
2573
- children: i(P)
2573
+ children: i(D)
2574
2574
  }
2575
2575
  ];
2576
2576
  }, d = async () => {
2577
2577
  a.value = g(), l.value?.model && (await ke(), t.value?.setSelected(l.value.model));
2578
- }, m = S(() => l.value?.model.id), f = (D) => {
2579
- const B = D.data;
2578
+ }, m = S(() => l.value?.model.id), f = (P) => {
2579
+ const B = P.data;
2580
2580
  if (B.type === "slot" || te(B.model) || B.model.locked || B.model.name === "template")
2581
2581
  return !1;
2582
- const P = e.assets.componentMap.get(B.model.name);
2583
- return P ? (t.value?.setDragging(P), !0) : !1;
2584
- }, h = async (D, B, P) => {
2585
- const G = B.data, W = {
2582
+ const D = e.assets.componentMap.get(B.model.name);
2583
+ return D ? (t.value?.setDragging(D), !0) : !1;
2584
+ }, h = async (P, B, D) => {
2585
+ const G = B.data, L = {
2586
2586
  prev: "top",
2587
2587
  next: "bottom",
2588
2588
  inner: "inner"
2589
- }[P];
2590
- let q = !1;
2589
+ }[D];
2590
+ let H = !1;
2591
2591
  if (te(G.model))
2592
- q = P === "inner", t.value?.setDropping(q ? G.model : null, "inner");
2592
+ H = D === "inner", t.value?.setDropping(H ? G.model : null, "inner");
2593
2593
  else {
2594
2594
  const N = G.model;
2595
- q = !!await t.value?.allowDrop(N, W), t.value?.setDropping(q ? N : null, "inner");
2595
+ H = !!await t.value?.allowDrop(N, L), t.value?.setDropping(H ? N : null, "inner");
2596
2596
  }
2597
- return q;
2598
- }, c = (D) => {
2599
- const B = D?.model;
2600
- if (!B || B.invisible || D.type === "slot") {
2597
+ return H;
2598
+ }, c = (P) => {
2599
+ const B = P?.model;
2600
+ if (!B || B.invisible || P.type === "slot") {
2601
2601
  t.value?.setSelected(null), t.value?.setHover(null);
2602
2602
  return;
2603
2603
  }
2604
2604
  t.value?.setSelected(B), t.value?.setHover(null);
2605
- }, _ = async (D, B, P) => {
2606
- const G = D.data, me = B.data;
2605
+ }, _ = async (P, B, D) => {
2606
+ const G = P.data, me = B.data;
2607
2607
  if (te(me.model)) {
2608
- const Le = G.model;
2609
- delete Le.slot, s.value?.move(Le, void 0, "inner"), t.value?.setDropping(null), t.value?.setDragging(null);
2608
+ const We = G.model;
2609
+ delete We.slot, s.value?.move(We, void 0, "inner"), t.value?.setDropping(null), t.value?.setDragging(null);
2610
2610
  return;
2611
2611
  }
2612
- const W = me.model, q = { before: "left", after: "right" }[P] || "inner";
2612
+ const L = me.model, H = { before: "left", after: "right" }[D] || "inner";
2613
2613
  if (!await t.value?.allowDrop(
2614
- W,
2615
- q
2614
+ L,
2615
+ H
2616
2616
  )) {
2617
2617
  t.value?.setDropping(null), d(), Qe.warning({
2618
2618
  message: `${G.model.name}不能放置到该位置`
@@ -2620,62 +2620,62 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2620
2620
  return;
2621
2621
  }
2622
2622
  const $e = await t.value?.getDropSlot(
2623
- P === "inner" ? W : W.parent
2623
+ D === "inner" ? L : L.parent
2624
2624
  );
2625
2625
  if ($e !== null) {
2626
- const Le = G.model;
2627
- Le.slot = $e, s.value?.move(Le, W, q);
2626
+ const We = G.model;
2627
+ We.slot = $e, s.value?.move(We, L, H);
2628
2628
  } else
2629
2629
  d();
2630
2630
  t.value?.setDropping(null), t.value?.setDragging(null), e.simulator.refresh();
2631
- }, w = (D) => {
2632
- if (D.type === "slot") {
2631
+ }, w = (P) => {
2632
+ if (P.type === "slot") {
2633
2633
  t.value?.setHover(null);
2634
2634
  return;
2635
2635
  }
2636
- te(D.model) ? t.value?.setHover(D.model) : (t.value?.setHover(D.model), D.model.invisible && t.value?.setHover(null), D.model.name === "slot" && t.value?.setHover(null));
2636
+ te(P.model) ? t.value?.setHover(P.model) : (t.value?.setHover(P.model), P.model.invisible && t.value?.setHover(null), P.model.name === "slot" && t.value?.setHover(null));
2637
2637
  }, x = () => {
2638
2638
  t.value?.setHover(null);
2639
- }, C = (D) => {
2640
- const B = D.data;
2639
+ }, C = (P) => {
2640
+ const B = P.data;
2641
2641
  B.dragging = !0;
2642
- const P = e.assets.componentMap.get(B.model.name);
2643
- P && t.value?.setDragging(P);
2644
- }, I = async (D) => {
2645
- const B = D.data;
2642
+ const D = e.assets.componentMap.get(B.model.name);
2643
+ D && t.value?.setDragging(D);
2644
+ }, I = async (P) => {
2645
+ const B = P.data;
2646
2646
  B.dragging = !1;
2647
- }, z = (D, B) => {
2648
- D && ((D.id === B.id || !te(D) && B.isChild(D)) && t.value?.setSelected(null), t.value?.setHover(null));
2649
- }, R = (D) => {
2650
- const { name: B, modelValue: P } = D, G = l.value?.model;
2647
+ }, z = (P, B) => {
2648
+ P && ((P.id === B.id || !te(P) && B.isChild(P)) && t.value?.setSelected(null), t.value?.setHover(null));
2649
+ }, R = (P) => {
2650
+ const { name: B, modelValue: D } = P, G = l.value?.model;
2651
2651
  switch (B) {
2652
2652
  case "lock":
2653
- z(G, P), P.lock();
2653
+ z(G, D), D.lock();
2654
2654
  break;
2655
2655
  case "unlock":
2656
- z(G, P), P.unlock();
2656
+ z(G, D), D.unlock();
2657
2657
  break;
2658
2658
  case "invisible":
2659
- z(G, P), P.setVisible(!1);
2659
+ z(G, D), D.setVisible(!1);
2660
2660
  break;
2661
2661
  case "visible":
2662
- P.setVisible(!0);
2662
+ D.setVisible(!0);
2663
2663
  break;
2664
2664
  case "copy":
2665
- const me = s.value?.cloneNode(P);
2665
+ const me = s.value?.cloneNode(D);
2666
2666
  me && t.value?.setSelected(me);
2667
2667
  break;
2668
2668
  case "remove":
2669
- z(G, P), s.value?.removeNode(P);
2669
+ z(G, D), s.value?.removeNode(D);
2670
2670
  break;
2671
2671
  }
2672
2672
  };
2673
- return J(e.changed, d, { immediate: !0 }), (D, B) => (p(), y(n(H), {
2673
+ return J(e.changed, d, { immediate: !0 }), (P, B) => (p(), y(n(q), {
2674
2674
  class: "v-outline-widget",
2675
2675
  title: "大纲树"
2676
2676
  }, {
2677
2677
  default: b(() => [
2678
- (p(), y(n(Pt), {
2678
+ (p(), y(n(Dt), {
2679
2679
  key: n(e).changed.value,
2680
2680
  data: a.value,
2681
2681
  "node-key": "id",
@@ -2692,26 +2692,26 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2692
2692
  onNodeDragStart: C,
2693
2693
  onNodeDragEnd: I
2694
2694
  }, {
2695
- default: b(({ data: P, node: G }) => [
2695
+ default: b(({ data: D, node: G }) => [
2696
2696
  v(n(ce), {
2697
2697
  class: X(["v-outline-widget__item", {
2698
- "is-locked": P.model.locked,
2699
- "is-invisible": P.model.invisible,
2700
- "is-dragging": P.dragging,
2701
- "is-slot": P.type === "slot"
2698
+ "is-locked": D.model.locked,
2699
+ "is-invisible": D.model.invisible,
2700
+ "is-dragging": D.dragging,
2701
+ "is-slot": D.type === "slot"
2702
2702
  }]),
2703
- active: !P.model.invisible && G.isCurrent && P.type !== "slot",
2703
+ active: !D.model.invisible && G.isCurrent && D.type !== "slot",
2704
2704
  grow: "",
2705
2705
  small: "",
2706
2706
  background: "",
2707
2707
  hover: "",
2708
- "model-value": P.model,
2709
- icon: P.model.locked ? n(En) : P.model.invisible ? n(Pn) : void 0,
2710
- title: P.label,
2711
- subtitle: P.type,
2712
- actions: o(P.model, P.type),
2708
+ "model-value": D.model,
2709
+ icon: D.model.locked ? n(En) : D.model.invisible ? n(Dn) : void 0,
2710
+ title: D.label,
2711
+ subtitle: D.type,
2712
+ actions: o(D.model, D.type),
2713
2713
  onAction: R,
2714
- onMouseenter: (me) => w(P),
2714
+ onMouseenter: (me) => w(D),
2715
2715
  onMouseleave: x
2716
2716
  }, null, 8, ["class", "active", "model-value", "icon", "title", "subtitle", "actions", "onMouseenter"])
2717
2717
  ]),
@@ -2730,7 +2730,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2730
2730
  }, o = async () => {
2731
2731
  await Fe("确定要清空历史记录吗?") && e.value?.clear();
2732
2732
  };
2733
- return (r, i) => (p(), y(n(H), {
2733
+ return (r, i) => (p(), y(n(q), {
2734
2734
  class: "v-history-widget",
2735
2735
  title: "历史记录",
2736
2736
  subtitle: s.value,
@@ -2742,7 +2742,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2742
2742
  key: 0,
2743
2743
  "image-size": 50
2744
2744
  })) : A("", !0),
2745
- n(e) ? (p(!0), j(O, { key: 1 }, L(n(e).items, (g, d) => (p(), y(n(ce), {
2745
+ n(e) ? (p(!0), j(O, { key: 1 }, W(n(e).items, (g, d) => (p(), y(n(ce), {
2746
2746
  index: d + 1,
2747
2747
  title: g.label,
2748
2748
  "model-value": g,
@@ -2934,7 +2934,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2934
2934
  default: b(() => [
2935
2935
  o[1] || (o[1] = V("span", null, "模拟数据模板", -1)),
2936
2936
  v(n(be), {
2937
- icon: n(Dn),
2937
+ icon: n(Pn),
2938
2938
  mode: "text",
2939
2939
  label: "帮助",
2940
2940
  onClick: s
@@ -3007,7 +3007,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3007
3007
  e.model ? [o.value.id] : []
3008
3008
  ) ? (le(`API名称 [ ${o.value.name} ] 已存在`), !1) : o.value.headers && !re(o.value.headers, window) || o.value.mockTemplate && !re(o.value.mockTemplate, window) ? !1 : (e.project?.setApi(o.value), s.value?.close(), !0), c = () => {
3009
3009
  if (o.value.mockTemplate) {
3010
- const _ = He(
3010
+ const _ = qe(
3011
3011
  o.value.mockTemplate,
3012
3012
  {},
3013
3013
  !0
@@ -3035,7 +3035,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3035
3035
  shrink: !1
3036
3036
  }, {
3037
3037
  default: b(() => [
3038
- v(n(Dt), {
3038
+ v(n(Pt), {
3039
3039
  modelValue: l.value,
3040
3040
  "onUpdate:modelValue": w[0] || (w[0] = (x) => l.value = x),
3041
3041
  items: g,
@@ -3102,7 +3102,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3102
3102
  submitMethod: h
3103
3103
  }, {
3104
3104
  default: b(() => [
3105
- Pe(v(Zo, null, null, 512), [
3105
+ De(v(Zo, null, null, 512), [
3106
3106
  [Te, l.value === "base"]
3107
3107
  ]),
3108
3108
  l.value === "settings" ? (p(), j("div", lr, [
@@ -3193,7 +3193,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3193
3193
  }, m = (f) => {
3194
3194
  s.value = !0, t.value = ot(f), e.value = !0;
3195
3195
  };
3196
- return (f, h) => (p(), y(n(H), {
3196
+ return (f, h) => (p(), y(n(q), {
3197
3197
  class: "v-apis-widget",
3198
3198
  title: "API管理",
3199
3199
  plus: "",
@@ -3210,7 +3210,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3210
3210
  clearable: ""
3211
3211
  }, null, 8, ["modelValue", "prefix-icon"])
3212
3212
  ]),
3213
- (p(!0), j(O, null, L(a.value, (c) => (p(), y(n(ce), {
3213
+ (p(!0), j(O, null, W(a.value, (c) => (p(), y(n(ce), {
3214
3214
  key: c.id,
3215
3215
  small: "",
3216
3216
  title: c.name,
@@ -3261,14 +3261,14 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3261
3261
  `)
3262
3262
  }, s.value = !1, l.value = !0), _.name === "remove" && t.project.value?.removeDeps(c);
3263
3263
  };
3264
- return (c, _) => (p(), y(n(H), {
3264
+ return (c, _) => (p(), y(n(q), {
3265
3265
  class: "v-deps-widget",
3266
3266
  title: "依赖管理",
3267
3267
  plus: "",
3268
3268
  onPlus: m
3269
3269
  }, {
3270
3270
  default: b(() => [
3271
- (p(!0), j(O, null, L(n(e), (w) => (p(), y(n(ce), {
3271
+ (p(!0), j(O, null, W(n(e), (w) => (p(), y(n(ce), {
3272
3272
  key: w.package,
3273
3273
  title: w.package,
3274
3274
  subtitle: w.version,
@@ -3410,29 +3410,29 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3410
3410
  ], 2));
3411
3411
  }
3412
3412
  }), ur = {
3413
- key: 1,
3413
+ key: 4,
3414
3414
  class: "v-designer__placeholder"
3415
3415
  }, cr = /* @__PURE__ */ E({
3416
3416
  name: "VDesigner",
3417
3417
  inheritAttrs: !1,
3418
3418
  __name: "index",
3419
3419
  setup(u, { expose: e }) {
3420
- const t = k(), l = k(), { width: s, height: a } = Xe(t), { dependencies: o, engine: r, apis: i, meta: g } = Bn(), { current: d, isEmpty: m } = ue(), f = S(() => r.skeleton?.getWidget("Toolbar")?.widgetRef.mode ?? "pc"), h = S(() => r.project.value?.config || {}), { designer: c, hover: _, dropping: w, selected: x } = qa(
3420
+ const t = k(), l = k(), { width: s, height: a } = Xe(t), { dependencies: o, engine: r, apis: i, meta: g } = Bn(), { current: d, isEmpty: m } = ue(), f = S(() => r.skeleton?.getWidget("Toolbar")?.widgetRef.mode ?? "pc"), h = S(() => r.project.value?.config || {}), { designer: c, hover: _, dropping: w, selected: x } = Ha(
3421
3421
  l,
3422
3422
  o,
3423
3423
  i,
3424
3424
  g,
3425
3425
  h
3426
3426
  ), C = (R) => {
3427
- const D = R.type, B = R.model;
3427
+ const P = R.type, B = R.model;
3428
3428
  if (d.value)
3429
- switch (D) {
3429
+ switch (P) {
3430
3430
  case "remove":
3431
3431
  d.value.removeNode(B), c.value?.setSelected(null);
3432
3432
  break;
3433
3433
  case "copy":
3434
- const P = d.value.cloneNode(B);
3435
- c.value?.setSelected(P);
3434
+ const D = d.value.cloneNode(B);
3435
+ c.value?.setSelected(D);
3436
3436
  break;
3437
3437
  case "prev":
3438
3438
  d.value.movePrev(B), c.value?.setSelected(B);
@@ -3449,8 +3449,8 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3449
3449
  }
3450
3450
  }, I = (R) => {
3451
3451
  if (R && c.value) {
3452
- const D = r.assets.componentMap.get(R.name);
3453
- D && c.value.setDragging(D), c.value.setDraggingNode(R);
3452
+ const P = r.assets.componentMap.get(R.name);
3453
+ P && c.value.setDragging(P), c.value.setDraggingNode(R);
3454
3454
  }
3455
3455
  }, z = () => {
3456
3456
  c.value && (c.value.setDraggingNode(null), c.value.setDragging(null));
@@ -3458,22 +3458,17 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3458
3458
  return e({
3459
3459
  designer: c,
3460
3460
  mode: f
3461
- }), (R, D) => (p(), j("div", {
3461
+ }), (R, P) => (p(), j("div", {
3462
3462
  ref_key: "container",
3463
3463
  ref: t,
3464
3464
  class: "v-designer"
3465
3465
  }, [
3466
- v(n(Wn), {
3466
+ v(n(Ln), {
3467
3467
  mode: f.value,
3468
3468
  width: n(s),
3469
3469
  height: n(a)
3470
3470
  }, {
3471
3471
  default: b(() => [
3472
- V("iframe", {
3473
- ref_key: "iframe",
3474
- ref: l,
3475
- frameborder: "0"
3476
- }, null, 512),
3477
3472
  n(w) ? (p(), j("div", {
3478
3473
  key: 0,
3479
3474
  class: X(["v-designer__dropping", "is-inner"]),
@@ -3504,15 +3499,20 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3504
3499
  onDragstart: I,
3505
3500
  onDragend: z
3506
3501
  }, null, 8, ["position", "model", "path"])
3507
- ], 4)) : A("", !0)
3502
+ ], 4)) : A("", !0),
3503
+ n(d) ? A("", !0) : (p(), y(n(oe), {
3504
+ key: 3,
3505
+ description: "请新建或打开文件"
3506
+ })),
3507
+ n(d) && n(m) ? (p(), j("div", ur, " 您可以拖拽组件放置到这里 ")) : A("", !0),
3508
+ V("iframe", {
3509
+ ref_key: "iframe",
3510
+ ref: l,
3511
+ frameborder: "0"
3512
+ }, null, 512)
3508
3513
  ]),
3509
3514
  _: 1
3510
- }, 8, ["mode", "width", "height"]),
3511
- n(d) ? A("", !0) : (p(), y(n(oe), {
3512
- key: 0,
3513
- description: "请新建或打开文件"
3514
- })),
3515
- n(d) && n(m) ? (p(), j("div", ur, " 您可以拖拽组件放置到这里 ")) : A("", !0)
3515
+ }, 8, ["mode", "width", "height"])
3516
3516
  ], 512));
3517
3517
  }
3518
3518
  }), Ye = /* @__PURE__ */ E({
@@ -3552,7 +3552,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3552
3552
  }, f = async (c) => e.submit(c, o.value), h = () => {
3553
3553
  l.value?.itemRef.validate();
3554
3554
  };
3555
- return (c, _) => (p(), y(n(H), {
3555
+ return (c, _) => (p(), y(n(q), {
3556
3556
  title: e.title,
3557
3557
  class: "v-sub-panel",
3558
3558
  size: "small",
@@ -3561,7 +3561,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3561
3561
  onPlus: i
3562
3562
  }, {
3563
3563
  default: b(() => [
3564
- (p(!0), j(O, null, L(c.list, (w) => (p(), y(n(ce), {
3564
+ (p(!0), j(O, null, W(c.list, (w) => (p(), y(n(ce), {
3565
3565
  title: e.itemTitle(w),
3566
3566
  border: "",
3567
3567
  actions: ["edit", "remove"],
@@ -3930,7 +3930,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3930
3930
  const g = (t.items || []).map((d) => o(d.label || d.name)).sort((d, m) => m - d)[0];
3931
3931
  return g ? g * 6 + 24 : 100;
3932
3932
  });
3933
- return (i, g) => (p(), y(n(H), {
3933
+ return (i, g) => (p(), y(n(q), {
3934
3934
  title: t.title,
3935
3935
  class: "v-sub-panel",
3936
3936
  size: "small",
@@ -3946,7 +3946,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3946
3946
  }, ["prevent", "stop"]), ["enter"]))
3947
3947
  }, {
3948
3948
  default: b(() => [
3949
- (p(!0), j(O, null, L(t.items, (d) => (p(), y(n(M), ie({ ref_for: !0 }, d, {
3949
+ (p(!0), j(O, null, W(t.items, (d) => (p(), y(n(M), ie({ ref_for: !0 }, d, {
3950
3950
  key: `${d.name}_${t.node.id}`,
3951
3951
  current: t.current,
3952
3952
  context: t.context,
@@ -4187,7 +4187,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4187
4187
  fit: ""
4188
4188
  }, {
4189
4189
  default: b(() => [
4190
- v(n(H), {
4190
+ v(n(q), {
4191
4191
  title: "组件事件",
4192
4192
  class: "v-sub-panel",
4193
4193
  size: "small",
@@ -4199,7 +4199,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4199
4199
  "image-size": 50,
4200
4200
  description: "该组件无自带事件"
4201
4201
  })),
4202
- (p(!0), j(O, null, L(n(o), (w) => (p(), y(n(ce), {
4202
+ (p(!0), j(O, null, W(n(o), (w) => (p(), y(n(ce), {
4203
4203
  key: `component_${w.name}`,
4204
4204
  title: w.name,
4205
4205
  "model-value": w,
@@ -4213,14 +4213,14 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4213
4213
  ]),
4214
4214
  _: 1
4215
4215
  }),
4216
- v(n(H), {
4216
+ v(n(q), {
4217
4217
  title: "鼠标事件",
4218
4218
  class: "v-sub-panel",
4219
4219
  size: "small",
4220
4220
  fit: !1
4221
4221
  }, {
4222
4222
  default: b(() => [
4223
- (p(!0), j(O, null, L(n(s), (w) => (p(), y(n(ce), {
4223
+ (p(!0), j(O, null, W(n(s), (w) => (p(), y(n(ce), {
4224
4224
  key: `mouse_${w.name}`,
4225
4225
  title: w.name,
4226
4226
  "model-value": w,
@@ -4234,7 +4234,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4234
4234
  ]),
4235
4235
  _: 1
4236
4236
  }),
4237
- v(n(H), {
4237
+ v(n(q), {
4238
4238
  title: "键盘事件",
4239
4239
  class: "v-sub-panel",
4240
4240
  size: "small",
@@ -4242,7 +4242,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4242
4242
  fit: !1
4243
4243
  }, {
4244
4244
  default: b(() => [
4245
- (p(!0), j(O, null, L(n(a), (w) => (p(), y(n(ce), {
4245
+ (p(!0), j(O, null, W(n(a), (w) => (p(), y(n(ce), {
4246
4246
  key: `keyboard_${w.name}`,
4247
4247
  title: w.name,
4248
4248
  "model-value": w,
@@ -4281,7 +4281,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4281
4281
  const r = (t.value?.getEditor()).getValue();
4282
4282
  s(r), pe("保存成功");
4283
4283
  };
4284
- return (o, r) => (p(), y(n(H), {
4284
+ return (o, r) => (p(), y(n(q), {
4285
4285
  class: "v-css-widget v-sub-panel",
4286
4286
  title: "lang:css scoped",
4287
4287
  size: "small",
@@ -4316,14 +4316,14 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4316
4316
  onValueChange: g,
4317
4317
  onForChange: d,
4318
4318
  onModelChange: m
4319
- } = no(l), f = (h) => h.arg ? typeof h.arg == "string" ? h.arg : He(h.arg, {}) : "modelValue";
4319
+ } = no(l), f = (h) => h.arg ? typeof h.arg == "string" ? h.arg : qe(h.arg, {}) : "modelValue";
4320
4320
  return (h, c) => (p(), y(n(U), {
4321
4321
  class: "v-directives-widget",
4322
4322
  direction: "column",
4323
4323
  fit: ""
4324
4324
  }, {
4325
4325
  default: b(() => [
4326
- v(n(H), {
4326
+ v(n(q), {
4327
4327
  class: "v-sub-panel",
4328
4328
  title: "内置指令",
4329
4329
  size: "small",
@@ -4370,7 +4370,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4370
4370
  ]),
4371
4371
  _: 1
4372
4372
  }),
4373
- v(n(H), {
4373
+ v(n(q), {
4374
4374
  class: "v-sub-panel",
4375
4375
  title: "循环",
4376
4376
  size: "small",
@@ -4423,7 +4423,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4423
4423
  ]),
4424
4424
  _: 1
4425
4425
  }),
4426
- v(n(H), {
4426
+ v(n(q), {
4427
4427
  class: "v-sub-panel",
4428
4428
  title: "双向绑定",
4429
4429
  size: "small",
@@ -4431,7 +4431,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4431
4431
  grow: ""
4432
4432
  }, {
4433
4433
  default: b(() => [
4434
- (p(!0), j(O, null, L(n(i), (_, w) => (p(), y(n(H), {
4434
+ (p(!0), j(O, null, W(n(i), (_, w) => (p(), y(n(q), {
4435
4435
  card: "",
4436
4436
  border: "",
4437
4437
  class: "v-sub-panel",
@@ -4733,43 +4733,43 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4733
4733
  name: "DefinedWidget",
4734
4734
  __name: "index",
4735
4735
  setup(u) {
4736
- const { current: e, context: t } = ue(), l = S(() => (e.value?.props || []).map((W) => typeof W == "string" ? { name: W } : W)), s = S(() => (e.value?.emits || []).map((W) => typeof W == "string" ? { name: W, params: [] } : W)), a = S(() => (e.value?.slots || []).map((W) => typeof W == "string" ? { name: W, params: [] } : W)), o = S(() => e.value?.inject || []), r = k(!1), i = k(), g = k(!1), d = k(), m = k(!1), f = k(), h = k(!1), c = k(), _ = () => {
4736
+ const { current: e, context: t } = ue(), l = S(() => (e.value?.props || []).map((L) => typeof L == "string" ? { name: L } : L)), s = S(() => (e.value?.emits || []).map((L) => typeof L == "string" ? { name: L, params: [] } : L)), a = S(() => (e.value?.slots || []).map((L) => typeof L == "string" ? { name: L, params: [] } : L)), o = S(() => e.value?.inject || []), r = k(!1), i = k(), g = k(!1), d = k(), m = k(!1), f = k(), h = k(!1), c = k(), _ = () => {
4737
4737
  i.value = void 0, r.value = !0;
4738
- }, w = (W) => {
4739
- const { name: q, modelValue: N } = W;
4740
- q === "edit" && x(N), q === "remove" && e.value?.removeProp(N);
4741
- }, x = (W) => {
4742
- i.value = W, r.value = !0;
4738
+ }, w = (L) => {
4739
+ const { name: H, modelValue: N } = L;
4740
+ H === "edit" && x(N), H === "remove" && e.value?.removeProp(N);
4741
+ }, x = (L) => {
4742
+ i.value = L, r.value = !0;
4743
4743
  }, C = () => {
4744
4744
  d.value = void 0, g.value = !0;
4745
- }, I = (W) => {
4746
- d.value = { ...W }, g.value = !0;
4747
- }, z = (W) => {
4748
- const { name: q, modelValue: N } = W;
4749
- q === "edit" && I(N), q === "remove" && e.value?.removeEmit(N.name);
4745
+ }, I = (L) => {
4746
+ d.value = { ...L }, g.value = !0;
4747
+ }, z = (L) => {
4748
+ const { name: H, modelValue: N } = L;
4749
+ H === "edit" && I(N), H === "remove" && e.value?.removeEmit(N.name);
4750
4750
  }, R = () => {
4751
4751
  f.value = void 0, m.value = !0;
4752
- }, D = (W) => {
4753
- f.value = { ...W }, m.value = !0;
4754
- }, B = (W) => {
4755
- const { name: q, modelValue: N } = W;
4756
- q === "edit" && D(N), q === "remove" && e.value?.removeSlot(N.name);
4757
- }, P = () => {
4752
+ }, P = (L) => {
4753
+ f.value = { ...L }, m.value = !0;
4754
+ }, B = (L) => {
4755
+ const { name: H, modelValue: N } = L;
4756
+ H === "edit" && P(N), H === "remove" && e.value?.removeSlot(N.name);
4757
+ }, D = () => {
4758
4758
  c.value = void 0, h.value = !0;
4759
- }, G = (W) => {
4760
- c.value = W, h.value = !0;
4761
- }, me = (W) => {
4762
- const { name: q, modelValue: N } = W;
4763
- q === "edit" && G(N), q === "remove" && e.value?.removeInject(N);
4759
+ }, G = (L) => {
4760
+ c.value = L, h.value = !0;
4761
+ }, me = (L) => {
4762
+ const { name: H, modelValue: N } = L;
4763
+ H === "edit" && G(N), H === "remove" && e.value?.removeInject(N);
4764
4764
  };
4765
- return (W, q) => n(e) && n(t) ? (p(), y(n(U), {
4765
+ return (L, H) => n(e) && n(t) ? (p(), y(n(U), {
4766
4766
  key: 0,
4767
4767
  class: "v-defined-widget",
4768
4768
  direction: "column",
4769
4769
  fit: ""
4770
4770
  }, {
4771
4771
  default: b(() => [
4772
- v(n(H), {
4772
+ v(n(q), {
4773
4773
  class: "v-sub-panel",
4774
4774
  title: "定义属性",
4775
4775
  size: "small",
@@ -4778,7 +4778,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4778
4778
  onPlus: _
4779
4779
  }, {
4780
4780
  default: b(() => [
4781
- (p(!0), j(O, null, L(l.value, (N) => (p(), y(n(ce), {
4781
+ (p(!0), j(O, null, W(l.value, (N) => (p(), y(n(ce), {
4782
4782
  "model-value": N,
4783
4783
  title: N.name,
4784
4784
  border: "",
@@ -4795,13 +4795,13 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4795
4795
  current: n(e),
4796
4796
  context: n(t),
4797
4797
  modelValue: r.value,
4798
- "onUpdate:modelValue": q[0] || (q[0] = (N) => r.value = N),
4798
+ "onUpdate:modelValue": H[0] || (H[0] = (N) => r.value = N),
4799
4799
  item: i.value
4800
4800
  }, null, 8, ["current", "context", "modelValue", "item"])) : A("", !0)
4801
4801
  ]),
4802
4802
  _: 1
4803
4803
  }),
4804
- v(n(H), {
4804
+ v(n(q), {
4805
4805
  class: "v-sub-panel",
4806
4806
  title: "定义事件",
4807
4807
  size: "small",
@@ -4810,7 +4810,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4810
4810
  onPlus: C
4811
4811
  }, {
4812
4812
  default: b(() => [
4813
- (p(!0), j(O, null, L(s.value, (N) => (p(), y(n(ce), {
4813
+ (p(!0), j(O, null, W(s.value, (N) => (p(), y(n(ce), {
4814
4814
  "model-value": N,
4815
4815
  title: N.name,
4816
4816
  border: "",
@@ -4825,7 +4825,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4825
4825
  g.value ? (p(), y(xr, {
4826
4826
  key: 1,
4827
4827
  modelValue: g.value,
4828
- "onUpdate:modelValue": q[1] || (q[1] = (N) => g.value = N),
4828
+ "onUpdate:modelValue": H[1] || (H[1] = (N) => g.value = N),
4829
4829
  current: n(e),
4830
4830
  context: n(t),
4831
4831
  item: d.value
@@ -4833,7 +4833,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4833
4833
  ]),
4834
4834
  _: 1
4835
4835
  }),
4836
- v(n(H), {
4836
+ v(n(q), {
4837
4837
  class: "v-sub-panel",
4838
4838
  title: "定义插槽",
4839
4839
  size: "small",
@@ -4842,12 +4842,12 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4842
4842
  onPlus: R
4843
4843
  }, {
4844
4844
  default: b(() => [
4845
- (p(!0), j(O, null, L(a.value, (N) => (p(), y(n(ce), {
4845
+ (p(!0), j(O, null, W(a.value, (N) => (p(), y(n(ce), {
4846
4846
  "model-value": N,
4847
4847
  title: N.name,
4848
4848
  border: "",
4849
4849
  actions: ["remove"],
4850
- onClick: ($e) => D(N),
4850
+ onClick: ($e) => P(N),
4851
4851
  onAction: B
4852
4852
  }, null, 8, ["model-value", "title", "onClick"]))), 256)),
4853
4853
  a.value.length ? A("", !0) : (p(), y(n(oe), {
@@ -4857,7 +4857,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4857
4857
  m.value ? (p(), y(Cr, {
4858
4858
  key: 1,
4859
4859
  modelValue: m.value,
4860
- "onUpdate:modelValue": q[2] || (q[2] = (N) => m.value = N),
4860
+ "onUpdate:modelValue": H[2] || (H[2] = (N) => m.value = N),
4861
4861
  current: n(e),
4862
4862
  context: n(t),
4863
4863
  item: f.value
@@ -4865,17 +4865,17 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4865
4865
  ]),
4866
4866
  _: 1
4867
4867
  }),
4868
- v(n(H), {
4868
+ v(n(q), {
4869
4869
  class: "v-sub-panel",
4870
4870
  title: "注入",
4871
4871
  size: "small",
4872
4872
  plus: "",
4873
4873
  fit: !1,
4874
4874
  grow: "",
4875
- onPlus: P
4875
+ onPlus: D
4876
4876
  }, {
4877
4877
  default: b(() => [
4878
- (p(!0), j(O, null, L(o.value, (N) => (p(), y(n(ce), {
4878
+ (p(!0), j(O, null, W(o.value, (N) => (p(), y(n(ce), {
4879
4879
  "model-value": N,
4880
4880
  title: N.name,
4881
4881
  border: "",
@@ -4890,7 +4890,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4890
4890
  h.value ? (p(), y(Vr, {
4891
4891
  key: 1,
4892
4892
  modelValue: h.value,
4893
- "onUpdate:modelValue": q[3] || (q[3] = (N) => h.value = N),
4893
+ "onUpdate:modelValue": H[3] || (H[3] = (N) => h.value = N),
4894
4894
  current: n(e),
4895
4895
  context: n(t),
4896
4896
  item: c.value
@@ -4999,9 +4999,9 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4999
4999
  if (R)
5000
5000
  return await R.apply(R, z);
5001
5001
  Ve.warn(`API【${o.value.ref}】不存在`);
5002
- }, C = He(o.value.test, {
5002
+ }, C = qe(o.value.test, {
5003
5003
  runApi: x
5004
- }), I = o.value.transform?.value ? He(o.value.transform, {}, !0) : (z) => z;
5004
+ }), I = o.value.transform?.value ? qe(o.value.transform, {}, !0) : (z) => z;
5005
5005
  r.value = !0;
5006
5006
  try {
5007
5007
  const z = await C();
@@ -5153,7 +5153,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5153
5153
  fit: ""
5154
5154
  }, {
5155
5155
  default: b(() => [
5156
- v(n(H), {
5156
+ v(n(q), {
5157
5157
  title: "请求方法",
5158
5158
  class: "v-sub-panel",
5159
5159
  size: "small",
@@ -5161,7 +5161,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5161
5161
  onPlus: r
5162
5162
  }, {
5163
5163
  default: b(() => [
5164
- (p(!0), j(O, null, L(a.value, (f) => (p(), y(n(ce), {
5164
+ (p(!0), j(O, null, W(a.value, (f) => (p(), y(n(ce), {
5165
5165
  border: "",
5166
5166
  title: f.name,
5167
5167
  subtitle: f.label,
@@ -5191,7 +5191,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5191
5191
  _: 1
5192
5192
  }));
5193
5193
  }
5194
- }), Pr = /* @__PURE__ */ E({
5194
+ }), Dr = /* @__PURE__ */ E({
5195
5195
  __name: "layout",
5196
5196
  props: {
5197
5197
  styleJson: {},
@@ -5262,12 +5262,12 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5262
5262
  {
5263
5263
  label: "flex-end",
5264
5264
  value: "flex-end",
5265
- svg: Ps
5265
+ svg: Ds
5266
5266
  },
5267
5267
  {
5268
5268
  label: "center",
5269
5269
  value: "center",
5270
- svg: Ds
5270
+ svg: Ps
5271
5271
  },
5272
5272
  {
5273
5273
  label: "space-between",
@@ -5321,7 +5321,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5321
5321
  ], i = (g, d) => {
5322
5322
  t.value = d === "flex", e.setStyle("display", d), t.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));
5323
5323
  };
5324
- return (g, d) => (p(), y(n(H), {
5324
+ return (g, d) => (p(), y(n(q), {
5325
5325
  title: "布局",
5326
5326
  class: "v-sub-panel",
5327
5327
  size: "small",
@@ -5388,7 +5388,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5388
5388
  _: 1
5389
5389
  }));
5390
5390
  }
5391
- }), Dr = /* @__PURE__ */ E({
5391
+ }), Pr = /* @__PURE__ */ E({
5392
5392
  name: "StyleWidget",
5393
5393
  __name: "JsonMode",
5394
5394
  setup(u) {
@@ -5408,7 +5408,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5408
5408
  const i = (t.value?.getEditor()).getValue();
5409
5409
  a(i), pe("保存成功");
5410
5410
  };
5411
- return (r, i) => (p(), y(n(H), {
5411
+ return (r, i) => (p(), y(n(q), {
5412
5412
  class: "v-css-widget v-sub-panel",
5413
5413
  title: "JSON",
5414
5414
  size: "small",
@@ -5430,7 +5430,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5430
5430
  _: 1
5431
5431
  }));
5432
5432
  }
5433
- }), Ir = { class: "v-spacing-input" }, Tr = { class: "v-spacing-input__content" }, Br = ["onClick"], Ln = /* @__PURE__ */ E({
5433
+ }), Ir = { class: "v-spacing-input" }, Tr = { class: "v-spacing-input__content" }, Br = ["onClick"], Wn = /* @__PURE__ */ E({
5434
5434
  __name: "spacing-input",
5435
5435
  props: {
5436
5436
  name: {},
@@ -5497,7 +5497,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5497
5497
  wrap: "wrap"
5498
5498
  }, {
5499
5499
  default: b(() => [
5500
- (p(), j(O, null, L(t, (_) => V("span", {
5500
+ (p(), j(O, null, W(t, (_) => V("span", {
5501
5501
  onClick: (w) => g(_)
5502
5502
  }, F(_), 9, Br)), 64))
5503
5503
  ]),
@@ -5540,7 +5540,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5540
5540
  ])
5541
5541
  ]));
5542
5542
  }
5543
- }), Rr = { class: "spacing-wrap" }, $r = { class: "spacing-max-icon" }, Or = ["width", "height"], zr = ["d"], Fr = ["d"], Wr = ["d"], Lr = ["d"], Nr = { id: "margin-outer" }, Jr = ["width", "height"], Mr = ["width", "height"], Ur = { id: "margin-inner" }, qr = ["width", "height"], Hr = ["width", "height"], Gr = ["width", "height"], Xr = ["d"], Kr = ["d"], Qr = ["d"], Yr = ["d"], Zr = { id: "padding-outer" }, ei = ["width", "height"], ti = ["width", "height"], ni = { id: "padding-inner" }, li = ["width", "height"], si = ["width", "height"], ai = {
5543
+ }), Rr = { class: "spacing-wrap" }, $r = { class: "spacing-max-icon" }, Or = ["width", "height"], zr = ["d"], Fr = ["d"], Lr = ["d"], Wr = ["d"], Nr = { id: "margin-outer" }, Jr = ["width", "height"], Mr = ["width", "height"], Ur = { id: "margin-inner" }, Hr = ["width", "height"], qr = ["width", "height"], Gr = ["width", "height"], Xr = ["d"], Kr = ["d"], Qr = ["d"], Yr = ["d"], Zr = { id: "padding-outer" }, ei = ["width", "height"], ti = ["width", "height"], ni = { id: "padding-inner" }, li = ["width", "height"], si = ["width", "height"], ai = {
5544
5544
  xmlns: "http://www.w3.org/2000/svg",
5545
5545
  width: "100%",
5546
5546
  height: "100%",
@@ -5562,7 +5562,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5562
5562
  }, f = (h) => {
5563
5563
  g.value = h, d.value = e.styleJson[h], i.value = !0;
5564
5564
  };
5565
- return (h, c) => (p(), y(n(H), {
5565
+ return (h, c) => (p(), y(n(q), {
5566
5566
  title: "间距",
5567
5567
  class: "v-sub-panel",
5568
5568
  size: "small",
@@ -5635,7 +5635,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5635
5635
  "aria-label": "Margin bottom button",
5636
5636
  class: "tb-path-color",
5637
5637
  onClick: c[2] || (c[2] = (_) => f("margin-bottom"))
5638
- }, null, 8, Wr)
5638
+ }, null, 8, Lr)
5639
5639
  ])
5640
5640
  ]),
5641
5641
  V("g", null, [
@@ -5653,7 +5653,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5653
5653
  "aria-label": "Margin left button",
5654
5654
  class: "lr-path-color",
5655
5655
  onClick: c[3] || (c[3] = (_) => f("margin-left"))
5656
- }, null, 8, Lr)
5656
+ }, null, 8, Wr)
5657
5657
  ])
5658
5658
  ]),
5659
5659
  V("clipPath", Nr, [
@@ -5690,7 +5690,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5690
5690
  rx: "2",
5691
5691
  ry: "2",
5692
5692
  style: { "pointer-events": "none" }
5693
- }, null, 8, qr)
5693
+ }, null, 8, Hr)
5694
5694
  ]),
5695
5695
  V("rect", {
5696
5696
  class: "stroke",
@@ -5703,7 +5703,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5703
5703
  rx: "2",
5704
5704
  ry: "2",
5705
5705
  style: { "pointer-events": "none", "stroke-width": "2px" }
5706
- }, null, 8, Hr)
5706
+ }, null, 8, qr)
5707
5707
  ], 8, Or)) : A("", !0),
5708
5708
  V("div", {
5709
5709
  class: X(["spacing-edit margin-top", { "is-setting": e.styleJson["margin-top"] }]),
@@ -5895,7 +5895,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5895
5895
  }, " margin ", -1)
5896
5896
  ])))
5897
5897
  ]),
5898
- i.value ? (p(), y(Ln, {
5898
+ i.value ? (p(), y(Wn, {
5899
5899
  key: 0,
5900
5900
  name: g.value,
5901
5901
  modelValue: d.value,
@@ -5970,7 +5970,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5970
5970
  ]
5971
5971
  }
5972
5972
  ];
5973
- return (a, o) => (p(), y(n(H), {
5973
+ return (a, o) => (p(), y(n(q), {
5974
5974
  title: "尺寸",
5975
5975
  class: "v-sub-panel v-",
5976
5976
  size: "small",
@@ -5985,7 +5985,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5985
5985
  inline: ""
5986
5986
  }, {
5987
5987
  default: b(() => [
5988
- (p(), j(O, null, L(s, (r) => v(n(M), {
5988
+ (p(), j(O, null, W(s, (r) => v(n(M), {
5989
5989
  name: r.name,
5990
5990
  label: r.label,
5991
5991
  setters: { name: r.setter },
@@ -6016,20 +6016,20 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
6016
6016
  { label: "粘性", value: "sticky" }
6017
6017
  ], g = [
6018
6018
  { label: "左上", svg: Fs, value: "0% auto auto 0%" },
6019
- { label: "右上", svg: Ws, value: "0% 0% auto auto" },
6020
- { label: "左下", svg: Ls, value: "auto auto 0% 0%" },
6019
+ { label: "右上", svg: Ls, value: "0% 0% auto auto" },
6020
+ { label: "左下", svg: Ws, value: "auto auto 0% 0%" },
6021
6021
  { label: "右下", svg: Ns, value: "auto 0% 0% auto" },
6022
6022
  { label: "左", svg: Js, value: "0% auto 0% 0%" },
6023
6023
  { label: "右", svg: Ms, value: "0% 0% 0% auto" },
6024
6024
  { label: "上", svg: Us, value: "auto 0% 0% 0%" },
6025
- { label: "下", svg: qs, value: "0% 0% auto 0%" },
6026
- { label: "填充", svg: Hs, value: "0% 0% 0% 0%" }
6025
+ { label: "下", svg: Hs, value: "0% 0% auto 0%" },
6026
+ { label: "填充", svg: qs, value: "0% 0% 0% 0%" }
6027
6027
  ], d = S(() => (e.styleJson.inset || "").split(" ")), m = (h) => {
6028
6028
  o.value = h, r.value = e.styleJson[h], a.value = !0;
6029
6029
  }, f = () => {
6030
6030
  a.value = !1, o.value = void 0, r.value = void 0;
6031
6031
  };
6032
- return (h, c) => (p(), y(n(H), {
6032
+ return (h, c) => (p(), y(n(q), {
6033
6033
  title: "定位",
6034
6034
  class: "v-sub-panel",
6035
6035
  size: "small",
@@ -6214,7 +6214,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
6214
6214
  onClick: c[7] || (c[7] = (_) => m("left"))
6215
6215
  }, F(e.styleJson.left || d.value[3] || "-"), 3)
6216
6216
  ], 512),
6217
- a.value ? (p(), y(Ln, {
6217
+ a.value ? (p(), y(Wn, {
6218
6218
  key: 0,
6219
6219
  auto: "",
6220
6220
  name: o.value,
@@ -6312,7 +6312,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
6312
6312
  { label: "删除线", value: "line-through", svg: ta },
6313
6313
  { label: "上划线", value: "overline", svg: na }
6314
6314
  ];
6315
- return (o, r) => (p(), y(n(H), {
6315
+ return (o, r) => (p(), y(n(q), {
6316
6316
  title: "文本",
6317
6317
  class: "v-sub-panel",
6318
6318
  size: "small",
@@ -6327,7 +6327,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
6327
6327
  inline: ""
6328
6328
  }, {
6329
6329
  default: b(() => [
6330
- (p(), j(O, null, L(t, (i) => v(n(M), {
6330
+ (p(), j(O, null, W(t, (i) => v(n(M), {
6331
6331
  name: i.name,
6332
6332
  label: i.label,
6333
6333
  setters: { name: i.setter },
@@ -6417,7 +6417,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
6417
6417
  { label: "覆盖", value: "cover" },
6418
6418
  { label: "填充", value: "contain" }
6419
6419
  ];
6420
- return (i, g) => (p(), y(n(H), {
6420
+ return (i, g) => (p(), y(n(q), {
6421
6421
  title: "背景",
6422
6422
  class: "v-sub-panel",
6423
6423
  size: "small",
@@ -6529,7 +6529,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
6529
6529
  {
6530
6530
  immediate: !0
6531
6531
  }
6532
- ), (r, i) => (p(), y(n(H), {
6532
+ ), (r, i) => (p(), y(n(q), {
6533
6533
  title: "边框",
6534
6534
  class: "v-sub-panel",
6535
6535
  size: "small",
@@ -6647,7 +6647,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
6647
6647
  r !== void 0 ? (Number(r) || 0) / 100 : void 0
6648
6648
  );
6649
6649
  }, a = () => Number(e.styleJson.opacity ?? 1) * 100;
6650
- return (o, r) => (p(), y(n(H), {
6650
+ return (o, r) => (p(), y(n(q), {
6651
6651
  title: "效果",
6652
6652
  class: "v-sub-panel",
6653
6653
  size: "small",
@@ -6711,14 +6711,14 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
6711
6711
  const i = l.value?.getPropValue("style") || {};
6712
6712
  r !== void 0 ? i[o] = r : delete i[o], l.value?.setProp("style", i);
6713
6713
  };
6714
- return (o, r) => e.isStyleCodeMode ? (p(), y(Dr, { key: 0 })) : (p(), y(n(U), {
6714
+ return (o, r) => e.isStyleCodeMode ? (p(), y(Pr, { key: 0 })) : (p(), y(n(U), {
6715
6715
  key: `widget-style-${l.value?.id}`,
6716
6716
  class: "v-style-widget",
6717
6717
  direction: "column",
6718
6718
  fit: ""
6719
6719
  }, {
6720
6720
  default: b(() => [
6721
- (p(), y(Pr, {
6721
+ (p(), y(Dr, {
6722
6722
  key: `Layout${l.value?.id}`,
6723
6723
  "style-json": s.value,
6724
6724
  setStyle: a
@@ -6780,7 +6780,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
6780
6780
  class: "v-previewer",
6781
6781
  key: s.value
6782
6782
  }, [
6783
- v(n(Wn), {
6783
+ v(n(Ln), {
6784
6784
  mode: d.value,
6785
6785
  width: n(r),
6786
6786
  height: n(i)
@@ -6797,7 +6797,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
6797
6797
  }, 8, ["mode", "width", "height"])
6798
6798
  ]));
6799
6799
  }
6800
- }), Pi = /* @__PURE__ */ E({
6800
+ }), Di = /* @__PURE__ */ E({
6801
6801
  name: "NodePathWidget",
6802
6802
  inheritAttrs: !1,
6803
6803
  __name: "index",
@@ -6813,7 +6813,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
6813
6813
  "separator-icon": n(ya)
6814
6814
  }, {
6815
6815
  default: b(() => [
6816
- (p(!0), j(O, null, L(l.value, (i) => (p(), y(n(rl), {
6816
+ (p(!0), j(O, null, W(l.value, (i) => (p(), y(n(rl), {
6817
6817
  onClick: (g) => s(i),
6818
6818
  onMouseover: (g) => a(i)
6819
6819
  }, {
@@ -6826,7 +6826,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
6826
6826
  _: 1
6827
6827
  }, 8, ["separator-icon"])) : A("", !0);
6828
6828
  }
6829
- }), Di = /* @__PURE__ */ E({
6829
+ }), Pi = /* @__PURE__ */ E({
6830
6830
  name: "SchemaWidget",
6831
6831
  __name: "index",
6832
6832
  setup(u) {
@@ -6844,7 +6844,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
6844
6844
  le(g?.message);
6845
6845
  }
6846
6846
  };
6847
- return (o, r) => (p(), y(n(H), {
6847
+ return (o, r) => (p(), y(n(q), {
6848
6848
  class: "v-schema-widget",
6849
6849
  title: s.value,
6850
6850
  subtitle: "手动修改DSL有风险,可能导致页面无法加载,请确认您的操作无误。",
@@ -6884,7 +6884,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
6884
6884
  immediate: !0,
6885
6885
  deep: !0
6886
6886
  }
6887
- ), (r, i) => (p(), y(n(H), {
6887
+ ), (r, i) => (p(), y(n(q), {
6888
6888
  class: "v-raw-widget",
6889
6889
  title: o.value,
6890
6890
  subtitle: a.value,
@@ -6925,7 +6925,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
6925
6925
  const r = () => {
6926
6926
  s?.close();
6927
6927
  };
6928
- return e({ refresh: o }), (i, g) => (p(), y(n(H), {
6928
+ return e({ refresh: o }), (i, g) => (p(), y(n(q), {
6929
6929
  class: "v-docs-widget",
6930
6930
  size: "small",
6931
6931
  fit: "",
@@ -6957,14 +6957,14 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
6957
6957
  V("div", zi, "版本:" + F(n(Ra)), 1)
6958
6958
  ]));
6959
6959
  }
6960
- }), Wi = /* @__PURE__ */ E({
6960
+ }), Li = /* @__PURE__ */ E({
6961
6961
  name: "ProjectConfigWidget",
6962
6962
  __name: "index",
6963
6963
  setup(u) {
6964
6964
  const { project: e } = Re(), t = (l) => {
6965
6965
  e.value?.setConfig(l);
6966
6966
  };
6967
- return (l, s) => (p(), y(n(H), {
6967
+ return (l, s) => (p(), y(n(q), {
6968
6968
  class: "v-project-config-widget",
6969
6969
  title: "项目配置"
6970
6970
  }, {
@@ -6985,7 +6985,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
6985
6985
  v(n(T), {
6986
6986
  label: "Logo",
6987
6987
  name: "logo",
6988
- editor: Wt,
6988
+ editor: Lt,
6989
6989
  props: { attachment: { accept: ".png,.jpg,.jpeg" } }
6990
6990
  }),
6991
6991
  v(n(T), {
@@ -7012,7 +7012,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
7012
7012
  Toolbar: go,
7013
7013
  Actions: ho,
7014
7014
  Pages: Mo,
7015
- Blocks: qo,
7015
+ Blocks: Ho,
7016
7016
  Components: Ko,
7017
7017
  Outline: Qo,
7018
7018
  History: Yo,
@@ -7028,13 +7028,13 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
7028
7028
  DataSources: Er,
7029
7029
  Style: Ai,
7030
7030
  Previewer: Ei,
7031
- NodePath: Pi,
7032
- Schema: Di,
7031
+ NodePath: Di,
7032
+ Schema: Pi,
7033
7033
  Raw: Ii,
7034
7034
  Docs: Bi,
7035
7035
  About: Fi,
7036
- ProjectConfig: Wi
7037
- }, Li = [
7036
+ ProjectConfig: Li
7037
+ }, Wi = [
7038
7038
  {
7039
7039
  name: "Logo",
7040
7040
  region: "Brand",
@@ -7272,7 +7272,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
7272
7272
  version: "latest",
7273
7273
  library: "VueRouter",
7274
7274
  urls: ["@vtj/materials/deps/vue-router/vue-router.global.prod.js"],
7275
- assetsLibrary: Pl,
7275
+ assetsLibrary: Dl,
7276
7276
  required: !0,
7277
7277
  official: !0,
7278
7278
  enabled: !0
@@ -7867,7 +7867,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
7867
7867
  }
7868
7868
  }
7869
7869
  }
7870
- ], qi = [
7870
+ ], Hi = [
7871
7871
  {
7872
7872
  name: _t,
7873
7873
  version: "latest",
@@ -7877,7 +7877,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
7877
7877
  categories: Ji,
7878
7878
  components: Ui
7879
7879
  }
7880
- ], Hi = /* @__PURE__ */ E({
7880
+ ], qi = /* @__PURE__ */ E({
7881
7881
  name: "StringSetter",
7882
7882
  __name: "string",
7883
7883
  setup(u) {
@@ -7945,7 +7945,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
7945
7945
  const e = u;
7946
7946
  return (t, l) => (p(), y(n(ul), ie({ clearable: "" }, t.$attrs), {
7947
7947
  default: b(() => [
7948
- (p(!0), j(O, null, L(e.options, (s) => (p(), y(n(cl), ie({
7948
+ (p(!0), j(O, null, W(e.options, (s) => (p(), y(n(cl), ie({
7949
7949
  key: s.label,
7950
7950
  ref_for: !0
7951
7951
  }, s), null, 16))), 128))
@@ -8148,7 +8148,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
8148
8148
  size: "small"
8149
8149
  }, t.$attrs), {
8150
8150
  default: b(() => [
8151
- (p(!0), j(O, null, L(e.options, (s) => (p(), y(n(nt), {
8151
+ (p(!0), j(O, null, W(e.options, (s) => (p(), y(n(nt), {
8152
8152
  label: s.label,
8153
8153
  value: s.value,
8154
8154
  title: s.label
@@ -8183,7 +8183,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
8183
8183
  class: "v-tag-setter",
8184
8184
  size: "small"
8185
8185
  }, a.$attrs), [
8186
- (p(!0), j(O, null, L(t.options, (r) => (p(), j("span", {
8186
+ (p(!0), j(O, null, W(t.options, (r) => (p(), j("span", {
8187
8187
  label: r.value,
8188
8188
  title: r.label,
8189
8189
  class: X({
@@ -8294,7 +8294,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
8294
8294
  l("change", s.value.join(" ").trim());
8295
8295
  };
8296
8296
  return (o, r) => (p(), j("div", iu, [
8297
- (p(!0), j(O, null, L(t.sections, (i) => (p(), y(Jn, {
8297
+ (p(!0), j(O, null, W(t.sections, (i) => (p(), y(Jn, {
8298
8298
  name: i - 1,
8299
8299
  modelValue: s.value[i - 1],
8300
8300
  "onUpdate:modelValue": (g) => s.value[i - 1] = g,
@@ -8333,12 +8333,12 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
8333
8333
  onClick: a,
8334
8334
  class: "v-slider-setter__close",
8335
8335
  size: 16,
8336
- icon: n(Pa)
8336
+ icon: n(Da)
8337
8337
  }, null, 8, ["icon"])
8338
8338
  ]));
8339
8339
  }
8340
8340
  }), ee = {
8341
- StringSetter: Hi,
8341
+ StringSetter: qi,
8342
8342
  BooleanSetter: Gi,
8343
8343
  ExpressionSetter: Qi,
8344
8344
  SelectSetter: Yi,
@@ -8353,7 +8353,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
8353
8353
  ImageSetter: ru,
8354
8354
  SectionSetter: uu,
8355
8355
  SliderSetter: du,
8356
- FileSetter: Wt
8356
+ FileSetter: Lt
8357
8357
  }, pu = {
8358
8358
  name: "StringSetter",
8359
8359
  component: ee.StringSetter,
@@ -8498,7 +8498,7 @@ class vu {
8498
8498
  }
8499
8499
  createWidgets() {
8500
8500
  const e = {};
8501
- for (const t of Li)
8501
+ for (const t of Wi)
8502
8502
  e[t.name] = t;
8503
8503
  return e;
8504
8504
  }
@@ -8665,9 +8665,9 @@ class bu {
8665
8665
  s.type = "module", s.src = t, s.onload = () => l && l(), e.document.head.appendChild(s);
8666
8666
  }
8667
8667
  async loadScripts(e, t) {
8668
- const l = this.engine?.project.value, { __BASE_PATH__: s = "/" } = l || {}, a = "", o = Date.now(), r = `${a}${s}${Wa}?t=${o}`;
8668
+ const l = this.engine?.project.value, { __BASE_PATH__: s = "/" } = l || {}, a = "", o = Date.now(), r = `${a}${s}${La}?t=${o}`;
8669
8669
  this.enabled === void 0 && (this.enabled = await this.checkDevtools(r)), this.enabled && this.createScript(e, r, () => {
8670
- const i = `${a}${s}${La}?t=${o}`;
8670
+ const i = `${a}${s}${Wa}?t=${o}`;
8671
8671
  this.isInited ? this.createScript(e, i, t) : t();
8672
8672
  });
8673
8673
  }
@@ -8756,14 +8756,17 @@ class _u {
8756
8756
  ), t.addEventListener(
8757
8757
  "scroll",
8758
8758
  this.bind(this.onViewChange, "onViewChange")
8759
- ), e.addEventListener("resize", this.bind(this.onViewChange, "onViewChange")), t.addEventListener("mouseleave", this.bind(this.onLeave, "onLeave")), t.addEventListener("dragleave", this.bind(this.onLeave, "onLeave")), t.addEventListener("dragover", this.bind(this.onDragOver, "onDragOver")), t.addEventListener("drop", this.bind(this.onDrop, "onDrop")), t.addEventListener(
8759
+ ), e.addEventListener("resize", this.bind(this.onViewChange, "onViewChange")), t.addEventListener("mouseleave", this.bind(this.onLeave, "onLeave")), t.addEventListener("dragleave", this.bind(this.onLeave, "onLeave")), t.addEventListener("dragover", this.bind(this.onDragOver, "onDragOver")), t.addEventListener(
8760
+ "dragstart",
8761
+ this.bind(this.onDragStart, "onDragStart")
8762
+ ), t.addEventListener("dragend", this.bind(this.onDragEnd, "onDragEnd")), t.addEventListener("drop", this.bind(this.onDrop, "onDrop")), t.addEventListener(
8760
8763
  "click",
8761
8764
  this.bind(this.onSelected, "onSelected"),
8762
8765
  !0
8763
8766
  ), ne.on(
8764
8767
  wt,
8765
8768
  this.bind(this.onActiveChange, "onActiveChange")
8766
- ), ne.on(qe, this.bind(this.onViewChange, "onViewChange")), J(
8769
+ ), ne.on(He, this.bind(this.onViewChange, "onViewChange")), J(
8767
8770
  this.devtools.isOpen,
8768
8771
  (l) => {
8769
8772
  l && this.cleanHelper();
@@ -8784,18 +8787,21 @@ class _u {
8784
8787
  ), t.removeEventListener("mouseleave", this.bind(this.onLeave, "onLeave")), t.removeEventListener("dragleave", this.bind(this.onLeave, "onLeave")), t.removeEventListener(
8785
8788
  "dragover",
8786
8789
  this.bind(this.onDragOver, "onDragOver")
8787
- ), t.removeEventListener("drop", this.bind(this.onDrop, "onDrop")), t.removeEventListener("click", this.bind(this.onSelected, "onSelected")), ne.off(
8790
+ ), t.removeEventListener(
8791
+ "dragstart",
8792
+ this.bind(this.onDragStart, "onDragStart")
8793
+ ), t.removeEventListener("dragend", this.bind(this.onDragEnd, "onDragEnd")), t.removeEventListener("drop", this.bind(this.onDrop, "onDrop")), t.removeEventListener("click", this.bind(this.onSelected, "onSelected")), ne.off(
8788
8794
  wt,
8789
8795
  this.bind(this.onActiveChange, "onActiveChange")
8790
8796
  ), ne.off(
8791
- qe,
8797
+ He,
8792
8798
  this.bind(this.onViewChange, "onViewChange")
8793
8799
  );
8794
8800
  }
8795
8801
  onMouseOver(e) {
8796
8802
  if (this.devtools.isOpen.value) return;
8797
8803
  const t = this.getHelper(e);
8798
- t?.model.id !== this.selected.value?.model.id && (this.hover.value = t);
8804
+ t && t?.model.id !== this.selected.value?.model.id && (this.hover.value = t);
8799
8805
  }
8800
8806
  onViewChange() {
8801
8807
  this.updateRect();
@@ -8865,6 +8871,15 @@ class _u {
8865
8871
  const { model: l, type: s } = t;
8866
8872
  l && await this.allowDrop(l, s) ? (e.preventDefault(), this.dropping.value = t) : this.dropping.value = null;
8867
8873
  }
8874
+ onDragStart(e) {
8875
+ const t = this.getHelper(e);
8876
+ if (!t) return;
8877
+ const { model: l } = t, s = this.engine.assets.componentMap.get(l.name);
8878
+ s && this.setDragging(s), this.setDraggingNode(l);
8879
+ }
8880
+ onDragEnd() {
8881
+ this.setDraggingNode(null), this.setDragging(null);
8882
+ }
8868
8883
  isVtjElement(e) {
8869
8884
  return !!e.__vtj__ && !!e.__context__;
8870
8885
  }
@@ -9068,7 +9083,7 @@ class wu {
9068
9083
  } catch (f) {
9069
9084
  le(f.message || "未知错误", "运行时错误"), console.error(f);
9070
9085
  }
9071
- this.context = d, ne.on(qe, this.nodeChange), ne.on(kt, this.blockChange);
9086
+ this.context = d, ne.on(He, this.nodeChange), ne.on(kt, this.blockChange);
9072
9087
  }
9073
9088
  dispose() {
9074
9089
  if (this.app) {
@@ -9076,7 +9091,7 @@ class wu {
9076
9091
  const e = this.app._container;
9077
9092
  e && e.parentNode && (e.parentNode.removeChild(e), this.app._container = null), this.app = null;
9078
9093
  }
9079
- this.dsl = null, this.context = null, ne.off(qe, this.nodeChange), ne.off(kt, this.blockChange);
9094
+ this.dsl = null, this.context = null, ne.off(He, this.nodeChange), ne.off(kt, this.blockChange);
9080
9095
  }
9081
9096
  updateChild(e, t) {
9082
9097
  const l = t.children || t.nodes || [];
@@ -9161,12 +9176,12 @@ class ku extends wn {
9161
9176
  background: #fff;
9162
9177
  }
9163
9178
  </style>
9164
- ${ql(r)}
9179
+ ${Hl(r)}
9165
9180
  </head>
9166
9181
  <body>
9167
9182
  </body>
9168
- ${qt(o)}
9169
- ${qt(i)}
9183
+ ${Ht(o)}
9184
+ ${Ht(i)}
9170
9185
  <script>
9171
9186
  __simulator__.emitReady(${JSON.stringify(g)},
9172
9187
  ${JSON.stringify(d)},
@@ -9203,18 +9218,18 @@ class ku extends wn {
9203
9218
  const z = I.names || [];
9204
9219
  if (I.name === _t)
9205
9220
  z.forEach((R) => {
9206
- const D = _.get(R), B = D?.package || "", P = Dl[B], G = m[P];
9207
- G && D && (h[R] = Ht(D, G));
9221
+ const P = _.get(R), B = P?.package || "", D = Pl[B], G = m[D];
9222
+ G && P && (h[R] = qt(P, G));
9208
9223
  });
9209
9224
  else {
9210
9225
  const R = m[l[I.library || ""]];
9211
- R && z.forEach((D) => {
9212
- const B = _.get(D);
9213
- B ? h[D] = Ht(B, R) : h[D] = R[D];
9226
+ R && z.forEach((P) => {
9227
+ const B = _.get(P);
9228
+ B ? h[P] = qt(B, R) : h[P] = R[P];
9214
9229
  });
9215
9230
  }
9216
9231
  }
9217
- const { adapter: w, globals: x } = d, C = Hl(
9232
+ const { adapter: w, globals: x } = d, C = ql(
9218
9233
  i.value?.apis,
9219
9234
  i.value?.meta,
9220
9235
  w
@@ -9282,7 +9297,7 @@ class Su {
9282
9297
  return t;
9283
9298
  }
9284
9299
  load(e) {
9285
- const t = [...qi, ...e].filter((l) => !!l);
9300
+ const t = [...Hi, ...e].filter((l) => !!l);
9286
9301
  t.sort((l, s) => l.order - s.order);
9287
9302
  for (let l of t)
9288
9303
  l.components && (this.components = this.components.concat(l.components));
@@ -9388,7 +9403,7 @@ class ic extends wn {
9388
9403
  Ve.warn("VTJEngine constructor param [ container ] is undefined");
9389
9404
  }
9390
9405
  bindEvents() {
9391
- ne.on(Tl, (t) => this.saveProject(t)), ne.on(Bl, (t) => this.saveBlockFile(t)), ne.on(Rl, (t) => this.saveBlockFile(t)), ne.on($l, () => this.saveMaterials()), ne.on(wt, (t) => this.activeFile(t)), ne.on(Ol, () => this.publish()), ne.on(zl, () => this.publishCurrent()), ne.on(kt, (t) => this.changeFile(t)), ne.on(qe, () => this.changeCurrentFile()), ne.on(Fl, (t) => this.saveHistory(t)), ne.on(Wl, (t) => this.loadHistory(t));
9406
+ ne.on(Tl, (t) => this.saveProject(t)), ne.on(Bl, (t) => this.saveBlockFile(t)), ne.on(Rl, (t) => this.saveBlockFile(t)), ne.on($l, () => this.saveMaterials()), ne.on(wt, (t) => this.activeFile(t)), ne.on(Ol, () => this.publish()), ne.on(zl, () => this.publishCurrent()), ne.on(kt, (t) => this.changeFile(t)), ne.on(He, () => this.changeCurrentFile()), ne.on(Fl, (t) => this.saveHistory(t)), ne.on(Ll, (t) => this.loadHistory(t));
9392
9407
  }
9393
9408
  async activeFile(t) {
9394
9409
  await ke();
@@ -9460,7 +9475,7 @@ class ic extends wn {
9460
9475
  async initHistory(t) {
9461
9476
  if (t) {
9462
9477
  const l = await this.service.getHistory(t.id).catch(() => null);
9463
- this.history.value = new Ll(
9478
+ this.history.value = new Wl(
9464
9479
  Object.assign(l || {}, { id: t.id })
9465
9480
  );
9466
9481
  } else
@@ -9805,7 +9820,7 @@ const Ee = E({
9805
9820
  isPreview: l
9806
9821
  }), (C, I) => (p(), y(n(gl), { locale: n(yl) }, {
9807
9822
  default: b(() => [
9808
- v(n(Lt), { class: "v-skeleton" }, {
9823
+ v(n(Wt), { class: "v-skeleton" }, {
9809
9824
  default: b(() => [
9810
9825
  v(n(fl), {
9811
9826
  class: "v-skeleton__header",
@@ -9831,9 +9846,9 @@ const Ee = E({
9831
9846
  ]),
9832
9847
  _: 1
9833
9848
  }, 8, ["height"]),
9834
- v(n(Lt), { class: "v-skeleton__wrapper" }, {
9849
+ v(n(Wt), { class: "v-skeleton__wrapper" }, {
9835
9850
  default: b(() => [
9836
- l.value ? A("", !0) : Pe((p(), y(n(Nt), {
9851
+ l.value ? A("", !0) : De((p(), y(n(Nt), {
9837
9852
  key: 0,
9838
9853
  width: t.leftWidth,
9839
9854
  class: X(["v-skeleton__left", {
@@ -9860,7 +9875,7 @@ const Ee = E({
9860
9875
  region: "Preview",
9861
9876
  preview: l.value
9862
9877
  }, null, 8, ["preview"])) : A("", !0),
9863
- Pe(v(n(Ee), {
9878
+ De(v(n(Ee), {
9864
9879
  ref_key: "workspace",
9865
9880
  ref: f,
9866
9881
  region: "Workspace"
@@ -9870,7 +9885,7 @@ const Ee = E({
9870
9885
  ]),
9871
9886
  _: 1
9872
9887
  }),
9873
- l.value ? A("", !0) : Pe((p(), y(n(Nt), {
9888
+ l.value ? A("", !0) : De((p(), y(n(Nt), {
9874
9889
  key: 1,
9875
9890
  width: t.rightWidth,
9876
9891
  class: "v-skeleton__right"
@@ -9914,7 +9929,7 @@ const Ee = E({
9914
9929
  }), Vu = ["title"], Au = { class: "v-setter__content" }, ju = {
9915
9930
  key: 0,
9916
9931
  class: "v-setter__input"
9917
- }, Eu = { class: "v-setter__action" }, Pu = "{{", Du = "}}", Iu = /* @__PURE__ */ E({
9932
+ }, Eu = { class: "v-setter__action" }, Du = "{{", Pu = "}}", Iu = /* @__PURE__ */ E({
9918
9933
  __name: "setter",
9919
9934
  props: {
9920
9935
  context: {},
@@ -10003,16 +10018,16 @@ const Ee = E({
10003
10018
  "model-value": "JSExpression"
10004
10019
  }, {
10005
10020
  prefix: b(() => [
10006
- K(F(Pu))
10021
+ K(F(Du))
10007
10022
  ]),
10008
10023
  suffix: b(() => [
10009
- K(F(Du))
10024
+ K(F(Pu))
10010
10025
  ]),
10011
10026
  _: 1
10012
10027
  })) : A("", !0)
10013
10028
  ])) : A("", !0),
10014
10029
  V("div", Eu, [
10015
- t.variable ? (p(), y(n(Da), {
10030
+ t.variable ? (p(), y(n(Pa), {
10016
10031
  key: 0,
10017
10032
  onClick: h,
10018
10033
  class: X(["v-icon-vars", { "is-active": i.value }]),
@@ -10028,7 +10043,7 @@ const Ee = E({
10028
10043
  dropdown: b(() => [
10029
10044
  v(n(mn), null, {
10030
10045
  default: b(() => [
10031
- (p(!0), j(O, null, L(t.setters, (I) => (p(), y(n(ht), {
10046
+ (p(!0), j(O, null, W(t.setters, (I) => (p(), y(n(ht), {
10032
10047
  command: I,
10033
10048
  key: I.name
10034
10049
  }, {
@@ -10089,12 +10104,12 @@ const Ee = E({
10089
10104
  region: {}
10090
10105
  },
10091
10106
  setup(u, { expose: e }) {
10092
- const t = u, { widgets: l, widgetsRef: s } = De(t.region);
10107
+ const t = u, { widgets: l, widgetsRef: s } = Pe(t.region);
10093
10108
  return e({
10094
10109
  widgets: l,
10095
10110
  widgetsRef: s
10096
10111
  }), (a, o) => (p(), j("div", Ru, [
10097
- (p(!0), j(O, null, L(n(l), (r) => (p(), y(n(Ie), {
10112
+ (p(!0), j(O, null, W(n(l), (r) => (p(), y(n(Ie), {
10098
10113
  ref_for: !0,
10099
10114
  ref_key: "widgetsRef",
10100
10115
  ref: s,
@@ -10111,12 +10126,12 @@ const Ee = E({
10111
10126
  preview: { type: Boolean }
10112
10127
  },
10113
10128
  setup(u, { expose: e }) {
10114
- const t = u, { widgets: l, widgetsRef: s } = De(t.region);
10129
+ const t = u, { widgets: l, widgetsRef: s } = Pe(t.region);
10115
10130
  return e({
10116
10131
  widgets: l,
10117
10132
  widgetsRef: s
10118
10133
  }), (a, o) => (p(), j("div", Ou, [
10119
- (p(!0), j(O, null, L(n(l), (r) => (p(), y(n(Ie), {
10134
+ (p(!0), j(O, null, W(n(l), (r) => (p(), y(n(Ie), {
10120
10135
  ref_for: !0,
10121
10136
  ref_key: "widgetsRef",
10122
10137
  ref: s,
@@ -10126,7 +10141,7 @@ const Ee = E({
10126
10141
  }, null, 8, ["region", "widget", "preview"]))), 256))
10127
10142
  ]));
10128
10143
  }
10129
- }), Fu = { class: "v-actions-region" }, Wu = /* @__PURE__ */ E({
10144
+ }), Fu = { class: "v-actions-region" }, Lu = /* @__PURE__ */ E({
10130
10145
  name: "ActionsRegion",
10131
10146
  inheritAttrs: !1,
10132
10147
  __name: "actions",
@@ -10134,12 +10149,12 @@ const Ee = E({
10134
10149
  region: {}
10135
10150
  },
10136
10151
  setup(u, { expose: e }) {
10137
- const t = u, { widgets: l, widgetsRef: s } = De(t.region);
10152
+ const t = u, { widgets: l, widgetsRef: s } = Pe(t.region);
10138
10153
  return e({
10139
10154
  widgets: l,
10140
10155
  widgetsRef: s
10141
10156
  }), (a, o) => (p(), j("div", Fu, [
10142
- (p(!0), j(O, null, L(n(l), (r) => (p(), y(n(Ie), {
10157
+ (p(!0), j(O, null, W(n(l), (r) => (p(), y(n(Ie), {
10143
10158
  ref_for: !0,
10144
10159
  ref_key: "widgetsRef",
10145
10160
  ref: s,
@@ -10148,7 +10163,7 @@ const Ee = E({
10148
10163
  }, null, 8, ["region", "widget"]))), 256))
10149
10164
  ]));
10150
10165
  }
10151
- }), Lu = { class: "v-apps-region" }, Nu = { class: "v-apps-region__header" }, Ju = { class: "v-apps-region__top" }, Mu = { class: "v-apps-region__bottom" }, Uu = { class: "v-apps-region__panels" }, qu = /* @__PURE__ */ E({
10166
+ }), Wu = { class: "v-apps-region" }, Nu = { class: "v-apps-region__header" }, Ju = { class: "v-apps-region__top" }, Mu = { class: "v-apps-region__bottom" }, Uu = { class: "v-apps-region__panels" }, Hu = /* @__PURE__ */ E({
10152
10167
  name: "AppsRegion",
10153
10168
  inheritAttrs: !1,
10154
10169
  __name: "apps",
@@ -10157,7 +10172,7 @@ const Ee = E({
10157
10172
  index: { default: 0 }
10158
10173
  },
10159
10174
  setup(u, { expose: e }) {
10160
- const t = u, l = de(), { widgets: s, widgetsRef: a } = De(t.region), o = S(() => s.value.filter((c) => c.openType === "panel")), r = S(() => s.value.filter((c) => c.openType !== "panel")), i = o.value[t.index], g = k(i), d = k(i), m = (c) => {
10175
+ const t = u, l = de(), { widgets: s, widgetsRef: a } = Pe(t.region), o = S(() => s.value.filter((c) => c.openType === "panel")), r = S(() => s.value.filter((c) => c.openType !== "panel")), i = o.value[t.index], g = k(i), d = k(i), m = (c) => {
10161
10176
  g.value = c, d.value = d.value?.name === c.name ? null : c;
10162
10177
  }, f = (c) => {
10163
10178
  c.openType === "link" && c.url && window.open(c.url), c.openType === "dialog" && kl({
@@ -10176,10 +10191,10 @@ const Ee = E({
10176
10191
  const _ = o.value.find((w) => w.name === c);
10177
10192
  g.value = _, d.value = _;
10178
10193
  }
10179
- }), (c, _) => (p(), j("div", Lu, [
10194
+ }), (c, _) => (p(), j("div", Wu, [
10180
10195
  V("div", Nu, [
10181
10196
  V("div", Ju, [
10182
- (p(!0), j(O, null, L(o.value, (w) => (p(), y(n(en), {
10197
+ (p(!0), j(O, null, W(o.value, (w) => (p(), y(n(en), {
10183
10198
  key: `icon-${w.name}`,
10184
10199
  icon: w.icon,
10185
10200
  label: w.label,
@@ -10189,7 +10204,7 @@ const Ee = E({
10189
10204
  }, null, 8, ["icon", "label", "active", "open", "onClick"]))), 128))
10190
10205
  ]),
10191
10206
  V("div", Mu, [
10192
- (p(!0), j(O, null, L(r.value, (w) => (p(), y(n(en), {
10207
+ (p(!0), j(O, null, W(r.value, (w) => (p(), y(n(en), {
10193
10208
  key: `icon-${w.name}`,
10194
10209
  icon: w.icon,
10195
10210
  label: w.label,
@@ -10198,7 +10213,7 @@ const Ee = E({
10198
10213
  ])
10199
10214
  ]),
10200
10215
  V("div", Uu, [
10201
- (p(!0), j(O, null, L(o.value, (w) => (p(), y(cn, {
10216
+ (p(!0), j(O, null, W(o.value, (w) => (p(), y(cn, {
10202
10217
  key: w.name
10203
10218
  }, [
10204
10219
  g.value?.name === w.name ? (p(), y(n(Ie), {
@@ -10213,14 +10228,14 @@ const Ee = E({
10213
10228
  ])
10214
10229
  ]));
10215
10230
  }
10216
- }), Hu = /* @__PURE__ */ E({
10231
+ }), qu = /* @__PURE__ */ E({
10217
10232
  name: "WorkspaceRegion",
10218
10233
  __name: "workspace",
10219
10234
  props: {
10220
10235
  region: {}
10221
10236
  },
10222
10237
  setup(u, { expose: e }) {
10223
- const t = u, { widgets: l, widgetsRef: s } = De(t.region), a = Ke(
10238
+ const t = u, { widgets: l, widgetsRef: s } = Pe(t.region), a = Ke(
10224
10239
  l.value.map((c) => ({
10225
10240
  name: c.name,
10226
10241
  command: c.name,
@@ -10270,7 +10285,7 @@ const Ee = E({
10270
10285
  onActionClick: h
10271
10286
  }, {
10272
10287
  default: b(() => [
10273
- (p(!0), j(O, null, L(n(l), (w) => (p(), j(O, {
10288
+ (p(!0), j(O, null, W(n(l), (w) => (p(), j(O, {
10274
10289
  key: w.name
10275
10290
  }, [
10276
10291
  i.value === w.name ? (p(), y(n(Ie), {
@@ -10295,7 +10310,7 @@ const Ee = E({
10295
10310
  setup(u, { expose: e }) {
10296
10311
  const t = u, l = de(), { current: s } = ue(), { selected: a, isSelectBlock: o } = xe(), r = S(
10297
10312
  () => o.value ? he.Block : he.Node
10298
- ), { widgets: i, widgetsRef: g } = De(t.region, r), d = k(), m = k(!1), f = S(() => i.value.map((w) => ({
10313
+ ), { widgets: i, widgetsRef: g } = Pe(t.region, r), d = k(), m = k(!1), f = S(() => i.value.map((w) => ({
10299
10314
  name: w.name,
10300
10315
  label: w.label,
10301
10316
  actions: w.name === "Style" ? [
@@ -10362,7 +10377,7 @@ const Ee = E({
10362
10377
  default: b(() => [
10363
10378
  v(n(be), {
10364
10379
  onClick: c,
10365
- icon: n(Dn),
10380
+ icon: n(Pn),
10366
10381
  mode: "text",
10367
10382
  label: "帮助"
10368
10383
  }, null, 8, ["icon"])
@@ -10387,7 +10402,7 @@ const Ee = E({
10387
10402
  onActionClick: _
10388
10403
  }, {
10389
10404
  default: b(() => [
10390
- (p(!0), j(O, null, L(n(i), (C) => (p(), j(O, {
10405
+ (p(!0), j(O, null, W(n(i), (C) => (p(), j(O, {
10391
10406
  key: C.name
10392
10407
  }, [
10393
10408
  d.value === C.name ? (p(), y(n(Ie), {
@@ -10426,12 +10441,12 @@ const Ee = E({
10426
10441
  region: {}
10427
10442
  },
10428
10443
  setup(u, { expose: e }) {
10429
- const t = u, { widgets: l, widgetsRef: s } = De(t.region);
10444
+ const t = u, { widgets: l, widgetsRef: s } = Pe(t.region);
10430
10445
  return e({
10431
10446
  widgets: l,
10432
10447
  widgetsRef: s
10433
10448
  }), (a, o) => (p(), j("div", Xu, [
10434
- (p(!0), j(O, null, L(n(l), (r) => (p(), y(n(Ie), {
10449
+ (p(!0), j(O, null, W(n(l), (r) => (p(), y(n(Ie), {
10435
10450
  ref_for: !0,
10436
10451
  ref_key: "widgetsRef",
10437
10452
  ref: s,
@@ -10447,7 +10462,7 @@ const Ee = E({
10447
10462
  region: {}
10448
10463
  },
10449
10464
  setup(u, { expose: e }) {
10450
- const t = u, { widgets: l, widgetsRef: s } = De(t.region), a = Ke(
10465
+ const t = u, { widgets: l, widgetsRef: s } = Pe(t.region), a = Ke(
10451
10466
  l.value.map((i) => ({
10452
10467
  name: i.name,
10453
10468
  command: i.name,
@@ -10467,7 +10482,7 @@ const Ee = E({
10467
10482
  "onUpdate:modelValue": g[0] || (g[0] = (d) => r.value = d)
10468
10483
  }, {
10469
10484
  default: b(() => [
10470
- (p(!0), j(O, null, L(n(l), (d) => (p(), y(cn, {
10485
+ (p(!0), j(O, null, W(n(l), (d) => (p(), y(cn, {
10471
10486
  key: d.name
10472
10487
  }, [
10473
10488
  r.value === d.name ? (p(), y(n(Ie), {
@@ -10487,9 +10502,9 @@ const Ee = E({
10487
10502
  EmptyRegion: Bu,
10488
10503
  Brand: $u,
10489
10504
  Toolbar: zu,
10490
- Actions: Wu,
10491
- Apps: qu,
10492
- Workspace: Hu,
10505
+ Actions: Lu,
10506
+ Apps: Hu,
10507
+ Workspace: qu,
10493
10508
  Settings: Gu,
10494
10509
  Status: Ku,
10495
10510
  Preview: Qu
@@ -10512,7 +10527,7 @@ export {
10512
10527
  $a as MOUSE_EVENT_LIST,
10513
10528
  we as NAME_REGEX,
10514
10529
  Xt as PAD_SIZE,
10515
- H as Panel,
10530
+ q as Panel,
10516
10531
  Na as RegionType,
10517
10532
  Ee as RegionWrapper,
10518
10533
  wu as Renderer,
@@ -10525,17 +10540,17 @@ export {
10525
10540
  ct as Tabs,
10526
10541
  Ra as VTJ_DESIGNER_VERSION,
10527
10542
  Kt as VUE_DEVTOOLS_FRAME_STATE_KEY,
10528
- La as VUE_DEVTOOLS_OVERLAY_PATH,
10529
- Wa as VUE_DEVTOOLS_PATH,
10543
+ Wa as VUE_DEVTOOLS_OVERLAY_PATH,
10544
+ La as VUE_DEVTOOLS_PATH,
10530
10545
  br as VariableBinder,
10531
- Lo as Viewer,
10532
- Wn as Viewport,
10546
+ Wo as Viewer,
10547
+ Ln as Viewport,
10533
10548
  he as WidgetGroup,
10534
10549
  Ie as WidgetWrapper,
10535
10550
  Ni as builtInDeps,
10536
- qi as builtInMaterials,
10551
+ Hi as builtInMaterials,
10537
10552
  mu as builtInSetters,
10538
- Li as builtInWidgets,
10553
+ Wi as builtInWidgets,
10539
10554
  Fe as confirm,
10540
10555
  yu as createSlotsPicker,
10541
10556
  pu as defaultSetter,