@vtj/designer 0.8.120 → 0.8.121

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.
Files changed (2) hide show
  1. package/dist/index.mjs +90 -89
  2. package/package.json +6 -6
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { computed as S, unref as n, ref as k, reactive as qe, watchEffect as Mn, watch as q, toValue as pt, defineComponent as E, openBlock as p, createElementBlock as j, toDisplayString as z, createVNode as v, withCtx as h, createElementVNode as V, createBlock as y, createCommentVNode as A, createTextVNode as G, readonly as Ln, getCurrentScope as Un, onScopeDispose as qn, onMounted as tt, nextTick as we, getCurrentInstance as Zt, Fragment as T, renderList as W, normalizeClass as H, resolveDynamicComponent as en, createSlots as Hn, withDirectives as Ee, vShow as Ie, renderSlot as xe, withModifiers as We, toRaw as Gn, isRef as mt, mergeProps as re, normalizeStyle as Qe, defineAsyncComponent as Xn, h as Te, inject as xt, provide as Qn, normalizeProps as tn, guardReactiveProps as nn, withKeys as Ke, onUnmounted as ln, markRaw as vt, createApp as an, shallowRef as gt, shallowReactive as Kn, triggerRef as Ae, KeepAlive as sn } from "vue";
1
+ import { computed as S, unref as n, ref as k, reactive as qe, watchEffect as Mn, watch as q, toValue as pt, defineComponent as E, openBlock as p, createElementBlock as j, toDisplayString as O, createVNode as v, withCtx as h, createElementVNode as V, createBlock as y, createCommentVNode as A, createTextVNode as G, readonly as Ln, getCurrentScope as Un, onScopeDispose as qn, onMounted as tt, nextTick as we, getCurrentInstance as Zt, Fragment as T, renderList as W, normalizeClass as H, resolveDynamicComponent as en, createSlots as Hn, withDirectives as Ee, vShow as Ie, renderSlot as xe, withModifiers as We, toRaw as Gn, isRef as mt, mergeProps as re, normalizeStyle as Qe, defineAsyncComponent as Xn, h as Te, inject as xt, provide as Qn, normalizeProps as tn, guardReactiveProps as nn, withKeys as Ke, onUnmounted as ln, markRaw as vt, createApp as an, shallowRef as gt, shallowReactive as Kn, triggerRef as Ae, KeepAlive as sn } from "vue";
2
2
  import { ElNotification as Ct, ElMessageBox as Vt, ElMessage as He, ElButton as ae, ElDivider as At, ElRadioGroup as on, ElRadioButton as Ye, ElButtonGroup as Yn, ElDropdown as rn, ElDropdownMenu as un, ElDropdownItem as ft, ElInput as ye, ElEmpty as se, ElAlert as jt, ElTooltip as cn, ElTag as Zn, ElSwitch as dn, ElTree as Et, ElRow as ht, ElCol as bt, ElCollapse as el, ElCollapseItem as tl, ElDrawer as pn, ElForm as ge, ElFormItem as mn, ElBreadcrumb as nl, ElBreadcrumbItem as ll, ElLoading as al, ElSelect as sl, ElOption as ol, ElInputNumber as rl, ElColorPicker as il, ElUpload as ul, ElSlider as cl, ElConfigProvider as dl, ElContainer as Ft, ElHeader as pl, ElAside as Wt, ElMain as ml, ElFooter as vl } from "element-plus";
3
3
  import gl from "element-plus/es/locale/lang/zh-cn";
4
4
  import { XIcon as ke, XDialog as Be, XDialogForm as Ve, XField as B, XPanel as nt, XAction as he, XTabs as Pt, XContainer as M, XForm as Dt, XAttachment as fl, XActionBar as hl, XInputUnit as vn, vResizable as Nt, createDialog as bl } from "@vtj/ui";
@@ -11,15 +11,15 @@ import Es from "mockjs";
11
11
  * Copyright (c) 2024, VTJ.PRO All rights reserved.
12
12
  * @name @vtj/designer
13
13
  * @author CHC chenhuachun1549@dingtalk.com
14
- * @version 0.8.120
14
+ * @version 0.8.121
15
15
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
16
16
  */
