@vtj/designer 0.8.131 → 0.8.133

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
- import { computed as S, unref as n, ref as k, reactive as Ge, watchEffect as Un, watch as J, toValue as mt, defineComponent as E, openBlock as p, createElementBlock as j, toDisplayString as z, createVNode as v, withCtx as h, createElementVNode as V, createBlock as y, createCommentVNode as A, createTextVNode as G, readonly as qn, getCurrentScope as Hn, onScopeDispose as Gn, onMounted as lt, nextTick as we, getCurrentInstance as en, shallowRef as Me, toRaw as tn, Fragment as $, renderList as W, normalizeClass as H, resolveDynamicComponent as nn, createSlots as Xn, withDirectives as Ee, vShow as Ie, renderSlot as xe, withModifiers as Ne, isRef as vt, mergeProps as re, normalizeStyle as Ze, defineAsyncComponent as Kn, h as $e, inject as xt, provide as Qn, normalizeProps as ln, guardReactiveProps as an, withKeys as et, onUnmounted as sn, markRaw as gt, createApp as on, shallowReactive as Yn, triggerRef as Ae, KeepAlive as rn } from "vue";
2
- import { ElNotification as Ct, ElMessageBox as Vt, ElMessage as Xe, ElButton as ae, ElDivider as At, ElRadioGroup as un, ElRadioButton as tt, ElButtonGroup as Zn, ElDropdown as cn, ElDropdownMenu as dn, ElDropdownItem as ft, ElInput as ye, ElEmpty as se, ElAlert as jt, ElTooltip as pn, ElTag as el, ElSwitch as mn, ElTree as Et, ElRow as ht, ElCol as bt, ElCollapse as tl, ElCollapseItem as nl, ElDrawer as vn, ElForm as ge, ElFormItem as gn, ElBreadcrumb as ll, ElBreadcrumbItem as al, ElLoading as sl, ElSelect as ol, ElOption as rl, ElInputNumber as il, ElColorPicker as ul, ElUpload as cl, ElSlider as dl, ElConfigProvider as pl, ElContainer as Ft, ElHeader as ml, ElAside as Wt, ElMain as vl, ElFooter as gl } from "element-plus";
1
+ import { computed as S, unref as n, ref as k, reactive as Ge, watchEffect as Un, watch as J, toValue as mt, defineComponent as E, openBlock as p, createElementBlock as j, toDisplayString as z, createVNode as v, withCtx as h, createElementVNode as V, createBlock as y, createCommentVNode as A, createTextVNode as G, readonly as qn, getCurrentScope as Hn, onScopeDispose as Gn, onMounted as lt, nextTick as we, getCurrentInstance as tn, shallowRef as Me, toRaw as nn, Fragment as $, renderList as W, normalizeClass as H, resolveDynamicComponent as ln, createSlots as Xn, withDirectives as Ee, vShow as Ie, renderSlot as xe, withModifiers as Ne, isRef as vt, mergeProps as re, normalizeStyle as Ze, defineAsyncComponent as Kn, h as $e, inject as xt, provide as Qn, normalizeProps as an, guardReactiveProps as sn, withKeys as et, onUnmounted as on, markRaw as gt, createApp as rn, shallowReactive as Yn, triggerRef as Ae, KeepAlive as un } from "vue";
2
+ import { ElNotification as Ct, ElMessageBox as Vt, ElMessage as Xe, ElButton as ae, ElDivider as At, ElRadioGroup as cn, ElRadioButton as tt, ElButtonGroup as Zn, ElDropdown as dn, ElDropdownMenu as pn, ElDropdownItem as ft, ElInput as ye, ElEmpty as se, ElAlert as jt, ElTooltip as mn, ElTag as el, ElSwitch as vn, ElTree as Et, ElRow as ht, ElCol as bt, ElCollapse as tl, ElCollapseItem as nl, ElDrawer as gn, ElForm as ge, ElFormItem as fn, ElBreadcrumb as ll, ElBreadcrumbItem as al, ElLoading as sl, ElSelect as ol, ElOption as rl, ElInputNumber as il, ElColorPicker as ul, ElUpload as cl, ElSlider as dl, ElConfigProvider as pl, ElContainer as Wt, ElHeader as ml, ElAside as Nt, ElMain as vl, ElFooter as gl } from "element-plus";
3
3
  import fl from "element-plus/es/locale/lang/zh-cn";
