@vtj/designer 0.7.31 → 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 M, 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.31
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.31", 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(M), {
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(M), {
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(M), {
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(M), {
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(M), {
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(M), {
1515
+ p(t(W), {
1516
1516
  fit: "",
1517
1517
  direction: "row",
1518
1518
  overflow: "hidden"
1519
1519
  }, {
1520
1520
  default: h(() => [
1521
- p(t(M), {
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(M), {
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(M), { justify: "space-between" }, {
1591
+ p(t(W), { justify: "space-between" }, {
1592
1592
  default: h(() => [
1593
- p(t(M), 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(M), 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(M), {
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(M), {
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,35 +2061,34 @@ 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
- if (!R.some((N) => N.slot))
2073
+ if (!R.some((M) => M.slot))
2074
2074
  return i(R);
2075
- for (const N of R)
2076
- if (N.slot) {
2077
- const L = N.slot.name;
2078
- P[L] || (P[L] = []), P[L].push(N);
2079
- }
2075
+ for (const M of R) {
2076
+ const L = M.slot?.name || "default";
2077
+ P[L] || (P[L] = []), P[L].push(M);
2078
+ }
2080
2079
  const pe = [];
2081
- for (const [N, L] of Object.entries(P))
2080
+ for (const [M, L] of Object.entries(P))
2082
2081
  pe.push({
2083
- id: `${W.id}-${N}`,
2084
- label: `#${N}`,
2082
+ id: `${N.id}-${M}`,
2083
+ label: `#${M}`,
2085
2084
  type: "slot",
2086
- model: W,
2085
+ model: N,
2087
2086
  disabled: !0,
2088
2087
  children: i(L)
2089
2088
  });
2090
2089
  return pe;
2091
2090
  }, i = (R) => {
2092
- const W = [];
2091
+ const N = [];
2093
2092
  return R.forEach((P) => {
2094
2093
  const Z = {
2095
2094
  id: P.id,
@@ -2098,16 +2097,16 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2098
2097
  //getNodeType(model),
2099
2098
  model: P
2100
2099
  };
2101
- Array.isArray(P.children) && (Z.children = a(P.children, P)), W.push(Z);
2102
- }), W;
2100
+ Array.isArray(P.children) && (Z.children = a(P.children, P)), N.push(Z);
2101
+ }), N;
2103
2102
  }, v = () => {
2104
2103
  if (!s.value)
2105
2104
  return [];
2106
- const { id: R, name: W, nodes: P } = s.value;
2105
+ const { id: R, name: N, nodes: P } = s.value;
2107
2106
  return [
2108
2107
  {
2109
2108
  id: R,
2110
- label: W,
2109
+ label: N,
2111
2110
  type: R,
2112
2111
  model: s.value,
2113
2112
  children: i(P)
@@ -2116,13 +2115,13 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2116
2115
  }, m = async () => {
2117
2116
  o.value = v(), l.value?.model && (await ye(), n.value?.setSelected(l.value.model));
2118
2117
  }, g = S(() => l.value?.model.id), y = (R) => {
2119
- const W = R.data;
2120
- 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")
2121
2120
  return !1;
2122
- const P = e.assets.componentMap.get(W.model.name);
2121
+ const P = e.assets.componentMap.get(N.model.name);
2123
2122
  return P ? (n.value?.setDragging(P), !0) : !1;
2124
- }, f = async (R, W, P) => {
2125
- const Z = W.data, N = {
2123
+ }, f = async (R, N, P) => {
2124
+ const Z = N.data, M = {
2126
2125
  prev: "top",
2127
2126
  next: "bottom",
2128
2127
  inner: "inner"
@@ -2132,38 +2131,38 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2132
2131
  L = P === "inner", n.value?.setDropping(L ? Z.model : null, "inner");
2133
2132
  else {
2134
2133
  const O = Z.model;
2135
- L = !!await n.value?.allowDrop(O, N), n.value?.setDropping(L ? O : null, "inner");
2134
+ L = !!await n.value?.allowDrop(O, M), n.value?.setDropping(L ? O : null, "inner");
2136
2135
  }
2137
2136
  return L;
2138
2137
  }, d = (R) => {
2139
- const W = R?.model;
2140
- if (!W || W.invisible || R.type === "slot") {
2138
+ const N = R?.model;
2139
+ if (!N || N.invisible || R.type === "slot") {
2141
2140
  n.value?.setSelected(null), n.value?.setHover(null);
2142
2141
  return;
2143
2142
  }
2144
- n.value?.setSelected(W), n.value?.setHover(null);
2145
- }, _ = async (R, W, P) => {
2146
- 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;
2147
2146
  if (Y(pe.model)) {
2148
2147
  n.value?.setDropping(null), n.value?.setDragging(null);
2149
2148
  return;
2150
2149
  }
2151
- const N = pe.model, L = { before: "left", after: "right" }[P] || "inner";
2150
+ const M = pe.model, L = { before: "left", after: "right" }[P] || "inner";
2152
2151
  if (!await n.value?.allowDrop(
2153
- N,
2152
+ M,
2154
2153
  L
2155
2154
  )) {
2156
- n.value?.setDropping(null), m(), Ke.warning({
2155
+ n.value?.setDropping(null), m(), Qe.warning({
2157
2156
  message: `${Z.model.name}不能放置到该位置`
2158
2157
  }), n.value?.setDragging(null);
2159
2158
  return;
2160
2159
  }
2161
2160
  const Pe = await n.value?.getDropSlot(
2162
- P === "inner" ? N : N.parent
2161
+ P === "inner" ? M : M.parent
2163
2162
  );
2164
2163
  if (Pe !== null) {
2165
2164
  const Vt = Z.model;
2166
- Vt.slot = Pe, s.value?.move(Vt, N, L);
2165
+ Vt.slot = Pe, s.value?.move(Vt, M, L);
2167
2166
  } else
2168
2167
  m();
2169
2168
  n.value?.setDropping(null), n.value?.setDragging(null), e.simulator.refresh();
@@ -2176,18 +2175,18 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2176
2175
  }, C = () => {
2177
2176
  n.value?.setHover(null);
2178
2177
  }, E = (R) => {
2179
- const W = R.data;
2180
- W.dragging = !0;
2181
- 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);
2182
2181
  P && n.value?.setDragging(P);
2183
2182
  }, D = async (R) => {
2184
- const W = R.data;
2185
- W.dragging = !1;
2186
- }, B = (R, W) => {
2187
- 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));
2188
2187
  }, J = (R) => {
2189
- const { name: W, modelValue: P } = R, Z = l.value?.model;
2190
- switch (W) {
2188
+ const { name: N, modelValue: P } = R, Z = l.value?.model;
2189
+ switch (N) {
2191
2190
  case "lock":
2192
2191
  B(Z, P), P.lock();
2193
2192
  break;
@@ -2209,7 +2208,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2209
2208
  break;
2210
2209
  }
2211
2210
  };
2212
- 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), {
2213
2212
  class: "v-outline-widget",
2214
2213
  title: "大纲树"
2215
2214
  }, {
@@ -2233,7 +2232,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2233
2232
  }, {
2234
2233
  default: h(({ data: P, node: Z }) => [
2235
2234
  p(t(re), {
2236
- class: q(["v-outline-widget__item", {
2235
+ class: H(["v-outline-widget__item", {
2237
2236
  "is-locked": P.model.locked,
2238
2237
  "is-invisible": P.model.invisible,
2239
2238
  "is-dragging": P.dragging,
@@ -2359,7 +2358,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2359
2358
  }
2360
2359
  ], n = ht("currentModel", null);
2361
2360
  return (l, s) => (u(), A("div", null, [
2362
- p(t(M), { justify: "space-between" }, {
2361
+ p(t(W), { justify: "space-between" }, {
2363
2362
  default: h(() => [
2364
2363
  p(t(I), {
2365
2364
  name: "settings.loading",
@@ -2469,7 +2468,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2469
2468
  disabled: !l.value.mock,
2470
2469
  editor: "switch"
2471
2470
  }, null, 8, ["disabled"]),
2472
- p(t(M), { justify: "space-between" }, {
2471
+ p(t(W), { justify: "space-between" }, {
2473
2472
  default: h(() => [
2474
2473
  yo,
2475
2474
  p(t(he), {
@@ -2524,7 +2523,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2524
2523
  ];
2525
2524
  $n("currentModel", r);
2526
2525
  const m = S(() => r.value?.method === "jsonp");
2527
- H(
2526
+ q(
2528
2527
  () => e.model,
2529
2528
  (_) => {
2530
2529
  r.value = Object.assign({}, _ || {}), l.value = "base";
@@ -2532,7 +2531,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2532
2531
  {
2533
2532
  immediate: !0
2534
2533
  }
2535
- ), H(l, async () => {
2534
+ ), q(l, async () => {
2536
2535
  o.value?.formRef.validate(async (_) => {
2537
2536
  _ || (await ye(), l.value = "base");
2538
2537
  });
@@ -2567,9 +2566,9 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2567
2566
  height: "600px"
2568
2567
  }, {
2569
2568
  default: h(() => [
2570
- p(t(M), { fit: "" }, {
2569
+ p(t(W), { fit: "" }, {
2571
2570
  default: h(() => [
2572
- p(t(M), {
2571
+ p(t(W), {
2573
2572
  width: "100px",
2574
2573
  shrink: !1
2575
2574
  }, {
@@ -2594,7 +2593,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2594
2593
  fit: ""
2595
2594
  }, {
2596
2595
  footer: h(() => [
2597
- p(t(M), { justify: "space-between" }, {
2596
+ p(t(W), { justify: "space-between" }, {
2598
2597
  default: h(() => [
2599
2598
  x("div", null, [
2600
2599
  l.value === "mock" ? (u(), b(t(ie), {
@@ -2900,7 +2899,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2900
2899
  m.name === "remove" ? await ze("确定删除?") && l("action", { type: m.name, model: n.model }) : l("action", { type: m.name, model: n.model });
2901
2900
  };
2902
2901
  return (m, g) => (u(), A("div", {
2903
- class: q(["v-actions", [`is-${n.position}`]])
2902
+ class: H(["v-actions", [`is-${n.position}`]])
2904
2903
  }, [
2905
2904
  p(t(he), {
2906
2905
  mode: "icon",
@@ -2929,7 +2928,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2929
2928
  inheritAttrs: !1,
2930
2929
  __name: "index",
2931
2930
  setup(c, { expose: e }) {
2932
- 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(
2933
2932
  l,
2934
2933
  r,
2935
2934
  i,
@@ -2980,16 +2979,16 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2980
2979
  }, null, 512),
2981
2980
  t(_) ? (u(), A("div", {
2982
2981
  key: 0,
2983
- class: q(["v-designer__dropping", "is-inner"]),
2984
- style: qe(t(_).style)
2982
+ class: H(["v-designer__dropping", "is-inner"]),
2983
+ style: He(t(_).style)
2985
2984
  }, null, 4)) : j("", !0),
2986
2985
  t(d) ? (u(), A("div", {
2987
2986
  key: 1,
2988
2987
  class: "v-designer__hover",
2989
- style: qe(t(d).style)
2988
+ style: He(t(d).style)
2990
2989
  }, [
2991
2990
  x("span", {
2992
- class: q(`is-${t(d).position}`)
2991
+ class: H(`is-${t(d).position}`)
2993
2992
  }, [
2994
2993
  G(z(t(d).model.name) + ": ", 1),
2995
2994
  x("i", null, z(t(d).model.id), 1)
@@ -2998,7 +2997,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2998
2997
  t(w) ? (u(), A("div", {
2999
2998
  key: 2,
3000
2999
  class: "v-designer__selected",
3001
- style: qe(t(w).style)
3000
+ style: He(t(w).style)
3002
3001
  }, [
3003
3002
  p(Co, {
3004
3003
  position: t(w).position,
@@ -3085,7 +3084,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3085
3084
  onPick: m
3086
3085
  }, {
3087
3086
  default: h(() => [
3088
- _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 })), () => [
3089
3088
  p(t(I), {
3090
3089
  name: "name",
3091
3090
  label: d.nameLabel,
@@ -3378,7 +3377,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3378
3377
  __name: "index",
3379
3378
  setup(c) {
3380
3379
  const { current: e, context: n } = oe();
3381
- return (l, s) => (u(), b(t(M), {
3380
+ return (l, s) => (u(), b(t(W), {
3382
3381
  class: "v-scripts-widget",
3383
3382
  direction: "column",
3384
3383
  fit: ""
@@ -3436,7 +3435,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3436
3435
  class: "v-properties-widget__form",
3437
3436
  size: "small",
3438
3437
  "label-width": "90px",
3439
- onKeydown: a[0] || (a[0] = He(Oe(() => {
3438
+ onKeydown: a[0] || (a[0] = qe(Oe(() => {
3440
3439
  }, ["prevent", "stop"]), ["enter"]))
3441
3440
  }, {
3442
3441
  default: h(() => [
@@ -3478,7 +3477,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3478
3477
  }, w = async (C) => {
3479
3478
  await ze("确定删除?") && m(C);
3480
3479
  };
3481
- return (C, E) => t(e) ? (u(), b(t(M), {
3480
+ return (C, E) => t(e) ? (u(), b(t(W), {
3482
3481
  key: 0,
3483
3482
  class: "v-properties-widget",
3484
3483
  direction: "column",
@@ -3673,7 +3672,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3673
3672
  const { name: _, modelValue: w } = d;
3674
3673
  _ === "edit" && v(w), _ === "remove" && g(w);
3675
3674
  };
3676
- return (d, _) => (u(), b(t(M), {
3675
+ return (d, _) => (u(), b(t(W), {
3677
3676
  class: "v-events-widget",
3678
3677
  direction: "column",
3679
3678
  fit: ""
@@ -3809,7 +3808,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3809
3808
  onForChange: m,
3810
3809
  onModelChange: g
3811
3810
  } = Ea(l), y = (f) => f.arg ? typeof f.arg == "string" ? f.arg : Je(f.arg, {}) : "modelValue";
3812
- return (f, d) => (u(), b(t(M), {
3811
+ return (f, d) => (u(), b(t(W), {
3813
3812
  class: "v-directives-widget",
3814
3813
  direction: "column",
3815
3814
  fit: ""
@@ -3825,7 +3824,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3825
3824
  p(t(ge), {
3826
3825
  size: "small",
3827
3826
  "label-width": "80px",
3828
- onKeydown: d[0] || (d[0] = He(Oe(() => {
3827
+ onKeydown: d[0] || (d[0] = qe(Oe(() => {
3829
3828
  }, ["prevent", "stop"]), ["enter"]))
3830
3829
  }, {
3831
3830
  default: h(() => [
@@ -3872,7 +3871,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3872
3871
  p(t(ge), {
3873
3872
  size: "small",
3874
3873
  "label-width": "80px",
3875
- onKeydown: d[1] || (d[1] = He(Oe(() => {
3874
+ onKeydown: d[1] || (d[1] = qe(Oe(() => {
3876
3875
  }, ["prevent", "stop"]), ["enter"]))
3877
3876
  }, {
3878
3877
  default: h(() => [
@@ -3936,7 +3935,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3936
3935
  p(t(ge), {
3937
3936
  size: "small",
3938
3937
  "label-width": "60px",
3939
- onKeydown: d[2] || (d[2] = He(Oe(() => {
3938
+ onKeydown: d[2] || (d[2] = qe(Oe(() => {
3940
3939
  }, ["prevent", "stop"]), ["enter"]))
3941
3940
  }, {
3942
3941
  default: h(() => [
@@ -4045,7 +4044,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4045
4044
  _: 1
4046
4045
  }, 8, ["title", "model"]));
4047
4046
  }
4048
- }), Wo = /* @__PURE__ */ V({
4047
+ }), No = /* @__PURE__ */ V({
4049
4048
  name: "DefinedEventsDialog",
4050
4049
  __name: "events",
4051
4050
  props: {
@@ -4080,7 +4079,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4080
4079
  _: 1
4081
4080
  }, 8, ["title", "model"]));
4082
4081
  }
4083
- }), No = /* @__PURE__ */ V({
4082
+ }), Wo = /* @__PURE__ */ V({
4084
4083
  name: "DefinedSlotsDialog",
4085
4084
  __name: "slots",
4086
4085
  props: {
@@ -4186,36 +4185,36 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4186
4185
  name: "DefinedWidget",
4187
4186
  __name: "index",
4188
4187
  setup(c) {
4189
- const { current: e, context: n } = oe(), l = S(() => (e.value?.props || []).map((N) => typeof N == "string" ? { name: N } : N)), s = S(() => e.value?.emits || []), o = S(() => e.value?.slots || []), r = S(() => e.value?.inject || []), a = k(!1), i = k(), v = k(!1), m = k(), g = k(!1), y = k(), f = k(!1), d = k(), _ = () => {
4188
+ const { current: e, context: n } = oe(), l = S(() => (e.value?.props || []).map((M) => typeof M == "string" ? { name: M } : M)), s = S(() => e.value?.emits || []), o = S(() => e.value?.slots || []), r = S(() => e.value?.inject || []), a = k(!1), i = k(), v = k(!1), m = k(), g = k(!1), y = k(), f = k(!1), d = k(), _ = () => {
4190
4189
  i.value = void 0, a.value = !0;
4191
- }, w = (N) => {
4192
- const { name: L, modelValue: O } = N;
4190
+ }, w = (M) => {
4191
+ const { name: L, modelValue: O } = M;
4193
4192
  L === "edit" && C(O), L === "remove" && e.value?.removeProp(O);
4194
- }, C = (N) => {
4195
- i.value = N, a.value = !0;
4193
+ }, C = (M) => {
4194
+ i.value = M, a.value = !0;
4196
4195
  }, E = () => {
4197
4196
  m.value = void 0, v.value = !0;
4198
- }, D = (N) => {
4199
- m.value = N, v.value = !0;
4200
- }, B = (N) => {
4201
- const { name: L, modelValue: O } = N;
4197
+ }, D = (M) => {
4198
+ m.value = M, v.value = !0;
4199
+ }, B = (M) => {
4200
+ const { name: L, modelValue: O } = M;
4202
4201
  L === "edit" && D(O), L === "remove" && e.value?.removeEmit(O);
4203
4202
  }, J = () => {
4204
4203
  y.value = void 0, g.value = !0;
4205
- }, R = (N) => {
4206
- y.value = N, g.value = !0;
4207
- }, W = (N) => {
4208
- const { name: L, modelValue: O } = N;
4204
+ }, R = (M) => {
4205
+ y.value = M, g.value = !0;
4206
+ }, N = (M) => {
4207
+ const { name: L, modelValue: O } = M;
4209
4208
  L === "edit" && R(O), L === "remove" && e.value?.removeSlot(O);
4210
4209
  }, P = () => {
4211
4210
  d.value = void 0, f.value = !0;
4212
- }, Z = (N) => {
4213
- d.value = N, f.value = !0;
4214
- }, pe = (N) => {
4215
- const { name: L, modelValue: O } = N;
4211
+ }, Z = (M) => {
4212
+ d.value = M, f.value = !0;
4213
+ }, pe = (M) => {
4214
+ const { name: L, modelValue: O } = M;
4216
4215
  L === "edit" && Z(O), L === "remove" && e.value?.removeInject(O);
4217
4216
  };
4218
- return (N, L) => t(e) && t(n) ? (u(), b(t(M), {
4217
+ return (M, L) => t(e) && t(n) ? (u(), b(t(W), {
4219
4218
  key: 0,
4220
4219
  class: "v-defined-widget",
4221
4220
  direction: "column",
@@ -4275,7 +4274,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4275
4274
  key: 0,
4276
4275
  "image-size": 50
4277
4276
  })),
4278
- v.value ? (u(), b(Wo, {
4277
+ v.value ? (u(), b(No, {
4279
4278
  key: 1,
4280
4279
  modelValue: v.value,
4281
4280
  "onUpdate:modelValue": L[1] || (L[1] = (O) => v.value = O),
@@ -4301,13 +4300,13 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4301
4300
  border: "",
4302
4301
  actions: ["remove"],
4303
4302
  onClick: (Pe) => R(O),
4304
- onAction: W
4303
+ onAction: N
4305
4304
  }, null, 8, ["model-value", "title", "onClick"]))), 256)),
4306
4305
  o.value.length ? j("", !0) : (u(), b(t(se), {
4307
4306
  key: 0,
4308
4307
  "image-size": 50
4309
4308
  })),
4310
- g.value ? (u(), b(No, {
4309
+ g.value ? (u(), b(Wo, {
4311
4310
  key: 1,
4312
4311
  modelValue: g.value,
4313
4312
  "onUpdate:modelValue": L[2] || (L[2] = (O) => g.value = O),
@@ -4546,7 +4545,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4546
4545
  _: 1
4547
4546
  }, 8, ["title", "model"]));
4548
4547
  }
4549
- }), qo = /* @__PURE__ */ V({
4548
+ }), Ho = /* @__PURE__ */ V({
4550
4549
  name: "DataSourcesWidget",
4551
4550
  __name: "index",
4552
4551
  setup(c) {
@@ -4560,7 +4559,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4560
4559
  const { name: m, modelValue: g } = v;
4561
4560
  m === "edit" && a(g), m === "remove" && e.value?.removeDataSource(g.name);
4562
4561
  };
4563
- return (v, m) => (u(), b(t(M), {
4562
+ return (v, m) => (u(), b(t(W), {
4564
4563
  class: "v-data-sources-widget",
4565
4564
  direction: "column",
4566
4565
  fit: ""
@@ -4602,7 +4601,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4602
4601
  _: 1
4603
4602
  }));
4604
4603
  }
4605
- }), Ho = /* @__PURE__ */ V({
4604
+ }), qo = /* @__PURE__ */ V({
4606
4605
  __name: "layout",
4607
4606
  props: {
4608
4607
  styleJson: {},
@@ -4610,7 +4609,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4610
4609
  },
4611
4610
  setup(c) {
4612
4611
  const e = c, n = k();
4613
- H(
4612
+ q(
4614
4613
  () => e.styleJson.display,
4615
4614
  (v) => {
4616
4615
  n.value = v === "flex";
@@ -4621,12 +4620,12 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4621
4620
  {
4622
4621
  label: "block-块级布局",
4623
4622
  value: "block",
4624
- svg: Ql
4623
+ svg: Kl
4625
4624
  },
4626
4625
  {
4627
4626
  label: "flex-弹性布局",
4628
4627
  value: "flex",
4629
- svg: Kl
4628
+ svg: Ql
4630
4629
  },
4631
4630
  {
4632
4631
  label: "inline-block-行内块级布局",
@@ -4841,7 +4840,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4841
4840
  _: 1
4842
4841
  }));
4843
4842
  }
4844
- }), 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({
4845
4844
  __name: "spacing-input",
4846
4845
  props: {
4847
4846
  name: {},
@@ -4864,16 +4863,16 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4864
4863
  a.value = void 0, s("update:modelValue", a.value), s("submit", l.name, void 0), s("close");
4865
4864
  };
4866
4865
  return (f, d) => (u(), A("div", Xo, [
4867
- Qo,
4868
- x("div", Ko, [
4869
- p(t(M), {
4866
+ Ko,
4867
+ x("div", Qo, [
4868
+ p(t(W), {
4870
4869
  class: "v-spacing-input__body",
4871
4870
  ref_key: "bodyRef",
4872
4871
  ref: r,
4873
4872
  direction: "column"
4874
4873
  }, {
4875
4874
  default: h(() => [
4876
- p(t(M), null, {
4875
+ p(t(W), null, {
4877
4876
  default: h(() => [
4878
4877
  p(t(tn), {
4879
4878
  modelValue: a.value,
@@ -4887,9 +4886,9 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4887
4886
  ]),
4888
4887
  _: 1
4889
4888
  }),
4890
- p(t(M), null, {
4889
+ p(t(W), null, {
4891
4890
  default: h(() => [
4892
- o.value ? (u(), b(t(M), {
4891
+ o.value ? (u(), b(t(W), {
4893
4892
  key: 0,
4894
4893
  class: "v-spacing-input__auto",
4895
4894
  width: "20%"
@@ -4901,7 +4900,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4901
4900
  ]),
4902
4901
  _: 1
4903
4902
  })) : j("", !0),
4904
- p(t(M), {
4903
+ p(t(W), {
4905
4904
  grow: "",
4906
4905
  class: "v-spacing-input__values",
4907
4906
  align: "center",
@@ -4917,7 +4916,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4917
4916
  ]),
4918
4917
  _: 1
4919
4918
  }),
4920
- p(t(M), null, {
4919
+ p(t(W), null, {
4921
4920
  default: h(() => [
4922
4921
  p(t(ie), {
4923
4922
  size: "small",
@@ -4981,14 +4980,14 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4981
4980
  "dominant-baseline": "hanging"
4982
4981
  }, " margin ", -1), jr = [
4983
4982
  Ar
4984
- ], Q = 36, K = 24, Er = /* @__PURE__ */ V({
4983
+ ], K = 36, Q = 24, Er = /* @__PURE__ */ V({
4985
4984
  __name: "spacing",
4986
4985
  props: {
4987
4986
  styleJson: {},
4988
4987
  setStyle: { type: Function }
4989
4988
  },
4990
4989
  setup(c) {
4991
- 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 = () => {
4992
4991
  i.value = !1, v.value = void 0, m.value = void 0;
4993
4992
  }, y = (f) => {
4994
4993
  v.value = f, m.value = e.styleJson[f], i.value = !0;
@@ -5023,9 +5022,9 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5023
5022
  d: `
5024
5023
  m1,1
5025
5024
  h${t(s) - 1}
5026
- l-${Q},${K}
5027
- h-${t(s) - 2 * Q}
5028
- l-${Q},-${K}z`,
5025
+ l-${K},${Q}
5026
+ h-${t(s) - 2 * K}
5027
+ l-${K},-${Q}z`,
5029
5028
  "data-automation-id": "margin-top-button",
5030
5029
  "aria-label": "Margin top button",
5031
5030
  class: "tb-path-color",
@@ -5041,9 +5040,9 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5041
5040
  d: `
5042
5041
  m${t(s) - 1},1
5043
5042
  v${t(o) - 1}
5044
- l-${Q},-${K}
5045
- v-${t(o) - 2 * K}
5046
- l${Q},-${K}z`,
5043
+ l-${K},-${Q}
5044
+ v-${t(o) - 2 * Q}
5045
+ l${K},-${Q}z`,
5047
5046
  "data-automation-id": "margin-right-button",
5048
5047
  "aria-label": "Margin right button",
5049
5048
  class: "lr-path-color",
@@ -5059,9 +5058,9 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5059
5058
  d: `
5060
5059
  m1,${t(o) - 1}
5061
5060
  h${t(s) - 1}
5062
- l-${Q},-${K}
5063
- h-${t(s) - 2 * Q}
5064
- l-${Q},${K}z`,
5061
+ l-${K},-${Q}
5062
+ h-${t(s) - 2 * K}
5063
+ l-${K},${Q}z`,
5065
5064
  "data-automation-id": "margin-bottom-button",
5066
5065
  "aria-label": "Margin bottom button",
5067
5066
  class: "tb-path-color",
@@ -5077,9 +5076,9 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5077
5076
  d: `
5078
5077
  m1,1
5079
5078
  v${t(o) - 1}
5080
- l${Q},-${K}
5081
- v-${t(o) - 2 * K}
5082
- l-${Q},-${K}z`,
5079
+ l${K},-${Q}
5080
+ v-${t(o) - 2 * Q}
5081
+ l-${K},-${Q}z`,
5083
5082
  "data-automation-id": "margin-left-button",
5084
5083
  "aria-label": "Margin left button",
5085
5084
  class: "lr-path-color",
@@ -5115,8 +5114,8 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5115
5114
  x("rect", {
5116
5115
  x: "36",
5117
5116
  y: "24",
5118
- width: t(s) - 2 * Q + 1,
5119
- height: t(o) - 2 * K + 1,
5117
+ width: t(s) - 2 * K + 1,
5118
+ height: t(o) - 2 * Q + 1,
5120
5119
  fill: "transparent",
5121
5120
  rx: "2",
5122
5121
  ry: "2",
@@ -5128,8 +5127,8 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5128
5127
  "clip-path": "url(#margin-inner)",
5129
5128
  x: "36",
5130
5129
  y: "24",
5131
- width: t(s) - 2 * Q + 1,
5132
- height: t(o) - 2 * K + 1,
5130
+ width: t(s) - 2 * K + 1,
5131
+ height: t(o) - 2 * Q + 1,
5133
5132
  fill: "transparent",
5134
5133
  rx: "2",
5135
5134
  ry: "2",
@@ -5137,19 +5136,19 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5137
5136
  }, null, 8, dr)
5138
5137
  ], 8, tr)) : j("", !0),
5139
5138
  x("div", {
5140
- 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"] }]),
5141
5140
  onClick: d[4] || (d[4] = (_) => y("margin-top"))
5142
5141
  }, z(e.styleJson["margin-top"] || "-"), 3),
5143
5142
  x("div", {
5144
- 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"] }]),
5145
5144
  onClick: d[5] || (d[5] = (_) => y("margin-right"))
5146
5145
  }, z(e.styleJson["margin-right"] || "-"), 3),
5147
5146
  x("div", {
5148
- 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"] }]),
5149
5148
  onClick: d[6] || (d[6] = (_) => y("margin-bottom"))
5150
5149
  }, z(e.styleJson["margin-bottom"] || "-"), 3),
5151
5150
  x("div", {
5152
- 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"] }]),
5153
5152
  onClick: d[7] || (d[7] = (_) => y("margin-left"))
5154
5153
  }, z(e.styleJson["margin-left"] || "-"), 3)
5155
5154
  ]),
@@ -5173,9 +5172,9 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5173
5172
  d: `
5174
5173
  m1,1
5175
5174
  h${t(r) - 1}
5176
- l-${Q},${K}
5177
- h-${t(r) - 2 * Q}
5178
- l-${Q},-${K}z`,
5175
+ l-${K},${Q}
5176
+ h-${t(r) - 2 * K}
5177
+ l-${K},-${Q}z`,
5179
5178
  "data-automation-id": "padding-top-button",
5180
5179
  "aria-label": "Padding top button",
5181
5180
  class: "tb-path-color",
@@ -5191,9 +5190,9 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5191
5190
  d: `
5192
5191
  m${t(r) - 1},1
5193
5192
  v${t(a) - 1}
5194
- l-${Q},-${K}
5195
- v-${t(a) - 2 * K}
5196
- l${Q},-${K}z`,
5193
+ l-${K},-${Q}
5194
+ v-${t(a) - 2 * Q}
5195
+ l${K},-${Q}z`,
5197
5196
  "data-automation-id": "padding-right-button",
5198
5197
  "aria-label": "Padding right button",
5199
5198
  class: "lr-path-color",
@@ -5209,9 +5208,9 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5209
5208
  d: `
5210
5209
  m1,${t(a) - 1}
5211
5210
  h${t(r) - 1}
5212
- l-${Q},-${K}
5213
- h-${t(r) - 2 * Q}
5214
- l-${Q},${K}z`,
5211
+ l-${K},-${Q}
5212
+ h-${t(r) - 2 * K}
5213
+ l-${K},${Q}z`,
5215
5214
  "data-automation-id": "padding-bottom-button",
5216
5215
  "aria-label": "Padding bottom button",
5217
5216
  class: "tb-path-color",
@@ -5227,9 +5226,9 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5227
5226
  d: `
5228
5227
  m1,1
5229
5228
  v${t(a) - 1}
5230
- l${Q},-${K}
5231
- v-${t(a) - 2 * K}
5232
- l-${Q},-${K}z`,
5229
+ l${K},-${Q}
5230
+ v-${t(a) - 2 * Q}
5231
+ l-${K},-${Q}z`,
5233
5232
  "data-automation-id": "padding-left-button",
5234
5233
  "aria-label": "Padding left button",
5235
5234
  class: "lr-path-color",
@@ -5265,8 +5264,8 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5265
5264
  x("rect", {
5266
5265
  x: "36",
5267
5266
  y: "24",
5268
- width: t(r) - 2 * Q + 1,
5269
- height: t(a) - 2 * K + 1,
5267
+ width: t(r) - 2 * K + 1,
5268
+ height: t(a) - 2 * Q + 1,
5270
5269
  fill: "transparent",
5271
5270
  rx: "2",
5272
5271
  ry: "2",
@@ -5278,8 +5277,8 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5278
5277
  "clip-path": "url(#padding-inner)",
5279
5278
  x: "36",
5280
5279
  y: "24",
5281
- width: t(r) - 2 * Q + 1,
5282
- height: t(a) - 2 * K + 1,
5280
+ width: t(r) - 2 * K + 1,
5281
+ height: t(a) - 2 * Q + 1,
5283
5282
  fill: "transparent",
5284
5283
  rx: "2",
5285
5284
  ry: "2",
@@ -5287,19 +5286,19 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5287
5286
  }, null, 8, kr)
5288
5287
  ], 8, pr)) : j("", !0),
5289
5288
  x("div", {
5290
- 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"] }]),
5291
5290
  onClick: d[12] || (d[12] = (_) => y("padding-top"))
5292
5291
  }, z(e.styleJson["padding-top"] || "-"), 3),
5293
5292
  x("div", {
5294
- 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"] }]),
5295
5294
  onClick: d[13] || (d[13] = (_) => y("padding-right"))
5296
5295
  }, z(e.styleJson["padding-right"] || "-"), 3),
5297
5296
  x("div", {
5298
- 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"] }]),
5299
5298
  onClick: d[14] || (d[14] = (_) => y("padding-bottom"))
5300
5299
  }, z(e.styleJson["padding-bottom"] || "-"), 3),
5301
5300
  x("div", {
5302
- 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"] }]),
5303
5302
  onClick: d[15] || (d[15] = (_) => y("padding-left"))
5304
5303
  }, z(e.styleJson["padding-left"] || "-"), 3)
5305
5304
  ], 512),
@@ -5412,14 +5411,14 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5412
5411
  _: 1
5413
5412
  }));
5414
5413
  }
5415
- }), 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({
5416
5415
  __name: "positioning",
5417
5416
  props: {
5418
5417
  styleJson: {},
5419
5418
  setStyle: { type: Function }
5420
5419
  },
5421
5420
  setup(c) {
5422
- 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 = [
5423
5422
  { label: "静态", value: "static" },
5424
5423
  { label: "相对", value: "relative" },
5425
5424
  { label: "绝对", value: "absolute" },
@@ -5583,7 +5582,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5583
5582
  ry: "2",
5584
5583
  style: { "pointer-events": "none", "stroke-width": "2px" }
5585
5584
  }, null, 8, Jr),
5586
- x("clipPath", Wr, [
5585
+ x("clipPath", Nr, [
5587
5586
  x("rect", {
5588
5587
  x: "36",
5589
5588
  y: "24",
@@ -5593,7 +5592,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5593
5592
  rx: "2",
5594
5593
  ry: "2",
5595
5594
  style: { "pointer-events": "none" }
5596
- }, null, 8, Nr)
5595
+ }, null, 8, Wr)
5597
5596
  ]),
5598
5597
  x("rect", {
5599
5598
  class: "stroke",
@@ -5609,19 +5608,19 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5609
5608
  }, null, 8, Mr)
5610
5609
  ], 8, Br)) : j("", !0),
5611
5610
  x("div", {
5612
- class: q(["spacing-edit padding-top", { "is-setting": e.styleJson.top }]),
5611
+ class: H(["spacing-edit padding-top", { "is-setting": e.styleJson.top }]),
5613
5612
  onClick: d[4] || (d[4] = (_) => g("top"))
5614
5613
  }, z(e.styleJson.top || m.value[0] || "-"), 3),
5615
5614
  x("div", {
5616
- class: q(["spacing-edit padding-right", { "is-setting": e.styleJson.right }]),
5615
+ class: H(["spacing-edit padding-right", { "is-setting": e.styleJson.right }]),
5617
5616
  onClick: d[5] || (d[5] = (_) => g("right"))
5618
5617
  }, z(e.styleJson.right || m.value[1] || "-"), 3),
5619
5618
  x("div", {
5620
- class: q(["spacing-edit padding-bottom", { "is-setting": e.styleJson.bottom }]),
5619
+ class: H(["spacing-edit padding-bottom", { "is-setting": e.styleJson.bottom }]),
5621
5620
  onClick: d[6] || (d[6] = (_) => g("bottom"))
5622
5621
  }, z(e.styleJson.bottom || m.value[2] || "-"), 3),
5623
5622
  x("div", {
5624
- class: q(["spacing-edit padding-left", { "is-setting": e.styleJson.left }]),
5623
+ class: H(["spacing-edit padding-left", { "is-setting": e.styleJson.left }]),
5625
5624
  onClick: d[7] || (d[7] = (_) => g("left"))
5626
5625
  }, z(e.styleJson.left || m.value[3] || "-"), 3)
5627
5626
  ], 512),
@@ -5797,7 +5796,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5797
5796
  _: 1
5798
5797
  }));
5799
5798
  }
5800
- }), qr = /* @__PURE__ */ V({
5799
+ }), Hr = /* @__PURE__ */ V({
5801
5800
  __name: "backgound",
5802
5801
  props: {
5803
5802
  styleJson: {},
@@ -5908,7 +5907,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5908
5907
  _: 1
5909
5908
  }));
5910
5909
  }
5911
- }), Hr = /* @__PURE__ */ V({
5910
+ }), qr = /* @__PURE__ */ V({
5912
5911
  __name: "border",
5913
5912
  props: {
5914
5913
  styleJson: {},
@@ -5920,10 +5919,10 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5920
5919
  { label: "左边框", svg: Os, value: "border-left" },
5921
5920
  { label: "上边框", svg: Fs, value: "border-top" },
5922
5921
  { label: "下边框", svg: Js, value: "border-bottom" },
5923
- { label: "右边框", svg: Ws, value: "border-right" }
5922
+ { label: "右边框", svg: Ns, value: "border-right" }
5924
5923
  ], s = [
5925
5924
  { label: "无", value: "none", svg: bn },
5926
- { label: "实线", value: "solid", svg: Ns },
5925
+ { label: "实线", value: "solid", svg: Ws },
5927
5926
  { label: "虚线", value: "dashed", svg: Ms },
5928
5927
  { label: "点线", value: "dotted", svg: Ls }
5929
5928
  ], o = (r, a) => {
@@ -6012,12 +6011,12 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6012
6011
  {
6013
6012
  label: "Pointer",
6014
6013
  value: "pointer",
6015
- svg: qs
6014
+ svg: Hs
6016
6015
  },
6017
6016
  {
6018
6017
  label: "NotAllowed",
6019
6018
  value: "not-allowed",
6020
- svg: Hs
6019
+ svg: qs
6021
6020
  },
6022
6021
  {
6023
6022
  label: "无",
@@ -6109,14 +6108,14 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6109
6108
  const i = l.value?.getPropValue("style") || {};
6110
6109
  a !== void 0 ? i[r] = a : delete i[r], l.value?.setProp("style", i);
6111
6110
  };
6112
- return (r, a) => e.isStyleCodeMode ? (u(), b(Go, { key: 0 })) : (u(), b(t(M), {
6111
+ return (r, a) => e.isStyleCodeMode ? (u(), b(Go, { key: 0 })) : (u(), b(t(W), {
6113
6112
  key: `widget-style-${l.value?.id}`,
6114
6113
  class: "v-style-widget",
6115
6114
  direction: "column",
6116
6115
  fit: ""
6117
6116
  }, {
6118
6117
  default: h(() => [
6119
- (u(), b(Ho, {
6118
+ (u(), b(qo, {
6120
6119
  key: `Layout${l.value?.id}`,
6121
6120
  "style-json": s.value,
6122
6121
  setStyle: o
@@ -6141,12 +6140,12 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6141
6140
  "style-json": s.value,
6142
6141
  setStyle: o
6143
6142
  }, null, 8, ["style-json"])),
6144
- (u(), b(qr, {
6143
+ (u(), b(Hr, {
6145
6144
  key: `Backgound${l.value?.id}`,
6146
6145
  "style-json": s.value,
6147
6146
  setStyle: o
6148
6147
  }, null, 8, ["style-json"])),
6149
- (u(), b(Hr, {
6148
+ (u(), b(qr, {
6150
6149
  key: `Border${l.value?.id}`,
6151
6150
  "style-json": s.value,
6152
6151
  setStyle: o
@@ -6160,14 +6159,14 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6160
6159
  _: 1
6161
6160
  }));
6162
6161
  }
6163
- }), Qr = ["src"], Kr = /* @__PURE__ */ V({
6162
+ }), Kr = ["src"], Qr = /* @__PURE__ */ V({
6164
6163
  name: "PreviewerWidget",
6165
6164
  __name: "index",
6166
6165
  props: {
6167
6166
  path: { type: Function }
6168
6167
  },
6169
6168
  setup(c, { expose: e }) {
6170
- 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");
6171
6170
  return e({
6172
6171
  refresh: () => {
6173
6172
  s.value = Symbol();
@@ -6189,7 +6188,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6189
6188
  ref: "iframe",
6190
6189
  frameborder: "0",
6191
6190
  src: v.value
6192
- }, null, 8, Qr)) : j("", !0)
6191
+ }, null, 8, Kr)) : j("", !0)
6193
6192
  ]),
6194
6193
  _: 1
6195
6194
  }, 8, ["mode", "width", "height"])
@@ -6211,7 +6210,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6211
6210
  "separator-icon": t(Xs)
6212
6211
  }, {
6213
6212
  default: h(() => [
6214
- (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), {
6215
6214
  onClick: (v) => s(i),
6216
6215
  onMouseover: (v) => o(i)
6217
6216
  }, {
@@ -6269,7 +6268,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6269
6268
  __name: "index",
6270
6269
  setup(c) {
6271
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 : "");
6272
- return H(
6271
+ return q(
6273
6272
  e,
6274
6273
  async (a) => {
6275
6274
  const i = n.project.value;
@@ -6313,7 +6312,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6313
6312
  const e = c, n = k();
6314
6313
  let l = null;
6315
6314
  Mt(() => {
6316
- l || (l = Nn.service({ target: n.value?.$el }));
6315
+ l || (l = Wn.service({ target: n.value?.$el }));
6317
6316
  }), Lt(() => {
6318
6317
  s(), l = null;
6319
6318
  });
@@ -6362,10 +6361,10 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6362
6361
  setup(c, { emit: e }) {
6363
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) => {
6364
6363
  s.value = [{ name: i.name, url: v }];
6365
- }), !1) : (Ke.error("只能上传图片"), !1), a = () => {
6364
+ }), !1) : (Qe.error("只能上传图片"), !1), a = () => {
6366
6365
  s.value = [];
6367
6366
  };
6368
- return H(
6367
+ return q(
6369
6368
  () => n.modelValue,
6370
6369
  (i) => {
6371
6370
  s.value = i ? [{ name: "", url: i }] : [];
@@ -6373,7 +6372,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6373
6372
  {
6374
6373
  immediate: !0
6375
6374
  }
6376
- ), H(s, () => {
6375
+ ), q(s, () => {
6377
6376
  const i = s.value[0]?.url;
6378
6377
  l("change", i), l("update:modelValue", i);
6379
6378
  }), (i, v) => (u(), b(t(Mn), ue({
@@ -6389,7 +6388,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6389
6388
  }, i.$attrs), {
6390
6389
  default: h(() => [
6391
6390
  x("span", ui, [
6392
- p(t(ke), { icon: t(Qs) }, null, 8, ["icon"])
6391
+ p(t(ke), { icon: t(Ks) }, null, 8, ["icon"])
6393
6392
  ])
6394
6393
  ]),
6395
6394
  _: 1
@@ -6446,7 +6445,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6446
6445
  Logo: $a,
6447
6446
  EmptyWidget: za,
6448
6447
  Switcher: Fa,
6449
- Toolbar: Wa,
6448
+ Toolbar: Na,
6450
6449
  Actions: La,
6451
6450
  Pages: ro,
6452
6451
  Blocks: io,
@@ -6462,9 +6461,9 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6462
6461
  Css: Oo,
6463
6462
  Directives: Fo,
6464
6463
  Defined: Lo,
6465
- DataSources: qo,
6464
+ DataSources: Ho,
6466
6465
  Style: Xr,
6467
- Previewer: Kr,
6466
+ Previewer: Qr,
6468
6467
  NodePath: Yr,
6469
6468
  Schema: Zr,
6470
6469
  Raw: ei,
@@ -6498,7 +6497,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6498
6497
  component: X.Pages,
6499
6498
  type: "app",
6500
6499
  openType: "panel",
6501
- icon: Ks,
6500
+ icon: Qs,
6502
6501
  label: "页面管理"
6503
6502
  },
6504
6503
  {
@@ -6743,20 +6742,24 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6743
6742
  official: !0,
6744
6743
  enabled: !0
6745
6744
  },
6746
- {
6747
- package: "echarts",
6748
- version: "latest",
6749
- library: "echarts",
6750
- urls: ["@vtj/materials/deps/echarts/echarts.min.js"],
6751
- required: !1,
6752
- official: !0,
6753
- enabled: !0
6754
- },
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
+ // },
6755
6754
  {
6756
6755
  package: "@vtj/ui",
6757
6756
  version: "latest",
6758
6757
  library: "VtjUI",
6759
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",
6760
6763
  "@vtj/materials/deps/@vtj/ui/style.css",
6761
6764
  "@vtj/materials/deps/@vtj/ui/index.umd.js"
6762
6765
  ],
@@ -6771,7 +6774,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6771
6774
  version: "latest",
6772
6775
  library: "antd",
6773
6776
  urls: [
6774
- "@vtj/materials/deps/ant-design-vue/rest.css",
6777
+ "@vtj/materials/deps/ant-design-vue/reset.css",
6775
6778
  "@vtj/materials/deps/ant-design-vue/dayjs/dayjs.min.js",
6776
6779
  "@vtj/materials/deps/ant-design-vue/dayjs/plugin/customParseFormat.js",
6777
6780
  "@vtj/materials/deps/ant-design-vue/dayjs/plugin/weekday.js",
@@ -7295,7 +7298,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
7295
7298
  name: "BooleanSetter",
7296
7299
  __name: "boolean",
7297
7300
  setup(c) {
7298
- return (e, n) => (u(), b(t(Kt), ue(e.$attrs, {
7301
+ return (e, n) => (u(), b(t(Qt), ue(e.$attrs, {
7299
7302
  "model-value": !!e.$attrs.modelValue
7300
7303
  }), null, 16, ["model-value"]));
7301
7304
  }
@@ -7310,9 +7313,9 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
7310
7313
  setup(c, { emit: e }) {
7311
7314
  const n = (i = "") => ({
7312
7315
  type: "JSExpression",
7313
- value: We(i) ? i.value : i
7316
+ value: Ne(i) ? i.value : i
7314
7317
  }), l = c, s = e, o = (i) => ae(i, l.context, !0), r = k(n(l.modelValue).value);
7315
- H(
7318
+ q(
7316
7319
  () => l.modelValue,
7317
7320
  (i) => {
7318
7321
  r.value = n(i).value;
@@ -7368,10 +7371,10 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
7368
7371
  },
7369
7372
  emits: ["change"],
7370
7373
  setup(c, { emit: e }) {
7371
- 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) => {
7372
7375
  l("change", r);
7373
7376
  };
7374
- return (r, a) => (u(), b(t(qn), ue({
7377
+ return (r, a) => (u(), b(t(Hn), ue({
7375
7378
  class: "v-number-setter",
7376
7379
  "controls-position": "right",
7377
7380
  "model-value": s.value
@@ -7381,7 +7384,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
7381
7384
  name: "ColorSetter",
7382
7385
  __name: "color",
7383
7386
  setup(c) {
7384
- 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));
7385
7388
  }
7386
7389
  }), Ci = /* @__PURE__ */ V({
7387
7390
  name: "JsonSetter",
@@ -7405,7 +7408,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
7405
7408
  if (typeof d != "object")
7406
7409
  throw new Error(`"${y}" is not a ${n.type}`);
7407
7410
  } catch (d) {
7408
- f = !1, Qe.error({
7411
+ f = !1, Ke.error({
7409
7412
  title: "代码错误",
7410
7413
  message: d?.message || d
7411
7414
  });
@@ -7423,7 +7426,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
7423
7426
  r.value = !0;
7424
7427
  };
7425
7428
  return (y, f) => (u(), A("div", {
7426
- class: q(["v-json-setter", { "is-active": o.value }])
7429
+ class: H(["v-json-setter", { "is-active": o.value }])
7427
7430
  }, [
7428
7431
  p(t(we), ue({
7429
7432
  readonly: "",
@@ -7484,7 +7487,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
7484
7487
  o.value = !0;
7485
7488
  };
7486
7489
  return (g, y) => (u(), A("div", {
7487
- class: q(["v-function-setter", { "is-active": r.value }])
7490
+ class: H(["v-function-setter", { "is-active": r.value }])
7488
7491
  }, [
7489
7492
  p(t(we), ue({
7490
7493
  readonly: "",
@@ -7526,7 +7529,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
7526
7529
  },
7527
7530
  setup(c) {
7528
7531
  const e = c;
7529
- return (n, l) => (u(), b(t(Ht), ue({
7532
+ return (n, l) => (u(), b(t(qt), ue({
7530
7533
  class: "v-radio-setter",
7531
7534
  size: "small"
7532
7535
  }, n.$attrs), {
@@ -7569,7 +7572,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
7569
7572
  (u(!0), A($, null, T(n.options, (a) => (u(), A("span", {
7570
7573
  label: a.value,
7571
7574
  title: a.label,
7572
- class: q({
7575
+ class: H({
7573
7576
  "is-active": n.modelValue === a.value
7574
7577
  }),
7575
7578
  onClick: (i) => s(a)
@@ -7595,9 +7598,9 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
7595
7598
  const n = c, l = e, s = k(!0), o = S(() => s.value ? "px" : void 0), r = k(n.modelValue), a = (i) => {
7596
7599
  s.value = !!Number(i);
7597
7600
  };
7598
- return H(r, (i) => {
7601
+ return q(r, (i) => {
7599
7602
  l("change", i);
7600
- }), H(
7603
+ }), q(
7601
7604
  () => n.modelValue,
7602
7605
  (i) => {
7603
7606
  i && (s.value = i.endsWith("px"), r.value = i);
@@ -7622,7 +7625,7 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
7622
7625
  emits: ["change"],
7623
7626
  setup(c, { emit: e }) {
7624
7627
  const n = c, l = e, s = k(new Array(n.sections).fill(""));
7625
- H(
7628
+ q(
7626
7629
  () => n.modelValue,
7627
7630
  (r) => {
7628
7631
  s.value = r ? r.split(" ") : new Array(n.sections).fill("");
@@ -7651,13 +7654,13 @@ const Da = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
7651
7654
  emits: ["change", "update:modelValue"],
7652
7655
  setup(c, { emit: e }) {
7653
7656
  const n = c, l = e, s = k();
7654
- H(
7657
+ q(
7655
7658
  () => n.modelValue,
7656
7659
  (r) => {
7657
7660
  s.value = r;
7658
7661
  },
7659
7662
  { immediate: !0 }
7660
- ), H(s, (r) => {
7663
+ ), q(s, (r) => {
7661
7664
  l("change", r), l("update:modelValue", r);
7662
7665
  });
7663
7666
  const o = () => {
@@ -7902,10 +7905,13 @@ class Ti {
7902
7905
  const n = [];
7903
7906
  for (const l of this.deps) {
7904
7907
  const s = e.find((o) => o.package === l.package);
7905
- n.push({
7906
- ...l,
7907
- ...s
7908
- });
7908
+ n.push(
7909
+ s ? {
7910
+ ...s,
7911
+ ...l,
7912
+ enabled: s.enabled
7913
+ } : l
7914
+ );
7909
7915
  }
7910
7916
  for (const l of e)
7911
7917
  this.deps.find((o) => o.package === l.package) || n.push(l);
@@ -7981,7 +7987,7 @@ function Ji(c) {
7981
7987
  l.mount(document.createElement("div"));
7982
7988
  });
7983
7989
  }
7984
- class Wi {
7990
+ class Ni {
7985
7991
  constructor(e, n, l) {
7986
7992
  this.engine = e, this.contentWindow = n, this.dependencies = l, this.document = this.contentWindow.document, this.bindEvents(n, this.document);
7987
7993
  }
@@ -8247,7 +8253,7 @@ class Wi {
8247
8253
  this.setSelected(null), this.setHover(null), this.setDragging(null), e && n && this.unbindEvents(e, n), this.document = null;
8248
8254
  }
8249
8255
  }
8250
- class Ni {
8256
+ class Wi {
8251
8257
  constructor(e, n, l = null) {
8252
8258
  this.env = e, this.service = n, this.designer = l, this.nodeChange = this.__onNodeChange.bind(this), this.blockChange = this.__onBlockChange.bind(this);
8253
8259
  }
@@ -8272,7 +8278,7 @@ class Ni {
8272
8278
  err: r,
8273
8279
  instance: a,
8274
8280
  info: i
8275
- }), Qe.error({
8281
+ }), Ke.error({
8276
8282
  title: "运行错误",
8277
8283
  message: g
8278
8284
  });
@@ -8354,15 +8360,15 @@ class Mi extends an {
8354
8360
  constructor(e) {
8355
8361
  super();
8356
8362
  const { engine: n, materialPath: l } = e;
8357
- this.engine = n, this.materialPath = l, H(this.engine.current, () => {
8363
+ this.engine = n, this.materialPath = l, q(this.engine.current, () => {
8358
8364
  this.refresh();
8359
8365
  });
8360
8366
  }
8361
8367
  init(e, n, l, s) {
8362
- H(
8368
+ q(
8363
8369
  [e, n, l, s],
8364
8370
  () => {
8365
- 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(
8366
8372
  this.engine,
8367
8373
  this.contentWindow,
8368
8374
  n
@@ -8379,7 +8385,7 @@ class Mi extends an {
8379
8385
  }
8380
8386
  l.__simulator__ = this;
8381
8387
  const s = l.document;
8382
- this.contentWindow = l;
8388
+ l.CKEDITOR_VERSION = void 0, this.contentWindow = l;
8383
8389
  const {
8384
8390
  scripts: o,
8385
8391
  css: r,
@@ -8428,7 +8434,7 @@ class Mi extends an {
8428
8434
  }
8429
8435
  o.load(m);
8430
8436
  const g = this.createEnv(e, l, m);
8431
- 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();
8432
8438
  }
8433
8439
  createEnv(e = [], n = {}, l = []) {
8434
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;
@@ -8802,7 +8808,7 @@ const Ae = V({
8802
8808
  this.engine.skeleton = this;
8803
8809
  },
8804
8810
  render() {
8805
- return Be(qi, { ...this.$props, ...this.$attrs, ref: "skeletonRef" });
8811
+ return Be(Hi, { ...this.$props, ...this.$attrs, ref: "skeletonRef" });
8806
8812
  },
8807
8813
  methods: {
8808
8814
  /**
@@ -8931,7 +8937,7 @@ const Ae = V({
8931
8937
  defaultSetter() {
8932
8938
  const { value: c, computedSetters: e } = this;
8933
8939
  let n = typeof c;
8934
- 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"));
8935
8941
  const l = Xe.getByType(n) || [];
8936
8942
  return l.length ? (e.find((s) => l.includes(s.name)) || e[0])?.name : e[0]?.name;
8937
8943
  }
@@ -8980,7 +8986,7 @@ const Ae = V({
8980
8986
  this.$emit("remove", c);
8981
8987
  }
8982
8988
  }
8983
- }), qi = /* @__PURE__ */ V({
8989
+ }), Hi = /* @__PURE__ */ V({
8984
8990
  name: "Skeletion",
8985
8991
  __name: "skeleton",
8986
8992
  props: {
@@ -9029,7 +9035,7 @@ const Ae = V({
9029
9035
  default: h(() => [
9030
9036
  p(t(jt), { class: "v-skeleton" }, {
9031
9037
  default: h(() => [
9032
- p(t(Qn), {
9038
+ p(t(Kn), {
9033
9039
  class: "v-skeleton__header",
9034
9040
  height: E.headerHeight
9035
9041
  }, {
@@ -9058,7 +9064,7 @@ const Ae = V({
9058
9064
  l.value ? j("", !0) : je((u(), b(t(Et), {
9059
9065
  key: 0,
9060
9066
  width: n.leftWidth,
9061
- class: q(["v-skeleton__left", {
9067
+ class: H(["v-skeleton__left", {
9062
9068
  "is-collapsed": w.value
9063
9069
  }])
9064
9070
  }, {
@@ -9073,7 +9079,7 @@ const Ae = V({
9073
9079
  }, 8, ["width", "class"])), [
9074
9080
  [t(It), r]
9075
9081
  ]),
9076
- p(t(Kn), { class: "v-skeleton__main" }, {
9082
+ p(t(Qn), { class: "v-skeleton__main" }, {
9077
9083
  default: h(() => [
9078
9084
  l.value ? (u(), b(t(Ae), {
9079
9085
  key: 0,
@@ -9133,10 +9139,10 @@ const Ae = V({
9133
9139
  _: 1
9134
9140
  }, 8, ["locale"]));
9135
9141
  }
9136
- }), Hi = { key: 1 }, Gi = { class: "v-setter__content" }, Xi = {
9142
+ }), qi = { key: 1 }, Gi = { class: "v-setter__content" }, Xi = {
9137
9143
  key: 0,
9138
9144
  class: "v-setter__input"
9139
- }, Qi = { class: "v-setter__action" }, Ki = "{{", Yi = "}}", Zi = /* @__PURE__ */ V({
9145
+ }, Ki = { class: "v-setter__action" }, Qi = "{{", Yi = "}}", Zi = /* @__PURE__ */ V({
9140
9146
  __name: "setter",
9141
9147
  props: {
9142
9148
  context: {},
@@ -9155,17 +9161,17 @@ const Ae = V({
9155
9161
  setup(c, { emit: e }) {
9156
9162
  const n = c, l = e, s = k(!1), o = k(""), r = k(
9157
9163
  n.setters.find((C) => C.name === n.defaultSetter) || n.setters[0]
9158
- ), a = k(n.value), i = S(() => !!We(a.value)), v = {
9164
+ ), a = k(n.value), i = S(() => !!Ne(a.value)), v = {
9159
9165
  [r.value.name]: a.value
9160
9166
  }, m = (C) => {
9161
9167
  v[r.value.name] = a.value, r.value = C, a.value = v[C.name] ?? void 0, g(a.value);
9162
9168
  };
9163
- H(
9169
+ q(
9164
9170
  () => n.value,
9165
9171
  () => {
9166
9172
  a.value = n.value;
9167
9173
  }
9168
- ), H(
9174
+ ), q(
9169
9175
  () => n.defaultSetter,
9170
9176
  () => {
9171
9177
  r.value = n.setters.find(
@@ -9178,7 +9184,7 @@ const Ae = V({
9178
9184
  }, y = () => {
9179
9185
  l("remove", n.name);
9180
9186
  }, f = () => {
9181
- s.value = !0, o.value = We(a.value) ? a.value.value : "";
9187
+ s.value = !0, o.value = Ne(a.value) ? a.value.value : "";
9182
9188
  }, d = () => {
9183
9189
  s.value = !1, o.value = "";
9184
9190
  }, _ = async (C) => ae(C, n.context, !0) ? (v[r.value.name] = a.value, a.value = C, l("change", C), !0) : !1, w = async () => {
@@ -9190,7 +9196,7 @@ const Ae = V({
9190
9196
  "label-positon": "left"
9191
9197
  }, {
9192
9198
  label: h(() => [
9193
- n.title ? (u(), b(t(Qt), {
9199
+ n.title ? (u(), b(t(Kt), {
9194
9200
  key: 0,
9195
9201
  placement: "top-start",
9196
9202
  content: n.title
@@ -9199,7 +9205,7 @@ const Ae = V({
9199
9205
  G(z(n.label || n.name), 1)
9200
9206
  ]),
9201
9207
  _: 1
9202
- }, 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))
9203
9209
  ]),
9204
9210
  default: h(() => [
9205
9211
  x("div", Gi, [
@@ -9222,7 +9228,7 @@ const Ae = V({
9222
9228
  "model-value": "JSExpression"
9223
9229
  }, {
9224
9230
  prefix: h(() => [
9225
- G(z(Ki))
9231
+ G(z(Qi))
9226
9232
  ]),
9227
9233
  suffix: h(() => [
9228
9234
  G(z(Yi))
@@ -9230,11 +9236,11 @@ const Ae = V({
9230
9236
  _: 1
9231
9237
  })) : j("", !0)
9232
9238
  ])) : j("", !0),
9233
- x("div", Qi, [
9239
+ x("div", Ki, [
9234
9240
  n.variable ? (u(), b(t(oa), {
9235
9241
  key: 0,
9236
9242
  onClick: f,
9237
- class: q(["v-icon-vars", { "is-active": i.value }]),
9243
+ class: H(["v-icon-vars", { "is-active": i.value }]),
9238
9244
  title: "绑定变量"
9239
9245
  }, null, 8, ["class"])) : j("", !0),
9240
9246
  n.setters.length > 1 ? (u(), b(t(Gt), {
@@ -9253,7 +9259,7 @@ const Ae = V({
9253
9259
  }, {
9254
9260
  default: h(() => [
9255
9261
  p(t(dn), {
9256
- class: q({
9262
+ class: H({
9257
9263
  "is-placeholder": D.name !== r.value.name
9258
9264
  })
9259
9265
  }, null, 8, ["class"]),
@@ -9386,7 +9392,7 @@ const Ae = V({
9386
9392
  content: d.component
9387
9393
  });
9388
9394
  };
9389
- return H(m, (d) => {
9395
+ return q(m, (d) => {
9390
9396
  l.skeleton?.toggleCollapse(!d);
9391
9397
  }), e({
9392
9398
  widgets: s,
@@ -9417,7 +9423,7 @@ const Ae = V({
9417
9423
  ])
9418
9424
  ]),
9419
9425
  x("div", pu, [
9420
- (u(!0), A($, null, T(r.value, (w) => (u(), b(qt, {
9426
+ (u(!0), A($, null, T(r.value, (w) => (u(), b(Ht, {
9421
9427
  key: w.name
9422
9428
  }, [
9423
9429
  v.value?.name === w.name ? (u(), b(t(Ie), {
@@ -9516,15 +9522,15 @@ const Ae = V({
9516
9522
  const w = o.value?.model;
9517
9523
  return w ? l.assets.componentMap.get(w.name)?.doc : null;
9518
9524
  });
9519
- H(s, (w) => {
9525
+ q(s, (w) => {
9520
9526
  l.skeleton?.settable(!!w);
9521
- }), H(
9527
+ }), q(
9522
9528
  a,
9523
9529
  () => {
9524
9530
  m.value = y.value[0]?.name;
9525
9531
  },
9526
9532
  { immediate: !0 }
9527
- ), H(m, () => {
9533
+ ), q(m, () => {
9528
9534
  g.value = !1;
9529
9535
  });
9530
9536
  const d = () => {
@@ -9540,14 +9546,14 @@ const Ae = V({
9540
9546
  return e({
9541
9547
  widgets: i,
9542
9548
  widgetsRef: v
9543
- }), (w, C) => t(s) ? (u(), b(t(M), {
9549
+ }), (w, C) => t(s) ? (u(), b(t(W), {
9544
9550
  key: 0,
9545
9551
  class: "v-settings-region",
9546
9552
  fit: "",
9547
9553
  direction: "column"
9548
9554
  }, {
9549
9555
  default: h(() => [
9550
- t(o) ? (u(), b(t(M), {
9556
+ t(o) ? (u(), b(t(W), {
9551
9557
  key: 0,
9552
9558
  flex: "",
9553
9559
  justify: "space-between",
@@ -9555,7 +9561,7 @@ const Ae = V({
9555
9561
  class: "v-settings-region__header"
9556
9562
  }, {
9557
9563
  default: h(() => [
9558
- p(t(M), { class: "v-settings-region__title" }, {
9564
+ p(t(W), { class: "v-settings-region__title" }, {
9559
9565
  default: h(() => [
9560
9566
  p(t(hn)),
9561
9567
  x("span", null, [
@@ -9565,7 +9571,7 @@ const Ae = V({
9565
9571
  ]),
9566
9572
  _: 1
9567
9573
  }),
9568
- f.value ? (u(), b(t(M), { key: 0 }, {
9574
+ f.value ? (u(), b(t(W), { key: 0 }, {
9569
9575
  default: h(() => [
9570
9576
  p(t(he), {
9571
9577
  onClick: d,
@@ -9579,7 +9585,7 @@ const Ae = V({
9579
9585
  ]),
9580
9586
  _: 1
9581
9587
  })) : j("", !0),
9582
- t(o) && !t(o).model.locked ? (u(), b(t(M), {
9588
+ t(o) && !t(o).model.locked ? (u(), b(t(W), {
9583
9589
  key: 1,
9584
9590
  grow: "",
9585
9591
  padding: !1
@@ -9674,7 +9680,7 @@ const Ae = V({
9674
9680
  "onUpdate:modelValue": v[0] || (v[0] = (m) => a.value = m)
9675
9681
  }, {
9676
9682
  default: h(() => [
9677
- (u(!0), A($, null, T(t(l), (m) => (u(), b(qt, {
9683
+ (u(!0), A($, null, T(t(l), (m) => (u(), b(Ht, {
9678
9684
  key: m.name
9679
9685
  }, [
9680
9686
  a.value === m.name ? (u(), b(t(Ie), {
@@ -9706,7 +9712,7 @@ export {
9706
9712
  Li as Assets,
9707
9713
  Ct as Binder,
9708
9714
  ft as Box,
9709
- Wi as Designer,
9715
+ Ni as Designer,
9710
9716
  fa as EVENT_MODIFIERS,
9711
9717
  ne as Editor,
9712
9718
  Eu as Engine,
@@ -9721,11 +9727,11 @@ export {
9721
9727
  U as Panel,
9722
9728
  ha as RegionType,
9723
9729
  Ae as RegionWrapper,
9724
- Ni as Renderer,
9730
+ Wi as Renderer,
9725
9731
  Zi as SetterView,
9726
9732
  F as SetterWrapper,
9727
9733
  Mi as Simulator,
9728
- qi as Skeleton,
9734
+ Hi as Skeleton,
9729
9735
  Ui as SkeletonWrapper,
9730
9736
  oo as SlotsPicker,
9731
9737
  tt as Tabs,