17
- const Ps = "0.8.120", qt = {
17
+ const Ps = "0.8.121", qt = {
18
18
  width: 390,
19
19
  height: 844
20
20
  }, Ht = {
21
- width: 1180,
22
- height: 820
21
+ width: 1024,
22
+ height: 768
23
23
  }, _e = /^[A-Za-z_$][\:\w_-]*$/, Ds = [
24
24
  "click",
25
25
  "dblclick",
@@ -225,10 +225,10 @@ function Js(u, e) {
225
225
  ($) => `this.${$}`
226
226
  );
227
227
  I.length && d.push({ title: "数据源", items: I });
228
- const O = Object.keys(g?.$refs || {}).map(
228
+ const z = Object.keys(g?.$refs || {}).map(
229
229
  ($) => `this.$refs.${$}`
230
230
  );
231
- return O.length && d.push({ title: "refs", items: O }), d;
231
+ return z.length && d.push({ title: "refs", items: z }), d;
232
232
  }), r = S(() => {
233
233
  if (!t.value) return o.value;
234
234
  const i = t.value.toLowerCase(), g = [];
@@ -539,7 +539,7 @@ const Ks = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
539
539
  title: t.text,
540
540
  class: "v-logo-widget__icon",
541
541
  src: l.value
542
- }, null, 8, Ys)) : (p(), j("span", Zs, z(t.text), 1))
542
+ }, null, 8, Ys)) : (p(), j("span", Zs, O(t.text), 1))
543
543
  ]));
544
544
  }
545
545
  }), to = { class: "v-empty-widget" }, no = /* @__PURE__ */ E({
@@ -565,12 +565,12 @@ const Ks = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
565
565
  }, {
566
566
  default: h(() => [
567
567
  v(n(Hl), { class: "v-switcher-widget__back" }),
568
- V("span", null, z(a.value), 1),
568
+ V("span", null, O(a.value), 1),
569
569
  s.value ? (p(), y(n(At), {
570
570
  key: 0,
571
571
  direction: "vertical"
572
572
  })) : A("", !0),
573
- s.value ? (p(), j("span", ao, z(s.value), 1)) : A("", !0)
573
+ s.value ? (p(), j("span", ao, O(s.value), 1)) : A("", !0)
574
574
  ]),
575
575
  _: 1
576
576
  })
@@ -931,8 +931,8 @@ function $n(u = {}) {
931
931
  I.value = C ?? "", I.style.position = "absolute", I.style.opacity = "0", document.body.appendChild(I), I.select(), document.execCommand("copy"), I.remove();
932
932
  }
933
933
  function w() {
934
- var C, I, O;
935
- return (O = (I = (C = document?.getSelection) == null ? void 0 : C.call(document)) == null ? void 0 : I.toString()) != null ? O : "";
934
+ var C, I, z;
935
+ return (z = (I = (C = document?.getSelection) == null ? void 0 : C.call(document)) == null ? void 0 : I.toString()) != null ? z : "";
936
936
  }
937
937
  function x(C) {
938
938
  return C === "granted" || C === "prompt";
@@ -1145,7 +1145,7 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
1145
1145
  editor: h(() => [
1146
1146
  v(n(jt), { closable: !1 }, {
1147
1147
  default: h(() => [
1148
- G(z(`/page/${s.value.id}`) + " ", 1),
1148
+ G(O(`/page/${s.value.id}`) + " ", 1),
1149
1149
  v(n(ke), {
1150
1150
  icon: n(ta),
1151
1151
  onClick: f[0] || (f[0] = (b) => d(`/page/${s.value.id}`))
@@ -1438,7 +1438,7 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
1438
1438
  "is-checked": d.checked
1439
1439
  })
1440
1440
  }, null, 8, ["class"])) : A("", !0),
1441
- G(" " + z(d.label), 1)
1441
+ G(" " + O(d.label), 1)
1442
1442
  ])
1443
1443
  ]),
1444
1444
  _: 1
@@ -1570,16 +1570,16 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
1570
1570
  type: l.tagType
1571
1571
  }, {
1572
1572
  default: h(() => [
1573
- G(z(l.tag), 1)
1573
+ G(O(l.tag), 1)
1574
1574
  ]),
1575
1575
  _: 1
1576
1576
  }, 8, ["type"])) : A("", !0),
