@vtj/designer 0.8.141 → 0.8.142

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
1
  var qn = Object.defineProperty;
2
2
  var Hn = (u, e, t) => e in u ? qn(u, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : u[e] = t;
3
3
  var $ = (u, e, t) => Hn(u, typeof e != "symbol" ? e + "" : e, t);
4
- import { computed as S, unref as n, ref as k, reactive as Xe, watchEffect as Gn, watch as J, toValue as vt, defineComponent as E, openBlock as p, createElementBlock as j, toDisplayString as F, createVNode as v, withCtx as h, createElementVNode as V, createBlock as y, createCommentVNode as A, createTextVNode as K, readonly as Xn, getCurrentScope as Kn, onScopeDispose as Qn, onMounted as st, nextTick as ke, getCurrentInstance as nn, shallowRef as Me, toRaw as ln, Fragment as O, renderList as L, normalizeClass as X, resolveDynamicComponent as sn, createSlots as Yn, withDirectives as Pe, vShow as Be, renderSlot as Ce, withModifiers as Ne, isRef as gt, mergeProps as ie, normalizeStyle as et, defineAsyncComponent as Zn, h as Oe, inject as Ct, provide as el, normalizeProps as an, guardReactiveProps as on, withKeys as tt, onUnmounted as rn, markRaw as ft, createApp as un, shallowReactive as tl, triggerRef as je, KeepAlive as cn } from "vue";
4
+ import { computed as S, unref as n, ref as k, reactive as Xe, watchEffect as Gn, watch as J, toValue as vt, defineComponent as E, openBlock as p, createElementBlock as j, toDisplayString as F, createVNode as v, withCtx as h, createElementVNode as V, createBlock as y, createCommentVNode as A, createTextVNode as K, readonly as Xn, getCurrentScope as Kn, onScopeDispose as Qn, onMounted as st, nextTick as ke, getCurrentInstance as nn, shallowRef as Me, 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 Ne, isRef as gt, mergeProps as ie, normalizeStyle as et, defineAsyncComponent as Zn, h as Oe, inject as Ct, provide as el, normalizeProps as an, guardReactiveProps as on, withKeys as tt, onUnmounted as rn, markRaw as ft, createApp as un, shallowReactive as tl, triggerRef as je, KeepAlive as cn } from "vue";
5
5
  import { ElNotification as Vt, ElMessageBox as At, ElMessage as Ke, 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";
6
6
  import yl from "element-plus/es/locale/lang/zh-cn";
7
- import { XIcon as Se, XDialog as Te, XDialogForm as Ae, XField as B, 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";
8
- import { delay as Bt, upperFirstCamelCase as yn, toRawType as dt, cloneDeep as ot, logger as Ve, isPlainObject as Sl, fileToBase64 as xl, merge as Tt, 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 Ue, NodeModel as Mt, EVENT_BLOCK_CHANGE as kt, Base as wn, BUILT_IN_LIBRARAY_MAP as Dl, ProjectModel as Il, EVENT_PROJECT_CHANGE as Bl, EVENT_PROJECT_BLOCKS_CHANGE as Tl, 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";
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";
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 Ue, 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
10
  import { parseExpression as qe, parseFunction as Nl, JSCodeToString as ze, LIFE_CYCLES_LIST as Jl, DATA_TYPES as Ml, isJSExpression as He, 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 Bs, IconFlexAlignflexStartrow as Ts, 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 Bn, 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 Ba } from "@vtj/icons";
12
- import Ta from "mockjs";
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";
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.141
17
+ * @version 0.8.142
18
18
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
19
19
  */
20
- const Ra = "0.8.141", Gt = {
20
+ const Ra = "0.8.142", Gt = {
21
21
  width: 390,
22
22
  height: 844
23
23
  }, Xt = {
@@ -48,7 +48,7 @@ const Ra = "0.8.141", Gt = {
48
48
  "passive"
49
49
  ], Kt = "__vue-devtools-frame-state__", Wa = "@id/virtual:vue-devtools-path:overlay.js", La = "@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
- function Tn() {
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 ?? []);
53
53
  return {
54
54
  engine: u,
@@ -668,7 +668,7 @@ const so = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
668
668
  const { engine: e, designer: t } = xe(), l = k(!1), s = () => {
669
669
  e.current.value ? (l.value ? e.skeleton?.getWidget("Previewer")?.widgetRef.refresh() : (t.value?.setSelected(null), e.simulator.refresh()), pe("刷新完成", "success")) : pe("请先打开文件", "warning");
670
670
  }, a = async () => {
671
- e.current.value ? (l.value && (e.skeleton?.closePreview(), l.value = !1, await Bt(1e3)), t.value?.setSelected(e.current.value)) : pe("请先打开文件", "warning");
671
+ e.current.value ? (l.value && (e.skeleton?.closePreview(), l.value = !1, await Tt(1e3)), t.value?.setSelected(e.current.value)) : pe("请先打开文件", "warning");
672
672
  }, o = () => {
673
673
  if (e.project.value)
674
674
  if (e.current.value) {
@@ -1055,7 +1055,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1055
1055
  ]),
1056
1056
  _: 1
1057
1057
  }, 8, ["size", "model-value", "suffix-icon"]),
1058
- s.value ? (p(), y(n(Te), {
1058
+ s.value ? (p(), y(n(Be), {
1059
1059
  key: 0,
1060
1060
  title: "图标选择器",
1061
1061
  width: "1000px",
@@ -1138,7 +1138,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1138
1138
  "submit-method": i
1139
1139
  }, {
1140
1140
  default: h(() => [
1141
- v(n(B), {
1141
+ v(n(T), {
1142
1142
  name: "dir",
1143
1143
  label: "类型",
1144
1144
  editor: "radio",
@@ -1147,7 +1147,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1147
1147
  disabled: !!e.item,
1148
1148
  required: ""
1149
1149
  }, null, 8, ["disabled"]),
1150
- !a.value.dir && e.item ? (p(), y(n(B), {
1150
+ !a.value.dir && e.item ? (p(), y(n(T), {
1151
1151
  key: 0,
1152
1152
  label: "路由",
1153
1153
  disabled: ""
@@ -1166,19 +1166,19 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1166
1166
  ]),
1167
1167
  _: 1
1168
1168
  })) : A("", !0),
1169
- v(n(B), {
1169
+ v(n(T), {
1170
1170
  name: "name",
1171
1171
  label: "名称",
1172
1172
  required: "",
1173
1173
  onChange: r,
1174
1174
  rules: { pattern: n(we), message: "名称格式不正确" }
1175
1175
  }, null, 8, ["rules"]),
1176
- v(n(B), {
1176
+ v(n(T), {
1177
1177
  name: "title",
1178
1178
  label: "标题",
1179
1179
  required: ""
1180
1180
  }),
1181
- v(n(B), {
1181
+ v(n(T), {
1182
1182
  name: "icon",
1183
1183
  label: "菜单图标",
1184
1184
  editor: "none"
@@ -1192,18 +1192,18 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1192
1192
  ]),
1193
1193
  _: 1
1194
1194
  }),
1195
- v(n(B), {
1195
+ v(n(T), {
1196
1196
  visible: { dir: !1 },
1197
1197
  name: "mask",
1198
1198
  label: "包含母版",
1199
1199
  editor: "switch"
1200
1200
  }),
1201
- v(n(B), {
1201
+ v(n(T), {
1202
1202
  name: "hidden",
1203
1203
  label: "隐藏菜单",
1204
1204
  editor: "switch"
1205
1205
  }),
1206
- v(n(B), {
1206
+ v(n(T), {
1207
1207
  visible: { dir: !1 },
1208
1208
  disabled: !!e.item,
1209
1209
  inline: "",
@@ -1341,7 +1341,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1341
1341
  title: "展开",
1342
1342
  onClick: c[0] || (c[0] = (w) => f(!1))
1343
1343
  }, null, 8, ["size", "icon"])), [
1344
- [Be, s.value]
1344
+ [Te, s.value]
1345
1345
  ]) : A("", !0),
1346
1346
  t.collapsable ? Pe((p(), y(n(be), {
1347
1347
  key: 5,
@@ -1352,7 +1352,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1352
1352
  title: "收起",
1353
1353
  onClick: c[1] || (c[1] = (w) => f(!0))
1354
1354
  }, null, 8, ["size", "icon"])), [
1355
- [Be, !s.value]
1355
+ [Te, !s.value]
1356
1356
  ]) : A("", !0),
1357
1357
  Ce(b.$slots, "actions")
1358
1358
  ]),
@@ -1370,7 +1370,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1370
1370
  } : void 0
1371
1371
  ]), 1032, ["class", "header"]));
1372
1372
  }
1373
- }), Bo = { class: "v-tabs__header" }, To = {
1373
+ }), To = { class: "v-tabs__header" }, Bo = {
1374
1374
  key: 0,
1375
1375
  class: "v-tabs__actions"
1376
1376
  }, ct = /* @__PURE__ */ E({
@@ -1414,7 +1414,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1414
1414
  radius: !1
1415
1415
  }, {
1416
1416
  header: h(() => [
1417
- V("div", Bo, [
1417
+ V("div", To, [
1418
1418
  v(n(Dt), {
1419
1419
  class: "v-tabs__tabs",
1420
1420
  items: t.items,
@@ -1425,7 +1425,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1425
1425
  onActionClick: r,
1426
1426
  stretch: t.stretch
1427
1427
  }, null, 8, ["items", "modelValue", "stretch"]),
1428
- t.menus && t.menus.length ? (p(), j("div", To, [
1428
+ t.menus && t.menus.length ? (p(), j("div", Bo, [
1429
1429
  t.menus && t.menus.length ? (p(), y(n(be), {
1430
1430
  key: 0,
1431
1431
  mode: "icon",
@@ -1807,7 +1807,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1807
1807
  message: "已经复制到粘贴板"
1808
1808
  });
1809
1809
  };
1810
- return (x, C) => (p(), y(n(Te), {
1810
+ return (x, C) => (p(), y(n(Be), {
1811
1811
  "model-value": t.modelValue,
1812
1812
  class: "v-binder",
1813
1813
  title: x.title,
@@ -1872,14 +1872,14 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1872
1872
  ]))), 256)),
1873
1873
  n(s).length ? A("", !0) : (p(), y(n(oe), { key: 0 }))
1874
1874
  ], 512), [
1875
- [Be, i.value === "normal"]
1875
+ [Te, i.value === "normal"]
1876
1876
  ]),
1877
1877
  Pe(v(Lo, {
1878
1878
  context: t.context,
1879
1879
  onCopy: _,
1880
1880
  onPick: w
1881
1881
  }, null, 8, ["context"]), [
1882
- [Be, i.value === "viewer"]
1882
+ [Te, i.value === "viewer"]
1883
1883
  ])
1884
1884
  ]),
1885
1885
  _: 1
@@ -1982,7 +1982,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1982
1982
  }, r = () => {
1983
1983
  s.value ? (l("submit", s.value), l("update:modelValue", !1)) : le("请选择插槽");
1984
1984
  };
1985
- return (i, g) => (p(), y(n(Te), ie({
1985
+ return (i, g) => (p(), y(n(Be), ie({
1986
1986
  class: "v-slots-picker",
1987
1987
  title: "选择插槽",
1988
1988
  width: "600px",
@@ -2170,8 +2170,8 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2170
2170
  return le("请选择文件"), !1;
2171
2171
  const C = (t.attachment?.accept || "").toLowerCase().split(",");
2172
2172
  return C.length > 0 ? [].concat(m.value).every((R) => {
2173
- const D = R.name || R.url.split("?")[0], T = D.substring(D.lastIndexOf(".")).toLowerCase();
2174
- return C.includes(T);
2173
+ const D = R.name || R.url.split("?")[0], B = D.substring(D.lastIndexOf(".")).toLowerCase();
2174
+ return C.includes(B);
2175
2175
  }) ? !0 : (le(`只支持 ${C.join(",")} 文件`), !1) : !0;
2176
2176
  }, c = () => {
2177
2177
  b() && (l("change", f.value), l("update:modelValue", f.value), r.value = !1);
@@ -2189,7 +2189,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2189
2189
  "model-value": t.modelValue,
2190
2190
  "suffix-icon": n(gs)
2191
2191
  }, C.$attrs), null, 16, ["model-value", "suffix-icon"]),
2192
- r.value ? (p(), y(n(Te), {
2192
+ r.value ? (p(), y(n(Be), {
2193
2193
  key: 0,
2194
2194
  modelValue: r.value,
2195
2195
  "onUpdate:modelValue": I[2] || (I[2] = (z) => r.value = z),
@@ -2274,17 +2274,17 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2274
2274
  if (o.value?.fromType === "Plugin")
2275
2275
  return ".js,.css,.json";
2276
2276
  }), b = S(() => o.value?.fromType === "Plugin"), c = async (D) => {
2277
- const T = D, P = l.project.value;
2277
+ const B = D, P = l.project.value;
2278
2278
  if (!P) return !1;
2279
2279
  if (D.id)
2280
- if (!P.existBlockName(T.name, [T.id]))
2281
- P.updateBlock(T);
2280
+ if (!P.existBlockName(B.name, [B.id]))
2281
+ P.updateBlock(B);
2282
2282
  else
2283
- return le(`名称【${T.name}】已经存在,请更换名称`), !1;
2284
- else if (!P.existBlockName(T.name))
2285
- P.createBlock(T);
2283
+ return le(`名称【${B.name}】已经存在,请更换名称`), !1;
2284
+ else if (!P.existBlockName(B.name))
2285
+ P.createBlock(B);
2286
2286
  else
2287
- return le(`名称【${T.name}】已经存在,请更换名称`), !1;
2287
+ return le(`名称【${B.name}】已经存在,请更换名称`), !1;
2288
2288
  return !0;
2289
2289
  }, w = () => {
2290
2290
  o.value = m(), i.value = !0;
@@ -2297,13 +2297,13 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2297
2297
  }, I = async (D) => {
2298
2298
  (!D.fromType || D.fromType === "Schema") && l.project.value?.active(D);
2299
2299
  }, z = async (D) => {
2300
- const T = jl(D), P = await l.assets.getBlockMaterial(T, D.name), G = l.skeleton?.getWidget("Designer")?.widgetRef?.designer;
2300
+ const B = jl(D), P = await l.assets.getBlockMaterial(B, D.name), G = l.skeleton?.getWidget("Designer")?.widgetRef?.designer;
2301
2301
  G && P && G.setDragging(P);
2302
2302
  }, R = () => {
2303
2303
  const D = l.skeleton?.getWidget("Designer")?.widgetRef?.designer;
2304
2304
  D && D.setDragging(null);
2305
2305
  };
2306
- return (D, T) => (p(), y(n(H), {
2306
+ return (D, B) => (p(), y(n(H), {
2307
2307
  class: "v-blocks-widget",
2308
2308
  title: "区块管理",
2309
2309
  subtitle: d.value,
@@ -2344,7 +2344,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2344
2344
  n(t).length ? A("", !0) : (p(), y(n(oe), { key: 0 })),
2345
2345
  v(n(Ae), {
2346
2346
  modelValue: i.value,
2347
- "onUpdate:modelValue": T[0] || (T[0] = (P) => i.value = P),
2347
+ "onUpdate:modelValue": B[0] || (B[0] = (P) => i.value = P),
2348
2348
  title: g.value,
2349
2349
  model: o.value,
2350
2350
  width: "600px",
@@ -2353,7 +2353,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2353
2353
  "submit-method": c
2354
2354
  }, {
2355
2355
  default: h(() => [
2356
- v(n(B), {
2356
+ v(n(T), {
2357
2357
  name: "fromType",
2358
2358
  label: "类型",
2359
2359
  required: "",
@@ -2361,7 +2361,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2361
2361
  disabled: !!o.value?.id,
2362
2362
  options: s
2363
2363
  }, null, 8, ["disabled"]),
2364
- v(n(B), {
2364
+ v(n(T), {
2365
2365
  name: "name",
2366
2366
  label: "名称",
2367
2367
  required: "",
@@ -2372,18 +2372,18 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2372
2372
  },
2373
2373
  onChange: C
2374
2374
  }, null, 8, ["rules"]),
2375
- v(n(B), {
2375
+ v(n(T), {
2376
2376
  name: "title",
2377
2377
  label: "标题",
2378
2378
  required: ""
2379
2379
  }),
2380
- o.value?.fromType === "Plugin" ? (p(), y(n(B), {
2380
+ o.value?.fromType === "Plugin" ? (p(), y(n(T), {
2381
2381
  key: 0,
2382
2382
  name: "library",
2383
2383
  label: "插件名称",
2384
2384
  required: ""
2385
2385
  })) : A("", !0),
2386
- ["Plugin", "UrlSchema"].includes(o.value?.fromType || "") ? (p(), y(n(B), {
2386
+ ["Plugin", "UrlSchema"].includes(o.value?.fromType || "") ? (p(), y(n(T), {
2387
2387
  key: 1,
2388
2388
  name: "urls",
2389
2389
  label: "资源文件",
@@ -2519,13 +2519,13 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2519
2519
  name: "OutlineWidget",
2520
2520
  __name: "index",
2521
2521
  setup(u) {
2522
- const { engine: e, designer: t, selected: l } = xe(), { current: s } = ue(), a = k([]), o = (D, T) => {
2523
- if (T === "slot") return [];
2522
+ const { engine: e, designer: t, selected: l } = xe(), { current: s } = ue(), a = k([]), o = (D, B) => {
2523
+ if (B === "slot") return [];
2524
2524
  if (te(D))
2525
2525
  return D.locked ? ["unlock"] : ["lock"];
2526
2526
  const P = D.parent;
2527
2527
  return P && (P.locked || P.invisible) ? [] : s.value?.locked ? [] : D.locked ? ["unlock"] : D.invisible ? ["visible"] : ["lock", "invisible", "copy", "remove"];
2528
- }, r = (D, T) => {
2528
+ }, r = (D, B) => {
2529
2529
  const P = {};
2530
2530
  if (!D.some((W) => W.slot)) return i(D);
2531
2531
  for (const W of D) {
@@ -2535,16 +2535,16 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2535
2535
  const me = [];
2536
2536
  for (const [W, q] of Object.entries(P))
2537
2537
  me.push({
2538
- id: `${T.id}-${W}`,
2538
+ id: `${B.id}-${W}`,
2539
2539
  label: `#${W}`,
2540
2540
  type: "slot",
2541
- model: T,
2541
+ model: B,
2542
2542
  disabled: !0,
2543
2543
  children: i(q)
2544
2544
  });
2545
2545
  return me;
2546
2546
  }, i = (D) => {
2547
- const T = [];
2547
+ const B = [];
2548
2548
  return D.forEach((P) => {
2549
2549
  const G = {
2550
2550
  id: P.id,
@@ -2553,15 +2553,15 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2553
2553
  //getNodeType(model),
2554
2554
  model: P
2555
2555
  };
2556
- Array.isArray(P.children) && (G.children = r(P.children, P)), T.push(G);
2557
- }), T;
2556
+ Array.isArray(P.children) && (G.children = r(P.children, P)), B.push(G);
2557
+ }), B;
2558
2558
  }, g = () => {
2559
2559
  if (!s.value) return [];
2560
- const { id: D, name: T, nodes: P } = s.value;
2560
+ const { id: D, name: B, nodes: P } = s.value;
2561
2561
  return [
2562
2562
  {
2563
2563
  id: D,
2564
- label: T,
2564
+ label: B,
2565
2565
  type: D,
2566
2566
  model: s.value,
2567
2567
  children: i(P)
@@ -2570,13 +2570,13 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2570
2570
  }, d = async () => {
2571
2571
  a.value = g(), l.value?.model && (await ke(), t.value?.setSelected(l.value.model));
2572
2572
  }, m = S(() => l.value?.model.id), f = (D) => {
2573
- const T = D.data;
2574
- if (T.type === "slot" || te(T.model) || T.model.locked || T.model.name === "template")
2573
+ const B = D.data;
2574
+ if (B.type === "slot" || te(B.model) || B.model.locked || B.model.name === "template")
2575
2575
  return !1;
2576
- const P = e.assets.componentMap.get(T.model.name);
2576
+ const P = e.assets.componentMap.get(B.model.name);
2577
2577
  return P ? (t.value?.setDragging(P), !0) : !1;
2578
- }, b = async (D, T, P) => {
2579
- const G = T.data, W = {
2578
+ }, b = async (D, B, P) => {
2579
+ const G = B.data, W = {
2580
2580
  prev: "top",
2581
2581
  next: "bottom",
2582
2582
  inner: "inner"
@@ -2590,14 +2590,14 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2590
2590
  }
2591
2591
  return q;
2592
2592
  }, c = (D) => {
2593
- const T = D?.model;
2594
- if (!T || T.invisible || D.type === "slot") {
2593
+ const B = D?.model;
2594
+ if (!B || B.invisible || D.type === "slot") {
2595
2595
  t.value?.setSelected(null), t.value?.setHover(null);
2596
2596
  return;
2597
2597
  }
2598
- t.value?.setSelected(T), t.value?.setHover(null);
2599
- }, w = async (D, T, P) => {
2600
- const G = D.data, me = T.data;
2598
+ t.value?.setSelected(B), t.value?.setHover(null);
2599
+ }, w = async (D, B, P) => {
2600
+ const G = D.data, me = B.data;
2601
2601
  if (te(me.model)) {
2602
2602
  const We = G.model;
2603
2603
  delete We.slot, s.value?.move(We, void 0, "inner"), t.value?.setDropping(null), t.value?.setDragging(null);
@@ -2631,18 +2631,18 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2631
2631
  }, x = () => {
2632
2632
  t.value?.setHover(null);
2633
2633
  }, C = (D) => {
2634
- const T = D.data;
2635
- T.dragging = !0;
2636
- const P = e.assets.componentMap.get(T.model.name);
2634
+ const B = D.data;
2635
+ B.dragging = !0;
2636
+ const P = e.assets.componentMap.get(B.model.name);
2637
2637
  P && t.value?.setDragging(P);
2638
2638
  }, I = async (D) => {
2639
- const T = D.data;
2640
- T.dragging = !1;
2641
- }, z = (D, T) => {
2642
- D && ((D.id === T.id || !te(D) && T.isChild(D)) && t.value?.setSelected(null), t.value?.setHover(null));
2639
+ const B = D.data;
2640
+ B.dragging = !1;
2641
+ }, z = (D, B) => {
2642
+ D && ((D.id === B.id || !te(D) && B.isChild(D)) && t.value?.setSelected(null), t.value?.setHover(null));
2643
2643
  }, R = (D) => {
2644
- const { name: T, modelValue: P } = D, G = l.value?.model;
2645
- switch (T) {
2644
+ const { name: B, modelValue: P } = D, G = l.value?.model;
2645
+ switch (B) {
2646
2646
  case "lock":
2647
2647
  z(G, P), P.lock();
2648
2648
  break;
@@ -2664,7 +2664,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2664
2664
  break;
2665
2665
  }
2666
2666
  };
2667
- return J(e.changed, d, { immediate: !0 }), (D, T) => (p(), y(n(H), {
2667
+ return J(e.changed, d, { immediate: !0 }), (D, B) => (p(), y(n(H), {
2668
2668
  class: "v-outline-widget",
2669
2669
  title: "大纲树"
2670
2670
  }, {
@@ -2759,25 +2759,25 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2759
2759
  value: t.toLowerCase()
2760
2760
  }));
2761
2761
  return (t, l) => (p(), j("div", null, [
2762
- v(n(B), {
2762
+ v(n(T), {
2763
2763
  name: "method",
2764
2764
  label: "请求类型",
2765
2765
  required: "",
2766
2766
  editor: "radio",
2767
2767
  options: n(e)
2768
2768
  }, null, 8, ["options"]),
2769
- v(n(B), {
2769
+ v(n(T), {
2770
2770
  name: "name",
2771
2771
  label: "接口名称",
2772
2772
  required: "",
2773
2773
  rules: { pattern: n(we), message: "名称格式不正确" }
2774
2774
  }, null, 8, ["rules"]),
2775
- v(n(B), {
2775
+ v(n(T), {
2776
2776
  name: "label",
2777
2777
  label: "备注说明",
2778
2778
  required: ""
2779
2779
  }),
2780
- v(n(B), {
2780
+ v(n(T), {
2781
2781
  name: "url",
2782
2782
  label: "接口URL",
2783
2783
  required: ""
@@ -2816,31 +2816,31 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2816
2816
  return (l, s) => (p(), j("div", null, [
2817
2817
  v(n(U), { justify: "space-between" }, {
2818
2818
  default: h(() => [
2819
- v(n(B), {
2819
+ v(n(T), {
2820
2820
  name: "settings.loading",
2821
2821
  size: "small",
2822
2822
  label: "加载提示",
2823
2823
  editor: "switch"
2824
2824
  }),
2825
- v(n(B), {
2825
+ v(n(T), {
2826
2826
  size: "small",
2827
2827
  name: "settings.failMessage",
2828
2828
  label: "失败提示",
2829
2829
  editor: "switch"
2830
2830
  }),
2831
- v(n(B), {
2831
+ v(n(T), {
2832
2832
  size: "small",
2833
2833
  name: "settings.validSuccess",
2834
2834
  label: "校验成功",
2835
2835
  editor: "switch"
2836
2836
  }),
2837
- v(n(B), {
2837
+ v(n(T), {
2838
2838
  size: "small",
2839
2839
  name: "settings.originResponse",
2840
2840
  label: "原始响应",
2841
2841
  editor: "switch"
2842
2842
  }),
2843
- v(n(B), {
2843
+ v(n(T), {
2844
2844
  size: "small",
2845
2845
  name: "settings.injectHeaders",
2846
2846
  label: "注入请求头",
@@ -2849,7 +2849,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2849
2849
  ]),
2850
2850
  _: 1
2851
2851
  }),
2852
- v(n(B), {
2852
+ v(n(T), {
2853
2853
  size: "small",
2854
2854
  name: "settings.type",
2855
2855
  label: "发送数据类型",
@@ -2857,7 +2857,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2857
2857
  options: e,
2858
2858
  props: { button: !0 }
2859
2859
  }),
2860
- v(n(B), {
2860
+ v(n(T), {
2861
2861
  size: "small",
2862
2862
  name: "headers.value",
2863
2863
  label: "请求头配置",
@@ -2879,23 +2879,23 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2879
2879
  __name: "jsonp-options",
2880
2880
  setup(u) {
2881
2881
  return (e, t) => (p(), j("div", null, [
2882
- v(n(B), {
2882
+ v(n(T), {
2883
2883
  name: "jsonpOptions.jsonpCallback",
2884
2884
  size: "small",
2885
2885
  label: "jsonpCallback"
2886
2886
  }),
2887
- v(n(B), {
2887
+ v(n(T), {
2888
2888
  name: "jsonpOptions.jsonpCallbackFunction",
2889
2889
  size: "small",
2890
2890
  label: "jsonpCallbackFunction"
2891
2891
  }),
2892
- v(n(B), {
2892
+ v(n(T), {
2893
2893
  name: "jsonpOptions.timeout",
2894
2894
  size: "small",
2895
2895
  label: "timeout",
2896
2896
  editor: "number"
2897
2897
  }),
2898
- v(n(B), {
2898
+ v(n(T), {
2899
2899
  name: "jsonpOptions.crossorigin",
2900
2900
  size: "small",
2901
2901
  label: "crossorigin",
@@ -2917,7 +2917,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2917
2917
  closable: !1,
2918
2918
  style: { "margin-bottom": "20px" }
2919
2919
  })),
2920
- v(n(B), {
2920
+ v(n(T), {
2921
2921
  size: "small",
2922
2922
  name: "mock",
2923
2923
  label: "开启模拟数据",
@@ -2936,7 +2936,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2936
2936
  ]),
2937
2937
  _: 1
2938
2938
  }),
2939
- v(n(B), {
2939
+ v(n(T), {
2940
2940
  size: "small",
2941
2941
  name: "mockTemplate.value",
2942
2942
  label: " "
@@ -3005,7 +3005,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3005
3005
  o.value.mockTemplate,
3006
3006
  {},
3007
3007
  !0
3008
- ), { url: _, method: x } = o.value, C = Ta.mock(
3008
+ ), { url: _, method: x } = o.value, C = Ba.mock(
3009
3009
  w({
3010
3010
  url: _,
3011
3011
  type: x
@@ -3014,7 +3014,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3014
3014
  i.value = JSON.stringify(C, null, 2), r.value = !0;
3015
3015
  }
3016
3016
  };
3017
- return (w, _) => (p(), y(n(Te), {
3017
+ return (w, _) => (p(), y(n(Be), {
3018
3018
  ref_key: "dialogRef",
3019
3019
  ref: s,
3020
3020
  title: t.value,
@@ -3097,7 +3097,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3097
3097
  }, {
3098
3098
  default: h(() => [
3099
3099
  Pe(v(Zo, null, null, 512), [
3100
- [Be, l.value === "base"]
3100
+ [Te, l.value === "base"]
3101
3101
  ]),
3102
3102
  l.value === "settings" ? (p(), j("div", lr, [
3103
3103
  d.value ? (p(), y(tr, { key: 0 })) : (p(), y(er, { key: 1 }))
@@ -3235,7 +3235,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3235
3235
  name: "DepsWidget",
3236
3236
  __name: "index",
3237
3237
  setup(u) {
3238
- const { dependencies: e, engine: t } = Tn(), l = k(!1), s = k(!1), a = k({}), o = S(() => s.value ? "查看依赖" : a.value ? "编辑依赖" : "新增依赖"), r = (c) => c.required || c.official ? [] : ["edit", "remove"], i = (c) => c.official && !c.required, g = async (c) => (c.urls = c.urls.split(`
3238
+ const { dependencies: e, engine: t } = Bn(), l = k(!1), s = k(!1), a = k({}), o = S(() => s.value ? "查看依赖" : a.value ? "编辑依赖" : "新增依赖"), r = (c) => c.required || c.official ? [] : ["edit", "remove"], i = (c) => c.official && !c.required, g = async (c) => (c.urls = c.urls.split(`
3239
3239
  `), c.enabled = !0, c.official = !1, t.project.value?.setDeps(c), !0), d = (c) => {
3240
3240
  t.project.value?.setDeps(c);
3241
3241
  }, m = () => {
@@ -3289,23 +3289,23 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3289
3289
  }
3290
3290
  }, {
3291
3291
  default: h(() => [
3292
- v(n(B), {
3292
+ v(n(T), {
3293
3293
  name: "package",
3294
3294
  label: "包名",
3295
3295
  required: "",
3296
3296
  disabled: !!a.value
3297
3297
  }, null, 8, ["disabled"]),
3298
- v(n(B), {
3298
+ v(n(T), {
3299
3299
  name: "version",
3300
3300
  label: "版本",
3301
3301
  required: ""
3302
3302
  }),
3303
- v(n(B), {
3303
+ v(n(T), {
3304
3304
  name: "library",
3305
3305
  label: "导出名称",
3306
3306
  required: ""
3307
3307
  }),
3308
- v(n(B), {
3308
+ v(n(T), {
3309
3309
  name: "urls",
3310
3310
  label: "资源文件",
3311
3311
  editor: "textarea",
@@ -3313,11 +3313,11 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3313
3313
  tip: "多个资源可以换行输入",
3314
3314
  required: ""
3315
3315
  }),
3316
- v(n(B), {
3316
+ v(n(T), {
3317
3317
  name: "assetsUrl",
3318
3318
  label: "物料URL"
3319
3319
  }),
3320
- v(n(B), {
3320
+ v(n(T), {
3321
3321
  name: "assetsLibrary",
3322
3322
  label: "物料名称"
3323
3323
  })
@@ -3411,34 +3411,34 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3411
3411
  inheritAttrs: !1,
3412
3412
  __name: "index",
3413
3413
  setup(u, { expose: e }) {
3414
- const t = k(), l = k(), { width: s, height: a } = Ge(t), { dependencies: o, engine: r, apis: i, meta: g } = Tn(), { current: d, isEmpty: m } = ue(), f = S(() => r.skeleton?.getWidget("Toolbar")?.widgetRef.mode ?? "pc"), b = S(() => r.project.value?.config || {}), { designer: c, hover: w, dropping: _, selected: x } = qa(
3414
+ const t = k(), l = k(), { width: s, height: a } = Ge(t), { dependencies: o, engine: r, apis: i, meta: g } = Bn(), { current: d, isEmpty: m } = ue(), f = S(() => r.skeleton?.getWidget("Toolbar")?.widgetRef.mode ?? "pc"), b = S(() => r.project.value?.config || {}), { designer: c, hover: w, dropping: _, selected: x } = qa(
3415
3415
  l,
3416
3416
  o,
3417
3417
  i,
3418
3418
  g,
3419
3419
  b
3420
3420
  ), C = (R) => {
3421
- const D = R.type, T = R.model;
3421
+ const D = R.type, B = R.model;
3422
3422
  if (d.value)
3423
3423
  switch (D) {
3424
3424
  case "remove":
3425
- d.value.removeNode(T), c.value?.setSelected(null);
3425
+ d.value.removeNode(B), c.value?.setSelected(null);
3426
3426
  break;
3427
3427
  case "copy":
3428
- const P = d.value.cloneNode(T);
3428
+ const P = d.value.cloneNode(B);
3429
3429
  c.value?.setSelected(P);
3430
3430
  break;
3431
3431
  case "prev":
3432
- d.value.movePrev(T), c.value?.setSelected(T);
3432
+ d.value.movePrev(B), c.value?.setSelected(B);
3433
3433
  break;
3434
3434
  case "next":
3435
- d.value.moveNext(T), c.value?.setSelected(T);
3435
+ d.value.moveNext(B), c.value?.setSelected(B);
3436
3436
  break;
3437
3437
  case "hover":
3438
- c.value?.setHover(T);
3438
+ c.value?.setHover(B);
3439
3439
  break;
3440
3440
  case "selected":
3441
- c.value?.setSelected(T);
3441
+ c.value?.setSelected(B);
3442
3442
  break;
3443
3443
  }
3444
3444
  }, I = (R) => {
@@ -3578,13 +3578,13 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3578
3578
  }, {
3579
3579
  default: h(() => [
3580
3580
  Ce(c.$slots, "fields", an(on({ model: a.value, isEdit: o.value, nameLabel: c.nameLabel, valueLabel: c.valueLabel })), () => [
3581
- v(n(B), {
3581
+ v(n(T), {
3582
3582
  name: "name",
3583
3583
  label: c.nameLabel,
3584
3584
  required: "",
3585
3585
  disabled: o.value
3586
3586
  }, null, 8, ["label", "disabled"]),
3587
- v(n(B), {
3587
+ v(n(T), {
3588
3588
  class: "v-binder__editor",
3589
3589
  ref_key: "codeFieldRef",
3590
3590
  ref: l,
@@ -3744,7 +3744,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3744
3744
  submit: o
3745
3745
  }, {
3746
3746
  fields: h(({ model: g, nameLabel: d, isEdit: m, valueLabel: f }) => [
3747
- v(n(B), {
3747
+ v(n(T), {
3748
3748
  name: "name",
3749
3749
  label: d,
3750
3750
  editor: "select",
@@ -3752,7 +3752,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3752
3752
  required: "",
3753
3753
  disabled: m
3754
3754
  }, null, 8, ["label", "options", "disabled"]),
3755
- v(n(B), {
3755
+ v(n(T), {
3756
3756
  class: "v-binder__editor",
3757
3757
  name: "value",
3758
3758
  label: f,
@@ -3820,7 +3820,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3820
3820
  grow: ""
3821
3821
  }, {
3822
3822
  fields: h(({ model: g, nameLabel: d, valueLabel: m }) => [
3823
- v(n(B), {
3823
+ v(n(T), {
3824
3824
  class: "v-binder__editor",
3825
3825
  name: "source",
3826
3826
  label: d,
@@ -3836,7 +3836,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3836
3836
  ]),
3837
3837
  _: 2
3838
3838
  }, 1032, ["label"]),
3839
- v(n(B), {
3839
+ v(n(T), {
3840
3840
  class: "v-binder__editor",
3841
3841
  name: "handler",
3842
3842
  label: m,
@@ -3852,14 +3852,14 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3852
3852
  ]),
3853
3853
  _: 2
3854
3854
  }, 1032, ["label"]),
3855
- v(n(B), {
3855
+ v(n(T), {
3856
3856
  name: "deep",
3857
3857
  modelValue: g.deep,
3858
3858
  "onUpdate:modelValue": (f) => g.deep = f,
3859
3859
  label: "深度监听",
3860
3860
  editor: "switch"
3861
3861
  }, null, 8, ["modelValue", "onUpdate:modelValue"]),
3862
- v(n(B), {
3862
+ v(n(T), {
3863
3863
  name: "immediate",
3864
3864
  modelValue: g.immediate,
3865
3865
  "onUpdate:modelValue": (f) => g.immediate = f,
@@ -4028,7 +4028,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4028
4028
  model: b.value
4029
4029
  }, {
4030
4030
  default: h(() => [
4031
- v(n(B), {
4031
+ v(n(T), {
4032
4032
  name: "name",
4033
4033
  label: "属性名称",
4034
4034
  required: "",
@@ -4068,7 +4068,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4068
4068
  onPick: s
4069
4069
  }, {
4070
4070
  default: h(() => [
4071
- v(n(B), {
4071
+ v(n(T), {
4072
4072
  class: "v-binder__editor",
4073
4073
  name: "value",
4074
4074
  label: "绑定内容 [ JSExpression ]",
@@ -4123,13 +4123,13 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4123
4123
  onPick: o
4124
4124
  }, {
4125
4125
  default: h(() => [
4126
- v(n(B), {
4126
+ v(n(T), {
4127
4127
  name: "modifiers",
4128
4128
  label: "事件修饰符",
4129
4129
  editor: "checkbox",
4130
4130
  options: n(a)
4131
4131
  }, null, 8, ["options"]),
4132
- v(n(B), {
4132
+ v(n(T), {
4133
4133
  class: "v-binder__editor",
4134
4134
  name: "handler.value",
4135
4135
  label: "事件处理函数 [ JSFunction ]",
@@ -4504,7 +4504,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4504
4504
  "submit-method": a
4505
4505
  }, {
4506
4506
  default: h(() => [
4507
- v(n(B), {
4507
+ v(n(T), {
4508
4508
  name: "name",
4509
4509
  label: "属性名称",
4510
4510
  required: "",
@@ -4515,7 +4515,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4515
4515
  pattern: n(we)
4516
4516
  }
4517
4517
  }, null, 8, ["disabled", "rules"]),
4518
- v(n(B), {
4518
+ v(n(T), {
4519
4519
  name: "type",
4520
4520
  label: "数据类型",
4521
4521
  editor: "checkbox",
@@ -4523,12 +4523,12 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4523
4523
  options: n(s),
4524
4524
  required: ""
4525
4525
  }, null, 8, ["options"]),
4526
- v(n(B), {
4526
+ v(n(T), {
4527
4527
  name: "required",
4528
4528
  label: "必须",
4529
4529
  editor: "switch"
4530
4530
  }),
4531
- v(n(B), {
4531
+ v(n(T), {
4532
4532
  name: "default.value",
4533
4533
  label: "默认值",
4534
4534
  editor: "none"
@@ -4568,7 +4568,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4568
4568
  "submit-method": a
4569
4569
  }, {
4570
4570
  default: h(() => [
4571
- v(n(B), {
4571
+ v(n(T), {
4572
4572
  name: "name",
4573
4573
  label: "事件名称",
4574
4574
  required: "",
@@ -4578,7 +4578,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4578
4578
  pattern: n(we)
4579
4579
  }
4580
4580
  }, null, 8, ["disabled", "rules"]),
4581
- v(n(B), {
4581
+ v(n(T), {
4582
4582
  name: "params",
4583
4583
  label: "参数",
4584
4584
  editor: "select",
@@ -4623,7 +4623,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4623
4623
  "submit-method": a
4624
4624
  }, {
4625
4625
  default: h(() => [
4626
- v(n(B), {
4626
+ v(n(T), {
4627
4627
  name: "name",
4628
4628
  label: "插槽名称",
4629
4629
  disabled: !!e.item,
@@ -4633,7 +4633,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4633
4633
  pattern: n(we)
4634
4634
  }
4635
4635
  }, null, 8, ["disabled", "rules"]),
4636
- v(n(B), {
4636
+ v(n(T), {
4637
4637
  name: "params",
4638
4638
  label: "参数",
4639
4639
  editor: "select",
@@ -4688,7 +4688,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4688
4688
  "submit-method": s
4689
4689
  }, {
4690
4690
  default: h(() => [
4691
- v(n(B), {
4691
+ v(n(T), {
4692
4692
  name: "name",
4693
4693
  label: "注入名称",
4694
4694
  required: "",
@@ -4699,12 +4699,12 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4699
4699
  pattern: n(we)
4700
4700
  }
4701
4701
  }, null, 8, ["disabled", "rules"]),
4702
- v(n(B), {
4702
+ v(n(T), {
4703
4703
  name: "from",
4704
4704
  label: "来源名称",
4705
4705
  tip: "默认和注入名称一致"
4706
4706
  }),
4707
- v(n(B), {
4707
+ v(n(T), {
4708
4708
  name: "default.value",
4709
4709
  label: "默认值",
4710
4710
  editor: "none"
@@ -4745,7 +4745,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4745
4745
  f.value = void 0, m.value = !0;
4746
4746
  }, D = (W) => {
4747
4747
  f.value = { ...W }, m.value = !0;
4748
- }, T = (W) => {
4748
+ }, B = (W) => {
4749
4749
  const { name: q, modelValue: N } = W;
4750
4750
  q === "edit" && D(N), q === "remove" && e.value?.removeSlot(N.name);
4751
4751
  }, P = () => {
@@ -4842,7 +4842,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4842
4842
  border: "",
4843
4843
  actions: ["remove"],
4844
4844
  onClick: ($e) => D(N),
4845
- onAction: T
4845
+ onAction: B
4846
4846
  }, null, 8, ["model-value", "title", "onClick"]))), 256)),
4847
4847
  a.value.length ? A("", !0) : (p(), y(n(oe), {
4848
4848
  key: 0,
@@ -5026,7 +5026,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5026
5026
  }, 8, ["loading"])
5027
5027
  ]),
5028
5028
  default: h(() => [
5029
- v(n(B), {
5029
+ v(n(T), {
5030
5030
  name: "type",
5031
5031
  label: "数据类型",
5032
5032
  editor: "radio",
@@ -5035,7 +5035,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5035
5035
  disabled: !!e.item,
5036
5036
  onChange: f
5037
5037
  }, null, 8, ["disabled"]),
5038
- (p(), y(n(B), {
5038
+ (p(), y(n(T), {
5039
5039
  name: "ref",
5040
5040
  label: "引用",
5041
5041
  editor: "select",
@@ -5052,7 +5052,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5052
5052
  ]),
5053
5053
  _: 1
5054
5054
  }, 8, ["disabled", "options"])),
5055
- v(n(B), {
5055
+ v(n(T), {
5056
5056
  name: "name",
5057
5057
  label: "调用名称",
5058
5058
  required: "",
@@ -5063,12 +5063,12 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5063
5063
  pattern: n(we)
5064
5064
  }
5065
5065
  }, null, 8, ["disabled", "rules"]),
5066
- v(n(B), {
5066
+ v(n(T), {
5067
5067
  name: "label",
5068
5068
  label: "备注说明",
5069
5069
  required: ""
5070
5070
  }),
5071
- v(n(B), {
5071
+ v(n(T), {
5072
5072
  name: "transform.value",
5073
5073
  label: "转换函数",
5074
5074
  editor: "none"
@@ -5083,7 +5083,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5083
5083
  ]),
5084
5084
  _: 1
5085
5085
  }),
5086
- v(n(B), {
5086
+ v(n(T), {
5087
5087
  name: "test.value",
5088
5088
  label: "测试用例",
5089
5089
  editor: "none"
@@ -5271,7 +5271,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5271
5271
  {
5272
5272
  label: "space-around",
5273
5273
  value: "space-around",
5274
- svg: Bs
5274
+ svg: Ts
5275
5275
  }
5276
5276
  ], o = [
5277
5277
  {
@@ -5290,7 +5290,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5290
5290
  {
5291
5291
  label: "flex-start",
5292
5292
  value: "flex-start",
5293
- svg: Ts
5293
+ svg: Bs
5294
5294
  },
5295
5295
  {
5296
5296
  label: "flex-end",
@@ -5424,7 +5424,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5424
5424
  _: 1
5425
5425
  }));
5426
5426
  }
5427
- }), Ir = { class: "v-spacing-input" }, Br = { class: "v-spacing-input__content" }, Tr = ["onClick"], Ln = /* @__PURE__ */ E({
5427
+ }), Ir = { class: "v-spacing-input" }, Tr = { class: "v-spacing-input__content" }, Br = ["onClick"], Ln = /* @__PURE__ */ E({
5428
5428
  __name: "spacing-input",
5429
5429
  props: {
5430
5430
  name: {},
@@ -5448,7 +5448,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5448
5448
  };
5449
5449
  return (b, c) => (p(), j("div", Ir, [
5450
5450
  c[4] || (c[4] = V("div", { class: "v-spacing-input__modal" }, null, -1)),
5451
- V("div", Br, [
5451
+ V("div", Tr, [
5452
5452
  v(n(U), {
5453
5453
  class: "v-spacing-input__body",
5454
5454
  ref_key: "bodyRef",
@@ -5493,7 +5493,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5493
5493
  default: h(() => [
5494
5494
  (p(), j(O, null, L(t, (w) => V("span", {
5495
5495
  onClick: (_) => g(w)
5496
- }, F(w), 9, Tr)), 64))
5496
+ }, F(w), 9, Br)), 64))
5497
5497
  ]),
5498
5498
  _: 1
5499
5499
  })
@@ -6301,7 +6301,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
6301
6301
  { label: "正常", value: "normal", svg: Ys },
6302
6302
  { label: "斜体", value: "italic", svg: Zs }
6303
6303
  ], a = [
6304
- { label: "无", value: "none", svg: Bn },
6304
+ { label: "无", value: "none", svg: Tn },
6305
6305
  { label: "下划线", value: "underline", svg: ea },
6306
6306
  { label: "删除线", value: "line-through", svg: ta },
6307
6307
  { label: "上划线", value: "overline", svg: na }
@@ -6508,7 +6508,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
6508
6508
  { label: "下边框", svg: ca, value: "border-bottom" },
6509
6509
  { label: "右边框", svg: da, value: "border-right" }
6510
6510
  ], a = [
6511
- { label: "无", value: "none", svg: Bn },
6511
+ { label: "无", value: "none", svg: Tn },
6512
6512
  { label: "实线", value: "solid", svg: pa },
6513
6513
  { label: "虚线", value: "dashed", svg: ma },
6514
6514
  { label: "点线", value: "dotted", svg: va }
@@ -6899,7 +6899,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
6899
6899
  _: 1
6900
6900
  }, 8, ["title", "subtitle"]));
6901
6901
  }
6902
- }), Bi = ["src"], Ti = /* @__PURE__ */ E({
6902
+ }), Ti = ["src"], Bi = /* @__PURE__ */ E({
6903
6903
  name: "DocsWidget",
6904
6904
  __name: "index",
6905
6905
  props: {
@@ -6934,7 +6934,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
6934
6934
  ref: "frame",
6935
6935
  src: t.url,
6936
6936
  onLoad: r
6937
- }, null, 40, Bi))
6937
+ }, null, 40, Ti))
6938
6938
  ]),
6939
6939
  _: 1
6940
6940
  }, 512));
@@ -6972,22 +6972,22 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
6972
6972
  onChange: t
6973
6973
  }, {
6974
6974
  default: h(() => [
6975
- v(n(B), {
6975
+ v(n(T), {
6976
6976
  label: "站点名称",
6977
6977
  name: "title"
6978
6978
  }),
6979
- v(n(B), {
6979
+ v(n(T), {
6980
6980
  label: "Logo",
6981
6981
  name: "logo",
6982
6982
  editor: Wt,
6983
6983
  props: { attachment: { accept: ".png,.jpg,.jpeg" } }
6984
6984
  }),
6985
- v(n(B), {
6985
+ v(n(T), {
6986
6986
  label: "主题切换",
6987
6987
  name: "themeSwitchable",
6988
6988
  editor: "switch"
6989
6989
  }),
6990
- v(n(B), {
6990
+ v(n(T), {
6991
6991
  label: "模拟数据",
6992
6992
  name: "mock",
6993
6993
  editor: "switch"
@@ -7025,7 +7025,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
7025
7025
  NodePath: Pi,
7026
7026
  Schema: Di,
7027
7027
  Raw: Ii,
7028
- Docs: Ti,
7028
+ Docs: Bi,
7029
7029
  About: Fi,
7030
7030
  ProjectConfig: Wi
7031
7031
  }, Li = [
@@ -8018,7 +8018,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
8018
8018
  "model-value": t.type,
8019
8019
  "suffix-icon": n($t)
8020
8020
  }, f.$attrs), null, 16, ["model-value", "suffix-icon"]),
8021
- o.value ? (p(), y(n(Te), {
8021
+ o.value ? (p(), y(n(Be), {
8022
8022
  key: 0,
8023
8023
  modelValue: o.value,
8024
8024
  "onUpdate:modelValue": b[0] || (b[0] = (c) => o.value = c),
@@ -8091,7 +8091,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
8091
8091
  "model-value": "JSFunction",
8092
8092
  "suffix-icon": n($t)
8093
8093
  }, m.$attrs), null, 16, ["suffix-icon"]),
8094
- a.value ? (p(), y(n(Te), {
8094
+ a.value ? (p(), y(n(Be), {
8095
8095
  key: 0,
8096
8096
  modelValue: a.value,
8097
8097
  "onUpdate:modelValue": f[0] || (f[0] = (b) => a.value = b),
@@ -8523,7 +8523,7 @@ class vu {
8523
8523
  Ve.warn(`widget '${e}' is not found`);
8524
8524
  return;
8525
8525
  }
8526
- Tt(l, t), t.component && (l.component = t.component);
8526
+ Bt(l, t), t.component && (l.component = t.component);
8527
8527
  }
8528
8528
  /**
8529
8529
  * 根据区域名称获取区域内的器件配置
@@ -8635,7 +8635,7 @@ class hu {
8635
8635
  Ve.warn(`setter '${e}' is not found`);
8636
8636
  return;
8637
8637
  }
8638
- Tt(l, t), t.component && (l.component = t.component);
8638
+ Bt(l, t), t.component && (l.component = t.component);
8639
8639
  }
8640
8640
  getByType(e) {
8641
8641
  return Object.values(this.setters).filter((l) => l.type === e).map((l) => l.name);
@@ -8666,7 +8666,7 @@ class bu {
8666
8666
  });
8667
8667
  }
8668
8668
  async load(e) {
8669
- this.enabled && (await Bt(200), this.window && this.appUnmount(this.window), e && this.appInit(e), this.isInited = !0);
8669
+ this.enabled && (await Tt(200), this.window && this.appUnmount(this.window), e && this.appInit(e), this.isInited = !0);
8670
8670
  }
8671
8671
  updateState(e) {
8672
8672
  e.key === Kt && (this.isOpen.value = !!this.getState().open);
@@ -8674,13 +8674,14 @@ class bu {
8674
8674
  init(e, t) {
8675
8675
  if (!this.engine) {
8676
8676
  this.engine = t;
8677
- const { simulator: l, changed: s, current: a } = this.engine;
8678
- J(l.rendered, () => this.proxyLoad(this.window)), J(
8677
+ const { simulator: l, changed: s } = this.engine;
8678
+ J(l.rendered, () => {
8679
+ this.proxyLoad(this.window);
8680
+ }), J(
8679
8681
  () => s?.value,
8680
- () => this.proxyLoad(this.window)
8681
- ), J(
8682
- () => a?.value,
8683
- () => this.proxyLoad(this.window)
8682
+ () => {
8683
+ this.proxyLoad(this.window);
8684
+ }
8684
8685
  );
8685
8686
  }
8686
8687
  this.window && (this.appUnmount(this.window), this.window = void 0), this.isOpen.value = !!this.getState().open, e.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__ = {}, this.loadScripts(e, () => {
@@ -8695,7 +8696,7 @@ class bu {
8695
8696
  if (t && l) {
8696
8697
  const s = t.renderer?.app;
8697
8698
  if (!s) return;
8698
- s._uid === 1 && l.emit("app:unmount", s), l.emit("app:init", s, s.version, {}), this.app = s;
8699
+ e.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__ || (e.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__ = {}), s._uid === 1 && l.emit("app:unmount", s), l.emit("app:init", s, s.version, {}), this.app = s;
8699
8700
  }
8700
8701
  }
8701
8702
  appUnmount(e) {
@@ -8923,7 +8924,7 @@ class _u {
8923
8924
  this.setSelected(null), this.setHover(null), this.setDragging(null), this.setDropping(null);
8924
8925
  }
8925
8926
  async updateRect() {
8926
- await Bt(100);
8927
+ await Tt(100);
8927
8928
  const e = n(this.selected), t = n(this.hover);
8928
8929
  if (e) {
8929
8930
  const l = e.el.getBoundingClientRect();
@@ -9196,14 +9197,14 @@ class ku extends wn {
9196
9197
  const z = I.names || [];
9197
9198
  if (I.name === _t)
9198
9199
  z.forEach((R) => {
9199
- const D = w.get(R), T = D?.package || "", P = Dl[T], G = m[P];
9200
+ const D = w.get(R), B = D?.package || "", P = Dl[B], G = m[P];
9200
9201
  G && D && (b[R] = Ht(D, G));
9201
9202
  });
9202
9203
  else {
9203
9204
  const R = m[l[I.library || ""]];
9204
9205
  R && z.forEach((D) => {
9205
- const T = w.get(D);
9206
- T ? b[D] = Ht(T, R) : b[D] = R[D];
9206
+ const B = w.get(D);
9207
+ B ? b[D] = Ht(B, R) : b[D] = R[D];
9207
9208
  });
9208
9209
  }
9209
9210
  }
@@ -9381,7 +9382,7 @@ class ic extends wn {
9381
9382
  Ve.warn("VTJEngine constructor param [ container ] is undefined");
9382
9383
  }
9383
9384
  bindEvents() {
9384
- ne.on(Bl, (t) => this.saveProject(t)), ne.on(Tl, (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(Ue, () => this.changeCurrentFile()), ne.on(Fl, (t) => this.saveHistory(t)), ne.on(Wl, (t) => this.loadHistory(t));
9385
+ 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(Ue, () => this.changeCurrentFile()), ne.on(Fl, (t) => this.saveHistory(t)), ne.on(Wl, (t) => this.loadHistory(t));
9385
9386
  }
9386
9387
  async activeFile(t) {
9387
9388
  await ke();
@@ -9858,7 +9859,7 @@ const Ee = E({
9858
9859
  ref: f,
9859
9860
  region: "Workspace"
9860
9861
  }, null, 512), [
9861
- [Be, !l.value]
9862
+ [Te, !l.value]
9862
9863
  ])
9863
9864
  ]),
9864
9865
  _: 1
@@ -9877,7 +9878,7 @@ const Ee = E({
9877
9878
  ]),
9878
9879
  _: 1
9879
9880
  }, 8, ["width"])), [
9880
- [Be, x.value],
9881
+ [Te, x.value],
9881
9882
  [n(Jt), r]
9882
9883
  ])
9883
9884
  ]),
@@ -10065,14 +10066,14 @@ const Ee = E({
10065
10066
  _: 1
10066
10067
  }));
10067
10068
  }
10068
- }), Bu = { class: "v-empty-region" }, Tu = /* @__PURE__ */ E({
10069
+ }), Tu = { class: "v-empty-region" }, Bu = /* @__PURE__ */ E({
10069
10070
  name: "EmptyRegion",
10070
10071
  __name: "empty",
10071
10072
  props: {
10072
10073
  region: {}
10073
10074
  },
10074
10075
  setup(u) {
10075
- return (e, t) => (p(), j("div", Bu, "找不到符合【" + F(e.region) + "】名称的区域组件", 1));
10076
+ return (e, t) => (p(), j("div", Tu, "找不到符合【" + F(e.region) + "】名称的区域组件", 1));
10076
10077
  }
10077
10078
  }), Ru = { class: "v-brand-region" }, $u = /* @__PURE__ */ E({
10078
10079
  name: "BrandRegion",
@@ -10294,7 +10295,7 @@ const Ee = E({
10294
10295
  actions: _.name === "Style" ? [
10295
10296
  {
10296
10297
  name: "switch",
10297
- icon: Ba,
10298
+ icon: Ta,
10298
10299
  background: "hover"
10299
10300
  }
10300
10301
  ] : void 0
@@ -10389,7 +10390,7 @@ const Ee = E({
10389
10390
  ref_key: "widgetsRef",
10390
10391
  ref: g,
10391
10392
  region: _.region,
10392
- widget: n(Tt)({ props: { isStyleCodeMode: m.value } }, C)
10393
+ widget: n(Bt)({ props: { isStyleCodeMode: m.value } }, C)
10393
10394
  }, null, 8, ["region", "widget"])) : A("", !0)
10394
10395
  ], 64))), 128))
10395
10396
  ]),
@@ -10477,7 +10478,7 @@ const Ee = E({
10477
10478
  }, 8, ["items", "modelValue"]));
10478
10479
  }
10479
10480
  }), tn = {
10480
- EmptyRegion: Tu,
10481
+ EmptyRegion: Bu,
10481
10482
  Brand: $u,
10482
10483
  Toolbar: zu,
10483
10484
  Actions: Wu,
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@vtj/designer",
3
3
  "private": false,
4
- "version": "0.8.141",
4
+ "version": "0.8.142",
5
5
  "type": "module",
6
6
  "dependencies": {
7
7
  "mockjs": "~1.1.0",
8
8
  "monaco-editor": "~0.51.0",
9
- "@vtj/core": "~0.8.141",
10
- "@vtj/ui": "~0.8.141",
11
- "@vtj/icons": "~0.8.141",
12
- "@vtj/renderer": "~0.8.141",
13
- "@vtj/utils": "~0.8.141"
9
+ "@vtj/core": "~0.8.142",
10
+ "@vtj/icons": "~0.8.142",
11
+ "@vtj/ui": "~0.8.142",
12
+ "@vtj/utils": "~0.8.142",
13
+ "@vtj/renderer": "~0.8.142"
14
14
  },
15
15
  "devDependencies": {
16
16
  "@types/mockjs": "~1.0.10",
@@ -2,7 +2,7 @@
2
2
  * Copyright (c) 2024, VTJ.PRO All rights reserved.
3
3
  * @name @vtj/designer
4
4
  * @author CHC chenhuachun1549@dingtalk.com
5
- * @version 0.8.140
5
+ * @version 0.8.141
6
6
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
7
7
  */
8
- export declare const version = "0.8.140";
8
+ export declare const version = "0.8.141";