4
- import { XIcon as ke, XDialog as Be, XDialogForm as Ve, XField as B, XPanel as at, XAction as he, XTabs as Dt, XContainer as L, XForm as Pt, XAttachment as hl, XActionBar as bl, XInputUnit as fn, vResizable as Nt, createDialog as yl } from "@vtj/ui";
5
- import { delay as hn, upperFirstCamelCase as bn, toRawType as ct, cloneDeep as st, logger as Ce, isPlainObject as _l, fileToBase64 as wl, merge as It, arrayToMap as kl, toArray as Sl } from "@vtj/utils";
6
- import { isBlock as ee, DirectiveModel as yn, createNodeFrom as xl, BUILT_IN_VUE as Cl, BUILT_IN_VUE_ROUTER as Vl, BUILT_IN_NAME as yt, emitter as te, EVENT_PROJECT_ACTIVED as _t, EVENT_NODE_CHANGE as Le, NodeModel as Jt, EVENT_BLOCK_CHANGE as wt, Base as _n, BUILT_IN_LIBRARAY_MAP as Al, ProjectModel as jl, EVENT_PROJECT_CHANGE as El, EVENT_PROJECT_BLOCKS_CHANGE as Dl, EVENT_PROJECT_PAGES_CHANGE as Pl, EVENT_PROJECT_DEPS_CHANGE as Il, EVENT_PROJECT_PUBLISH as Bl, EVENT_PROJECT_FILE_PUBLISH as Tl, EVENT_HISTORY_CHANGE as Rl, EVENT_HISTORY_LOAD as $l, BlockModel as Mt, HistoryModel as Ol } from "@vtj/core";
7
- import { parseExpression as Ue, parseFunction as zl, JSCodeToString as Oe, LIFE_CYCLES_LIST as Fl, DATA_TYPES as Wl, isJSExpression as qe, ContextMode as wn, parseDeps as Nl, createAssetsCss as Jl, createAssetScripts as Lt, getRawComponent as Ut, createSchemaApis as Ml, mockCleanup as Ll, mockApis as Ul, Provider as ql, isJSFunction as Hl } from "@vtj/renderer";
8
- import { VtjIconBack as Gl, VtjIconPc as Xl, VtjIconPhone as Kl, VtjIconPad as Ql, VtjIconUndo as Yl, VtjIconRedo as Zl, VtjIconPreview as ea, VtjIconRefresh as ta, VtjIconSetting as kn, icons as kt, ArrowDown as Sn, Search as Bt, CopyDocument as na, Back as la, VtjIconPlus as xn, EditPen as aa, Delete as sa, VtjIconSave as oa, ArrowUp as ra, MoreFilled as Tt, VtjIconCheck as Cn, VtjIconCopy as Vn, VtjIconEdit as An, VtjIconRemove as ot, VtjIconLock as jn, VtjIconUnlock as ia, VtjIconInvisible as En, VtjIconVisible as ua, VtjIconHome as ca, Files as da, VtjIconSearch as pa, VtjIconHelp as Dn, VtjIconLayers as Pn, Rank as ma, VtjIconArrowUp as va, VtjIconArrowDown as ga, IconDisplayBlock as fa, IconDisplayFlex as ha, IconDisplayInlineBlock as ba, IconDisplayInline as ya, IconEyeInvisible as _a, IconFlexDirectionrow as wa, IconFlexDirectionrowReverse as ka, IconFlexDirectioncolumn as Sa, IconFlexDirectioncolumnReverse as xa, IconFlexJustifyflexStartrow as Ca, IconFlexJustifyflexEndrow as Va, IconFlexJustifycenterrow as Aa, IconFlexJustifyspaceBetweenrow as ja, IconFlexJustifyspaceAroundrow as Ea, IconFlexAlignflexStartrow as Da, IconFlexAlignflexEndrow as Pa, IconFlexAligncenterrow as Ia, IconFlexAlignbaselinerow as Ba, IconFlexAlignstretchrow as Ta, IconPositionTopLeft as Ra, IconPositionTopRight as $a, IconPositionBottomLeft as Oa, IconPositionBottomRight as za, IconPositionLeft as Fa, IconPositionRight as Wa, IconPositionTop as Na, IconPositionBottom as Ja, IconPositionAll as Ma, IconTextAlignLeft as La, IconTextAlignCenter as Ua, IconTextAlignRight as qa, IconTextAlignJustify as Ha, IconFontStyleNone as Ga, IconFontStyleItalic as Xa, IconCross as In, IconTextDecorationUnderline as Ka, IconTextDecorationStrike as Qa, IconTextDecorationOverline as Ya, IconTileXy as Za, IconTileX as es, IconTileY as ts, IconClose as ns, IconBorderAll as ls, IconBorderLeft as as, IconBorderTop as ss, IconBorderBottom as os, IconBorderRight as rs, IconBorderStyleSolid as is, IconBorderStyleDashed as us, IconBorderStyleDotted as cs, IconCursorAuto as ds, IconCursorPointer as ps, IconCursorNotAllowed as ms, IconCursorNone as vs, ArrowRight as gs, VtjIconDocument as fs, VtjIconComponents as hs, VtjIconBlock as bs, VtjIconOutline as ys, VtjIconHistory as _s, VtjIconApi as ws, VtjIconCategory as ks, VtjIconInfo as Ss, HomeFilled as xs, Plus as Cs, Close as Vs, VtjIconVars as As, VtjIconSwitch as js, Switch as Es } from "@vtj/icons";
4
+ import { XIcon as ke, XDialog as Be, XDialogForm as Ve, XField as B, XPanel as at, XAction as he, XTabs as Dt, XContainer as L, XForm as Pt, XAttachment as hl, XActionBar as bl, XInputUnit as hn, vResizable as Jt, createDialog as yl } from "@vtj/ui";
5
+ import { delay as It, upperFirstCamelCase as bn, toRawType as ct, cloneDeep as st, logger as Ce, isPlainObject as _l, fileToBase64 as wl, merge as Bt, arrayToMap as kl, toArray as Sl } from "@vtj/utils";
6
+ import { isBlock as ee, DirectiveModel as yn, createNodeFrom as xl, BUILT_IN_VUE as Cl, BUILT_IN_VUE_ROUTER as Vl, BUILT_IN_NAME as yt, emitter as te, EVENT_PROJECT_ACTIVED as _t, EVENT_NODE_CHANGE as Le, NodeModel as Mt, EVENT_BLOCK_CHANGE as wt, Base as _n, BUILT_IN_LIBRARAY_MAP as Al, ProjectModel as jl, EVENT_PROJECT_CHANGE as El, EVENT_PROJECT_BLOCKS_CHANGE as Dl, EVENT_PROJECT_PAGES_CHANGE as Pl, EVENT_PROJECT_DEPS_CHANGE as Il, EVENT_PROJECT_PUBLISH as Bl, EVENT_PROJECT_FILE_PUBLISH as Tl, EVENT_HISTORY_CHANGE as Rl, EVENT_HISTORY_LOAD as $l, BlockModel as Lt, HistoryModel as Ol } from "@vtj/core";
7
+ import { parseExpression as Ue, parseFunction as zl, JSCodeToString as Oe, LIFE_CYCLES_LIST as Fl, DATA_TYPES as Wl, isJSExpression as qe, ContextMode as wn, parseDeps as Nl, createAssetsCss as Jl, createAssetScripts as Ut, getRawComponent as qt, createSchemaApis as Ml, mockCleanup as Ll, mockApis as Ul, Provider as ql, isJSFunction as Hl } from "@vtj/renderer";
8
+ import { VtjIconBack as Gl, VtjIconPc as Xl, VtjIconPhone as Kl, VtjIconPad as Ql, VtjIconUndo as Yl, VtjIconRedo as Zl, VtjIconPreview as ea, VtjIconRefresh as ta, VtjIconSetting as kn, icons as kt, ArrowDown as Sn, Search as Tt, CopyDocument as na, Back as la, VtjIconPlus as xn, EditPen as aa, Delete as sa, VtjIconSave as oa, ArrowUp as ra, MoreFilled as Rt, VtjIconCheck as Cn, VtjIconCopy as Vn, VtjIconEdit as An, VtjIconRemove as ot, VtjIconLock as jn, VtjIconUnlock as ia, VtjIconInvisible as En, VtjIconVisible as ua, VtjIconHome as ca, Files as da, VtjIconSearch as pa, VtjIconHelp as Dn, VtjIconLayers as Pn, Rank as ma, VtjIconArrowUp as va, VtjIconArrowDown as ga, IconDisplayBlock as fa, IconDisplayFlex as ha, IconDisplayInlineBlock as ba, IconDisplayInline as ya, IconEyeInvisible as _a, IconFlexDirectionrow as wa, IconFlexDirectionrowReverse as ka, IconFlexDirectioncolumn as Sa, IconFlexDirectioncolumnReverse as xa, IconFlexJustifyflexStartrow as Ca, IconFlexJustifyflexEndrow as Va, IconFlexJustifycenterrow as Aa, IconFlexJustifyspaceBetweenrow as ja, IconFlexJustifyspaceAroundrow as Ea, IconFlexAlignflexStartrow as Da, IconFlexAlignflexEndrow as Pa, IconFlexAligncenterrow as Ia, IconFlexAlignbaselinerow as Ba, IconFlexAlignstretchrow as Ta, IconPositionTopLeft as Ra, IconPositionTopRight as $a, IconPositionBottomLeft as Oa, IconPositionBottomRight as za, IconPositionLeft as Fa, IconPositionRight as Wa, IconPositionTop as Na, IconPositionBottom as Ja, IconPositionAll as Ma, IconTextAlignLeft as La, IconTextAlignCenter as Ua, IconTextAlignRight as qa, IconTextAlignJustify as Ha, IconFontStyleNone as Ga, IconFontStyleItalic as Xa, IconCross as In, IconTextDecorationUnderline as Ka, IconTextDecorationStrike as Qa, IconTextDecorationOverline as Ya, IconTileXy as Za, IconTileX as es, IconTileY as ts, IconClose as ns, IconBorderAll as ls, IconBorderLeft as as, IconBorderTop as ss, IconBorderBottom as os, IconBorderRight as rs, IconBorderStyleSolid as is, IconBorderStyleDashed as us, IconBorderStyleDotted as cs, IconCursorAuto as ds, IconCursorPointer as ps, IconCursorNotAllowed as ms, IconCursorNone as vs, ArrowRight as gs, VtjIconDocument as fs, VtjIconComponents as hs, VtjIconBlock as bs, VtjIconOutline as ys, VtjIconHistory as _s, VtjIconApi as ws, VtjIconCategory as ks, VtjIconInfo as Ss, HomeFilled as xs, Plus as Cs, Close as Vs, VtjIconVars as As, VtjIconSwitch as js, Switch as Es } from "@vtj/icons";
9
9
  import Ds from "mockjs";