1577
- d.index !== void 0 ? (p(), j("span", Eo, " # " + z(d.index), 1)) : A("", !0),
1578
- V("span", Po, z(d.title), 1),
1577
+ d.index !== void 0 ? (p(), j("span", Eo, " # " + O(d.index), 1)) : A("", !0),
1578
+ V("span", Po, O(d.title), 1),
1579
1579
  d.subtitle ? (p(), j("span", {
1580
1580
  key: 3,
1581
1581
  class: H(["v-item__subtitle", l.subtitleCls])
1582
- }, z(d.subtitle), 3)) : A("", !0)
1582
+ }, O(d.subtitle), 3)) : A("", !0)
1583
1583
  ])
1584
1584
  ]),
1585
1585
  _: 3
@@ -1655,8 +1655,8 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
1655
1655
  align: "center"
1656
1656
  }, {
1657
1657
  default: h(() => [
1658
- V("span", Io, z(t.name), 1),
1659
- V("span", Bo, z(t.title), 1)
1658
+ V("span", Io, O(t.name), 1),
1659
+ V("span", Bo, O(t.title), 1)
1660
1660
  ]),
1661
1661
  _: 1
1662
1662
  }),
@@ -1681,7 +1681,7 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
1681
1681
  t.tag ? (p(), j("span", {
1682
1682
  key: 1,
1683
1683
  class: H(["v-box__tag", { [`is-${t.tagType}`]: !!t.tagType }])
1684
- }, z(t.tag), 3)) : A("", !0)
1684
+ }, O(t.tag), 3)) : A("", !0)
1685
1685
  ], 42, Do));
1686
1686
  }
1687
1687
  }), Ro = { class: "v-context-viewer" }, $o = /* @__PURE__ */ E({
@@ -1847,17 +1847,17 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
1847
1847
  (p(!0), j(T, null, W(n(a), (I) => (p(), j("div", null, [
1848
1848
  v(n(At), { "border-style": "dotted" }, {
1849
1849
  default: h(() => [
1850
- G(z(I.title), 1)
1850
+ G(O(I.title), 1)
1851
1851
  ]),
1852
1852
  _: 2
1853
1853
  }, 1024),
1854
- (p(!0), j(T, null, W(I.items, (O) => (p(), y(ue, {
1855
- title: O,
1854
+ (p(!0), j(T, null, W(I.items, (z) => (p(), y(ue, {
1855
+ title: z,
1856
1856
  background: "",
1857
1857
  actions: ["copy"],
1858
1858
  small: "",
1859
- onClick: ($) => _(O),
1860
- onAction: ($) => w(O)
1859
+ onClick: ($) => _(z),
1860
+ onAction: ($) => w(z)
1861
1861
  }, null, 8, ["title", "onClick", "onAction"]))), 256))
1862
1862
  ]))), 256)),
1863
1863
  n(a).length ? A("", !0) : (p(), y(n(se), { key: 0 }))
@@ -2002,8 +2002,8 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
2002
2002
  onClick: (f) => o(d)
2003
2003
  }, {
2004
2004
  default: h(() => [
2005
- V("span", To, "#" + z(m + 1), 1),
2006
- G(" " + z(d.name), 1)
2005
+ V("span", To, "#" + O(m + 1), 1),
2006
+ G(" " + O(d.name), 1)
2007
2007
  ]),
2008
2008
  _: 2
2009
2009
  }, 1032, ["class", "onClick"]))), 256))
@@ -2141,7 +2141,7 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
2141
2141
  return i(I);
2142
2142
  }
2143
2143
  return null;
2144
- }, d = (C) => C ? (C || "").split(",").map((O) => ({ url: O })) : [], m = k(
2144
+ }, d = (C) => C ? (C || "").split(",").map((z) => ({ url: z })) : [], m = k(
2145
2145
  d(t.modelValue)
2146
2146
  ), f = S(() => Array.isArray(m.value) ? m.value.map((C) => C.url).join(",") : m.value ? m.value.url : "");
