@vtj/designer 0.7.32 → 0.7.33

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,21 +1,21 @@
1
- import { computed as S, unref as t, ref as k, reactive as Me, watchEffect as In, watch as H, toValue as at, defineComponent as V, openBlock as u, createElementBlock as A, toDisplayString as z, createVNode as p, withCtx as h, createElementVNode as x, createBlock as b, createCommentVNode as j, createTextVNode as G, Fragment as $, renderList as T, normalizeClass as q, resolveDynamicComponent as Jt, createSlots as Dn, withDirectives as je, vShow as De, renderSlot as _e, withModifiers as Oe, toRaw as Pn, isRef as ot, mergeProps as ue, normalizeStyle as qe, nextTick as ye, defineAsyncComponent as Bn, h as Be, inject as ht, provide as $n, normalizeProps as Wt, guardReactiveProps as Nt, withKeys as He, onMounted as Mt, onUnmounted as Lt, createApp as Ut, shallowRef as rt, shallowReactive as Rn, triggerRef as Ve, markRaw as At, KeepAlive as qt } from "vue";
2
- import { ElNotification as Qe, ElMessageBox as bt, ElMessage as Ke, ElButton as ie, ElDivider as yt, ElRadioGroup as Ht, ElRadioButton as Ge, ElButtonGroup as zn, ElDropdown as Gt, ElDropdownMenu as Xt, ElDropdownItem as it, ElInput as we, ElEmpty as se, ElTooltip as Qt, ElTag as Tn, ElSwitch as Kt, ElTree as _t, ElAlert as Yt, ElRow as ut, ElCol as ct, ElCollapse as On, ElCollapseItem as Fn, ElDrawer as Zt, ElForm as ge, ElFormItem as en, ElBreadcrumb as Jn, ElBreadcrumbItem as Wn, ElLoading as Nn, ElUpload as Mn, ElSelect as Ln, ElOption as Un, ElInputNumber as qn, ElColorPicker as Hn, ElSlider as Gn, ElConfigProvider as Xn, ElContainer as jt, ElHeader as Qn, ElAside as Et, ElMain as Kn, ElFooter as Yn } from "element-plus";
1
+ import { computed as S, unref as t, ref as k, reactive as Me, watchEffect as In, watch as q, toValue as at, defineComponent as V, openBlock as u, createElementBlock as A, toDisplayString as z, createVNode as p, withCtx as h, createElementVNode as x, createBlock as b, createCommentVNode as j, createTextVNode as G, Fragment as $, renderList as T, normalizeClass as H, resolveDynamicComponent as Jt, createSlots as Dn, withDirectives as je, vShow as De, renderSlot as _e, withModifiers as Oe, toRaw as Pn, isRef as ot, mergeProps as ue, normalizeStyle as He, nextTick as ye, defineAsyncComponent as Bn, h as Be, inject as ht, provide as $n, normalizeProps as Nt, guardReactiveProps as Wt, withKeys as qe, onMounted as Mt, onUnmounted as Lt, createApp as Ut, shallowRef as rt, shallowReactive as Rn, triggerRef as Ve, markRaw as At, KeepAlive as Ht } from "vue";
2
+ import { ElNotification as Ke, ElMessageBox as bt, ElMessage as Qe, ElButton as ie, ElDivider as yt, ElRadioGroup as qt, ElRadioButton as Ge, ElButtonGroup as zn, ElDropdown as Gt, ElDropdownMenu as Xt, ElDropdownItem as it, ElInput as we, ElEmpty as se, ElTooltip as Kt, ElTag as Tn, ElSwitch as Qt, ElTree as _t, ElAlert as Yt, ElRow as ut, ElCol as ct, ElCollapse as On, ElCollapseItem as Fn, ElDrawer as Zt, ElForm as ge, ElFormItem as en, ElBreadcrumb as Jn, ElBreadcrumbItem as Nn, ElLoading as Wn, ElUpload as Mn, ElSelect as Ln, ElOption as Un, ElInputNumber as Hn, ElColorPicker as qn, ElSlider as Gn, ElConfigProvider as Xn, ElContainer as jt, ElHeader as Kn, ElAside as Et, ElMain as Qn, ElFooter as Yn } from "element-plus";
3
3
  import Zn from "element-plus/es/locale/lang/zh-cn";
4
- import { XIcon as ke, XDialog as Re, XDialogForm as xe, XField as I, XPanel as Ye, XAction as he, XTabs as wt, XContainer as N, XForm as kt, XActionBar as el, XInputUnit as tn, vResizable as It, createDialog as tl } from "@vtj/ui";
4
+ import { XIcon as ke, XDialog as Re, XDialogForm as xe, XField as I, XPanel as Ye, XAction as he, XTabs as wt, XContainer as W, XForm as kt, XActionBar as el, XInputUnit as tn, vResizable as It, createDialog as tl } from "@vtj/ui";
5
5
  import { delay as nn, upperFirstCamelCase as ln, toRawType as nt, cloneDeep as Ze, logger as Se, fileToBase64 as nl, isPlainObject as ll, merge as St, arrayToMap as sl, toArray as al } from "@vtj/utils";
6
6
  import { isBlock as Y, DirectiveModel as sn, BUILT_IN_VUE as ol, BUILT_IN_VUE_ROUTER as rl, BUILT_IN_NAME as dt, emitter as te, EVENT_PROJECT_ACTIVED as pt, EVENT_NODE_CHANGE as Fe, NodeModel as Dt, EVENT_BLOCK_CHANGE as mt, Base as an, BUILT_IN_LIBRARAY_MAP as il, ProjectModel as ul, EVENT_PROJECT_CHANGE as cl, EVENT_PROJECT_BLOCKS_CHANGE as dl, EVENT_PROJECT_PAGES_CHANGE as pl, EVENT_PROJECT_DEPS_CHANGE as ml, EVENT_PROJECT_PUBLISH as vl, EVENT_PROJECT_FILE_PUBLISH as gl, EVENT_HISTORY_CHANGE as fl, EVENT_HISTORY_LOAD as hl, BlockModel as Pt, HistoryModel as bl } from "@vtj/core";
7
- import { parseExpression as Je, parseFunction as yl, JSCodeToString as $e, LIFE_CYCLES_LIST as _l, DATA_TYPES as wl, isJSExpression as We, createLoader as kl, ContextMode as vt, createRenderer as Sl, parseDeps as xl, createAssetsCss as Cl, createAssetScripts as Bt, getRawComponent as $t, createSchemaApis as Vl, mockCleanup as Al, mockApis as jl, Provider as El, isJSFunction as Il } from "@vtj/renderer";
8
- import { VtjIconBack as Dl, VtjIconPc as Pl, VtjIconPhone as Bl, VtjIconPad as $l, VtjIconUndo as Rl, VtjIconRedo as zl, VtjIconPreview as Tl, VtjIconRefresh as Ol, VtjIconSetting as on, icons as gt, ArrowDown as rn, Search as un, Back as Fl, VtjIconPlus as cn, EditPen as Jl, Delete as Wl, VtjIconSave as Nl, ArrowUp as Ml, MoreFilled as xt, VtjIconCheck as dn, VtjIconCopy as pn, VtjIconEdit as mn, VtjIconRemove as et, VtjIconLock as vn, VtjIconUnlock as Ll, VtjIconInvisible as gn, VtjIconVisible as Ul, VtjIconHome as ql, VtjIconSearch as Hl, VtjIconHelp as fn, VtjIconLayers as hn, VtjIconArrowUp as Gl, VtjIconArrowDown as Xl, IconDisplayBlock as Ql, IconDisplayFlex as Kl, IconDisplayInlineBlock as Yl, IconDisplayInline as Zl, IconEyeInvisible as es, IconFlexDirectionrow as ts, IconFlexDirectionrowReverse as ns, IconFlexDirectioncolumn as ls, IconFlexDirectioncolumnReverse as ss, IconFlexJustifyflexStartrow as as, IconFlexJustifyflexEndrow as os, IconFlexJustifycenterrow as rs, IconFlexJustifyspaceBetweenrow as is, IconFlexJustifyspaceAroundrow as us, IconFlexAlignflexStartrow as cs, IconFlexAlignflexEndrow as ds, IconFlexAligncenterrow as ps, IconFlexAlignbaselinerow as ms, IconFlexAlignstretchrow as vs, IconPositionTopLeft as gs, IconPositionTopRight as fs, IconPositionBottomLeft as hs, IconPositionBottomRight as bs, IconPositionLeft as ys, IconPositionRight as _s, IconPositionTop as ws, IconPositionBottom as ks, IconPositionAll as Ss, IconTextAlignLeft as xs, IconTextAlignCenter as Cs, IconTextAlignRight as Vs, IconTextAlignJustify as As, IconFontStyleNone as js, IconFontStyleItalic as Es, IconCross as bn, IconTextDecorationUnderline as Is, IconTextDecorationStrike as Ds, IconTextDecorationOverline as Ps, IconTileXy as Bs, IconTileX as $s, IconTileY as Rs, IconClose as zs, IconBorderAll as Ts, IconBorderLeft as Os, IconBorderTop as Fs, IconBorderBottom as Js, IconBorderRight as Ws, IconBorderStyleSolid as Ns, IconBorderStyleDashed as Ms, IconBorderStyleDotted as Ls, IconCursorAuto as Us, IconCursorPointer as qs, IconCursorNotAllowed as Hs, IconCursorNone as Gs, ArrowRight as Xs, Plus as Qs, VtjIconDocument as Ks, VtjIconComponents as Ys, VtjIconBlock as Zs, VtjIconOutline as ea, VtjIconHistory as ta, VtjIconApi as na, VtjIconCategory as la, VtjIconInfo as sa, Close as aa, VtjIconVars as oa, VtjIconSwitch as ra, Switch as ia } from "@vtj/icons";
9
- import { useClipboard as ua, useElementSize as Ne, onClickOutside as ca } from "@vueuse/core";
7
+ import { parseExpression as Je, parseFunction as yl, JSCodeToString as $e, LIFE_CYCLES_LIST as _l, DATA_TYPES as wl, isJSExpression as Ne, createLoader as kl, ContextMode as vt, createRenderer as Sl, parseDeps as xl, createAssetsCss as Cl, createAssetScripts as Bt, getRawComponent as $t, createSchemaApis as Vl, mockCleanup as Al, mockApis as jl, Provider as El, isJSFunction as Il } from "@vtj/renderer";
8
+ import { VtjIconBack as Dl, VtjIconPc as Pl, VtjIconPhone as Bl, VtjIconPad as $l, VtjIconUndo as Rl, VtjIconRedo as zl, VtjIconPreview as Tl, VtjIconRefresh as Ol, VtjIconSetting as on, icons as gt, ArrowDown as rn, Search as un, Back as Fl, VtjIconPlus as cn, EditPen as Jl, Delete as Nl, VtjIconSave as Wl, ArrowUp as Ml, MoreFilled as xt, VtjIconCheck as dn, VtjIconCopy as pn, VtjIconEdit as mn, VtjIconRemove as et, VtjIconLock as vn, VtjIconUnlock as Ll, VtjIconInvisible as gn, VtjIconVisible as Ul, VtjIconHome as Hl, VtjIconSearch as ql, VtjIconHelp as fn, VtjIconLayers as hn, VtjIconArrowUp as Gl, VtjIconArrowDown as Xl, IconDisplayBlock as Kl, IconDisplayFlex as Ql, IconDisplayInlineBlock as Yl, IconDisplayInline as Zl, IconEyeInvisible as es, IconFlexDirectionrow as ts, IconFlexDirectionrowReverse as ns, IconFlexDirectioncolumn as ls, IconFlexDirectioncolumnReverse as ss, IconFlexJustifyflexStartrow as as, IconFlexJustifyflexEndrow as os, IconFlexJustifycenterrow as rs, IconFlexJustifyspaceBetweenrow as is, IconFlexJustifyspaceAroundrow as us, IconFlexAlignflexStartrow as cs, IconFlexAlignflexEndrow as ds, IconFlexAligncenterrow as ps, IconFlexAlignbaselinerow as ms, IconFlexAlignstretchrow as vs, IconPositionTopLeft as gs, IconPositionTopRight as fs, IconPositionBottomLeft as hs, IconPositionBottomRight as bs, IconPositionLeft as ys, IconPositionRight as _s, IconPositionTop as ws, IconPositionBottom as ks, IconPositionAll as Ss, IconTextAlignLeft as xs, IconTextAlignCenter as Cs, IconTextAlignRight as Vs, IconTextAlignJustify as As, IconFontStyleNone as js, IconFontStyleItalic as Es, IconCross as bn, IconTextDecorationUnderline as Is, IconTextDecorationStrike as Ds, IconTextDecorationOverline as Ps, IconTileXy as Bs, IconTileX as $s, IconTileY as Rs, IconClose as zs, IconBorderAll as Ts, IconBorderLeft as Os, IconBorderTop as Fs, IconBorderBottom as Js, IconBorderRight as Ns, IconBorderStyleSolid as Ws, IconBorderStyleDashed as Ms, IconBorderStyleDotted as Ls, IconCursorAuto as Us, IconCursorPointer as Hs, IconCursorNotAllowed as qs, IconCursorNone as Gs, ArrowRight as Xs, Plus as Ks, VtjIconDocument as Qs, VtjIconComponents as Ys, VtjIconBlock as Zs, VtjIconOutline as ea, VtjIconHistory as ta, VtjIconApi as na, VtjIconCategory as la, VtjIconInfo as sa, Close as aa, VtjIconVars as oa, VtjIconSwitch as ra, Switch as ia } from "@vtj/icons";
9
+ import { useClipboard as ua, useElementSize as We, onClickOutside as ca } from "@vueuse/core";
10
10
  import da from "mockjs";