10
10
  /**!
11
11
  * Copyright (c) 2024, VTJ.PRO All rights reserved.
12
12
  * @name @vtj/designer
13
13
  * @author CHC chenhuachun1549@dingtalk.com
14
- * @version 0.8.131
14
+ * @version 0.8.133
15
15
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
16
16
  */
17
- const Ps = "0.8.131", qt = {
17
+ const Ps = "0.8.133", Ht = {
18
18
  width: 390,
19
19
  height: 844
20
- }, Ht = {
20
+ }, Gt = {
21
21
  width: 1024,
22
22
  height: 768
23
23
  }, _e = /^[A-Za-z_$][\:\w_-]*$/, Is = [
@@ -43,7 +43,7 @@ const Ps = "0.8.131", qt = {
43
43
  "self",
44
44
  "once",
45
45
  "passive"
46
- ], Gt = "__vue-devtools-frame-state__", $s = "@id/virtual:vue-devtools-path:overlay.js";
46
+ ], Xt = "__vue-devtools-frame-state__", $s = "@id/virtual:vue-devtools-path:overlay.js";
47
47
  var fe = /* @__PURE__ */ ((u) => (u.Block = "block", u.Node = "node", u))(fe || {}), Os = /* @__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))(Os || {});
48
48
  function Bn() {
49
49
  const u = ce(), e = S(() => u.project.value?.dependencies ?? []), t = S(() => u.project.value?.apis ?? []), l = S(() => u.project.value?.meta ?? []);
@@ -443,7 +443,7 @@ function Gs(u) {
443
443
  componentEventList: o
444
444
  };
445
445
  }
446
- const Xt = (u, e) => new yn({
446
+ const Kt = (u, e) => new yn({
447
447
  name: u,
448
448
  value: void 0,
449
449
  iterator: e
@@ -465,7 +465,7 @@ function Qs(u) {
465
465
  const e = ce(), t = S(() => {
466
466
  const c = u.value?.model || null;
467
467
  return ee(c) ? null : c;
468
- }), l = (c) => S(() => t.value && (t.value.directives || []).find((_) => _.name === c) || Xt(c)), a = () => S(() => {
468
+ }), l = (c) => S(() => t.value && (t.value.directives || []).find((_) => _.name === c) || Kt(c)), a = () => S(() => {
469
469
  if (!t.value) return [];
470
470
  const c = e.assets.componentMap.get(t.value.name || "");
471
471
  return (c ? Ks(c) : []).map((w) => (t.value?.directives || []).find(
@@ -588,7 +588,7 @@ const Zs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
588
588
  return e({
589
589
  mode: r
590
590
  }), (i, g) => (p(), j("div", io, [
591
- v(n(un), {
591
+ v(n(cn), {
592
592
  size: "small",
593
593
  modelValue: r.value,
594
594
  "onUpdate:modelValue": g[0] || (g[0] = (d) => r.value = d)
@@ -665,7 +665,7 @@ const Zs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
665
665
  const { engine: e, designer: t } = Se(), l = k(!1), a = () => {
666
666
  e.current.value ? (l.value ? e.skeleton?.getWidget("Previewer")?.widgetRef.refresh() : (t.value?.setSelected(null), e.simulator.refresh()), de("刷新完成", "success")) : de("请先打开文件", "warning");
667
667
  }, s = async () => {
668
- e.current.value ? (l.value && (e.skeleton?.closePreview(), l.value = !1, await hn(1e3)), t.value?.setSelected(e.current.value)) : de("请先打开文件", "warning");
668
+ e.current.value ? (l.value && (e.skeleton?.closePreview(), l.value = !1, await It(1e3)), t.value?.setSelected(e.current.value)) : de("请先打开文件", "warning");
669
669
  }, o = () => {
670
670
  if (e.project.value)
671
671
  if (e.current.value) {
@@ -720,7 +720,7 @@ const Zs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
720
720
  _: 1
721
721
  }),
722
722
  v(n(At), { direction: "vertical" }),
723
- v(n(cn), {
723
+ v(n(dn), {
724
724
  "split-button": "",
725
725
  type: "primary",
726
726
  size: "small",
@@ -728,7 +728,7 @@ const Zs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
728
728
  onCommand: i
729
729
  }, {
730
730
  dropdown: h(() => [
731
- v(n(dn), null, {
731
+ v(n(pn), null, {
732
732
  default: h(() => [
733
733
  v(n(ft), { command: "current" }, {
734
734
  default: h(() => [
@@ -754,7 +754,7 @@ const Zs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
754
754
  ]));
755
755
  }
756
756
  });
757
- function Rt(u) {
757
+ function $t(u) {
758
758
  return Hn() ? (Gn(u), !0) : !1;
759
759
  }
760
760
  function Ke(u) {
@@ -779,7 +779,7 @@ function bo(u) {
779
779
  }, t;
780
780
  }
781
781
  function yo(u) {
782
- return en();
782
+ return tn();
783
783
  }
784
784
  function _o(u, e = !0, t) {
785
785
  yo() ? lt(u, t) : e ? u() : we(u);
@@ -800,7 +800,7 @@ function wo(u, e, t = {}) {
800
800
  a.value = !1, s = null, u(...g);
801
801
  }, Ke(e));
802
802
  }
803
- return l && (a.value = !0, rt && i()), Rt(r), {
803
+ return l && (a.value = !0, rt && i()), $t(r), {
804
804
  isPending: qn(a),
805
805
  start: i,
806
806
  stop: r
@@ -833,14 +833,14 @@ function Je(...u) {
833
833
  ), g = () => {
834
834
  i(), o();
835
835
  };
836
- return Rt(g), g;
836
+ return $t(g), g;
837
837
  }
838
- let Kt = !1;
838
+ let Qt = !1;
839
839
  function ko(u, e, t = {}) {
840
840
  const { window: l = it, ignore: a = [], capture: s = !0, detectIframe: o = !1 } = t;
841
841
  if (!l)
842
842
  return nt;
843
- fo && !Kt && (Kt = !0, Array.from(l.document.body.children).forEach((f) => f.addEventListener("click", nt)), l.document.documentElement.addEventListener("click", nt));
843
+ fo && !Qt && (Qt = !0, Array.from(l.document.body.children).forEach((f) => f.addEventListener("click", nt)), l.document.documentElement.addEventListener("click", nt));
844
844
  let r = !0;
845
845
  const i = (f) => a.some((b) => {
846
846
  if (typeof b == "string")
@@ -875,20 +875,20 @@ function ko(u, e, t = {}) {
875
875
  return () => d.forEach((f) => f());
876
876
  }
877
877
  function So() {
878
- const u = k(!1), e = en();
878
+ const u = k(!1), e = tn();
879
879
  return e && lt(() => {
880
880
  u.value = !0;
881
881
  }, e), u;
882
882
  }
883
- function $t(u) {
883
+ function Ot(u) {
884
884
  const e = So();
885
885
  return S(() => (e.value, !!u()));
886
886
  }
887
- function Qt(u, e = {}) {
887
+ function Yt(u, e = {}) {
888
888
  const {
889
889
  controls: t = !1,
890
890
  navigator: l = $n
891
- } = e, a = $t(() => l && "permissions" in l), s = Me(), o = typeof u == "string" ? { name: u } : u, r = Me(), i = () => {
891
+ } = e, a = Ot(() => l && "permissions" in l), s = Me(), o = typeof u == "string" ? { name: u } : u, r = Me(), i = () => {
892
892
  var d, m;
893
893
  r.value = (m = (d = s.value) == null ? void 0 : d.state) != null ? m : "prompt";
894
894
  };
@@ -904,7 +904,7 @@ function Qt(u, e = {}) {
904
904
  i();
905
905
  }
906
906
  if (t)
907
- return tn(s.value);
907
+ return nn(s.value);
908
908
  }
909
909
  });
910
910
  return g(), t ? {
@@ -920,7 +920,7 @@ function On(u = {}) {
920
920
  source: l,
921
921
  copiedDuring: a = 1500,
922
922
  legacy: s = !1
923
- } = u, o = $t(() => e && "clipboard" in e), r = Qt("clipboard-read"), i = Qt("clipboard-write"), g = S(() => o.value || s), d = k(""), m = k(!1), f = wo(() => m.value = !1, a);
923
+ } = u, o = Ot(() => e && "clipboard" in e), r = Yt("clipboard-read"), i = Yt("clipboard-write"), g = S(() => o.value || s), d = k(""), m = k(!1), f = wo(() => m.value = !1, a);
924
924
  function b() {
925
925
  o.value && x(r.value) ? e.clipboard.readText().then((C) => {
926
926
  d.value = C;
@@ -951,7 +951,7 @@ function On(u = {}) {
951
951
  function xo(u, e, t = {}) {
952
952
  const { window: l = it, ...a } = t;
953
953
  let s;
954
- const o = $t(() => l && "ResizeObserver" in l), r = () => {
954
+ const o = Ot(() => l && "ResizeObserver" in l), r = () => {
955
955
  s && (s.disconnect(), s = void 0);
956
956
  }, i = S(() => {
957
957
  const m = Ke(u);
@@ -969,7 +969,7 @@ function xo(u, e, t = {}) {
969
969
  ), d = () => {
970
970
  r(), g();
971
971
  };
972
- return Rt(d), {
972
+ return $t(d), {
973
973
  isSupported: o,
974
974
  stop: d
975
975
  };
@@ -1080,7 +1080,7 @@ const Co = { class: "v-icon-setter" }, Vo = { class: "v-icon-setter__content" },
1080
1080
  V("div", Vo, [
1081
1081
  v(n(ye), {
1082
1082
  size: t.size,
1083
- "prefix-icon": n(Bt),
1083
+ "prefix-icon": n(Tt),
1084
1084
  clearable: "",
1085
1085
  modelValue: o.value,
1086
1086
  "onUpdate:modelValue": c[0] || (c[0] = (_) => o.value = _),
@@ -1213,7 +1213,7 @@ const Co = { class: "v-icon-setter" }, Vo = { class: "v-icon-setter__content" },
1213
1213
  _: 1
1214
1214
  }, 8, ["title", "model"]));
1215
1215
  }
1216
- }), Yt = /* @__PURE__ */ E({
1216
+ }), Zt = /* @__PURE__ */ E({
1217
1217
  name: "VIcon",
1218
1218
  __name: "Icon",
1219
1219
  props: {
@@ -1230,7 +1230,7 @@ const Co = { class: "v-icon-setter" }, Vo = { class: "v-icon-setter__content" },
1230
1230
  })), s = () => {
1231
1231
  l("click");
1232
1232
  };
1233
- return (o, r) => (p(), y(n(pn), {
1233
+ return (o, r) => (p(), y(n(mn), {
1234
1234
  effect: "dark",
1235
1235
  placement: "right",
1236
1236
  content: o.label,
@@ -1241,7 +1241,7 @@ const Co = { class: "v-icon-setter" }, Vo = { class: "v-icon-setter__content" },
1241
1241
  class: H(["v-apps-region__icon", a.value]),
1242
1242
  onClick: s
1243
1243
  }, [
1244
- (p(), y(nn(o.icon)))
1244
+ (p(), y(ln(o.icon)))
1245
1245
  ], 2)
1246
1246
  ]),
1247
1247
  _: 1
@@ -1427,7 +1427,7 @@ const Co = { class: "v-icon-setter" }, Vo = { class: "v-icon-setter__content" },
1427
1427
  key: 0,
1428
1428
  mode: "icon",
1429
1429
  size: "small",
1430
- icon: n(Tt),
1430
+ icon: n(Rt),
1431
1431
  background: "hover",
1432
1432
  dropdown: {
1433
1433
  size: "small",
@@ -1607,7 +1607,7 @@ const Co = { class: "v-icon-setter" }, Vo = { class: "v-icon-setter__content" },
1607
1607
  icon: f.icon,
1608
1608
  onClick: (b) => g(f.name)
1609
1609
  }, null, 8, ["name", "title", "icon", "onClick"]))), 256)),