2147
2147
  q(
@@ -2182,7 +2182,7 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
2182
2182
  r.value ? (p(), y(n(Be), {
2183
2183
  key: 0,
2184
2184
  modelValue: r.value,
2185
- "onUpdate:modelValue": I[1] || (I[1] = (O) => r.value = O),
2185
+ "onUpdate:modelValue": I[2] || (I[2] = (z) => r.value = z),
2186
2186
  title: "文件选择器",
2187
2187
  width: "600px",
2188
2188
  height: "400px",
@@ -2208,10 +2208,11 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
2208
2208
  "list-type": "list",
2209
2209
  selectable: !0,
2210
2210
  uploader: g,
2211
- "model-value": o.value,
2211
+ modelValue: o.value,
2212
+ "onUpdate:modelValue": I[0] || (I[0] = (z) => o.value = z),
2212
2213
  "select-value": m.value,
2213
- "onUpdate:selectValue": I[0] || (I[0] = (O) => m.value = O)
2214
- }, t.attachment, { onRemove: x }), null, 16, ["model-value", "select-value"])
2214
+ "onUpdate:selectValue": I[1] || (I[1] = (z) => m.value = z)
2215
+ }, t.attachment, { onRemove: x }), null, 16, ["modelValue", "select-value"])
2215
2216
  ]),
2216
2217
  _: 1
2217
2218
  }, 8, ["modelValue"])) : A("", !0)
@@ -2285,7 +2286,7 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
2285
2286
  o.value && (o.value.name = fn(D));
2286
2287
  }, I = async (D) => {
2287
2288
  (!D.fromType || D.fromType === "Schema") && l.project.value?.active(D);
2288
- }, O = async (D) => {
2289
+ }, z = async (D) => {
2289
2290
  const R = Sl(D), P = await l.assets.getBlockMaterial(R, D.name), X = l.skeleton?.getWidget("Designer")?.widgetRef?.designer;
2290
2291
  X && P && X.setDragging(P);
2291
2292
  }, $ = () => {
@@ -2321,7 +2322,7 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
2321
2322
  onRemove: (X) => x(P),
2322
2323
  onClick: (X) => I(P),
2323
2324
  draggable: n(r)?.id !== P.id,
2324
- onDragstart: (X) => O(P),
2325
+ onDragstart: (X) => z(P),
2325
2326
  onDragend: $
2326
2327
  }, null, 8, ["name", "title", "active", "editable", "tag", "tagType", "onEdit", "onRemove", "onClick", "draggable", "onDragstart"])
2327
2328
  ]),
@@ -2627,19 +2628,19 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
2627
2628
  }, I = async (D) => {
2628
2629
  const R = D.data;
2629
2630
  R.dragging = !1;
2630
- }, O = (D, R) => {
2631
+ }, z = (D, R) => {
2631
2632
  D && ((D.id === R.id || !ee(D) && R.isChild(D)) && t.value?.setSelected(null), t.value?.setHover(null));
2632
2633
  }, $ = (D) => {
2633
2634
  const { name: R, modelValue: P } = D, X = l.value?.model;
2634
2635
  switch (R) {
2635
2636
  case "lock":
2636
- O(X, P), P.lock();
2637
+ z(X, P), P.lock();
2637
2638
  break;
2638
2639
  case "unlock":
2639
- O(X, P), P.unlock();
2640
+ z(X, P), P.unlock();
2640
2641
  break;
2641
2642
  case "invisible":
2642
- O(X, P), P.setVisible(!1);
2643
+ z(X, P), P.setVisible(!1);
2643
2644
  break;
2644
2645
  case "visible":
2645
2646
  P.setVisible(!0);
@@ -2649,7 +2650,7 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
2649
2650
  pe && t.value?.setSelected(pe);
2650
2651
  break;
2651
2652
  case "remove":
2652
- O(X, P), a.value?.removeNode(P);
2653
+ z(X, P), a.value?.removeNode(P);
2653
2654
  break;
2654
2655
  }
2655
2656
  };
@@ -3433,7 +3434,7 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
3433
3434
  const D = r.assets.componentMap.get($.name);
3434
3435
  D && c.value.setDragging(D), c.value.setDraggingNode($);
3435
3436
  }
3436
- }, O = () => {
3437
+ }, z = () => {
3437
3438
  c.value && (c.value.setDraggingNode(null), c.value.setDragging(null));
3438
3439
  };
