@vtj/designer 0.8.143 → 0.8.145

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 L, 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 Lt, 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 Wl, BlockModel as Ut, HistoryModel as Ll } 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 Ws, IconPositionBottomLeft as Ls, 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.143
17
+ * @version 0.8.145
18
18
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
19
19
  */
20
- const Ra = "0.8.143", Gt = {
20
+ const Ra = "0.8.145", Gt = {
21
21
  width: 390,
22
22
  height: 844
23
23
  }, Xt = {
@@ -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: "代码错误",
@@ -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,7 +1095,7 @@ 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, [
1098
+ V("div", Po, [
1099
1099
  (p(!0), j(O, null, L(i.value, (_) => (p(), y(n(Se), {
1100
1100
  icon: _[1],
1101
1101
  onClick: (w) => g(_[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: "显示",
@@ -1741,7 +1741,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1741
1741
  l("pick", d.path);
1742
1742
  };
1743
1743
  return (d, m) => (p(), j("div", Wo, [
1744
- d.context ? (p(), y(n(Pt), {
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),
@@ -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(Lo, {
1884
1884
  context: t.context,
1885
1885
  onCopy: w,
1886
1886
  onPick: _
@@ -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": "",
@@ -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, L(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",
@@ -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),
@@ -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),
@@ -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((W) => W.slot)) return i(P);
2537
+ for (const W of P) {
2538
+ const H = W.slot?.name || "default";
2539
+ D[H] || (D[H] = []), D[H].push(W);
2540
2540
  }
2541
2541
  const me = [];
2542
- for (const [W, q] of Object.entries(P))
2542
+ for (const [W, H] of Object.entries(D))
2543
2543
  me.push({
2544
2544
  id: `${B.id}-${W}`,
2545
2545
  label: `#${W}`,
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) => {
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
2585
  const G = B.data, W = {
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, W), 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
2608
  const Le = G.model;
2609
2609
  delete Le.slot, s.value?.move(Le, 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 W = me.model, H = { before: "left", after: "right" }[D] || "inner";
2613
2613
  if (!await t.value?.allowDrop(
2614
2614
  W,
2615
- q
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" ? W : W.parent
2624
2624
  );
2625
2625
  if ($e !== null) {
2626
2626
  const Le = G.model;
2627
- Le.slot = $e, s.value?.move(Le, W, q);
2627
+ Le.slot = $e, s.value?.move(Le, W, 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,
@@ -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: "",
@@ -3261,7 +3261,7 @@ 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: "",
@@ -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,7 +3458,7 @@ 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"
@@ -3469,11 +3469,6 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
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",
@@ -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",
@@ -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",
@@ -4213,7 +4213,7 @@ 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",
@@ -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",
@@ -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, L(n(i), (_, w) => (p(), y(n(q), {
4435
4435
  card: "",
4436
4436
  border: "",
4437
4437
  class: "v-sub-panel",
@@ -4736,8 +4736,8 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4736
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(), _ = () => {
4737
4737
  i.value = void 0, r.value = !0;
4738
4738
  }, w = (W) => {
4739
- const { name: q, modelValue: N } = W;
4740
- q === "edit" && x(N), q === "remove" && e.value?.removeProp(N);
4739
+ const { name: H, modelValue: N } = W;
4740
+ H === "edit" && x(N), H === "remove" && e.value?.removeProp(N);
4741
4741
  }, x = (W) => {
4742
4742
  i.value = W, r.value = !0;
4743
4743
  }, C = () => {
@@ -4745,31 +4745,31 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4745
4745
  }, I = (W) => {
4746
4746
  d.value = { ...W }, g.value = !0;
4747
4747
  }, z = (W) => {
4748
- const { name: q, modelValue: N } = W;
4749
- q === "edit" && I(N), q === "remove" && e.value?.removeEmit(N.name);
4748
+ const { name: H, modelValue: N } = W;
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) => {
4752
+ }, P = (W) => {
4753
4753
  f.value = { ...W }, m.value = !0;
4754
4754
  }, B = (W) => {
4755
- const { name: q, modelValue: N } = W;
4756
- q === "edit" && D(N), q === "remove" && e.value?.removeSlot(N.name);
4757
- }, P = () => {
4755
+ const { name: H, modelValue: N } = W;
4756
+ H === "edit" && P(N), H === "remove" && e.value?.removeSlot(N.name);
4757
+ }, D = () => {
4758
4758
  c.value = void 0, h.value = !0;
4759
4759
  }, G = (W) => {
4760
4760
  c.value = W, h.value = !0;
4761
4761
  }, me = (W) => {
4762
- const { name: q, modelValue: N } = W;
4763
- q === "edit" && G(N), q === "remove" && e.value?.removeInject(N);
4762
+ const { name: H, modelValue: N } = W;
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 (W, 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",
@@ -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",
@@ -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",
@@ -4847,7 +4847,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
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,14 +4865,14 @@ 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
4878
  (p(!0), j(O, null, L(o.value, (N) => (p(), y(n(ce), {
@@ -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",
@@ -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",
@@ -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"], Wr = ["d"], Lr = ["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",
@@ -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"] }]),
@@ -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",
@@ -6022,14 +6022,14 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
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",
@@ -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",
@@ -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
@@ -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",
@@ -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: "",
@@ -6964,7 +6964,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
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
  }, {
@@ -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,8 +7028,8 @@ 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,
@@ -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) {
@@ -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,
@@ -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("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")
8790
+ ), t.removeEventListener(
8791
+ "dragstart",
8792
+ this.bind(this.onDragStart, "onDragStart")
8787
8793
  ), 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,12 @@ 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
+ }
8868
8880
  isVtjElement(e) {
8869
8881
  return !!e.__vtj__ && !!e.__context__;
8870
8882
  }
@@ -9068,7 +9080,7 @@ class wu {
9068
9080
  } catch (f) {
9069
9081
  le(f.message || "未知错误", "运行时错误"), console.error(f);
9070
9082
  }
9071
- this.context = d, ne.on(qe, this.nodeChange), ne.on(kt, this.blockChange);
9083
+ this.context = d, ne.on(He, this.nodeChange), ne.on(kt, this.blockChange);
9072
9084
  }
9073
9085
  dispose() {
9074
9086
  if (this.app) {
@@ -9076,7 +9088,7 @@ class wu {
9076
9088
  const e = this.app._container;
9077
9089
  e && e.parentNode && (e.parentNode.removeChild(e), this.app._container = null), this.app = null;
9078
9090
  }
9079
- this.dsl = null, this.context = null, ne.off(qe, this.nodeChange), ne.off(kt, this.blockChange);
9091
+ this.dsl = null, this.context = null, ne.off(He, this.nodeChange), ne.off(kt, this.blockChange);
9080
9092
  }
9081
9093
  updateChild(e, t) {
9082
9094
  const l = t.children || t.nodes || [];
@@ -9161,12 +9173,12 @@ class ku extends wn {
9161
9173
  background: #fff;
9162
9174
  }
9163
9175
  </style>
9164
- ${ql(r)}
9176
+ ${Hl(r)}
9165
9177
  </head>
9166
9178
  <body>
9167
9179
  </body>
9168
- ${qt(o)}
9169
- ${qt(i)}
9180
+ ${Ht(o)}
9181
+ ${Ht(i)}
9170
9182
  <script>
9171
9183
  __simulator__.emitReady(${JSON.stringify(g)},
9172
9184
  ${JSON.stringify(d)},
@@ -9203,18 +9215,18 @@ class ku extends wn {
9203
9215
  const z = I.names || [];
9204
9216
  if (I.name === _t)
9205
9217
  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));
9218
+ const P = _.get(R), B = P?.package || "", D = Pl[B], G = m[D];
9219
+ G && P && (h[R] = qt(P, G));
9208
9220
  });
9209
9221
  else {
9210
9222
  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];
9223
+ R && z.forEach((P) => {
9224
+ const B = _.get(P);
9225
+ B ? h[P] = qt(B, R) : h[P] = R[P];
9214
9226
  });
9215
9227
  }
9216
9228
  }
9217
- const { adapter: w, globals: x } = d, C = Hl(
9229
+ const { adapter: w, globals: x } = d, C = ql(
9218
9230
  i.value?.apis,
9219
9231
  i.value?.meta,
9220
9232
  w
@@ -9282,7 +9294,7 @@ class Su {
9282
9294
  return t;
9283
9295
  }
9284
9296
  load(e) {
9285
- const t = [...qi, ...e].filter((l) => !!l);
9297
+ const t = [...Hi, ...e].filter((l) => !!l);
9286
9298
  t.sort((l, s) => l.order - s.order);
9287
9299
  for (let l of t)
9288
9300
  l.components && (this.components = this.components.concat(l.components));
@@ -9388,7 +9400,7 @@ class ic extends wn {
9388
9400
  Ve.warn("VTJEngine constructor param [ container ] is undefined");
9389
9401
  }
9390
9402
  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));
9403
+ 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(Wl, (t) => this.loadHistory(t));
9392
9404
  }
9393
9405
  async activeFile(t) {
9394
9406
  await ke();
@@ -9833,7 +9845,7 @@ const Ee = E({
9833
9845
  }, 8, ["height"]),
9834
9846
  v(n(Lt), { class: "v-skeleton__wrapper" }, {
9835
9847
  default: b(() => [
9836
- l.value ? A("", !0) : Pe((p(), y(n(Nt), {
9848
+ l.value ? A("", !0) : De((p(), y(n(Nt), {
9837
9849
  key: 0,
9838
9850
  width: t.leftWidth,
9839
9851
  class: X(["v-skeleton__left", {
@@ -9860,7 +9872,7 @@ const Ee = E({
9860
9872
  region: "Preview",
9861
9873
  preview: l.value
9862
9874
  }, null, 8, ["preview"])) : A("", !0),
9863
- Pe(v(n(Ee), {
9875
+ De(v(n(Ee), {
9864
9876
  ref_key: "workspace",
9865
9877
  ref: f,
9866
9878
  region: "Workspace"
@@ -9870,7 +9882,7 @@ const Ee = E({
9870
9882
  ]),
9871
9883
  _: 1
9872
9884
  }),
9873
- l.value ? A("", !0) : Pe((p(), y(n(Nt), {
9885
+ l.value ? A("", !0) : De((p(), y(n(Nt), {
9874
9886
  key: 1,
9875
9887
  width: t.rightWidth,
9876
9888
  class: "v-skeleton__right"
@@ -9914,7 +9926,7 @@ const Ee = E({
9914
9926
  }), Vu = ["title"], Au = { class: "v-setter__content" }, ju = {
9915
9927
  key: 0,
9916
9928
  class: "v-setter__input"
9917
- }, Eu = { class: "v-setter__action" }, Pu = "{{", Du = "}}", Iu = /* @__PURE__ */ E({
9929
+ }, Eu = { class: "v-setter__action" }, Du = "{{", Pu = "}}", Iu = /* @__PURE__ */ E({
9918
9930
  __name: "setter",
9919
9931
  props: {
9920
9932
  context: {},
@@ -10003,16 +10015,16 @@ const Ee = E({
10003
10015
  "model-value": "JSExpression"
10004
10016
  }, {
10005
10017
  prefix: b(() => [
10006
- K(F(Pu))
10018
+ K(F(Du))
10007
10019
  ]),
10008
10020
  suffix: b(() => [
10009
- K(F(Du))
10021
+ K(F(Pu))
10010
10022
  ]),
10011
10023
  _: 1
10012
10024
  })) : A("", !0)
10013
10025
  ])) : A("", !0),
10014
10026
  V("div", Eu, [
10015
- t.variable ? (p(), y(n(Da), {
10027
+ t.variable ? (p(), y(n(Pa), {
10016
10028
  key: 0,
10017
10029
  onClick: h,
10018
10030
  class: X(["v-icon-vars", { "is-active": i.value }]),
@@ -10089,7 +10101,7 @@ const Ee = E({
10089
10101
  region: {}
10090
10102
  },
10091
10103
  setup(u, { expose: e }) {
10092
- const t = u, { widgets: l, widgetsRef: s } = De(t.region);
10104
+ const t = u, { widgets: l, widgetsRef: s } = Pe(t.region);
10093
10105
  return e({
10094
10106
  widgets: l,
10095
10107
  widgetsRef: s
@@ -10111,7 +10123,7 @@ const Ee = E({
10111
10123
  preview: { type: Boolean }
10112
10124
  },
10113
10125
  setup(u, { expose: e }) {
10114
- const t = u, { widgets: l, widgetsRef: s } = De(t.region);
10126
+ const t = u, { widgets: l, widgetsRef: s } = Pe(t.region);
10115
10127
  return e({
10116
10128
  widgets: l,
10117
10129
  widgetsRef: s
@@ -10134,7 +10146,7 @@ const Ee = E({
10134
10146
  region: {}
10135
10147
  },
10136
10148
  setup(u, { expose: e }) {
10137
- const t = u, { widgets: l, widgetsRef: s } = De(t.region);
10149
+ const t = u, { widgets: l, widgetsRef: s } = Pe(t.region);
10138
10150
  return e({
10139
10151
  widgets: l,
10140
10152
  widgetsRef: s
@@ -10148,7 +10160,7 @@ const Ee = E({
10148
10160
  }, null, 8, ["region", "widget"]))), 256))
10149
10161
  ]));
10150
10162
  }
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({
10163
+ }), 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" }, Hu = /* @__PURE__ */ E({
10152
10164
  name: "AppsRegion",
10153
10165
  inheritAttrs: !1,
10154
10166
  __name: "apps",
@@ -10157,7 +10169,7 @@ const Ee = E({
10157
10169
  index: { default: 0 }
10158
10170
  },
10159
10171
  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) => {
10172
+ 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
10173
  g.value = c, d.value = d.value?.name === c.name ? null : c;
10162
10174
  }, f = (c) => {
10163
10175
  c.openType === "link" && c.url && window.open(c.url), c.openType === "dialog" && kl({
@@ -10213,14 +10225,14 @@ const Ee = E({
10213
10225
  ])
10214
10226
  ]));
10215
10227
  }
10216
- }), Hu = /* @__PURE__ */ E({
10228
+ }), qu = /* @__PURE__ */ E({
10217
10229
  name: "WorkspaceRegion",
10218
10230
  __name: "workspace",
10219
10231
  props: {
10220
10232
  region: {}
10221
10233
  },
10222
10234
  setup(u, { expose: e }) {
10223
- const t = u, { widgets: l, widgetsRef: s } = De(t.region), a = Ke(
10235
+ const t = u, { widgets: l, widgetsRef: s } = Pe(t.region), a = Ke(
10224
10236
  l.value.map((c) => ({
10225
10237
  name: c.name,
10226
10238
  command: c.name,
@@ -10295,7 +10307,7 @@ const Ee = E({
10295
10307
  setup(u, { expose: e }) {
10296
10308
  const t = u, l = de(), { current: s } = ue(), { selected: a, isSelectBlock: o } = xe(), r = S(
10297
10309
  () => 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) => ({
10310
+ ), { widgets: i, widgetsRef: g } = Pe(t.region, r), d = k(), m = k(!1), f = S(() => i.value.map((w) => ({
10299
10311
  name: w.name,
10300
10312
  label: w.label,
10301
10313
  actions: w.name === "Style" ? [
@@ -10362,7 +10374,7 @@ const Ee = E({
10362
10374
  default: b(() => [
10363
10375
  v(n(be), {
10364
10376
  onClick: c,
10365
- icon: n(Dn),
10377
+ icon: n(Pn),
10366
10378
  mode: "text",
10367
10379
  label: "帮助"
10368
10380
  }, null, 8, ["icon"])
@@ -10426,7 +10438,7 @@ const Ee = E({
10426
10438
  region: {}
10427
10439
  },
10428
10440
  setup(u, { expose: e }) {
10429
- const t = u, { widgets: l, widgetsRef: s } = De(t.region);
10441
+ const t = u, { widgets: l, widgetsRef: s } = Pe(t.region);
10430
10442
  return e({
10431
10443
  widgets: l,
10432
10444
  widgetsRef: s
@@ -10447,7 +10459,7 @@ const Ee = E({
10447
10459
  region: {}
10448
10460
  },
10449
10461
  setup(u, { expose: e }) {
10450
- const t = u, { widgets: l, widgetsRef: s } = De(t.region), a = Ke(
10462
+ const t = u, { widgets: l, widgetsRef: s } = Pe(t.region), a = Ke(
10451
10463
  l.value.map((i) => ({
10452
10464
  name: i.name,
10453
10465
  command: i.name,
@@ -10488,8 +10500,8 @@ const Ee = E({
10488
10500
  Brand: $u,
10489
10501
  Toolbar: zu,
10490
10502
  Actions: Wu,
10491
- Apps: qu,
10492
- Workspace: Hu,
10503
+ Apps: Hu,
10504
+ Workspace: qu,
10493
10505
  Settings: Gu,
10494
10506
  Status: Ku,
10495
10507
  Preview: Qu
@@ -10512,7 +10524,7 @@ export {
10512
10524
  $a as MOUSE_EVENT_LIST,
10513
10525
  we as NAME_REGEX,
10514
10526
  Xt as PAD_SIZE,
10515
- H as Panel,
10527
+ q as Panel,
10516
10528
  Na as RegionType,
10517
10529
  Ee as RegionWrapper,
10518
10530
  wu as Renderer,
@@ -10533,7 +10545,7 @@ export {
10533
10545
  he as WidgetGroup,
10534
10546
  Ie as WidgetWrapper,
10535
10547
  Ni as builtInDeps,
10536
- qi as builtInMaterials,
10548
+ Hi as builtInMaterials,
10537
10549
  mu as builtInSetters,
10538
10550
  Li as builtInWidgets,
10539
10551
  Fe as confirm,