1610
- l.switch ? (p(), y(n(mn), {
1610
+ l.switch ? (p(), y(n(vn), {
1611
1611
  key: 0,
1612
1612
  modelValue: s.value,
1613
1613
  "onUpdate:modelValue": m[0] || (m[0] = (f) => s.value = f),
@@ -1723,7 +1723,7 @@ const Co = { class: "v-icon-setter" }, Vo = { class: "v-icon-setter__content" },
1723
1723
  if (d.level === 0)
1724
1724
  m(o(t.context));
1725
1725
  else {
1726
- const f = tn(d.data.value);
1726
+ const f = nn(d.data.value);
1727
1727
  m(o(f, d.data.path));
1728
1728
  }
1729
1729
  }, i = (d) => {
@@ -1757,7 +1757,7 @@ const Co = { class: "v-icon-setter" }, Vo = { class: "v-icon-setter__content" },
1757
1757
  }, 8, ["props"])) : A("", !0)
1758
1758
  ]));
1759
1759
  }
1760
- }), Ot = /* @__PURE__ */ E({
1760
+ }), zt = /* @__PURE__ */ E({
1761
1761
  __name: "binder",
1762
1762
  props: {
1763
1763
  title: {},
@@ -1848,7 +1848,7 @@ const Co = { class: "v-icon-setter" }, Vo = { class: "v-icon-setter__content" },
1848
1848
  "onUpdate:modelValue": C[0] || (C[0] = (I) => vt(s) ? s.value = I : null),
1849
1849
  size: "small",
1850
1850
  clearable: "",
1851
- "prefix-icon": n(Bt),
1851
+ "prefix-icon": n(Tt),
1852
1852
  placeholder: "筛选可用项"
1853
1853
  }, null, 8, ["modelValue", "prefix-icon"]),
1854
1854
  (p(!0), j($, null, W(n(a), (I) => (p(), j("div", null, [
@@ -2032,11 +2032,11 @@ const Co = { class: "v-icon-setter" }, Vo = { class: "v-icon-setter__content" },
2032
2032
  setup(u) {
2033
2033
  const e = u, t = S(() => [`is-${e.mode}`]), l = S(() => {
2034
2034
  if (e.mode === "pc") return 1;
2035
- const s = e.mode === "mobile" ? qt : Ht, { width: o, height: r } = s, i = o > 0 ? (e.width || 0) / o : 1, g = r > 0 ? (e.height || 0) / r : 1;
2035
+ const s = e.mode === "mobile" ? Ht : Gt, { width: o, height: r } = s, i = o > 0 ? (e.width || 0) / o : 1, g = r > 0 ? (e.height || 0) / r : 1;
2036
2036
  return Math.min(i, g);
2037
2037
  }), a = S(() => {
2038
2038
  if (e.mode === "pc") return {};
2039
- const s = e.mode === "mobile" ? qt : Ht, { width: o, height: r } = s;
2039
+ const s = e.mode === "mobile" ? Ht : Gt, { width: o, height: r } = s;
2040
2040
  return {
2041
2041
  width: `${o}px`,
2042
2042
  height: `${r}px`,
@@ -2130,7 +2130,7 @@ const Co = { class: "v-icon-setter" }, Vo = { class: "v-icon-setter__content" },
2130
2130
  _: 1
2131
2131
  }));
2132
2132
  }
2133
- }), No = { class: "v-file-setter" }, zt = /* @__PURE__ */ E({
2133
+ }), No = { class: "v-file-setter" }, Ft = /* @__PURE__ */ E({
2134
2134
  name: "FileSetter",
2135
2135
  __name: "file",
2136
2136
  props: {
@@ -2385,7 +2385,7 @@ const Co = { class: "v-icon-setter" }, Vo = { class: "v-icon-setter__content" },
2385
2385
  name: "urls",
2386
2386
  label: "资源文件",
2387
2387
  required: "",
2388
- editor: zt,
2388
+ editor: Ft,
2389
2389
  props: { attachment: { accept: f.value, multiple: b.value } }
2390
2390
  }, null, 8, ["props"])) : A("", !0)
2391
2391
  ]),
@@ -3109,7 +3109,7 @@ const Co = { class: "v-icon-setter" }, Vo = { class: "v-icon-setter__content" },
3109
3109
  ]),
3110
3110
  _: 1
3111
3111
  }),