3439
3440
  return e({
@@ -3468,8 +3469,8 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
3468
3469
  V("span", {
3469
3470
  class: H(`is-${n(_).position}`)
3470
3471
  }, [
3471
- G(z(n(_).model.name) + ": ", 1),
3472
- V("i", null, z(n(_).model.id), 1)
3472
+ G(O(n(_).model.name) + ": ", 1),
3473
+ V("i", null, O(n(_).model.id), 1)
3473
3474
  ], 2)
3474
3475
  ], 4)) : A("", !0),
3475
3476
  n(x) ? (p(), j("div", {
@@ -3483,7 +3484,7 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
3483
3484
  path: n(x).path,
3484
3485
  onAction: C,
3485
3486
  onDragstart: I,
3486
- onDragend: O
3487
+ onDragend: z
3487
3488
  }, null, 8, ["position", "model", "path"])
3488
3489
  ], 4)) : A("", !0)
3489
3490
  ]),
@@ -4725,7 +4726,7 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
4725
4726
  d.value = void 0, g.value = !0;
4726
4727
  }, I = (F) => {
4727
4728
  d.value = { ...F }, g.value = !0;
4728
- }, O = (F) => {
4729
+ }, z = (F) => {
4729
4730
  const { name: L, modelValue: N } = F;
4730
4731
  L === "edit" && I(N), L === "remove" && e.value?.removeEmit(N.name);
4731
4732
  }, $ = () => {
@@ -4797,7 +4798,7 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
4797
4798
  border: "",
4798
4799
  actions: ["remove"],
4799
4800
  onClick: ($e) => I(N),
4800
- onAction: O
4801
+ onAction: z
4801
4802
  }, null, 8, ["model-value", "title", "onClick"]))), 256)),
4802
4803
  a.value.length ? A("", !0) : (p(), y(n(se), {
4803
4804
  key: 0,
@@ -4975,20 +4976,20 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
4975
4976
  }
4976
4977
  if (!oe(o.value.test, e.context, !0))
4977
4978
  return;
4978
- const x = async (...O) => {
4979
+ const x = async (...z) => {
4979
4980
  const $ = e.context?.$apis[o.value.ref];
4980
4981
  if ($)
4981
- return await $.apply($, O);
4982
+ return await $.apply($, z);
4982
4983
  Ce.warn(`API【${o.value.ref}】不存在`);
4983
4984
  }, C = Me(o.value.test, {
4984
4985
  runApi: x
4985
- }), I = o.value.transform?.value ? Me(o.value.transform, {}, !0) : (O) => O;
4986
+ }), I = o.value.transform?.value ? Me(o.value.transform, {}, !0) : (z) => z;
4986
4987
  r.value = !0;
4987
4988
  try {
4988
- const O = await C();
4989
- i.value = JSON.stringify(await I(O), null, 2);
4990
- } catch (O) {
4991
- Ce.error(O);
4989
+ const z = await C();
4990
+ i.value = JSON.stringify(await I(z), null, 2);
4991
+ } catch (z) {
4992
+ Ce.error(z);
4992
4993
  }
4993
4994
  r.value = !1, g.value = !0;
4994
4995
  };
@@ -5034,8 +5035,8 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
5034
5035
  onChange: b
5035
5036
  }, {
5036
5037
  option: h(({ option: C }) => [
5037
- G(z(C.label) + " ", 1),
5038
- V("i", null, "[ " + z(C.data.name || C.data.code) + " ]", 1)
5038
+ G(O(C.label) + " ", 1),
5039
+ V("i", null, "[ " + O(C.data.name || C.data.code) + " ]", 1)
5039
5040
  ]),
5040
5041
  _: 1
5041
5042
  }, 8, ["disabled", "options"])),
@@ -5480,7 +5481,7 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
5480
5481
  default: h(() => [
5481
5482
  (p(), j(T, null, W(t, (_) => V("span", {
5482
5483
  onClick: (w) => g(_)
5483
- }, z(_), 9, Pr)), 64))
5484
+ }, O(_), 9, Pr)), 64))
5484
5485
  ]),
5485
5486
  _: 1
5486
5487
  })