11
11
  /**!
12
12
  * Copyright (c) 2024, VTJ.PRO All rights reserved.
13
13
  * @name @vtj/designer
14
14
  * @author CHC chenhuachun1549@dingtalk.com
15
- * @version 0.7.32
15
+ * @version 0.7.33
16
16
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
17
17
  */
18
- const pa = "0.7.32", Rt = {
18
+ const pa = "0.7.33", Rt = {
19
19
  width: 390,
20
20
  height: 844
21
21
  }, zt = {
@@ -98,7 +98,7 @@ function _a() {
98
98
  {}
99
99
  );
100
100
  Object.assign(s, g);
101
- }), H(
101
+ }), q(
102
102
  r,
103
103
  (g) => {
104
104
  g.length && !a.value && (a.value = g[0].name);
@@ -141,7 +141,7 @@ function wa(c, e, n, l) {
141
141
  ), i = S(
142
142
  () => lt("selected", o.value?.selected.value)
143
143
  );
144
- return H(s.changed, () => {
144
+ return q(s.changed, () => {
145
145
  o.value?.updateRect();
146
146
  }), {
147
147
  designer: o,
@@ -266,7 +266,7 @@ function Ca(c) {
266
266
  const g = c.value?.model || null;
267
267
  return Y(g) ? null : g;
268
268
  }), l = k();
269
- H(
269
+ q(
270
270
  n,
271
271
  async (g) => {
272
272
  g?.from ? l.value = await e.assets.getBlockMaterial(g.from) || void 0 : l.value = void 0;
@@ -328,7 +328,7 @@ function Ca(c) {
328
328
  };
329
329
  }
330
330
  function le(c, e = "提示") {
331
- return Qe.warning({
331
+ return Ke.warning({
332
332
  title: e,
333
333
  message: c
334
334
  });
@@ -339,7 +339,7 @@ async function ze(c) {
339
339
  );
340
340
  }
341
341
  function de(c, e = "success") {
342
- return Ke({
342
+ return Qe({
343
343
  message: c,
344
344
  type: e
345
345
  });
@@ -349,7 +349,7 @@ function ae(c, e, n = !1) {
349
349
  try {
350
350
  c.type === "JSExpression" ? Je(c, e, n, !0) : yl(c, e, n, !0);
351
351
  } catch (s) {
352
- l = !1, Qe.error({
352
+ l = !1, Ke.error({
353
353
  title: "代码错误",
354
354
  message: s.message
355
355
  });
@@ -391,7 +391,7 @@ function Va(c) {
391
391
  const a = c.value?.model || null;
392
392
  return !a || Y(a) ? null : a;
393
393
  }), l = k();
394
- H(
394
+ q(
395
395
  n,
396
396
  async (a) => {
397
397
  a?.from ? l.value = await e.assets.getBlockMaterial(a.from) || void 0 : l.value = void 0;
@@ -569,7 +569,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
569
569
  })
570
570
  ]));
571
571
  }
572
- }), Ja = { class: "v-toolbar-widget" }, Wa = /* @__PURE__ */ V({
572
+ }), Ja = { class: "v-toolbar-widget" }, Na = /* @__PURE__ */ V({
573
573
  name: "ToolbarWidget",
574
574
  inheritAttrs: !1,
575
575
  __name: "index",
@@ -581,7 +581,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
581
581
  return e({
582
582
  mode: a
583
583
  }), (i, v) => (u(), A("div", Ja, [
584
- p(t(Ht), {
584
+ p(t(qt), {
585
585
  size: "small",
586
586
  modelValue: a.value,
587
587
  "onUpdate:modelValue": v[0] || (v[0] = (m) => a.value = m)
@@ -647,7 +647,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
647
647
  })
648
648
  ]));
649
649
  }
650
- }), Na = { class: "v-actions-widget" }, Ma = /* @__PURE__ */ x("span", null, "发布", -1), La = /* @__PURE__ */ V({
650
+ }), Wa = { class: "v-actions-widget" }, Ma = /* @__PURE__ */ x("span", null, "发布", -1), La = /* @__PURE__ */ V({
651
651
  name: "ActionsWidget",
652
652
  inheritAttrs: !1,
653
653
  __name: "index",
@@ -676,7 +676,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
676
676
  const m = e.project.value;
677
677
  m && (v === "current" ? a() : m.publish());
678
678
  };
679
- return (v, m) => (u(), A("div", Na, [
679
+ return (v, m) => (u(), A("div", Wa, [
680
680
  j("", !0),
681
681
  j("", !0),
682
682
  p(t(ie), {
@@ -746,7 +746,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
746
746
  })
747
747
  ]));
748
748
  }
749
- }), Ua = { class: "v-icon-setter" }, qa = { class: "v-icon-setter__content" }, Ha = { class: "v-icon-setter__list" }, kn = /* @__PURE__ */ V({
749
+ }), Ua = { class: "v-icon-setter" }, Ha = { class: "v-icon-setter__content" }, qa = { class: "v-icon-setter__list" }, kn = /* @__PURE__ */ V({
750
750
  name: "IconSetter",
751
751
  __name: "icon",
752
752
  props: {
@@ -808,7 +808,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
808
808
  })
809
809
  ]),
810
810
  default: h(() => [
811
- x("div", qa, [
811
+ x("div", Ha, [
812
812
  p(t(we), {
813
813
  size: n.size,
814
814
  "prefix-icon": t(un),
@@ -817,11 +817,11 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
817
817
  "onUpdate:modelValue": d[0] || (d[0] = (_) => r.value = _),
818
818
  placeholder: "请输入查询关键字"
819
819
  }, null, 8, ["size", "prefix-icon", "modelValue"]),
820
- x("div", Ha, [
820
+ x("div", qa, [
821
821
  (u(!0), A($, null, T(i.value, (_) => (u(), b(t(ke), {
822
822
  icon: _[1],
823
823
  onClick: (w) => v(_[0]),
824
- class: q({ "is-active": o.value === _[0] })
824
+ class: H({ "is-active": o.value === _[0] })
825
825
  }, null, 8, ["icon", "onClick", "class"]))), 256)),
826
826
  i.value.length === 0 ? (u(), b(t(se), { key: 0 })) : j("", !0)
827
827
  ])
@@ -938,7 +938,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
938
938
  })), o = () => {
939
939
  l("click");
940
940
  };
941
- return (r, a) => (u(), b(t(Qt), {
941
+ return (r, a) => (u(), b(t(Kt), {
942
942
  effect: "dark",
943
943
  placement: "right",
944
944
  content: r.label,
@@ -946,7 +946,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
946
946
  }, {
947
947
  default: h(() => [
948
948
  x("div", {
949
- class: q(["v-apps-region__icon", s.value]),
949
+ class: H(["v-apps-region__icon", s.value]),
950
950
  onClick: o
951
951
  }, [
952
952
  (u(), b(Jt(r.icon)))
@@ -995,7 +995,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
995
995
  s.value = f;
996
996
  };
997
997
  return (f, d) => (u(), b(t(Ye), {
998
- class: q(["v-panel", o.value]),
998
+ class: H(["v-panel", o.value]),
999
999
  border: !1,
1000
1000
  header: g.value,
1001
1001
  fit: ""
@@ -1023,7 +1023,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1023
1023
  key: 2,
1024
1024
  size: f.$attrs.size,
1025
1025
  mode: "icon",
1026
- icon: t(Wl),
1026
+ icon: t(Nl),
1027
1027
  background: "hover",
1028
1028
  title: "清除",
1029
1029
  onClick: v
@@ -1032,7 +1032,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1032
1032
  key: 3,
1033
1033
  size: f.$attrs.size,
1034
1034
  mode: "icon",
1035
- icon: t(Nl),
1035
+ icon: t(Wl),
1036
1036
  background: "hover",
1037
1037
  title: "保存",
1038
1038
  onClick: m
@@ -1075,7 +1075,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1075
1075
  } : void 0
1076
1076
  ]), 1032, ["class", "header"]));
1077
1077
  }
1078
- }), Xa = { class: "v-tabs__header" }, Qa = {
1078
+ }), Xa = { class: "v-tabs__header" }, Ka = {
1079
1079
  key: 0,
1080
1080
  class: "v-tabs__actions"
1081
1081
  }, tt = /* @__PURE__ */ V({
@@ -1097,9 +1097,9 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1097
1097
  const n = c, l = e, s = k(
1098
1098
  (n.modelValue || n.items[0]?.name) ?? ""
1099
1099
  );
1100
- H(s, () => {
1100
+ q(s, () => {
1101
1101
  l("update:modelValue", s.value);
1102
- }), H(
1102
+ }), q(
1103
1103
  () => n.modelValue,
1104
1104
  (i) => {
1105
1105
  s.value = i;
@@ -1130,7 +1130,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1130
1130
  onActionClick: a,
1131
1131
  stretch: n.stretch
1132
1132
  }, null, 8, ["items", "modelValue", "stretch"]),
1133
- n.menus && n.menus.length ? (u(), A("div", Qa, [
1133
+ n.menus && n.menus.length ? (u(), A("div", Ka, [
1134
1134
  n.menus && n.menus.length ? (u(), b(t(he), {
1135
1135
  key: 0,
1136
1136
  mode: "icon",
@@ -1148,7 +1148,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1148
1148
  x("span", null, [
1149
1149
  n.checkable ? (u(), b(t(dn), {
1150
1150
  key: 0,
1151
- class: q({
1151
+ class: H({
1152
1152
  "v-tabs__checked": !0,
1153
1153
  "is-checked": m.checked
1154
1154
  })
@@ -1167,7 +1167,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1167
1167
  _: 3
1168
1168
  }));
1169
1169
  }
1170
- }), Ka = {
1170
+ }), Qa = {
1171
1171
  key: 2,
1172
1172
  class: "v-item__index"
1173
1173
  }, Ya = { class: "v-item__content" }, Za = {
@@ -1229,7 +1229,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1229
1229
  },
1230
1230
  home: {
1231
1231
  label: "主页",
1232
- icon: ql
1232
+ icon: Hl
1233
1233
  }
1234
1234
  }, l = c, s = e, o = k(!!l.modelValue), r = S(() => l.actions.map((m) => {
1235
1235
  const g = n[m];
@@ -1256,21 +1256,21 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1256
1256
  modelValue: l.modelValue
1257
1257
  });
1258
1258
  };
1259
- return H(o, (m) => {
1259
+ return q(o, (m) => {
1260
1260
  s("update:modelValue", m), s("switch", m);
1261
- }), H(
1261
+ }), q(
1262
1262
  () => l.modelValue,
1263
1263
  (m) => {
1264
1264
  o.value = !!m;
1265
1265
  }
1266
- ), (m, g) => (u(), b(t(N), {
1267
- class: q(["v-item", a.value]),
1266
+ ), (m, g) => (u(), b(t(W), {
1267
+ class: H(["v-item", a.value]),
1268
1268
  justify: "space-between",
1269
1269
  align: "center",
1270
1270
  onClick: i
1271
1271
  }, {
1272
1272
  default: h(() => [
1273
- p(t(N), {
1273
+ p(t(W), {
1274
1274
  class: "v-item__title",
1275
1275
  align: "center"
1276
1276
  }, {
@@ -1291,14 +1291,14 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1291
1291
  ]),
1292
1292
  _: 1
1293
1293
  }, 8, ["type"])) : j("", !0),
1294
- m.index !== void 0 ? (u(), A("span", Ka, " # " + z(m.index), 1)) : j("", !0),
1294
+ m.index !== void 0 ? (u(), A("span", Qa, " # " + z(m.index), 1)) : j("", !0),
1295
1295
  x("span", Ya, z(m.title), 1),
1296
1296
  m.subtitle ? (u(), A("span", Za, z(m.subtitle), 1)) : j("", !0)
1297
1297
  ])
1298
1298
  ]),
1299
1299
  _: 3
1300
1300
  }),
1301
- p(t(N), {
1301
+ p(t(W), {
1302
1302
  class: "v-item__actions",
1303
1303
  onClick: g[1] || (g[1] = Oe(() => {
1304
1304
  }, ["stop"]))
@@ -1314,7 +1314,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1314
1314
  icon: y.icon,
1315
1315
  onClick: (f) => v(y.name)
1316
1316
  }, null, 8, ["name", "title", "icon", "onClick"]))), 256)),
1317
- l.switch ? (u(), b(t(Kt), {
1317
+ l.switch ? (u(), b(t(Qt), {
1318
1318
  key: 0,
1319
1319
  modelValue: o.value,
1320
1320
  "onUpdate:modelValue": g[0] || (g[0] = (y) => o.value = y),
@@ -1356,12 +1356,12 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1356
1356
  l("dragend", n);
1357
1357
  };
1358
1358
  return (v, m) => (u(), A("div", {
1359
- class: q(["v-box", r.value]),
1359
+ class: H(["v-box", r.value]),
1360
1360
  draggable: v.draggable,
1361
1361
  onDragstart: a,
1362
1362
  onDragend: i
1363
1363
  }, [
1364
- p(t(N), {
1364
+ p(t(W), {
1365
1365
  direction: "column",
1366
1366
  justify: "center",
1367
1367
  align: "center"
@@ -1372,7 +1372,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1372
1372
  ]),
1373
1373
  _: 1
1374
1374
  }),
1375
- n.editable ? (u(), b(t(N), {
1375
+ n.editable ? (u(), b(t(W), {
1376
1376
  key: 0,
1377
1377
  class: "v-box__footer",
1378
1378
  justify: "flex-end",
@@ -1496,7 +1496,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1496
1496
  }, _ = (C) => {
1497
1497
  l("pick", C);
1498
1498
  }, w = (C) => {
1499
- r(C), Ke.success({
1499
+ r(C), Qe.success({
1500
1500
  message: "已经复制到粘贴板"
1501
1501
  });
1502
1502
  };
@@ -1512,13 +1512,13 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1512
1512
  onClose: g
1513
1513
  }, {
1514
1514
  default: h(() => [
1515
- p(t(N), {
1515
+ p(t(W), {
1516
1516
  fit: "",
1517
1517
  direction: "row",
1518
1518
  overflow: "hidden"
1519
1519
  }, {
1520
1520
  default: h(() => [
1521
- p(t(N), {
1521
+ p(t(W), {
1522
1522
  width: "30%",
1523
1523
  height: "100%"
1524
1524
  }, {
@@ -1530,7 +1530,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1530
1530
  "onUpdate:modelValue": E[1] || (E[1] = (D) => i.value = D)
1531
1531
  }, {
1532
1532
  default: h(() => [
1533
- p(t(N), {
1533
+ p(t(W), {
1534
1534
  class: "v-binder__tab-content",
1535
1535
  fit: "",
1536
1536
  padding: "",
@@ -1588,9 +1588,9 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1588
1588
  border: !1
1589
1589
  }, {
1590
1590
  footer: h(() => [
1591
- p(t(N), { justify: "space-between" }, {
1591
+ p(t(W), { justify: "space-between" }, {
1592
1592
  default: h(() => [
1593
- p(t(N), null, {
1593
+ p(t(W), null, {
1594
1594
  default: h(() => [
1595
1595
  C.unbindEnabled ? (u(), b(t(ie), {
1596
1596
  key: 0,
@@ -1606,7 +1606,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1606
1606
  ]),
1607
1607
  _: 1
1608
1608
  }),
1609
- p(t(N), null, {
1609
+ p(t(W), null, {
1610
1610
  default: h(() => [
1611
1611
  p(t(ie), {
1612
1612
  type: "default",
@@ -1689,7 +1689,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1689
1689
  type: "warning",
1690
1690
  closable: !1
1691
1691
  }),
1692
- p(t(N), {
1692
+ p(t(W), {
1693
1693
  class: "v-slots-picker__content",
1694
1694
  justify: "space-around",
1695
1695
  alignContent: "flex-start",
@@ -1697,8 +1697,8 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1697
1697
  wrap: "wrap"
1698
1698
  }, {
1699
1699
  default: h(() => [
1700
- (u(!0), A($, null, T(n.slots, (m, g) => (u(), b(t(N), {
1701
- class: q(["v-slots-picker__item", { "is-active": m.name === s.value?.name }]),
1700
+ (u(!0), A($, null, T(n.slots, (m, g) => (u(), b(t(W), {
1701
+ class: H(["v-slots-picker__item", { "is-active": m.name === s.value?.name }]),
1702
1702
  grow: "",
1703
1703
  flex: !1,
1704
1704
  onClick: (y) => r(m)
@@ -1743,8 +1743,8 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1743
1743
  };
1744
1744
  });
1745
1745
  return (o, r) => (u(), A("div", {
1746
- class: q(["v-viewport", n.value]),
1747
- style: qe(s.value)
1746
+ class: H(["v-viewport", n.value]),
1747
+ style: He(s.value)
1748
1748
  }, [
1749
1749
  _e(o.$slots, "default")
1750
1750
  ], 6));
@@ -1969,7 +1969,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1969
1969
  size: "small"
1970
1970
  }, {
1971
1971
  prefix: h(() => [
1972
- p(t(Hl))
1972
+ p(t(ql))
1973
1973
  ]),
1974
1974
  _: 1
1975
1975
  }, 8, ["modelValue"])
@@ -2061,14 +2061,14 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2061
2061
  name: "OutlineWidget",
2062
2062
  __name: "index",
2063
2063
  setup(c) {
2064
- const { engine: e, designer: n, selected: l } = be(), { current: s } = oe(), o = k([]), r = (R, W) => {
2065
- if (W === "slot")
2064
+ const { engine: e, designer: n, selected: l } = be(), { current: s } = oe(), o = k([]), r = (R, N) => {
2065
+ if (N === "slot")
2066
2066
  return [];
2067
2067
  if (Y(R))
2068
2068
  return R.locked ? ["unlock"] : ["lock"];
2069
2069
  const P = R.parent;
2070
2070
  return P && (P.locked || P.invisible) ? [] : s.value?.locked ? [] : R.locked ? ["unlock"] : R.invisible ? ["visible"] : ["lock", "invisible", "copy", "remove"];
2071
- }, a = (R, W) => {
2071
+ }, a = (R, N) => {
2072
2072
  const P = {};
2073
2073
  if (!R.some((M) => M.slot))
2074
2074
  return i(R);
@@ -2079,16 +2079,16 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2079
2079
  const pe = [];
2080
2080
  for (const [M, L] of Object.entries(P))
2081
2081
  pe.push({
2082
- id: `${W.id}-${M}`,
2082
+ id: `${N.id}-${M}`,
2083
2083
  label: `#${M}`,
2084
2084
  type: "slot",
2085
- model: W,
2085
+ model: N,
2086
2086
  disabled: !0,
2087
2087
  children: i(L)
2088
2088
  });
2089
2089
  return pe;
2090
2090
  }, i = (R) => {
2091
- const W = [];
2091
+ const N = [];
2092
2092
  return R.forEach((P) => {
2093
2093
  const Z = {
2094
2094
  id: P.id,
@@ -2097,16 +2097,16 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2097
2097
  //getNodeType(model),
2098
2098
  model: P
2099
2099
  };
2100
- Array.isArray(P.children) && (Z.children = a(P.children, P)), W.push(Z);
2101
- }), W;
2100
+ Array.isArray(P.children) && (Z.children = a(P.children, P)), N.push(Z);
2101
+ }), N;
2102
2102
  }, v = () => {
2103
2103
  if (!s.value)
2104
2104
  return [];
2105
- const { id: R, name: W, nodes: P } = s.value;
2105
+ const { id: R, name: N, nodes: P } = s.value;
2106
2106
  return [
2107
2107
  {
2108
2108
  id: R,
2109
- label: W,
2109
+ label: N,
2110
2110
  type: R,
2111
2111
  model: s.value,
2112
2112
  children: i(P)
@@ -2115,13 +2115,13 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2115
2115
  }, m = async () => {
2116
2116
  o.value = v(), l.value?.model && (await ye(), n.value?.setSelected(l.value.model));
2117
2117
  }, g = S(() => l.value?.model.id), y = (R) => {
2118
- const W = R.data;
2119
- if (W.type === "slot" || Y(W.model) || W.model.locked || W.model.name === "template")
2118
+ const N = R.data;
2119
+ if (N.type === "slot" || Y(N.model) || N.model.locked || N.model.name === "template")
2120
2120
  return !1;
2121
- const P = e.assets.componentMap.get(W.model.name);
2121
+ const P = e.assets.componentMap.get(N.model.name);
2122
2122
  return P ? (n.value?.setDragging(P), !0) : !1;
2123
- }, f = async (R, W, P) => {
2124
- const Z = W.data, M = {
2123
+ }, f = async (R, N, P) => {
2124
+ const Z = N.data, M = {
2125
2125
  prev: "top",
2126
2126
  next: "bottom",
2127
2127
  inner: "inner"
@@ -2135,14 +2135,14 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2135
2135
  }
2136
2136
  return L;
2137
2137
  }, d = (R) => {
2138
- const W = R?.model;
2139
- if (!W || W.invisible || R.type === "slot") {
2138
+ const N = R?.model;
2139
+ if (!N || N.invisible || R.type === "slot") {
2140
2140
  n.value?.setSelected(null), n.value?.setHover(null);
2141
2141
  return;
2142
2142
  }
2143
- n.value?.setSelected(W), n.value?.setHover(null);
2144
- }, _ = async (R, W, P) => {
2145
- const Z = R.data, pe = W.data;
2143
+ n.value?.setSelected(N), n.value?.setHover(null);
2144
+ }, _ = async (R, N, P) => {
2145
+ const Z = R.data, pe = N.data;
2146
2146
  if (Y(pe.model)) {
2147
2147
  n.value?.setDropping(null), n.value?.setDragging(null);
2148
2148
  return;
@@ -2152,7 +2152,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2152
2152
  M,
2153
2153
  L
2154
2154
  )) {
2155
- n.value?.setDropping(null), m(), Ke.warning({
2155
+ n.value?.setDropping(null), m(), Qe.warning({
2156
2156
  message: `${Z.model.name}不能放置到该位置`
2157
2157
  }), n.value?.setDragging(null);
2158
2158
  return;
@@ -2175,18 +2175,18 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2175
2175
  }, C = () => {
2176
2176
  n.value?.setHover(null);
2177
2177
  }, E = (R) => {
2178
- const W = R.data;
2179
- W.dragging = !0;
2180
- const P = e.assets.componentMap.get(W.model.name);
2178
+ const N = R.data;
2179
+ N.dragging = !0;
2180
+ const P = e.assets.componentMap.get(N.model.name);
2181
2181
  P && n.value?.setDragging(P);
2182
2182
  }, D = async (R) => {
2183
- const W = R.data;
2184
- W.dragging = !1;
2185
- }, B = (R, W) => {
2186
- R && ((R.id === W.id || !Y(R) && W.isChild(R)) && n.value?.setSelected(null), n.value?.setHover(null));
2183
+ const N = R.data;
2184
+ N.dragging = !1;
2185
+ }, B = (R, N) => {
2186
+ R && ((R.id === N.id || !Y(R) && N.isChild(R)) && n.value?.setSelected(null), n.value?.setHover(null));
2187
2187
  }, J = (R) => {
2188
- const { name: W, modelValue: P } = R, Z = l.value?.model;
2189
- switch (W) {
2188
+ const { name: N, modelValue: P } = R, Z = l.value?.model;
2189
+ switch (N) {
2190
2190
  case "lock":
2191
2191
  B(Z, P), P.lock();
2192
2192
  break;
@@ -2208,7 +2208,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2208
2208
  break;
2209
2209
  }
2210
2210
  };
2211
- return H(e.changed, m, { immediate: !0 }), (R, W) => (u(), b(t(U), {
2211
+ return q(e.changed, m, { immediate: !0 }), (R, N) => (u(), b(t(U), {
2212
2212
  class: "v-outline-widget",
2213
2213
  title: "大纲树"
2214
2214
  }, {
@@ -2232,7 +2232,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2232
2232
  }, {
2233
2233
  default: h(({ data: P, node: Z }) => [
2234
2234
  p(t(re), {
2235
- class: q(["v-outline-widget__item", {
2235
+ class: H(["v-outline-widget__item", {
2236
2236
  "is-locked": P.model.locked,
2237
2237
  "is-invisible": P.model.invisible,
2238
2238
  "is-dragging": P.dragging,
@@ -2358,7 +2358,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2358
2358
  }
2359
2359
  ], n = ht("currentModel", null);
2360
2360
  return (l, s) => (u(), A("div", null, [
2361
- p(t(N), { justify: "space-between" }, {
2361
+ p(t(W), { justify: "space-between" }, {
2362
2362
  default: h(() => [
2363
2363
  p(t(I), {
2364
2364
  name: "settings.loading",
@@ -2468,7 +2468,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2468
2468
  disabled: !l.value.mock,
2469
2469
  editor: "switch"
2470
2470
  }, null, 8, ["disabled"]),
2471
- p(t(N), { justify: "space-between" }, {
2471
+ p(t(W), { justify: "space-between" }, {
2472
2472
  default: h(() => [
2473
2473
  yo,
2474
2474
  p(t(he), {
@@ -2523,7 +2523,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2523
2523
  ];
2524
2524
  $n("currentModel", r);
2525
2525
  const m = S(() => r.value?.method === "jsonp");
2526
- H(
2526
+ q(
2527
2527
  () => e.model,
2528
2528
  (_) => {
2529
2529
  r.value = Object.assign({}, _ || {}), l.value = "base";
@@ -2531,7 +2531,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2531
2531
  {
2532
2532
  immediate: !0
2533
2533
  }
2534
- ), H(l, async () => {
2534
+ ), q(l, async () => {
2535
2535
  o.value?.formRef.validate(async (_) => {
2536
2536
  _ || (await ye(), l.value = "base");
2537
2537
  });
@@ -2566,9 +2566,9 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2566
2566
  height: "600px"
2567
2567
  }, {
2568
2568
  default: h(() => [
2569
- p(t(N), { fit: "" }, {
2569
+ p(t(W), { fit: "" }, {
2570
2570
  default: h(() => [
2571
- p(t(N), {
2571
+ p(t(W), {
2572
2572
  width: "100px",
2573
2573
  shrink: !1
2574
2574
  }, {
@@ -2593,7 +2593,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2593
2593
  fit: ""
2594
2594
  }, {
2595
2595
  footer: h(() => [
2596
- p(t(N), { justify: "space-between" }, {
2596
+ p(t(W), { justify: "space-between" }, {
2597
2597
  default: h(() => [
2598
2598
  x("div", null, [
2599
2599
  l.value === "mock" ? (u(), b(t(ie), {
@@ -2899,7 +2899,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2899
2899
  m.name === "remove" ? await ze("确定删除?") && l("action", { type: m.name, model: n.model }) : l("action", { type: m.name, model: n.model });
2900
2900
  };
2901
2901
  return (m, g) => (u(), A("div", {
2902
- class: q(["v-actions", [`is-${n.position}`]])
2902
+ class: H(["v-actions", [`is-${n.position}`]])
2903
2903
  }, [
2904
2904
  p(t(he), {
2905
2905
  mode: "icon",
@@ -2928,7 +2928,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2928
2928
  inheritAttrs: !1,
2929
2929
  __name: "index",
2930
2930
  setup(c, { expose: e }) {
2931
- const n = k(), l = k(), { width: s, height: o } = Ne(n), { dependencies: r, engine: a, apis: i } = yn(), { current: v, isEmpty: m } = oe(), g = S(() => a.skeleton?.getWidget("Toolbar")?.widgetRef.mode ?? "pc"), y = S(() => a.project.value?.config || {}), { designer: f, hover: d, dropping: _, selected: w } = wa(
2931
+ const n = k(), l = k(), { width: s, height: o } = We(n), { dependencies: r, engine: a, apis: i } = yn(), { current: v, isEmpty: m } = oe(), g = S(() => a.skeleton?.getWidget("Toolbar")?.widgetRef.mode ?? "pc"), y = S(() => a.project.value?.config || {}), { designer: f, hover: d, dropping: _, selected: w } = wa(
2932
2932
  l,
2933
2933
  r,
2934
2934
  i,
@@ -2979,16 +2979,16 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2979
2979
  }, null, 512),
2980
2980
  t(_) ? (u(), A("div", {
2981
2981
  key: 0,
2982
- class: q(["v-designer__dropping", "is-inner"]),
2983
- style: qe(t(_).style)
2982
+ class: H(["v-designer__dropping", "is-inner"]),
2983
+ style: He(t(_).style)
2984
2984
  }, null, 4)) : j("", !0),
2985
2985
  t(d) ? (u(), A("div", {
2986
2986
  key: 1,
2987
2987
  class: "v-designer__hover",
2988
- style: qe(t(d).style)
2988
+ style: He(t(d).style)
2989
2989
  }, [
2990
2990
  x("span", {
2991
- class: q(`is-${t(d).position}`)
2991
+ class: H(`is-${t(d).position}`)
2992
2992
  }, [
2993
2993
  G(z(t(d).model.name) + ": ", 1),
2994
2994
  x("i", null, z(t(d).model.id), 1)
@@ -2997,7 +2997,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2997
2997
  t(w) ? (u(), A("div", {
2998
2998
  key: 2,
2999
2999
  class: "v-designer__selected",
3000
- style: qe(t(w).style)
3000
+ style: He(t(w).style)
3001
3001
  }, [
3002
3002
  p(Co, {
3003
3003
  position: t(w).position,
@@ -3084,7 +3084,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3084
3084
  onPick: m
3085
3085
  }, {
3086
3086
  default: h(() => [
3087
- _e(d.$slots, "fields", Wt(Nt({ model: o.value, isEdit: r.value, nameLabel: d.nameLabel, valueLabel: d.valueLabel })), () => [
3087
+ _e(d.$slots, "fields", Nt(Wt({ model: o.value, isEdit: r.value, nameLabel: d.nameLabel, valueLabel: d.valueLabel })), () => [
3088
3088
  p(t(I), {
3089
3089
  name: "name",
3090
3090
  label: d.nameLabel,
@@ -3377,7 +3377,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3377
3377
  __name: "index",
3378
3378
  setup(c) {
3379
3379
  const { current: e, context: n } = oe();
3380
- return (l, s) => (u(), b(t(N), {
3380
+ return (l, s) => (u(), b(t(W), {
3381
3381
  class: "v-scripts-widget",
3382
3382
  direction: "column",
3383
3383
  fit: ""
@@ -3435,7 +3435,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3435
3435
  class: "v-properties-widget__form",
3436
3436
  size: "small",
3437
3437
  "label-width": "90px",
3438
- onKeydown: a[0] || (a[0] = He(Oe(() => {
3438
+ onKeydown: a[0] || (a[0] = qe(Oe(() => {
3439
3439
  }, ["prevent", "stop"]), ["enter"]))
3440
3440
  }, {
3441
3441
  default: h(() => [
@@ -3477,7 +3477,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3477
3477
  }, w = async (C) => {
3478
3478
  await ze("确定删除?") && m(C);
3479
3479
  };
3480
- return (C, E) => t(e) ? (u(), b(t(N), {
3480
+ return (C, E) => t(e) ? (u(), b(t(W), {
3481
3481
  key: 0,
3482
3482
  class: "v-properties-widget",
3483
3483
  direction: "column",
@@ -3672,7 +3672,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3672
3672
  const { name: _, modelValue: w } = d;
3673
3673
  _ === "edit" && v(w), _ === "remove" && g(w);
3674
3674
  };
3675
- return (d, _) => (u(), b(t(N), {
3675
+ return (d, _) => (u(), b(t(W), {
3676
3676
  class: "v-events-widget",
3677
3677
  direction: "column",
3678
3678
  fit: ""
@@ -3808,7 +3808,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3808
3808
  onForChange: m,
3809
3809
  onModelChange: g
3810
3810
  } = Ea(l), y = (f) => f.arg ? typeof f.arg == "string" ? f.arg : Je(f.arg, {}) : "modelValue";
3811
- return (f, d) => (u(), b(t(N), {
3811
+ return (f, d) => (u(), b(t(W), {
3812
3812
  class: "v-directives-widget",
3813
3813
  direction: "column",
3814
3814
  fit: ""
@@ -3824,7 +3824,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3824
3824
  p(t(ge), {
3825
3825
  size: "small",
3826
3826
  "label-width": "80px",
3827
- onKeydown: d[0] || (d[0] = He(Oe(() => {
3827
+ onKeydown: d[0] || (d[0] = qe(Oe(() => {
3828
3828
  }, ["prevent", "stop"]), ["enter"]))
3829
3829
  }, {
3830
3830
  default: h(() => [
@@ -3871,7 +3871,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3871
3871
  p(t(ge), {
3872
3872
  size: "small",
3873
3873
  "label-width": "80px",
3874
- onKeydown: d[1] || (d[1] = He(Oe(() => {
3874
+ onKeydown: d[1] || (d[1] = qe(Oe(() => {
3875
3875
  }, ["prevent", "stop"]), ["enter"]))
3876
3876
  }, {
3877
3877
  default: h(() => [
@@ -3935,7 +3935,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3935
3935
  p(t(ge), {
3936
3936
  size: "small",
3937
3937
  "label-width": "60px",
3938
- onKeydown: d[2] || (d[2] = He(Oe(() => {
3938
+ onKeydown: d[2] || (d[2] = qe(Oe(() => {
3939
3939
  }, ["prevent", "stop"]), ["enter"]))
3940
3940
  }, {
3941
3941
  default: h(() => [
@@ -4044,7 +4044,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4044
4044
  _: 1
4045
4045
  }, 8, ["title", "model"]));
4046
4046
  }
4047
- }), Wo = /* @__PURE__ */ V({
4047
+ }), No = /* @__PURE__ */ V({
4048
4048
  name: "DefinedEventsDialog",
4049
4049
  __name: "events",
4050
4050
  props: {
@@ -4079,7 +4079,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4079
4079
  _: 1
4080
4080
  }, 8, ["title", "model"]));
4081
4081
  }
4082
- }), No = /* @__PURE__ */ V({
4082
+ }), Wo = /* @__PURE__ */ V({
4083
4083
  name: "DefinedSlotsDialog",
4084
4084
  __name: "slots",
4085
4085
  props: {
@@ -4203,7 +4203,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4203
4203
  y.value = void 0, g.value = !0;
4204
4204
  }, R = (M) => {
4205
4205
  y.value = M, g.value = !0;
4206
- }, W = (M) => {
4206
+ }, N = (M) => {
4207
4207
  const { name: L, modelValue: O } = M;
4208
4208
  L === "edit" && R(O), L === "remove" && e.value?.removeSlot(O);
4209
4209
  }, P = () => {
@@ -4214,7 +4214,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4214
4214
  const { name: L, modelValue: O } = M;
4215
4215
  L === "edit" && Z(O), L === "remove" && e.value?.removeInject(O);
4216
4216
  };
4217
- return (M, L) => t(e) && t(n) ? (u(), b(t(N), {
4217
+ return (M, L) => t(e) && t(n) ? (u(), b(t(W), {
4218
4218
  key: 0,
4219
4219
  class: "v-defined-widget",
4220
4220
  direction: "column",
@@ -4274,7 +4274,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4274
4274
  key: 0,
4275
4275
  "image-size": 50
4276
4276
  })),
4277
- v.value ? (u(), b(Wo, {
4277
+ v.value ? (u(), b(No, {
4278
4278
  key: 1,
4279
4279
  modelValue: v.value,
4280
4280
  "onUpdate:modelValue": L[1] || (L[1] = (O) => v.value = O),
@@ -4300,13 +4300,13 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4300
4300
  border: "",
4301
4301
  actions: ["remove"],
4302
4302
  onClick: (Pe) => R(O),
4303
- onAction: W
4303
+ onAction: N
4304
4304
  }, null, 8, ["model-value", "title", "onClick"]))), 256)),
4305
4305
  o.value.length ? j("", !0) : (u(), b(t(se), {
4306
4306
  key: 0,
4307
4307
  "image-size": 50
4308
4308
  })),
4309
- g.value ? (u(), b(No, {
4309
+ g.value ? (u(), b(Wo, {
4310
4310
  key: 1,
4311
4311
  modelValue: g.value,
4312
4312
  "onUpdate:modelValue": L[2] || (L[2] = (O) => g.value = O),
@@ -4545,7 +4545,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4545
4545
  _: 1
4546
4546
  }, 8, ["title", "model"]));
4547
4547
  }
4548
- }), qo = /* @__PURE__ */ V({
4548
+ }), Ho = /* @__PURE__ */ V({
4549
4549
  name: "DataSourcesWidget",
4550
4550
  __name: "index",
4551
4551
  setup(c) {
@@ -4559,7 +4559,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4559
4559
  const { name: m, modelValue: g } = v;
4560
4560
  m === "edit" && a(g), m === "remove" && e.value?.removeDataSource(g.name);
4561
4561
  };
4562
- return (v, m) => (u(), b(t(N), {
4562
+ return (v, m) => (u(), b(t(W), {
4563
4563
  class: "v-data-sources-widget",
4564
4564
  direction: "column",
4565
4565
  fit: ""
@@ -4601,7 +4601,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4601
4601
  _: 1
4602
4602
  }));
4603
4603
  }
4604
- }), Ho = /* @__PURE__ */ V({
4604
+ }), qo = /* @__PURE__ */ V({
4605
4605
  __name: "layout",
4606
4606
  props: {
4607
4607
  styleJson: {},
@@ -4609,7 +4609,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4609
4609
  },
4610
4610
  setup(c) {
4611
4611
  const e = c, n = k();
4612
- H(
4612
+ q(
4613
4613
  () => e.styleJson.display,
4614
4614
  (v) => {
4615
4615
  n.value = v === "flex";
@@ -4620,12 +4620,12 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4620
4620
  {
4621
4621
  label: "block-块级布局",
4622
4622
  value: "block",
4623
- svg: Ql
4623
+ svg: Kl
4624
4624
  },
4625
4625
  {
4626
4626
  label: "flex-弹性布局",
4627
4627
  value: "flex",
4628
- svg: Kl
4628
+ svg: Ql
4629
4629
  },
4630
4630
  {
4631
4631
  label: "inline-block-行内块级布局",
@@ -4840,7 +4840,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4840
4840
  _: 1
4841
4841
  }));
4842
4842
  }
4843
- }), Xo = { class: "v-spacing-input" }, Qo = /* @__PURE__ */ x("div", { class: "v-spacing-input__modal" }, null, -1), Ko = { class: "v-spacing-input__content" }, Yo = ["onClick"], xn = /* @__PURE__ */ V({
4843
+ }), Xo = { class: "v-spacing-input" }, Ko = /* @__PURE__ */ x("div", { class: "v-spacing-input__modal" }, null, -1), Qo = { class: "v-spacing-input__content" }, Yo = ["onClick"], xn = /* @__PURE__ */ V({
4844
4844
  __name: "spacing-input",
4845
4845
  props: {
4846
4846
  name: {},
@@ -4863,16 +4863,16 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4863
4863
  a.value = void 0, s("update:modelValue", a.value), s("submit", l.name, void 0), s("close");
4864
4864
  };
4865
4865
  return (f, d) => (u(), A("div", Xo, [
4866
- Qo,
4867
- x("div", Ko, [
4868
- p(t(N), {
4866
+ Ko,
4867
+ x("div", Qo, [
4868
+ p(t(W), {
4869
4869
  class: "v-spacing-input__body",
4870
4870
  ref_key: "bodyRef",
4871
4871
  ref: r,
4872
4872
  direction: "column"
4873
4873
  }, {
4874
4874
  default: h(() => [
4875
- p(t(N), null, {
4875
+ p(t(W), null, {
4876
4876
  default: h(() => [
4877
4877
  p(t(tn), {
4878
4878
  modelValue: a.value,
@@ -4886,9 +4886,9 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4886
4886
  ]),
4887
4887
  _: 1
4888
4888
  }),
4889
- p(t(N), null, {
4889
+ p(t(W), null, {
4890
4890
  default: h(() => [
4891
- o.value ? (u(), b(t(N), {
4891
+ o.value ? (u(), b(t(W), {
4892
4892
  key: 0,
4893
4893
  class: "v-spacing-input__auto",
4894
4894
  width: "20%"
@@ -4900,7 +4900,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4900
4900
  ]),
4901
4901
  _: 1
4902
4902
  })) : j("", !0),
4903
- p(t(N), {
4903
+ p(t(W), {
4904
4904
  grow: "",
4905
4905
  class: "v-spacing-input__values",
4906
4906
  align: "center",
@@ -4916,7 +4916,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4916
4916
  ]),
4917
4917
  _: 1
4918
4918
  }),
4919
- p(t(N), null, {
4919
+ p(t(W), null, {
4920
4920
  default: h(() => [
4921
4921
  p(t(ie), {
4922
4922
  size: "small",
@@ -4980,14 +4980,14 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4980
4980
  "dominant-baseline": "hanging"
4981
4981
  }, " margin ", -1), jr = [
4982
4982
  Ar
4983
- ], Q = 36, K = 24, Er = /* @__PURE__ */ V({
4983
+ ], K = 36, Q = 24, Er = /* @__PURE__ */ V({
4984
4984
  __name: "spacing",
4985
4985
  props: {
4986
4986
  styleJson: {},
4987
4987
  setStyle: { type: Function }
4988
4988
  },
4989
4989
  setup(c) {
4990
- const e = c, n = k(), l = k(), { width: s, height: o } = Ne(n), { width: r, height: a } = Ne(l), i = k(!1), v = k(), m = k(), g = () => {
4990
+ const e = c, n = k(), l = k(), { width: s, height: o } = We(n), { width: r, height: a } = We(l), i = k(!1), v = k(), m = k(), g = () => {
4991
4991
  i.value = !1, v.value = void 0, m.value = void 0;
4992
4992
  }, y = (f) => {
4993
4993
  v.value = f, m.value = e.styleJson[f], i.value = !0;
@@ -5022,9 +5022,9 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5022
5022
  d: `
5023
5023
  m1,1
5024
5024
  h${t(s) - 1}
5025
- l-${Q},${K}
5026
- h-${t(s) - 2 * Q}
5027
- l-${Q},-${K}z`,
5025
+ l-${K},${Q}
5026
+ h-${t(s) - 2 * K}
5027
+ l-${K},-${Q}z`,
5028
5028
  "data-automation-id": "margin-top-button",
5029
5029
  "aria-label": "Margin top button",
5030
5030
  class: "tb-path-color",
@@ -5040,9 +5040,9 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5040
5040
  d: `
5041
5041
  m${t(s) - 1},1
5042
5042
  v${t(o) - 1}
5043
- l-${Q},-${K}
5044
- v-${t(o) - 2 * K}
5045
- l${Q},-${K}z`,
5043
+ l-${K},-${Q}
5044
+ v-${t(o) - 2 * Q}
5045
+ l${K},-${Q}z`,
5046
5046
  "data-automation-id": "margin-right-button",
5047
5047
  "aria-label": "Margin right button",
5048
5048
  class: "lr-path-color",
@@ -5058,9 +5058,9 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5058
5058
  d: `
5059
5059
  m1,${t(o) - 1}
5060
5060
  h${t(s) - 1}
5061
- l-${Q},-${K}
5062
- h-${t(s) - 2 * Q}
5063
- l-${Q},${K}z`,
5061
+ l-${K},-${Q}
5062
+ h-${t(s) - 2 * K}
5063
+ l-${K},${Q}z`,
5064
5064
  "data-automation-id": "margin-bottom-button",
5065
5065
  "aria-label": "Margin bottom button",
5066
5066
  class: "tb-path-color",
@@ -5076,9 +5076,9 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5076
5076
  d: `
5077
5077
  m1,1
5078
5078
  v${t(o) - 1}
5079
- l${Q},-${K}
5080
- v-${t(o) - 2 * K}
5081
- l-${Q},-${K}z`,
5079
+ l${K},-${Q}
5080
+ v-${t(o) - 2 * Q}
5081
+ l-${K},-${Q}z`,
5082
5082
  "data-automation-id": "margin-left-button",
5083
5083
  "aria-label": "Margin left button",
5084
5084
  class: "lr-path-color",
@@ -5114,8 +5114,8 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5114
5114
  x("rect", {
5115
5115
  x: "36",
5116
5116
  y: "24",
5117
- width: t(s) - 2 * Q + 1,
5118
- height: t(o) - 2 * K + 1,
5117
+ width: t(s) - 2 * K + 1,
5118
+ height: t(o) - 2 * Q + 1,
5119
5119
  fill: "transparent",
5120
5120
  rx: "2",
5121
5121
  ry: "2",
@@ -5127,8 +5127,8 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5127
5127
  "clip-path": "url(#margin-inner)",
5128
5128
  x: "36",
5129
5129
  y: "24",
5130
- width: t(s) - 2 * Q + 1,
5131
- height: t(o) - 2 * K + 1,
5130
+ width: t(s) - 2 * K + 1,
5131
+ height: t(o) - 2 * Q + 1,
5132
5132
  fill: "transparent",
5133
5133
  rx: "2",
5134
5134
  ry: "2",
@@ -5136,19 +5136,19 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5136
5136
  }, null, 8, dr)
5137
5137
  ], 8, tr)) : j("", !0),
5138
5138
  x("div", {
5139
- class: q(["spacing-edit margin-top", { "is-setting": e.styleJson["margin-top"] }]),
5139
+ class: H(["spacing-edit margin-top", { "is-setting": e.styleJson["margin-top"] }]),
5140
5140
  onClick: d[4] || (d[4] = (_) => y("margin-top"))
5141
5141
  }, z(e.styleJson["margin-top"] || "-"), 3),
5142
5142
  x("div", {
5143
- class: q(["spacing-edit margin-right", { "is-setting": e.styleJson["margin-right"] }]),
5143
+ class: H(["spacing-edit margin-right", { "is-setting": e.styleJson["margin-right"] }]),
5144
5144
  onClick: d[5] || (d[5] = (_) => y("margin-right"))
5145
5145
  }, z(e.styleJson["margin-right"] || "-"), 3),
5146
5146
  x("div", {
5147
- class: q(["spacing-edit margin-bottom", { "is-setting": e.styleJson["margin-bottom"] }]),
5147
+ class: H(["spacing-edit margin-bottom", { "is-setting": e.styleJson["margin-bottom"] }]),
5148
5148
  onClick: d[6] || (d[6] = (_) => y("margin-bottom"))
5149
5149
  }, z(e.styleJson["margin-bottom"] || "-"), 3),
5150
5150
  x("div", {
5151
- class: q(["spacing-edit margin-left", { "is-setting": e.styleJson["margin-left"] }]),
5151
+ class: H(["spacing-edit margin-left", { "is-setting": e.styleJson["margin-left"] }]),
5152
5152
  onClick: d[7] || (d[7] = (_) => y("margin-left"))
5153
5153
  }, z(e.styleJson["margin-left"] || "-"), 3)
5154
5154
  ]),
@@ -5172,9 +5172,9 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5172
5172
  d: `
5173
5173
  m1,1
5174
5174
  h${t(r) - 1}
5175
- l-${Q},${K}
5176
- h-${t(r) - 2 * Q}
5177
- l-${Q},-${K}z`,
5175
+ l-${K},${Q}
5176
+ h-${t(r) - 2 * K}
5177
+ l-${K},-${Q}z`,
5178
5178
  "data-automation-id": "padding-top-button",
5179
5179
  "aria-label": "Padding top button",
5180
5180
  class: "tb-path-color",
@@ -5190,9 +5190,9 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5190
5190
  d: `
5191
5191
  m${t(r) - 1},1
5192
5192
  v${t(a) - 1}
5193
- l-${Q},-${K}
5194
- v-${t(a) - 2 * K}
5195
- l${Q},-${K}z`,
5193
+ l-${K},-${Q}
5194
+ v-${t(a) - 2 * Q}
5195
+ l${K},-${Q}z`,
5196
5196
  "data-automation-id": "padding-right-button",
5197
5197
  "aria-label": "Padding right button",
5198
5198
  class: "lr-path-color",
@@ -5208,9 +5208,9 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5208
5208
  d: `
5209
5209
  m1,${t(a) - 1}
5210
5210
  h${t(r) - 1}
5211
- l-${Q},-${K}
5212
- h-${t(r) - 2 * Q}
5213
- l-${Q},${K}z`,
5211
+ l-${K},-${Q}
5212
+ h-${t(r) - 2 * K}
5213
+ l-${K},${Q}z`,
5214
5214
  "data-automation-id": "padding-bottom-button",
5215
5215
  "aria-label": "Padding bottom button",
5216
5216
  class: "tb-path-color",
@@ -5226,9 +5226,9 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5226
5226
  d: `
5227
5227
  m1,1
5228
5228
  v${t(a) - 1}
5229
- l${Q},-${K}
5230
- v-${t(a) - 2 * K}
5231
- l-${Q},-${K}z`,
5229
+ l${K},-${Q}
5230
+ v-${t(a) - 2 * Q}
5231
+ l-${K},-${Q}z`,
5232
5232
  "data-automation-id": "padding-left-button",
5233
5233
  "aria-label": "Padding left button",
5234
5234
  class: "lr-path-color",
@@ -5264,8 +5264,8 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5264
5264
  x("rect", {
5265
5265
  x: "36",
5266
5266
  y: "24",
5267
- width: t(r) - 2 * Q + 1,
5268
- height: t(a) - 2 * K + 1,
5267
+ width: t(r) - 2 * K + 1,
5268
+ height: t(a) - 2 * Q + 1,
5269
5269
  fill: "transparent",
5270
5270
  rx: "2",
5271
5271
  ry: "2",
@@ -5277,8 +5277,8 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5277
5277
  "clip-path": "url(#padding-inner)",
5278
5278
  x: "36",
5279
5279
  y: "24",
5280
- width: t(r) - 2 * Q + 1,
5281
- height: t(a) - 2 * K + 1,
5280
+ width: t(r) - 2 * K + 1,
5281
+ height: t(a) - 2 * Q + 1,
5282
5282
  fill: "transparent",
5283
5283
  rx: "2",
5284
5284
  ry: "2",
@@ -5286,19 +5286,19 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5286
5286
  }, null, 8, kr)
5287
5287
  ], 8, pr)) : j("", !0),
5288
5288
  x("div", {
5289
- class: q(["spacing-edit padding-top", { "is-setting": e.styleJson["padding-top"] }]),
5289
+ class: H(["spacing-edit padding-top", { "is-setting": e.styleJson["padding-top"] }]),
5290
5290
  onClick: d[12] || (d[12] = (_) => y("padding-top"))
5291
5291
  }, z(e.styleJson["padding-top"] || "-"), 3),
5292
5292
  x("div", {
5293
- class: q(["spacing-edit padding-right", { "is-setting": e.styleJson["padding-right"] }]),
5293
+ class: H(["spacing-edit padding-right", { "is-setting": e.styleJson["padding-right"] }]),
5294
5294
  onClick: d[13] || (d[13] = (_) => y("padding-right"))
5295
5295
  }, z(e.styleJson["padding-right"] || "-"), 3),
5296
5296
  x("div", {
5297
- class: q(["spacing-edit padding-bottom", { "is-setting": e.styleJson["padding-bottom"] }]),
5297
+ class: H(["spacing-edit padding-bottom", { "is-setting": e.styleJson["padding-bottom"] }]),
5298
5298
  onClick: d[14] || (d[14] = (_) => y("padding-bottom"))
5299
5299
  }, z(e.styleJson["padding-bottom"] || "-"), 3),
5300
5300
  x("div", {
5301
- class: q(["spacing-edit padding-left", { "is-setting": e.styleJson["padding-left"] }]),
5301
+ class: H(["spacing-edit padding-left", { "is-setting": e.styleJson["padding-left"] }]),
5302
5302
  onClick: d[15] || (d[15] = (_) => y("padding-left"))
5303
5303
  }, z(e.styleJson["padding-left"] || "-"), 3)
5304
5304
  ], 512),
@@ -5411,14 +5411,14 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5411
5411
  _: 1
5412
5412
  }));
5413
5413
  }
5414
- }), Dr = { class: "v-style-widget__positioning" }, Pr = { class: "spacing-wrap" }, Br = ["width", "height"], $r = ["d"], Rr = ["d"], zr = ["d"], Tr = ["d"], Or = { id: "margin-outer" }, Fr = ["width", "height"], Jr = ["width", "height"], Wr = { id: "margin-inner" }, Nr = ["width", "height"], Mr = ["width", "height"], me = 36, ve = 24, Lr = /* @__PURE__ */ V({
5414
+ }), Dr = { class: "v-style-widget__positioning" }, Pr = { class: "spacing-wrap" }, Br = ["width", "height"], $r = ["d"], Rr = ["d"], zr = ["d"], Tr = ["d"], Or = { id: "margin-outer" }, Fr = ["width", "height"], Jr = ["width", "height"], Nr = { id: "margin-inner" }, Wr = ["width", "height"], Mr = ["width", "height"], me = 36, ve = 24, Lr = /* @__PURE__ */ V({
5415
5415
  __name: "positioning",
5416
5416
  props: {
5417
5417
  styleJson: {},
5418
5418
  setStyle: { type: Function }
5419
5419
  },
5420
5420
  setup(c) {
5421
- const e = c, n = k(), { width: l, height: s } = Ne(n), o = k(!1), r = k(), a = k(), i = [
5421
+ const e = c, n = k(), { width: l, height: s } = We(n), o = k(!1), r = k(), a = k(), i = [
5422
5422
  { label: "静态", value: "static" },
5423
5423
  { label: "相对", value: "relative" },
5424
5424
  { label: "绝对", value: "absolute" },
@@ -5582,7 +5582,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5582
5582
  ry: "2",
5583
5583
  style: { "pointer-events": "none", "stroke-width": "2px" }
5584
5584
  }, null, 8, Jr),
5585
- x("clipPath", Wr, [
5585
+ x("clipPath", Nr, [
5586
5586
  x("rect", {
5587
5587
  x: "36",
5588
5588
  y: "24",
@@ -5592,7 +5592,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5592
5592
  rx: "2",
5593
5593
  ry: "2",
5594
5594
  style: { "pointer-events": "none" }
5595
- }, null, 8, Nr)
5595
+ }, null, 8, Wr)
5596
5596
  ]),
5597
5597
  x("rect", {
5598
5598
  class: "stroke",
@@ -5608,19 +5608,19 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5608
5608
  }, null, 8, Mr)
5609
5609
  ], 8, Br)) : j("", !0),
5610
5610
  x("div", {
5611
- class: q(["spacing-edit padding-top", { "is-setting": e.styleJson.top }]),
5611
+ class: H(["spacing-edit padding-top", { "is-setting": e.styleJson.top }]),
5612
5612
  onClick: d[4] || (d[4] = (_) => g("top"))
5613
5613
  }, z(e.styleJson.top || m.value[0] || "-"), 3),
5614
5614
  x("div", {
5615
- class: q(["spacing-edit padding-right", { "is-setting": e.styleJson.right }]),
5615
+ class: H(["spacing-edit padding-right", { "is-setting": e.styleJson.right }]),
5616
5616
  onClick: d[5] || (d[5] = (_) => g("right"))
5617
5617
  }, z(e.styleJson.right || m.value[1] || "-"), 3),
5618
5618
  x("div", {
5619
- class: q(["spacing-edit padding-bottom", { "is-setting": e.styleJson.bottom }]),
5619
+ class: H(["spacing-edit padding-bottom", { "is-setting": e.styleJson.bottom }]),
5620
5620
  onClick: d[6] || (d[6] = (_) => g("bottom"))
5621
5621
  }, z(e.styleJson.bottom || m.value[2] || "-"), 3),
5622
5622
  x("div", {
5623
- class: q(["spacing-edit padding-left", { "is-setting": e.styleJson.left }]),
5623
+ class: H(["spacing-edit padding-left", { "is-setting": e.styleJson.left }]),
5624
5624
  onClick: d[7] || (d[7] = (_) => g("left"))
5625
5625
  }, z(e.styleJson.left || m.value[3] || "-"), 3)
5626
5626
  ], 512),
@@ -5796,7 +5796,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5796
5796
  _: 1
5797
5797
  }));
5798
5798
  }
5799
- }), qr = /* @__PURE__ */ V({
5799
+ }), Hr = /* @__PURE__ */ V({
5800
5800
  __name: "backgound",
5801
5801
  props: {
5802
5802
  styleJson: {},
@@ -5907,7 +5907,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5907
5907
  _: 1
5908
5908
  }));
5909
5909
  }
5910
- }), Hr = /* @__PURE__ */ V({
5910
+ }), qr = /* @__PURE__ */ V({
5911
5911
  __name: "border",
5912
5912
  props: {
5913
5913
  styleJson: {},
@@ -5919,10 +5919,10 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5919
5919
  { label: "左边框", svg: Os, value: "border-left" },
5920
5920
  { label: "上边框", svg: Fs, value: "border-top" },
5921
5921
  { label: "下边框", svg: Js, value: "border-bottom" },
5922
- { label: "右边框", svg: Ws, value: "border-right" }
5922
+ { label: "右边框", svg: Ns, value: "border-right" }
5923
5923
  ], s = [
5924
5924
  { label: "无", value: "none", svg: bn },
5925
- { label: "实线", value: "solid", svg: Ns },
5925
+ { label: "实线", value: "solid", svg: Ws },
5926
5926
  { label: "虚线", value: "dashed", svg: Ms },
5927
5927
  { label: "点线", value: "dotted", svg: Ls }
5928
5928
  ], o = (r, a) => {
@@ -6011,12 +6011,12 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6011
6011
  {
6012
6012
  label: "Pointer",
6013
6013
  value: "pointer",
6014
- svg: qs
6014
+ svg: Hs
6015
6015
  },
6016
6016
  {
6017
6017
  label: "NotAllowed",
6018
6018
  value: "not-allowed",
6019
- svg: Hs
6019
+ svg: qs
6020
6020
  },
6021
6021
  {
6022
6022
  label: "无",
@@ -6108,14 +6108,14 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6108
6108
  const i = l.value?.getPropValue("style") || {};
6109
6109
  a !== void 0 ? i[r] = a : delete i[r], l.value?.setProp("style", i);
6110
6110
  };
6111
- return (r, a) => e.isStyleCodeMode ? (u(), b(Go, { key: 0 })) : (u(), b(t(N), {
6111
+ return (r, a) => e.isStyleCodeMode ? (u(), b(Go, { key: 0 })) : (u(), b(t(W), {
6112
6112
  key: `widget-style-${l.value?.id}`,
6113
6113
  class: "v-style-widget",
6114
6114
  direction: "column",
6115
6115
  fit: ""
6116
6116
  }, {
6117
6117
  default: h(() => [
6118
- (u(), b(Ho, {
6118
+ (u(), b(qo, {
6119
6119
  key: `Layout${l.value?.id}`,
6120
6120
  "style-json": s.value,
6121
6121
  setStyle: o
@@ -6140,12 +6140,12 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6140
6140
  "style-json": s.value,
6141
6141
  setStyle: o
6142
6142
  }, null, 8, ["style-json"])),
6143
- (u(), b(qr, {
6143
+ (u(), b(Hr, {
6144
6144
  key: `Backgound${l.value?.id}`,
6145
6145
  "style-json": s.value,
6146
6146
  setStyle: o
6147
6147
  }, null, 8, ["style-json"])),
6148
- (u(), b(Hr, {
6148
+ (u(), b(qr, {
6149
6149
  key: `Border${l.value?.id}`,
6150
6150
  "style-json": s.value,
6151
6151
  setStyle: o
@@ -6159,14 +6159,14 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6159
6159
  _: 1
6160
6160
  }));
6161
6161
  }
6162
- }), Qr = ["src"], Kr = /* @__PURE__ */ V({
6162
+ }), Kr = ["src"], Qr = /* @__PURE__ */ V({
6163
6163
  name: "PreviewerWidget",
6164
6164
  __name: "index",
6165
6165
  props: {
6166
6166
  path: { type: Function }
6167
6167
  },
6168
6168
  setup(c, { expose: e }) {
6169
- const n = c, l = k(), s = k(Symbol()), { current: o, engine: r } = oe(), { width: a, height: i } = Ne(l), v = S(() => o.value && n.path ? n.path(o.value) : null), m = S(() => r.skeleton?.getWidget("Toolbar")?.widgetRef.mode ?? "pc");
6169
+ const n = c, l = k(), s = k(Symbol()), { current: o, engine: r } = oe(), { width: a, height: i } = We(l), v = S(() => o.value && n.path ? n.path(o.value) : null), m = S(() => r.skeleton?.getWidget("Toolbar")?.widgetRef.mode ?? "pc");
6170
6170
  return e({
6171
6171
  refresh: () => {
6172
6172
  s.value = Symbol();
@@ -6188,7 +6188,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6188
6188
  ref: "iframe",
6189
6189
  frameborder: "0",
6190
6190
  src: v.value
6191
- }, null, 8, Qr)) : j("", !0)
6191
+ }, null, 8, Kr)) : j("", !0)
6192
6192
  ]),
6193
6193
  _: 1
6194
6194
  }, 8, ["mode", "width", "height"])
@@ -6210,7 +6210,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6210
6210
  "separator-icon": t(Xs)
6211
6211
  }, {
6212
6212
  default: h(() => [
6213
- (u(!0), A($, null, T(l.value, (i) => (u(), b(t(Wn), {
6213
+ (u(!0), A($, null, T(l.value, (i) => (u(), b(t(Nn), {
6214
6214
  onClick: (v) => s(i),
6215
6215
  onMouseover: (v) => o(i)
6216
6216
  }, {
@@ -6268,7 +6268,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6268
6268
  __name: "index",
6269
6269
  setup(c) {
6270
6270
  const { current: e, engine: n } = oe(), l = k(), s = k(""), o = S(() => e.value ? `$vtj/vue/${e.value.id}.vue` : ""), r = S(() => e.value ? e.value.name : "");
6271
- return H(
6271
+ return q(
6272
6272
  e,
6273
6273
  async (a) => {
6274
6274
  const i = n.project.value;
@@ -6312,7 +6312,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6312
6312
  const e = c, n = k();
6313
6313
  let l = null;
6314
6314
  Mt(() => {
6315
- l || (l = Nn.service({ target: n.value?.$el }));
6315
+ l || (l = Wn.service({ target: n.value?.$el }));
6316
6316
  }), Lt(() => {
6317
6317
  s(), l = null;
6318
6318
  });
@@ -6361,10 +6361,10 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6361
6361
  setup(c, { emit: e }) {
6362
6362
  const n = c, l = e, s = k([]), o = S(() => s.value.length < n.limit), r = (i) => i.type.includes("image") ? (nl(i).then((v) => {
6363
6363
  s.value = [{ name: i.name, url: v }];
6364
- }), !1) : (Ke.error("只能上传图片"), !1), a = () => {
6364
+ }), !1) : (Qe.error("只能上传图片"), !1), a = () => {
6365
6365
  s.value = [];
6366
6366
  };
6367
- return H(
6367
+ return q(
6368
6368
  () => n.modelValue,
6369
6369
  (i) => {
6370
6370
  s.value = i ? [{ name: "", url: i }] : [];
@@ -6372,7 +6372,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6372
6372
  {
6373
6373
  immediate: !0
6374
6374
  }
6375
- ), H(s, () => {
6375
+ ), q(s, () => {
6376
6376
  const i = s.value[0]?.url;
6377
6377
  l("change", i), l("update:modelValue", i);
6378
6378
  }), (i, v) => (u(), b(t(Mn), ue({
@@ -6388,7 +6388,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6388
6388
  }, i.$attrs), {
6389
6389
  default: h(() => [
6390
6390
  x("span", ui, [
6391
- p(t(ke), { icon: t(Qs) }, null, 8, ["icon"])
6391
+ p(t(ke), { icon: t(Ks) }, null, 8, ["icon"])
6392
6392
  ])
6393
6393
  ]),
6394
6394
  _: 1
@@ -6445,7 +6445,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6445
6445
  Logo: $a,
6446
6446
  EmptyWidget: za,
6447
6447
  Switcher: Fa,
6448
- Toolbar: Wa,
6448
+ Toolbar: Na,
6449
6449
  Actions: La,
6450
6450
  Pages: ro,
6451
6451
  Blocks: io,
@@ -6461,9 +6461,9 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6461
6461
  Css: Oo,
6462
6462
  Directives: Fo,
6463
6463
  Defined: Lo,
6464
- DataSources: qo,
6464
+ DataSources: Ho,
6465
6465
  Style: Xr,
6466
- Previewer: Kr,
6466
+ Previewer: Qr,
6467
6467
  NodePath: Yr,
6468
6468
  Schema: Zr,
6469
6469
  Raw: ei,
@@ -6497,7 +6497,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6497
6497
  component: X.Pages,
6498
6498
  type: "app",
6499
6499
  openType: "panel",
6500
- icon: Ks,
6500
+ icon: Qs,
6501
6501
  label: "页面管理"
6502
6502
  },
6503
6503
  {
@@ -6742,20 +6742,24 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6742
6742
  official: !0,
6743
6743
  enabled: !0
6744
6744
  },
6745
- {
6746
- package: "echarts",
6747
- version: "latest",
6748
- library: "echarts",
6749
- urls: ["@vtj/materials/deps/echarts/echarts.min.js"],
6750
- required: !1,
6751
- official: !0,
6752
- enabled: !0
6753
- },
6745
+ // {
6746
+ // package: 'echarts',
6747
+ // version: 'latest',
6748
+ // library: 'echarts',
6749
+ // urls: ['@vtj/materials/deps/echarts/echarts.min.js'],
6750
+ // required: false,
6751
+ // official: true,
6752
+ // enabled: true
6753
+ // },
6754
6754
  {
6755
6755
  package: "@vtj/ui",
6756
6756
  version: "latest",
6757
6757
  library: "VtjUI",
6758
6758
  urls: [
6759
+ "@vtj/materials/deps/echarts/echarts.min.js",
6760
+ "@vtj/materials/deps/@ckeditor/ckeditor5-build-classic/ckeditor.js",
6761
+ "@vtj/materials/deps/@ckeditor/ckeditor5-build-classic/zh-cn.js",
6762
+ "@vtj/materials/deps/@ckeditor/ckeditor5-vue/ckeditor.js",
6759
6763
  "@vtj/materials/deps/@vtj/ui/style.css",
6760
6764
  "@vtj/materials/deps/@vtj/ui/index.umd.js"
6761
6765
  ],
@@ -6770,7 +6774,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6770
6774
  version: "latest",
6771
6775
  library: "antd",
6772
6776
  urls: [
6773
- "@vtj/materials/deps/ant-design-vue/rest.css",
6777
+ "@vtj/materials/deps/ant-design-vue/reset.css",
6774
6778
  "@vtj/materials/deps/ant-design-vue/dayjs/dayjs.min.js",
6775
6779
  "@vtj/materials/deps/ant-design-vue/dayjs/plugin/customParseFormat.js",
6776
6780
  "@vtj/materials/deps/ant-design-vue/dayjs/plugin/weekday.js",
@@ -7294,7 +7298,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
7294
7298
  name: "BooleanSetter",
7295
7299
  __name: "boolean",
7296
7300
  setup(c) {
7297
- return (e, n) => (u(), b(t(Kt), ue(e.$attrs, {
7301
+ return (e, n) => (u(), b(t(Qt), ue(e.$attrs, {
7298
7302
  "model-value": !!e.$attrs.modelValue
7299
7303
  }), null, 16, ["model-value"]));
7300
7304
  }
@@ -7309,9 +7313,9 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
7309
7313
  setup(c, { emit: e }) {
7310
7314
  const n = (i = "") => ({
7311
7315
  type: "JSExpression",
7312
- value: We(i) ? i.value : i
7316
+ value: Ne(i) ? i.value : i
7313
7317
  }), l = c, s = e, o = (i) => ae(i, l.context, !0), r = k(n(l.modelValue).value);
7314
- H(
7318
+ q(
7315
7319
  () => l.modelValue,
7316
7320
  (i) => {
7317
7321
  r.value = n(i).value;
@@ -7367,10 +7371,10 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
7367
7371
  },
7368
7372
  emits: ["change"],
7369
7373
  setup(c, { emit: e }) {
7370
- const n = c, l = e, s = S(() => We(n.modelValue) ? void 0 : Number(n.modelValue || 0)), o = (r) => {
7374
+ const n = c, l = e, s = S(() => Ne(n.modelValue) ? void 0 : Number(n.modelValue || 0)), o = (r) => {
7371
7375
  l("change", r);
7372
7376
  };
7373
- return (r, a) => (u(), b(t(qn), ue({
7377
+ return (r, a) => (u(), b(t(Hn), ue({
7374
7378
  class: "v-number-setter",
7375
7379
  "controls-position": "right",
7376
7380
  "model-value": s.value
@@ -7380,7 +7384,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
7380
7384
  name: "ColorSetter",
7381
7385
  __name: "color",
7382
7386
  setup(c) {
7383
- return (e, n) => (u(), b(t(Hn), Wt(Nt(e.$attrs)), null, 16));
7387
+ return (e, n) => (u(), b(t(qn), Nt(Wt(e.$attrs)), null, 16));
7384
7388
  }
7385
7389
  }), Ci = /* @__PURE__ */ V({
7386
7390
  name: "JsonSetter",
@@ -7404,7 +7408,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
7404
7408
  if (typeof d != "object")
7405
7409
  throw new Error(`"${y}" is not a ${n.type}`);
7406
7410
  } catch (d) {
7407
- f = !1, Qe.error({
7411
+ f = !1, Ke.error({
7408
7412
  title: "代码错误",
7409
7413
  message: d?.message || d
7410
7414
  });
@@ -7422,7 +7426,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
7422
7426
  r.value = !0;
7423
7427
  };
7424
7428
  return (y, f) => (u(), A("div", {
7425
- class: q(["v-json-setter", { "is-active": o.value }])
7429
+ class: H(["v-json-setter", { "is-active": o.value }])
7426
7430
  }, [
7427
7431
  p(t(we), ue({
7428
7432
  readonly: "",
@@ -7483,7 +7487,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
7483
7487
  o.value = !0;
7484
7488
  };
7485
7489
  return (g, y) => (u(), A("div", {
7486
- class: q(["v-function-setter", { "is-active": r.value }])
7490
+ class: H(["v-function-setter", { "is-active": r.value }])
7487
7491
  }, [
7488
7492
  p(t(we), ue({
7489
7493
  readonly: "",
@@ -7525,7 +7529,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
7525
7529
  },
7526
7530
  setup(c) {
7527
7531
  const e = c;
7528
- return (n, l) => (u(), b(t(Ht), ue({
7532
+ return (n, l) => (u(), b(t(qt), ue({
7529
7533
  class: "v-radio-setter",
7530
7534
  size: "small"
7531
7535
  }, n.$attrs), {
@@ -7568,7 +7572,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
7568
7572
  (u(!0), A($, null, T(n.options, (a) => (u(), A("span", {
7569
7573
  label: a.value,
7570
7574
  title: a.label,
7571
- class: q({
7575
+ class: H({
7572
7576
  "is-active": n.modelValue === a.value
7573
7577
  }),
7574
7578
  onClick: (i) => s(a)
@@ -7594,9 +7598,9 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
7594
7598
  const n = c, l = e, s = k(!0), o = S(() => s.value ? "px" : void 0), r = k(n.modelValue), a = (i) => {
7595
7599
  s.value = !!Number(i);
7596
7600
  };
7597
- return H(r, (i) => {
7601
+ return q(r, (i) => {
7598
7602
  l("change", i);
7599
- }), H(
7603
+ }), q(
7600
7604
  () => n.modelValue,
7601
7605
  (i) => {
7602
7606
  i && (s.value = i.endsWith("px"), r.value = i);
@@ -7621,7 +7625,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
7621
7625
  emits: ["change"],
7622
7626
  setup(c, { emit: e }) {
7623
7627
  const n = c, l = e, s = k(new Array(n.sections).fill(""));
7624
- H(
7628
+ q(
7625
7629
  () => n.modelValue,
7626
7630
  (r) => {
7627
7631
  s.value = r ? r.split(" ") : new Array(n.sections).fill("");
@@ -7650,13 +7654,13 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
7650
7654
  emits: ["change", "update:modelValue"],
7651
7655
  setup(c, { emit: e }) {
7652
7656
  const n = c, l = e, s = k();
7653
- H(
7657
+ q(
7654
7658
  () => n.modelValue,
7655
7659
  (r) => {
7656
7660
  s.value = r;
7657
7661
  },
7658
7662
  { immediate: !0 }
7659
- ), H(s, (r) => {
7663
+ ), q(s, (r) => {
7660
7664
  l("change", r), l("update:modelValue", r);
7661
7665
  });
7662
7666
  const o = () => {
@@ -7901,10 +7905,13 @@ class Ti {
7901
7905
  const n = [];
7902
7906
  for (const l of this.deps) {
7903
7907
  const s = e.find((o) => o.package === l.package);
7904
- n.push({
7905
- ...l,
7906
- ...s
7907
- });
7908
+ n.push(
7909
+ s ? {
7910
+ ...s,
7911
+ ...l,
7912
+ enabled: s.enabled
7913
+ } : l
7914
+ );
7908
7915
  }
7909
7916
  for (const l of e)
7910
7917
  this.deps.find((o) => o.package === l.package) || n.push(l);
@@ -7980,7 +7987,7 @@ function Ji(c) {
7980
7987
  l.mount(document.createElement("div"));
7981
7988
  });
7982
7989
  }
7983
- class Wi {
7990
+ class Ni {
7984
7991
  constructor(e, n, l) {
7985
7992
  this.engine = e, this.contentWindow = n, this.dependencies = l, this.document = this.contentWindow.document, this.bindEvents(n, this.document);
7986
7993
  }
@@ -8246,7 +8253,7 @@ class Wi {
8246
8253
  this.setSelected(null), this.setHover(null), this.setDragging(null), e && n && this.unbindEvents(e, n), this.document = null;
8247
8254
  }
8248
8255
  }
8249
- class Ni {
8256
+ class Wi {
8250
8257
  constructor(e, n, l = null) {
8251
8258
  this.env = e, this.service = n, this.designer = l, this.nodeChange = this.__onNodeChange.bind(this), this.blockChange = this.__onBlockChange.bind(this);
8252
8259
  }
@@ -8271,7 +8278,7 @@ class Ni {
8271
8278
  err: r,
8272
8279
  instance: a,
8273
8280
  info: i
8274
- }), Qe.error({
8281
+ }), Ke.error({
8275
8282
  title: "运行错误",
8276
8283
  message: g
8277
8284
  });
@@ -8353,15 +8360,15 @@ class Mi extends an {
8353
8360
  constructor(e) {
8354
8361
  super();
8355
8362
  const { engine: n, materialPath: l } = e;
8356
- this.engine = n, this.materialPath = l, H(this.engine.current, () => {
8363
+ this.engine = n, this.materialPath = l, q(this.engine.current, () => {
8357
8364
  this.refresh();
8358
8365
  });
8359
8366
  }
8360
8367
  init(e, n, l, s) {
8361
- H(
8368
+ q(
8362
8369
  [e, n, l, s],
8363
8370
  () => {
8364
- e.value && n.value.length && (this.resetReady(), this.setup(e.value, n.value), this.contentWindow && (this.designer.value?.dispose(), this.designer.value = new Wi(
8371
+ e.value && n.value.length && (this.resetReady(), this.renderer?.dispose(), this.renderer = null, this.setup(e.value, n.value), this.contentWindow && (this.designer.value?.dispose(), this.designer.value = new Ni(
8365
8372
  this.engine,
8366
8373
  this.contentWindow,
8367
8374
  n
@@ -8378,7 +8385,7 @@ class Mi extends an {
8378
8385
  }
8379
8386
  l.__simulator__ = this;
8380
8387
  const s = l.document;
8381
- this.contentWindow = l;
8388
+ l.CKEDITOR_VERSION = void 0, this.contentWindow = l;
8382
8389
  const {
8383
8390
  scripts: o,
8384
8391
  css: r,
@@ -8427,7 +8434,7 @@ class Mi extends an {
8427
8434
  }
8428
8435
  o.load(m);
8429
8436
  const g = this.createEnv(e, l, m);
8430
- this.renderer = new Ni(g, r, this.designer.value), a.value && this.renderer.render(a.value), this.triggerReady();
8437
+ this.renderer = new Wi(g, r, this.designer.value), a.value && this.renderer.render(a.value), this.triggerReady();
8431
8438
  }
8432
8439
  createEnv(e = [], n = {}, l = []) {
8433
8440
  const s = this.contentWindow, { engine: o } = this, { project: r, assets: a, provider: i } = o, v = e.reduce((w, C) => (w[C] = s[C], w), {}), m = {}, { groups: g, componentMap: y } = a;
@@ -8801,7 +8808,7 @@ const Ae = V({
8801
8808
  this.engine.skeleton = this;
8802
8809
  },
8803
8810
  render() {
8804
- return Be(qi, { ...this.$props, ...this.$attrs, ref: "skeletonRef" });
8811
+ return Be(Hi, { ...this.$props, ...this.$attrs, ref: "skeletonRef" });
8805
8812
  },
8806
8813
  methods: {
8807
8814
  /**
@@ -8930,7 +8937,7 @@ const Ae = V({
8930
8937
  defaultSetter() {
8931
8938
  const { value: c, computedSetters: e } = this;
8932
8939
  let n = typeof c;
8933
- n === "Object" && (Array.isArray(c) ? n = "Array" : We(c) ? n = "Object" : Il(c) && (n = "Function"));
8940
+ n === "Object" && (Array.isArray(c) ? n = "Array" : Ne(c) ? n = "Object" : Il(c) && (n = "Function"));
8934
8941
  const l = Xe.getByType(n) || [];
8935
8942
  return l.length ? (e.find((s) => l.includes(s.name)) || e[0])?.name : e[0]?.name;
8936
8943
  }
@@ -8979,7 +8986,7 @@ const Ae = V({
8979
8986
  this.$emit("remove", c);
8980
8987
  }
8981
8988
  }
8982
- }), qi = /* @__PURE__ */ V({
8989
+ }), Hi = /* @__PURE__ */ V({
8983
8990
  name: "Skeletion",
8984
8991
  __name: "skeleton",
8985
8992
  props: {
@@ -9028,7 +9035,7 @@ const Ae = V({
9028
9035
  default: h(() => [
9029
9036
  p(t(jt), { class: "v-skeleton" }, {
9030
9037
  default: h(() => [
9031
- p(t(Qn), {
9038
+ p(t(Kn), {
9032
9039
  class: "v-skeleton__header",
9033
9040
  height: E.headerHeight
9034
9041
  }, {
@@ -9057,7 +9064,7 @@ const Ae = V({
9057
9064
  l.value ? j("", !0) : je((u(), b(t(Et), {
9058
9065
  key: 0,
9059
9066
  width: n.leftWidth,
9060
- class: q(["v-skeleton__left", {
9067
+ class: H(["v-skeleton__left", {
9061
9068
  "is-collapsed": w.value
9062
9069
  }])
9063
9070
  }, {
@@ -9072,7 +9079,7 @@ const Ae = V({
9072
9079
  }, 8, ["width", "class"])), [
9073
9080
  [t(It), r]
9074
9081
  ]),
9075
- p(t(Kn), { class: "v-skeleton__main" }, {
9082
+ p(t(Qn), { class: "v-skeleton__main" }, {
9076
9083
  default: h(() => [
9077
9084
  l.value ? (u(), b(t(Ae), {
9078
9085
  key: 0,
@@ -9132,10 +9139,10 @@ const Ae = V({
9132
9139
  _: 1
9133
9140
  }, 8, ["locale"]));
9134
9141
  }
9135
- }), Hi = { key: 1 }, Gi = { class: "v-setter__content" }, Xi = {
9142
+ }), qi = { key: 1 }, Gi = { class: "v-setter__content" }, Xi = {
9136
9143
  key: 0,
9137
9144
  class: "v-setter__input"
9138
- }, Qi = { class: "v-setter__action" }, Ki = "{{", Yi = "}}", Zi = /* @__PURE__ */ V({
9145
+ }, Ki = { class: "v-setter__action" }, Qi = "{{", Yi = "}}", Zi = /* @__PURE__ */ V({
9139
9146
  __name: "setter",
9140
9147
  props: {
9141
9148
  context: {},
@@ -9154,17 +9161,17 @@ const Ae = V({
9154
9161
  setup(c, { emit: e }) {
9155
9162
  const n = c, l = e, s = k(!1), o = k(""), r = k(
9156
9163
  n.setters.find((C) => C.name === n.defaultSetter) || n.setters[0]
9157
- ), a = k(n.value), i = S(() => !!We(a.value)), v = {
9164
+ ), a = k(n.value), i = S(() => !!Ne(a.value)), v = {
9158
9165
  [r.value.name]: a.value
9159
9166
  }, m = (C) => {
9160
9167
  v[r.value.name] = a.value, r.value = C, a.value = v[C.name] ?? void 0, g(a.value);
9161
9168
  };
9162
- H(
9169
+ q(
9163
9170
  () => n.value,
9164
9171
  () => {
9165
9172
  a.value = n.value;
9166
9173
  }
9167
- ), H(
9174
+ ), q(
9168
9175
  () => n.defaultSetter,
9169
9176
  () => {
9170
9177
  r.value = n.setters.find(
@@ -9177,7 +9184,7 @@ const Ae = V({
9177
9184
  }, y = () => {
9178
9185
  l("remove", n.name);
9179
9186
  }, f = () => {
9180
- s.value = !0, o.value = We(a.value) ? a.value.value : "";
9187
+ s.value = !0, o.value = Ne(a.value) ? a.value.value : "";
9181
9188
  }, d = () => {
9182
9189
  s.value = !1, o.value = "";
9183
9190
  }, _ = async (C) => ae(C, n.context, !0) ? (v[r.value.name] = a.value, a.value = C, l("change", C), !0) : !1, w = async () => {
@@ -9189,7 +9196,7 @@ const Ae = V({
9189
9196
  "label-positon": "left"
9190
9197
  }, {
9191
9198
  label: h(() => [
9192
- n.title ? (u(), b(t(Qt), {
9199
+ n.title ? (u(), b(t(Kt), {
9193
9200
  key: 0,
9194
9201
  placement: "top-start",
9195
9202
  content: n.title
@@ -9198,7 +9205,7 @@ const Ae = V({
9198
9205
  G(z(n.label || n.name), 1)
9199
9206
  ]),
9200
9207
  _: 1
9201
- }, 8, ["content"])) : (u(), A("span", Hi, z(n.label || n.name), 1))
9208
+ }, 8, ["content"])) : (u(), A("span", qi, z(n.label || n.name), 1))
9202
9209
  ]),
9203
9210
  default: h(() => [
9204
9211
  x("div", Gi, [
@@ -9221,7 +9228,7 @@ const Ae = V({
9221
9228
  "model-value": "JSExpression"
9222
9229
  }, {
9223
9230
  prefix: h(() => [
9224
- G(z(Ki))
9231
+ G(z(Qi))
9225
9232
  ]),
9226
9233
  suffix: h(() => [
9227
9234
  G(z(Yi))
@@ -9229,11 +9236,11 @@ const Ae = V({
9229
9236
  _: 1
9230
9237
  })) : j("", !0)
9231
9238
  ])) : j("", !0),
9232
- x("div", Qi, [
9239
+ x("div", Ki, [
9233
9240
  n.variable ? (u(), b(t(oa), {
9234
9241
  key: 0,
9235
9242
  onClick: f,
9236
- class: q(["v-icon-vars", { "is-active": i.value }]),
9243
+ class: H(["v-icon-vars", { "is-active": i.value }]),
9237
9244
  title: "绑定变量"
9238
9245
  }, null, 8, ["class"])) : j("", !0),
9239
9246
  n.setters.length > 1 ? (u(), b(t(Gt), {
@@ -9252,7 +9259,7 @@ const Ae = V({
9252
9259
  }, {
9253
9260
  default: h(() => [
9254
9261
  p(t(dn), {
9255
- class: q({
9262
+ class: H({
9256
9263
  "is-placeholder": D.name !== r.value.name
9257
9264
  })
9258
9265
  }, null, 8, ["class"]),
@@ -9385,7 +9392,7 @@ const Ae = V({
9385
9392
  content: d.component
9386
9393
  });
9387
9394
  };
9388
- return H(m, (d) => {
9395
+ return q(m, (d) => {
9389
9396
  l.skeleton?.toggleCollapse(!d);
9390
9397
  }), e({
9391
9398
  widgets: s,
@@ -9416,7 +9423,7 @@ const Ae = V({
9416
9423
  ])
9417
9424
  ]),
9418
9425
  x("div", pu, [
9419
- (u(!0), A($, null, T(r.value, (w) => (u(), b(qt, {
9426
+ (u(!0), A($, null, T(r.value, (w) => (u(), b(Ht, {
9420
9427
  key: w.name
9421
9428
  }, [
9422
9429
  v.value?.name === w.name ? (u(), b(t(Ie), {
@@ -9515,15 +9522,15 @@ const Ae = V({
9515
9522
  const w = o.value?.model;
9516
9523
  return w ? l.assets.componentMap.get(w.name)?.doc : null;
9517
9524
  });
9518
- H(s, (w) => {
9525
+ q(s, (w) => {
9519
9526
  l.skeleton?.settable(!!w);
9520
- }), H(
9527
+ }), q(
9521
9528
  a,
9522
9529
  () => {
9523
9530
  m.value = y.value[0]?.name;
9524
9531
  },
9525
9532
  { immediate: !0 }
9526
- ), H(m, () => {
9533
+ ), q(m, () => {
9527
9534
  g.value = !1;
9528
9535
  });
9529
9536
  const d = () => {
@@ -9539,14 +9546,14 @@ const Ae = V({
9539
9546
  return e({
9540
9547
  widgets: i,
9541
9548
  widgetsRef: v
9542
- }), (w, C) => t(s) ? (u(), b(t(N), {
9549
+ }), (w, C) => t(s) ? (u(), b(t(W), {
9543
9550
  key: 0,
9544
9551
  class: "v-settings-region",
9545
9552
  fit: "",
9546
9553
  direction: "column"
9547
9554
  }, {
9548
9555
  default: h(() => [
9549
- t(o) ? (u(), b(t(N), {
9556
+ t(o) ? (u(), b(t(W), {
9550
9557
  key: 0,
9551
9558
  flex: "",
9552
9559
  justify: "space-between",
@@ -9554,7 +9561,7 @@ const Ae = V({
9554
9561
  class: "v-settings-region__header"
9555
9562
  }, {
9556
9563
  default: h(() => [
9557
- p(t(N), { class: "v-settings-region__title" }, {
9564
+ p(t(W), { class: "v-settings-region__title" }, {
9558
9565
  default: h(() => [
9559
9566
  p(t(hn)),
9560
9567
  x("span", null, [
@@ -9564,7 +9571,7 @@ const Ae = V({
9564
9571
  ]),
9565
9572
  _: 1
9566
9573
  }),
9567
- f.value ? (u(), b(t(N), { key: 0 }, {
9574
+ f.value ? (u(), b(t(W), { key: 0 }, {
9568
9575
  default: h(() => [
9569
9576
  p(t(he), {
9570
9577
  onClick: d,
@@ -9578,7 +9585,7 @@ const Ae = V({
9578
9585
  ]),
9579
9586
  _: 1
9580
9587
  })) : j("", !0),
9581
- t(o) && !t(o).model.locked ? (u(), b(t(N), {
9588
+ t(o) && !t(o).model.locked ? (u(), b(t(W), {
9582
9589
  key: 1,
9583
9590
  grow: "",
9584
9591
  padding: !1
@@ -9673,7 +9680,7 @@ const Ae = V({
9673
9680
  "onUpdate:modelValue": v[0] || (v[0] = (m) => a.value = m)
9674
9681
  }, {
9675
9682
  default: h(() => [
9676
- (u(!0), A($, null, T(t(l), (m) => (u(), b(qt, {
9683
+ (u(!0), A($, null, T(t(l), (m) => (u(), b(Ht, {
9677
9684
  key: m.name
9678
9685
  }, [
9679
9686
  a.value === m.name ? (u(), b(t(Ie), {
@@ -9705,7 +9712,7 @@ export {
9705
9712
  Li as Assets,
9706
9713
  Ct as Binder,
9707
9714
  ft as Box,
9708
- Wi as Designer,
9715
+ Ni as Designer,
9709
9716
  fa as EVENT_MODIFIERS,
9710
9717
  ne as Editor,
9711
9718
  Eu as Engine,
@@ -9720,11 +9727,11 @@ export {
9720
9727
  U as Panel,
9721
9728
  ha as RegionType,
9722
9729
  Ae as RegionWrapper,
9723
- Ni as Renderer,
9730
+ Wi as Renderer,
9724
9731
  Zi as SetterView,
9725
9732
  F as SetterWrapper,
9726
9733
  Mi as Simulator,
9727
- qi as Skeleton,
9734
+ Hi as Skeleton,
9728
9735
  Ui as SkeletonWrapper,
9729
9736
  oo as SlotsPicker,
9730
9737
  tt as Tabs,