3112
- r.value ? (p(), y(n(vn), {
3112
+ r.value ? (p(), y(n(gn), {
3113
3113
  key: 0,
3114
3114
  class: "v-drawer",
3115
3115
  modelValue: r.value,
@@ -3196,7 +3196,7 @@ const Co = { class: "v-icon-setter" }, Vo = { class: "v-icon-setter__content" },
3196
3196
  size: "small",
3197
3197
  modelValue: l.value,
3198
3198
  "onUpdate:modelValue": b[0] || (b[0] = (c) => l.value = c),
3199
- "prefix-icon": n(Bt),
3199
+ "prefix-icon": n(Tt),
3200
3200
  placeholder: "搜索API",
3201
3201
  clearable: ""
3202
3202
  }, null, 8, ["modelValue", "prefix-icon"])
@@ -3563,7 +3563,7 @@ const Co = { class: "v-icon-setter" }, Vo = { class: "v-icon-setter__content" },
3563
3563
  key: 0,
3564
3564
  "image-size": 40
3565
3565
  })),
3566
- v(n(Ot), {
3566
+ v(n(zt), {
3567
3567
  modelValue: a.value,
3568
3568
  "onUpdate:modelValue": _[1] || (_[1] = (w) => a.value = w),
3569
3569
  title: r.value,
@@ -3574,7 +3574,7 @@ const Co = { class: "v-icon-setter" }, Vo = { class: "v-icon-setter__content" },
3574
3574
  onPick: d
3575
3575
  }, {
3576
3576
  default: h(() => [
3577
- xe(c.$slots, "fields", ln(an({ model: s.value, isEdit: o.value, nameLabel: c.nameLabel, valueLabel: c.valueLabel })), () => [
3577
+ xe(c.$slots, "fields", an(sn({ model: s.value, isEdit: o.value, nameLabel: c.nameLabel, valueLabel: c.valueLabel })), () => [
3578
3578
  v(n(B), {
3579
3579
  name: "name",
3580
3580
  label: c.nameLabel,
@@ -4056,7 +4056,7 @@ const Co = { class: "v-icon-setter" }, Vo = { class: "v-icon-setter__content" },
4056
4056
  }), a = (s) => {
4057
4057
  t.value.getEditor().setValue(s), l.value = s;
4058
4058
  };
4059
- return (s, o) => (p(), y(n(Ot), {
4059
+ return (s, o) => (p(), y(n(zt), {
4060
4060
  title: "绑定变量",
4061
4061
  "unbind-enabled": "",
4062
4062
  block: e.current,
@@ -4111,7 +4111,7 @@ const Co = { class: "v-icon-setter" }, Vo = { class: "v-icon-setter__content" },
4111
4111
  })), o = (r) => {
4112
4112
  t.value.getEditor().setValue(r), a.handler.value = r;
4113
4113
  };
4114
- return (r, i) => (p(), y(n(Ot), {
4114
+ return (r, i) => (p(), y(n(zt), {
4115
4115
  title: "绑定事件",
4116
4116
  "unbind-enabled": "",
4117
4117
  block: e.current,
@@ -5095,7 +5095,7 @@ const Co = { class: "v-icon-setter" }, Vo = { class: "v-icon-setter__content" },
5095
5095
  ]),
5096
5096
  _: 1
5097
5097
  }),
5098
- g.value ? (p(), y(n(vn), {
5098
+ g.value ? (p(), y(n(gn), {
5099
5099
  key: 0,
5100
5100
  class: "v-drawer",
5101
5101
  modelValue: g.value,
@@ -5455,7 +5455,7 @@ const Co = { class: "v-icon-setter" }, Vo = { class: "v-icon-setter__content" },
5455
5455
  default: h(() => [
5456
5456
  v(n(L), null, {
5457
5457
  default: h(() => [
5458
- v(n(fn), {
5458
+ v(n(hn), {
5459
5459
  modelValue: r.value,
5460
5460
  "onUpdate:modelValue": c[0] || (c[0] = (_) => r.value = _),
5461
5461
  size: "small",
@@ -6052,7 +6052,7 @@ const Co = { class: "v-icon-setter" }, Vo = { class: "v-icon-setter__content" },
6052
6052
  value: e.styleJson.inset,
6053
6053
  onChange: e.setStyle
6054
6054
  }, null, 8, ["value", "onChange"]),
6055
- v(n(gn), { label: " " }, {
6055
+ v(n(fn), { label: " " }, {
6056
6056
  default: h(() => [
6057
6057
  V("div", pi, [
6058
6058
  V("div", {
@@ -6910,7 +6910,7 @@ const Co = { class: "v-icon-setter" }, Vo = { class: "v-icon-setter__content" },
6910
6910
  };
6911
6911
  lt(() => {
6912
6912
  a || (a = sl.service({ target: l.value?.$el }));
6913
- }), sn(() => {
6913
+ }), on(() => {
6914
6914
  r(), a = null;
6915
6915
  });
6916
6916
  const r = () => {
@@ -6976,7 +6976,7 @@ const Co = { class: "v-icon-setter" }, Vo = { class: "v-icon-setter__content" },
6976
6976
  v(n(B), {
6977
6977
  label: "Logo",
6978
6978
  name: "logo",
6979
- editor: zt,
6979
+ editor: Ft,
6980
6980
  props: { attachment: { accept: ".png,.jpg,.jpeg" } }
6981
6981
  }),
6982
6982
  v(n(B), {
@@ -7875,7 +7875,7 @@ const Co = { class: "v-icon-setter" }, Vo = { class: "v-icon-setter__content" },
7875
7875
  name: "BooleanSetter",
7876
7876
  __name: "boolean",
7877
7877
  setup(u) {
7878
- return (e, t) => (p(), y(n(mn), re(e.$attrs, {
7878
+ return (e, t) => (p(), y(n(vn), re(e.$attrs, {
7879
7879
  "model-value": !!e.$attrs.modelValue
7880
7880
  }), null, 16, ["model-value"]));
7881
7881
  }
@@ -7962,7 +7962,7 @@ const Co = { class: "v-icon-setter" }, Vo = { class: "v-icon-setter__content" },
7962
7962
  name: "ColorSetter",
7963
7963
  __name: "color",
7964
7964
  setup(u) {
7965
- return (e, t) => (p(), y(n(ul), ln(an(e.$attrs)), null, 16));
7965
+ return (e, t) => (p(), y(n(ul), an(sn(e.$attrs)), null, 16));
7966
7966
  }
7967
7967
  }), au = /* @__PURE__ */ E({
7968
7968
  name: "JsonSetter",
@@ -8010,7 +8010,7 @@ const Co = { class: "v-icon-setter" }, Vo = { class: "v-icon-setter__content" },
8010
8010
  readonly: "",
8011
8011
  onFocus: m,
8012
8012
  "model-value": t.type,
8013
- "suffix-icon": n(Tt)
8013
+ "suffix-icon": n(Rt)
8014
8014
  }, f.$attrs), null, 16, ["model-value", "suffix-icon"]),
8015
8015
  o.value ? (p(), y(n(Be), {
8016
8016
  key: 0,
@@ -8083,7 +8083,7 @@ const Co = { class: "v-icon-setter" }, Vo = { class: "v-icon-setter__content" },
8083
8083
  readonly: "",
8084
8084
  onFocus: d,
8085
8085
  "model-value": "JSFunction",
8086
- "suffix-icon": n(Tt)
8086
+ "suffix-icon": n(Rt)
8087
8087
  }, m.$attrs), null, 16, ["suffix-icon"]),
8088
8088
  s.value ? (p(), y(n(Be), {
8089
8089
  key: 0,
@@ -8131,7 +8131,7 @@ const Co = { class: "v-icon-setter" }, Vo = { class: "v-icon-setter__content" },
8131
8131
  },
8132
8132
  setup(u) {
8133
8133
  const e = u;
8134
- return (t, l) => (p(), y(n(un), re({
8134
+ return (t, l) => (p(), y(n(cn), re({
8135
8135
  class: "v-radio-setter",
8136
8136
  size: "small"
8137
8137
  }, t.$attrs), {
@@ -8208,7 +8208,7 @@ const Co = { class: "v-icon-setter" }, Vo = { class: "v-icon-setter__content" },
8208
8208
  i && (a.value = i.endsWith("px"), o.value = i);
8209
8209
  },
8210
8210
  { immediate: !0 }
8211
- ), (i, g) => (p(), y(n(fn), re({
8211
+ ), (i, g) => (p(), y(n(hn), re({
8212
8212
  clearable: "",
8213
8213
  unit: s.value,
8214
8214
  "with-unit": !!s.value,
@@ -8341,7 +8341,7 @@ const Co = { class: "v-icon-setter" }, Vo = { class: "v-icon-setter__content" },
8341
8341
  ImageSetter: cu,
8342
8342
  SectionSetter: pu,
8343
8343
  SliderSetter: vu,
8344
- FileSetter: zt
8344
+ FileSetter: Ft
8345
8345
  }, gu = {
8346
8346
  name: "StringSetter",
8347
8347
  component: Z.StringSetter,
@@ -8517,7 +8517,7 @@ class hu {
8517
8517
  Ce.warn(`widget '${e}' is not found`);
8518
8518
  return;
8519
8519
  }
8520
- It(l, t), t.component && (l.component = t.component);
8520
+ Bt(l, t), t.component && (l.component = t.component);
8521
8521
  }
8522
8522
  /**
8523
8523
  * 根据区域名称获取区域内的器件配置
@@ -8629,7 +8629,7 @@ class _u {
8629
8629
  Ce.warn(`setter '${e}' is not found`);
8630
8630
  return;
8631
8631
  }
8632
- It(l, t), t.component && (l.component = t.component);
8632
+ Bt(l, t), t.component && (l.component = t.component);
8633
8633
  }
8634
8634
  getByType(e) {
8635
8635
  return Object.values(this.setters).filter((l) => l.type === e).map((l) => l.name);
@@ -8680,11 +8680,12 @@ class wu {
8680
8680
  this.reload();
8681
8681
  }
8682
8682
  ), this.window?.addEventListener("storage", (a) => {
8683
- a.key === Gt && (this.isOpen.value = !!this.getState().open);
8683
+ a.key === Xt && (this.isOpen.value = !!this.getState().open);
8684
8684
  }));
8685
8685
  }
8686
- reload() {
8686
+ async reload() {
8687
8687
  if (!this.enabled) return;
8688
+ await It(200);
8688
8689
  const e = this.window, t = this.engine?.simulator;
8689
8690
  if (!e || !t) return;
8690
8691
  const l = e.__VUE_DEVTOOLS_GLOBAL_HOOK__;
@@ -8694,7 +8695,7 @@ class wu {
8694
8695
  let e = {};
8695
8696
  try {
8696
8697
  e = JSON.parse(
8697
- localStorage.getItem(Gt) || "{}"
8698
+ localStorage.getItem(Xt) || "{}"
8698
8699
  );
8699
8700
  } catch {
8700
8701
  }
@@ -8710,7 +8711,7 @@ class wu {
8710
8711
  }
8711
8712
  function ku(u) {
8712
8713
  return new Promise((e, t) => {
8713
- const l = on(Fo, {
8714
+ const l = rn(Fo, {
8714
8715
  slots: u,
8715
8716
  onClose: () => {
8716
8717
  l.unmount(), t(null);
@@ -8830,7 +8831,7 @@ class Su {
8830
8831
  d = s;
8831
8832
  else {
8832
8833
  const m = this.createNodeDsl(l);
8833
- d = new Jt(m);
8834
+ d = new Mt(m);
8834
8835
  }
8835
8836
  if (ee(i))
8836
8837
  s ? (delete d.slot, o.move(d, void 0, "inner")) : o.addNode(d, void 0, g);
@@ -8861,7 +8862,7 @@ class Su {
8861
8862
  }
8862
8863
  getNodeByElement(e) {
8863
8864
  const t = e.__vtj__ ?? "";
8864
- return Jt.nodes[t] || null;
8865
+ return Mt.nodes[t] || null;
8865
8866
  }
8866
8867
  getDropType(e, t, l) {
8867
8868
  const { left: a, top: s, width: o, height: r } = e;
@@ -8918,7 +8919,7 @@ class Su {
8918
8919
  this.setSelected(null), this.setHover(null), this.setDragging(null), this.setDropping(null);
8919
8920
  }
8920
8921
  async updateRect() {
8921
- await hn(100);
8922
+ await It(100);
8922
8923
  const e = n(this.selected), t = n(this.hover);
8923
8924
  if (e) {
8924
8925
  const l = e.el.getBoundingClientRect();
@@ -9153,8 +9154,8 @@ class Cu extends _n {
9153
9154
  </head>
9154
9155
  <body>
9155
9156
  </body>
9156
- ${Lt(s)}
9157
- ${Lt(r)}
9157
+ ${Ut(s)}
9158
+ ${Ut(r)}
9158
9159
  <script>
9159
9160
  __simulator__.emitReady(${JSON.stringify(i)},
9160
9161
  ${JSON.stringify(g)},
@@ -9192,13 +9193,13 @@ class Cu extends _n {
9192
9193
  if (C.name === yt)
9193
9194
  I.forEach((O) => {
9194
9195
  const R = c.get(O), P = R?.package || "", T = Al[P], D = d[T];
9195
- D && R && (f[O] = Ut(R, D));
9196
+ D && R && (f[O] = qt(R, D));
9196
9197
  });
9197
9198
  else {
9198
9199
  const O = d[t[C.library || ""]];
9199
9200
  O && I.forEach((R) => {
9200
9201
  const P = c.get(R);
9201
- P ? f[R] = Ut(P, O) : f[R] = O[R];
9202
+ P ? f[R] = qt(P, O) : f[R] = O[R];
9202
9203
  });
9203
9204
  }
9204
9205
  }
@@ -9343,7 +9344,7 @@ class cc extends _n {
9343
9344
  }), this.assets = new Vu(this.service, this.provider), this.simulator = new Cu({
9344
9345
  engine: this,
9345
9346
  materialPath: i
9346
- }), this.bindEvents(), this.init(a), lt(this.render.bind(this)), sn(this.dispose.bind(this));
9347
+ }), this.bindEvents(), this.init(a), lt(this.render.bind(this)), on(this.dispose.bind(this));
9347
9348
  }
9348
9349
  app;
9349
9350
  skeleton;
@@ -9369,7 +9370,7 @@ class cc extends _n {
9369
9370
  render() {
9370
9371
  const e = n(this.container);
9371
9372
  if (e) {
9372
- const t = on(Au);
9373
+ const t = rn(Au);
9373
9374
  this.options.install && t.use(this.options.install, this), t.provide(Ln, Yn(this)), t.mount(e), this.app = t;
9374
9375
  } else
9375
9376
  Ce.warn("VTJEngine constructor param [ container ] is undefined");
@@ -9387,7 +9388,7 @@ class cc extends _n {
9387
9388
  a && (l.dsl = a);
9388
9389
  }
9389
9390
  if (l?.dsl) {
9390
- const a = new Mt(l.dsl);
9391
+ const a = new Lt(l.dsl);
9391
9392
  this.updateCurrent(a), this.initHistory(a);
9392
9393
  } else
9393
9394
  this.updateCurrent(null);
@@ -9465,7 +9466,7 @@ class cc extends _n {
9465
9466
  async loadHistory(e) {
9466
9467
  const t = e.model, l = e.data, a = await this.service.getHistoryItem(t.id, l.id);
9467
9468
  if (a && a.dsl) {
9468
- const s = new Mt(a.dsl);
9469
+ const s = new Lt(a.dsl);
9469
9470
  await this.updateCurrent(s), this.service.saveFile(a.dsl), Ae(this.history);
9470
9471
  }
9471
9472
  }
@@ -9523,7 +9524,7 @@ const je = E({
9523
9524
  };
9524
9525
  },
9525
9526
  render() {
9526
- const u = Zt[this.region] || Zt.EmptyRegion;
9527
+ const u = en[this.region] || en.EmptyRegion;
9527
9528
  return $e(u, { ...this.$props, ...this.$attrs, ref: "regionRef" });
9528
9529
  }
9529
9530
  }), Pe = E({
@@ -9790,7 +9791,7 @@ const je = E({
9790
9791
  isPreview: l
9791
9792
  }), (C, I) => (p(), y(n(pl), { locale: n(fl) }, {
9792
9793
  default: h(() => [
9793
- v(n(Ft), { class: "v-skeleton" }, {
9794
+ v(n(Wt), { class: "v-skeleton" }, {
9794
9795
  default: h(() => [
9795
9796
  v(n(ml), {
9796
9797
  class: "v-skeleton__header",
@@ -9816,9 +9817,9 @@ const je = E({
9816
9817
  ]),
9817
9818
  _: 1
9818
9819
  }, 8, ["height"]),
9819
- v(n(Ft), { class: "v-skeleton__wrapper" }, {
9820
+ v(n(Wt), { class: "v-skeleton__wrapper" }, {
9820
9821
  default: h(() => [
9821
- l.value ? A("", !0) : Ee((p(), y(n(Wt), {
9822
+ l.value ? A("", !0) : Ee((p(), y(n(Nt), {
9822
9823
  key: 0,
9823
9824
  width: t.leftWidth,
9824
9825
  class: H(["v-skeleton__left", {
@@ -9834,7 +9835,7 @@ const je = E({
9834
9835
  ]),
9835
9836
  _: 1
9836
9837
  }, 8, ["width", "class"])), [
9837
- [n(Nt), o]
9838
+ [n(Jt), o]
9838
9839
  ]),
9839
9840
  v(n(vl), { class: "v-skeleton__main" }, {
9840
9841
  default: h(() => [
@@ -9855,7 +9856,7 @@ const je = E({
9855
9856
  ]),
9856
9857
  _: 1
9857
9858
  }),
9858
- l.value ? A("", !0) : Ee((p(), y(n(Wt), {
9859
+ l.value ? A("", !0) : Ee((p(), y(n(Nt), {
9859
9860
  key: 1,
9860
9861
  width: t.rightWidth,
9861
9862
  class: "v-skeleton__right"
@@ -9870,7 +9871,7 @@ const je = E({
9870
9871
  _: 1
9871
9872
  }, 8, ["width"])), [
9872
9873
  [Ie, x.value],
9873
- [n(Nt), r]
9874
+ [n(Jt), r]
9874
9875
  ])
9875
9876
  ]),
9876
9877
  _: 1
@@ -9947,13 +9948,13 @@ const je = E({
9947
9948
  }, _ = async (x) => oe(x, t.context, !0) ? (g[o.value.name] = r.value, r.value = x, l("change", x), !0) : !1, w = async () => {
9948
9949
  await ze("确定要解除绑定吗?") && (c(), r.value = void 0, l("change", void 0));
9949
9950
  };
9950
- return (x, C) => (p(), y(n(gn), {
9951
+ return (x, C) => (p(), y(n(fn), {
9951
9952
  class: "v-setter",
9952
9953
  size: "small",
9953
9954
  "label-positon": "left"
9954
9955
  }, {
9955
9956
  label: h(() => [
9956
- t.title ? (p(), y(n(pn), {
9957
+ t.title ? (p(), y(n(mn), {
9957
9958
  key: 0,
9958
9959
  placement: "top-start",
9959
9960
  content: t.title
@@ -9970,7 +9971,7 @@ const je = E({
9970
9971
  default: h(() => [
9971
9972
  V("div", Du, [
9972
9973
  o.value ? (p(), j("div", Pu, [
9973
- i.value ? A("", !0) : (p(), y(nn(o.value.component), re({
9974
+ i.value ? A("", !0) : (p(), y(ln(o.value.component), re({
9974
9975
  key: 0,
9975
9976
  current: t.current,
9976
9977
  context: t.context
@@ -10003,7 +10004,7 @@ const je = E({
10003
10004
  class: H(["v-icon-vars", { "is-active": i.value }]),
10004
10005
  title: "绑定变量"
10005
10006
  }, null, 8, ["class"])) : A("", !0),
10006
- t.setters.length > 1 ? (p(), y(n(cn), {
10007
+ t.setters.length > 1 ? (p(), y(n(dn), {
10007
10008
  key: 1,
10008
10009
  disabled: i.value,
10009
10010
  size: "small",
@@ -10011,7 +10012,7 @@ const je = E({
10011
10012
  onCommand: d
10012
10013
  }, {
10013
10014
  dropdown: h(() => [
10014
- v(n(dn), null, {
10015
+ v(n(pn), null, {
10015
10016
  default: h(() => [
10016
10017
  (p(!0), j($, null, W(t.setters, (I) => (p(), y(n(ft), {
10017
10018
  command: I,
@@ -10164,7 +10165,7 @@ const je = E({
10164
10165
  }), (c, _) => (p(), j("div", Lu, [
10165
10166
  V("div", Uu, [
10166
10167
  V("div", qu, [
10167
- (p(!0), j($, null, W(o.value, (w) => (p(), y(n(Yt), {
10168
+ (p(!0), j($, null, W(o.value, (w) => (p(), y(n(Zt), {
10168
10169
  key: `icon-${w.name}`,
10169
10170
  icon: w.icon,
10170
10171
  label: w.label,
@@ -10174,7 +10175,7 @@ const je = E({
10174
10175
  }, null, 8, ["icon", "label", "active", "open", "onClick"]))), 128))
10175
10176
  ]),
10176
10177
  V("div", Hu, [
10177
- (p(!0), j($, null, W(r.value, (w) => (p(), y(n(Yt), {
10178
+ (p(!0), j($, null, W(r.value, (w) => (p(), y(n(Zt), {
10178
10179
  key: `icon-${w.name}`,
10179
10180
  icon: w.icon,
10180
10181
  label: w.label,
@@ -10183,7 +10184,7 @@ const je = E({
10183
10184
  ])
10184
10185
  ]),
10185
10186
  V("div", Gu, [
10186
- (p(!0), j($, null, W(o.value, (w) => (p(), y(rn, {
10187
+ (p(!0), j($, null, W(o.value, (w) => (p(), y(un, {
10187
10188
  key: w.name
10188
10189
  }, [
10189
10190
  g.value?.name === w.name ? (p(), y(n(Pe), {
@@ -10381,7 +10382,7 @@ const je = E({
10381
10382
  ref_key: "widgetsRef",
10382
10383
  ref: g,
10383
10384
  region: w.region,
10384
- widget: n(It)({ props: { isStyleCodeMode: m.value } }, C)
10385
+ widget: n(Bt)({ props: { isStyleCodeMode: m.value } }, C)
10385
10386
  }, null, 8, ["region", "widget"])) : A("", !0)
10386
10387
  ], 64))), 128))
10387
10388
  ]),
@@ -10452,7 +10453,7 @@ const je = E({
10452
10453
  "onUpdate:modelValue": g[0] || (g[0] = (d) => r.value = d)
10453
10454
  }, {
10454
10455
  default: h(() => [
10455
- (p(!0), j($, null, W(n(l), (d) => (p(), y(rn, {
10456
+ (p(!0), j($, null, W(n(l), (d) => (p(), y(un, {
10456
10457
  key: d.name
10457
10458
  }, [
10458
10459
  r.value === d.name ? (p(), y(n(Pe), {
@@ -10468,7 +10469,7 @@ const je = E({
10468
10469
  _: 1
10469
10470
  }, 8, ["items", "modelValue"]));
10470
10471
  }
10471
- }), Zt = {
10472
+ }), en = {
10472
10473
  EmptyRegion: Ou,
10473
10474
  Brand: Fu,
10474
10475
  Toolbar: Nu,
@@ -10482,7 +10483,7 @@ const je = E({
10482
10483
  export {
10483
10484
  Ts as API_METHOD_TYPES,
10484
10485
  Vu as Assets,
10485
- Ot as Binder,
10486
+ zt as Binder,
10486
10487
  St as Box,
10487
10488
  Su as Designer,
10488
10489
  wu as DevTools,
@@ -10490,13 +10491,13 @@ export {
10490
10491
  le as Editor,
10491
10492
  cc as Engine,
10492
10493
  fr as EventBinder,
10493
- Yt as Icon,
10494
+ Zt as Icon,
10494
10495
  ue as Item,
10495
10496
  Bs as KEYBOARD_EVENT_LIST,
10496
- qt as MOBILE_SIZE,
10497
+ Ht as MOBILE_SIZE,
10497
10498
  Is as MOUSE_EVENT_LIST,
10498
10499
  _e as NAME_REGEX,
10499
- Ht as PAD_SIZE,
10500
+ Gt as PAD_SIZE,
10500
10501
  q as Panel,
10501
10502
  Os as RegionType,
10502
10503
  je as RegionWrapper,
@@ -10509,7 +10510,7 @@ export {
10509
10510
  Fo as SlotsPicker,
10510
10511
  ut as Tabs,
10511
10512
  Ps as VTJ_DESIGNER_VERSION,
10512
- Gt as VUE_DEVTOOLS_FRAME_STATE_KEY,
10513
+ Xt as VUE_DEVTOOLS_FRAME_STATE_KEY,
10513
10514
  $s as VUE_DEVTOOLS_PATH,
10514
10515
  gr as VariableBinder,
10515
10516
  Oo as Viewer,
@@ -10530,7 +10531,7 @@ export {
10530
10531
  de as message,
10531
10532
  ne as notify,
10532
10533
  qs as proxyContext,
10533
- Zt as regions,
10534
+ en as regions,
10534
10535
  We as setterManager,
10535
10536
  Z as setters,
10536
10537
  ce as useEngine,
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@vtj/designer",
3
3
  "private": false,
4
- "version": "0.8.131",
4
+ "version": "0.8.133",
5
5
  "type": "module",
6
6
  "dependencies": {
7
7
  "mockjs": "~1.1.0",
8
8
  "monaco-editor": "~0.48.0",
9
- "@vtj/core": "~0.8.131",
10
- "@vtj/icons": "~0.8.131",
11
- "@vtj/renderer": "~0.8.131",
12
- "@vtj/utils": "~0.8.131",
13
- "@vtj/ui": "~0.8.131"
9
+ "@vtj/core": "~0.8.133",
10
+ "@vtj/ui": "~0.8.133",
11
+ "@vtj/renderer": "~0.8.133",
12
+ "@vtj/utils": "~0.8.133",
13
+ "@vtj/icons": "~0.8.133"
14
14
  },
15
15
  "devDependencies": {
16
16
  "@types/mockjs": "~1.0.10",
@@ -13,7 +13,7 @@ export declare class DevTools {
13
13
  private createVueDevToolsScript;
14
14
  private checkDevtools;
15
15
  private bindEvents;
16
- reload(): void;
16
+ reload(): Promise<void>;
17
17
  private getState;
18
18
  setup(window: Window, app: App, basePath?: string): void;
19
19
  }
@@ -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.130
5
+ * @version 0.8.132
6
6
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
7
7
  */
8
- export declare const version = "0.8.130";
8
+ export declare const version = "0.8.132";