@@ -5709,19 +5710,19 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
5709
5710
  V("div", {
5710
5711
  class: H(["spacing-edit margin-top", { "is-setting": e.styleJson["margin-top"] }]),
5711
5712
  onClick: c[4] || (c[4] = (_) => f("margin-top"))
5712
- }, z(e.styleJson["margin-top"] || "-"), 3),
5713
+ }, O(e.styleJson["margin-top"] || "-"), 3),
5713
5714
  V("div", {
5714
5715
  class: H(["spacing-edit margin-right", { "is-setting": e.styleJson["margin-right"] }]),
5715
5716
  onClick: c[5] || (c[5] = (_) => f("margin-right"))
5716
- }, z(e.styleJson["margin-right"] || "-"), 3),
5717
+ }, O(e.styleJson["margin-right"] || "-"), 3),
5717
5718
  V("div", {
5718
5719
  class: H(["spacing-edit margin-bottom", { "is-setting": e.styleJson["margin-bottom"] }]),
5719
5720
  onClick: c[6] || (c[6] = (_) => f("margin-bottom"))
5720
- }, z(e.styleJson["margin-bottom"] || "-"), 3),
5721
+ }, O(e.styleJson["margin-bottom"] || "-"), 3),
5721
5722
  V("div", {
5722
5723
  class: H(["spacing-edit margin-left", { "is-setting": e.styleJson["margin-left"] }]),
5723
5724
  onClick: c[7] || (c[7] = (_) => f("margin-left"))
5724
- }, z(e.styleJson["margin-left"] || "-"), 3)
5725
+ }, O(e.styleJson["margin-left"] || "-"), 3)
5725
5726
  ]),
5726
5727
  V("div", {
5727
5728
  ref_key: "inner",
@@ -5859,19 +5860,19 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
5859
5860
  V("div", {
5860
5861
  class: H(["spacing-edit padding-top", { "is-setting": e.styleJson["padding-top"] }]),
5861
5862
  onClick: c[12] || (c[12] = (_) => f("padding-top"))
5862
- }, z(e.styleJson["padding-top"] || "-"), 3),
5863
+ }, O(e.styleJson["padding-top"] || "-"), 3),
5863
5864
  V("div", {
5864
5865
  class: H(["spacing-edit padding-right", { "is-setting": e.styleJson["padding-right"] }]),
5865
5866
  onClick: c[13] || (c[13] = (_) => f("padding-right"))
5866
- }, z(e.styleJson["padding-right"] || "-"), 3),
5867
+ }, O(e.styleJson["padding-right"] || "-"), 3),
5867
5868
  V("div", {
5868
5869
  class: H(["spacing-edit padding-bottom", { "is-setting": e.styleJson["padding-bottom"] }]),
5869
5870
  onClick: c[14] || (c[14] = (_) => f("padding-bottom"))
5870
- }, z(e.styleJson["padding-bottom"] || "-"), 3),
5871
+ }, O(e.styleJson["padding-bottom"] || "-"), 3),
5871
5872
  V("div", {
5872
5873
  class: H(["spacing-edit padding-left", { "is-setting": e.styleJson["padding-left"] }]),
5873
5874
  onClick: c[15] || (c[15] = (_) => f("padding-left"))
5874
- }, z(e.styleJson["padding-left"] || "-"), 3)
5875
+ }, O(e.styleJson["padding-left"] || "-"), 3)
5875
5876
  ], 512),
5876
5877
  (p(), j("svg", ti, li)),
5877
5878
  (p(), j("svg", ai, oi))
@@ -6181,19 +6182,19 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
6181
6182
  V("div", {
6182
6183
  class: H(["spacing-edit padding-top", { "is-setting": e.styleJson.top }]),
6183
6184
  onClick: c[4] || (c[4] = (_) => m("top"))
6184
- }, z(e.styleJson.top || d.value[0] || "-"), 3),
6185
+ }, O(e.styleJson.top || d.value[0] || "-"), 3),
6185
6186
  V("div", {
6186
6187
  class: H(["spacing-edit padding-right", { "is-setting": e.styleJson.right }]),
6187
6188
  onClick: c[5] || (c[5] = (_) => m("right"))
6188
- }, z(e.styleJson.right || d.value[1] || "-"), 3),
6189
+ }, O(e.styleJson.right || d.value[1] || "-"), 3),
6189
6190
  V("div", {
6190
6191
  class: H(["spacing-edit padding-bottom", { "is-setting": e.styleJson.bottom }]),
6191
6192
  onClick: c[6] || (c[6] = (_) => m("bottom"))
6192
- }, z(e.styleJson.bottom || d.value[2] || "-"), 3),
6193
+ }, O(e.styleJson.bottom || d.value[2] || "-"), 3),
6193
6194
  V("div", {
6194
6195
  class: H(["spacing-edit padding-left", { "is-setting": e.styleJson.left }]),
6195
6196
  onClick: c[7] || (c[7] = (_) => m("left"))
6196
- }, z(e.styleJson.left || d.value[3] || "-"), 3)
6197
+ }, O(e.styleJson.left || d.value[3] || "-"), 3)
6197
6198
  ], 512),
6198
6199
  s.value ? (p(), y(On, {
6199
6200
  key: 0,
@@ -6799,7 +6800,7 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
6799
6800
  onMouseover: (g) => s(i)
6800
6801
  }, {
6801
6802
  default: h(() => [
6802
- G(z(i.name), 1)
6803
+ G(O(i.name), 1)
6803
6804
  ]),
6804
6805
  _: 2
6805
6806
  }, 1032, ["onClick", "onMouseover"]))), 256))
@@ -6935,7 +6936,7 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
6935
6936
  V("img", { src: n(Fn) }, null, 8, zi)
6936
6937
  ]),
6937
6938
  Oi,
6938
- V("div", Fi, "版本:" + z(n(Ps)), 1)
6939
+ V("div", Fi, "版本:" + O(n(Ps)), 1)
6939
6940
  ]));
6940
6941
  }
6941
6942
  }), Ni = /* @__PURE__ */ E({
@@ -7914,10 +7915,10 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
7914
7915
  onChange: r
7915
7916
  }, {
7916
7917
  prefix: h(() => [
7917
- G(z(Qi))
7918
+ G(O(Qi))
7918
7919
  ]),
7919
7920
  suffix: h(() => [
7920
- G(z(Ki))
7921
+ G(O(Ki))
7921
7922
  ]),
7922
7923
  _: 1
7923
7924
  }, 8, ["modelValue"]));
@@ -8145,7 +8146,7 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
8145
8146
  key: 0,
8146
8147
  src: a.svg
8147
8148
  }, null, 8, ["src"])) : (p(), j(T, { key: 1 }, [
8148
- G(z(a.label), 1)
8149
+ G(O(a.label), 1)
8149
8150
  ], 64))
8150
8151
  ]),
8151
8152
  _: 2
@@ -8183,7 +8184,7 @@ const So = { class: "v-icon-setter" }, xo = { class: "v-icon-setter__content" },
8183
8184
  src: r.svg,
8184
8185
  size: 16
8185
8186
  }, null, 8, ["src"])) : (p(), j(T, { key: 1 }, [
8186
- G(z(r.label), 1)
8187
+ G(O(r.label), 1)
8187
8188
  ], 64))
8188
8189
  ], 10, su))), 256))
8189
8190
  ], 16));
@@ -9103,15 +9104,15 @@ class ku extends bn {
9103
9104
  for (const C of b.value) {
9104
9105
  const I = C.names || [];
9105
9106
  if (C.name === yt)
9106
- I.forEach((O) => {
9107
- const $ = c.get(O), D = $?.package || "", R = Vl[D], P = d[R];
9108
- P && $ && (f[O] = Ut($, P));
9107
+ I.forEach((z) => {
9108
+ const $ = c.get(z), D = $?.package || "", R = Vl[D], P = d[R];
9109
+ P && $ && (f[z] = Ut($, P));
9109
9110
  });
9110
9111
  else {
9111
- const O = d[t[C.library || ""]];
9112
- O && I.forEach(($) => {
9112
+ const z = d[t[C.library || ""]];
9113
+ z && I.forEach(($) => {
9113
9114
  const D = c.get($);
9114
- D ? f[$] = Ut(D, O) : f[$] = O[$];
9115
+ D ? f[$] = Ut(D, z) : f[$] = z[$];
9115
9116
  });
9116
9117
  }
9117
9118
  }
@@ -9336,7 +9337,7 @@ class rc extends bn {
9336
9337
  }
9337
9338
  if (t === "delete") {
9338
9339
  const a = e.data;
9339
- a && l.isPageFile(a) && a.raw ? await this.service.removeRawPage(a.id) : a.dir || (await this.service.removeFile(a.id), await this.service.removeHistory(a.id));
9340
+ a && l.isPageFile(a) && a.raw ? await this.service.removeRawPage(a.id) : a.dir || (await this.service.removeFile(a.id), await this.service.removeRawPage(a.id), await this.service.removeHistory(a.id));
9340
9341
  }
9341
9342
  if (t === "clone") {
9342
9343
  const { page: a, newPage: s } = e.data, o = await this.service.getFile(a.id);
@@ -9872,13 +9873,13 @@ const je = E({
9872
9873
  content: t.title
9873
9874
  }, {
9874
9875
  default: h(() => [
9875
- G(z(t.label || t.name), 1)
9876
+ G(O(t.label || t.name), 1)
9876
9877
  ]),
9877
9878
  _: 1
9878
9879
  }, 8, ["content"])) : (p(), j("span", {
9879
9880
  key: 1,
9880
9881
  title: t.name
9881
- }, z(t.label || t.name), 9, Vu))
9882
+ }, O(t.label || t.name), 9, Vu))
9882
9883
  ]),
9883
9884
  default: h(() => [
9884
9885
  V("div", Au, [
@@ -9901,10 +9902,10 @@ const je = E({
9901
9902
  "model-value": "JSExpression"
9902
9903
  }, {
9903
9904
  prefix: h(() => [
9904
- G(z(Pu))
9905
+ G(O(Pu))
9905
9906
  ]),
9906
9907
  suffix: h(() => [
9907
- G(z(Du))
9908
+ G(O(Du))
9908
9909
  ]),
9909
9910
  _: 1
9910
9911
  })) : A("", !0)
@@ -9936,7 +9937,7 @@ const je = E({
9936
9937
  "is-placeholder": I.name !== o.value.name
9937
9938
  })
9938
9939
  }, null, 8, ["class"]),
9939
- G(" " + z(I.label), 1)
9940
+ G(" " + O(I.label), 1)
9940
9941
  ]),
9941
9942
  _: 2
9942
9943
  }, 1032, ["command"]))), 128))
@@ -9977,7 +9978,7 @@ const je = E({
9977
9978
  region: {}
9978
9979
  },
9979
9980
  setup(u) {
9980
- return (e, t) => (p(), j("div", Bu, "找不到符合【" + z(e.region) + "】名称的区域组件", 1));
9981
+ return (e, t) => (p(), j("div", Bu, "找不到符合【" + O(e.region) + "】名称的区域组件", 1));
9981
9982
  }
9982
9983
  }), $u = { class: "v-brand-region" }, Tu = /* @__PURE__ */ E({
9983
9984
  name: "BrandRegion",
@@ -10250,8 +10251,8 @@ const je = E({
10250
10251
  default: h(() => [
10251
10252
  v(n(En)),
10252
10253
  V("span", null, [
10253
- G(z(n(s)?.model.name) + ": ", 1),
10254
- V("i", null, z(n(s)?.model.id), 1)
10254
+ G(O(n(s)?.model.name) + ": ", 1),
10255
+ V("i", null, O(n(s)?.model.id), 1)
10255
10256
  ])
10256
10257
  ]),
10257
10258
  _: 1
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@vtj/designer",
3
3
  "private": false,
4
- "version": "0.8.120",
4
+ "version": "0.8.121",
5
5
  "type": "module",
6
6
  "dependencies": {
7
7
  "mockjs": "~1.1.0",
8
8
  "monaco-editor": "~0.48.0",
9
- "@vtj/core": "~0.8.120",
10
- "@vtj/icons": "~0.8.120",
11
- "@vtj/renderer": "~0.8.120",
12
- "@vtj/utils": "~0.8.120",
13
- "@vtj/ui": "~0.8.120"
9
+ "@vtj/core": "~0.8.121",
10
+ "@vtj/icons": "~0.8.121",
11
+ "@vtj/renderer": "~0.8.121",
12
+ "@vtj/utils": "~0.8.121",
13
+ "@vtj/ui": "~0.8.121"
14
14
  },
15
15
  "devDependencies": {
16
16
  "@types/mockjs": "~1.0.10",