@vtj/designer 0.8.98 → 0.8.99

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,20 +1,20 @@
1
- import { computed as S, unref as n, ref as k, reactive as qe, watchEffect as Jn, watch as q, toValue as pt, defineComponent as E, openBlock as d, createElementBlock as A, toDisplayString as z, createVNode as v, withCtx as h, createElementVNode as V, createBlock as y, createCommentVNode as j, createTextVNode as G, Fragment as T, renderList as N, normalizeClass as H, resolveDynamicComponent as Yt, createSlots as Mn, withDirectives as Ee, vShow as Ie, renderSlot as Se, withModifiers as Ne, readonly as Ln, getCurrentScope as Un, onScopeDispose as qn, onMounted as et, nextTick as we, getCurrentInstance as Zt, toRaw as Hn, isRef as mt, mergeProps as re, normalizeStyle as Xe, defineAsyncComponent as Gn, h as Te, inject as xt, provide as Xn, normalizeProps as en, guardReactiveProps as tn, withKeys as Qe, onUnmounted as nn, markRaw as vt, createApp as ln, shallowRef as gt, shallowReactive as Qn, triggerRef as Ae, KeepAlive as an } from "vue";
1
+ import { computed as S, unref as n, ref as k, reactive as qe, watchEffect as Jn, watch as q, toValue as pt, defineComponent as E, openBlock as d, createElementBlock as A, toDisplayString as z, createVNode as v, withCtx as h, createElementVNode as V, createBlock as y, createCommentVNode as j, createTextVNode as G, Fragment as T, renderList as N, normalizeClass as H, resolveDynamicComponent as Yt, createSlots as Mn, withDirectives as Ee, vShow as De, renderSlot as Se, withModifiers as Ne, readonly as Ln, getCurrentScope as Un, onScopeDispose as qn, onMounted as et, nextTick as we, getCurrentInstance as Zt, toRaw as Hn, isRef as mt, mergeProps as re, normalizeStyle as Xe, defineAsyncComponent as Gn, h as Te, inject as xt, provide as Xn, normalizeProps as en, guardReactiveProps as tn, withKeys as Qe, onUnmounted as nn, markRaw as vt, createApp as ln, shallowRef as gt, shallowReactive as Qn, triggerRef as Ae, KeepAlive as an } from "vue";
2
2
  import { ElNotification as Ct, ElMessageBox as Vt, ElMessage as tt, ElButton as ae, ElDivider as At, ElRadioGroup as sn, ElRadioButton as Ke, ElButtonGroup as Kn, ElDropdown as on, ElDropdownMenu as rn, ElDropdownItem as ft, ElInput as ye, ElEmpty as se, ElTooltip as un, ElTag as Yn, ElSwitch as cn, ElTree as jt, ElAlert as dn, ElRow as ht, ElCol as bt, ElCollapse as Zn, ElCollapseItem as el, ElDrawer as pn, ElForm as ge, ElFormItem as mn, ElBreadcrumb as tl, ElBreadcrumbItem as nl, ElLoading as ll, ElSelect as al, ElOption as sl, ElInputNumber as ol, ElColorPicker as rl, ElUpload as il, ElSlider as ul, ElConfigProvider as cl, ElContainer as Ot, ElHeader as dl, ElAside as Ft, ElMain as pl, ElFooter as ml } from "element-plus";
3
3
  import vl from "element-plus/es/locale/lang/zh-cn";
4
4
  import { XIcon as xe, XDialog as Be, XDialogForm as Ve, XField as B, XPanel as nt, XAction as he, XTabs as Et, XContainer as M, XForm as Pt, XAttachment as gl, XActionBar as fl, XInputUnit as vn, vResizable as Nt, createDialog as hl } from "@vtj/ui";
5
- import { delay as gn, upperFirstCamelCase as fn, toRawType as ut, cloneDeep as lt, logger as Ce, isPlainObject as bl, fileToBase64 as yl, merge as Dt, arrayToMap as _l, toArray as wl } from "@vtj/utils";
6
- import { isBlock as ee, DirectiveModel as hn, createNodeFrom as kl, BUILT_IN_VUE as Sl, BUILT_IN_VUE_ROUTER as xl, BUILT_IN_NAME as yt, emitter as te, EVENT_PROJECT_ACTIVED as _t, EVENT_NODE_CHANGE as Je, NodeModel as Wt, EVENT_BLOCK_CHANGE as wt, Base as bn, BUILT_IN_LIBRARAY_MAP as Cl, ProjectModel as Vl, EVENT_PROJECT_CHANGE as Al, EVENT_PROJECT_BLOCKS_CHANGE as jl, EVENT_PROJECT_PAGES_CHANGE as El, EVENT_PROJECT_DEPS_CHANGE as Pl, EVENT_PROJECT_PUBLISH as Dl, EVENT_PROJECT_FILE_PUBLISH as Il, EVENT_HISTORY_CHANGE as Bl, EVENT_HISTORY_LOAD as Rl, BlockModel as Jt, HistoryModel as $l } from "@vtj/core";
5
+ import { delay as gn, upperFirstCamelCase as fn, toRawType as ut, cloneDeep as lt, logger as Ce, isPlainObject as bl, fileToBase64 as yl, merge as It, arrayToMap as _l, toArray as wl } from "@vtj/utils";
6
+ import { isBlock as ee, DirectiveModel as hn, createNodeFrom as kl, BUILT_IN_VUE as Sl, BUILT_IN_VUE_ROUTER as xl, BUILT_IN_NAME as yt, emitter as te, EVENT_PROJECT_ACTIVED as _t, EVENT_NODE_CHANGE as Je, NodeModel as Wt, EVENT_BLOCK_CHANGE as wt, Base as bn, BUILT_IN_LIBRARAY_MAP as Cl, ProjectModel as Vl, EVENT_PROJECT_CHANGE as Al, EVENT_PROJECT_BLOCKS_CHANGE as jl, EVENT_PROJECT_PAGES_CHANGE as El, EVENT_PROJECT_DEPS_CHANGE as Pl, EVENT_PROJECT_PUBLISH as Il, EVENT_PROJECT_FILE_PUBLISH as Dl, EVENT_HISTORY_CHANGE as Bl, EVENT_HISTORY_LOAD as Rl, BlockModel as Jt, HistoryModel as $l } from "@vtj/core";
7
7
  import { parseExpression as Me, parseFunction as Tl, JSCodeToString as ze, LIFE_CYCLES_LIST as zl, DATA_TYPES as Ol, isJSExpression as Le, ContextMode as yn, parseDeps as Fl, createAssetsCss as Nl, createAssetScripts as Mt, getRawComponent as Lt, createSchemaApis as Wl, mockCleanup as Jl, mockApis as Ml, Provider as Ll, isJSFunction as Ul } from "@vtj/renderer";
8
- import { VtjIconBack as ql, VtjIconPc as Hl, VtjIconPhone as Gl, VtjIconPad as Xl, VtjIconUndo as Ql, VtjIconRedo as Kl, VtjIconPreview as Yl, VtjIconRefresh as Zl, VtjIconSetting as _n, icons as kt, ArrowDown as wn, Search as It, Back as ea, VtjIconPlus as kn, EditPen as ta, Delete as na, VtjIconSave as la, ArrowUp as aa, MoreFilled as Bt, VtjIconCheck as Sn, VtjIconCopy as xn, VtjIconEdit as Cn, VtjIconRemove as at, VtjIconLock as Vn, VtjIconUnlock as sa, VtjIconInvisible as An, VtjIconVisible as oa, VtjIconHome as ra, Files as ia, VtjIconSearch as ua, VtjIconHelp as jn, VtjIconLayers as En, Rank as ca, VtjIconArrowUp as da, VtjIconArrowDown as pa, IconDisplayBlock as ma, IconDisplayFlex as va, IconDisplayInlineBlock as ga, IconDisplayInline as fa, IconEyeInvisible as ha, IconFlexDirectionrow as ba, IconFlexDirectionrowReverse as ya, IconFlexDirectioncolumn as _a, IconFlexDirectioncolumnReverse as wa, IconFlexJustifyflexStartrow as ka, IconFlexJustifyflexEndrow as Sa, IconFlexJustifycenterrow as xa, IconFlexJustifyspaceBetweenrow as Ca, IconFlexJustifyspaceAroundrow as Va, IconFlexAlignflexStartrow as Aa, IconFlexAlignflexEndrow as ja, IconFlexAligncenterrow as Ea, IconFlexAlignbaselinerow as Pa, IconFlexAlignstretchrow as Da, IconPositionTopLeft as Ia, IconPositionTopRight as Ba, IconPositionBottomLeft as Ra, IconPositionBottomRight as $a, IconPositionLeft as Ta, IconPositionRight as za, IconPositionTop as Oa, IconPositionBottom as Fa, IconPositionAll as Na, IconTextAlignLeft as Wa, IconTextAlignCenter as Ja, IconTextAlignRight as Ma, IconTextAlignJustify as La, IconFontStyleNone as Ua, IconFontStyleItalic as qa, IconCross as Pn, IconTextDecorationUnderline as Ha, IconTextDecorationStrike as Ga, IconTextDecorationOverline as Xa, IconTileXy as Qa, IconTileX as Ka, IconTileY as Ya, IconClose as Za, IconBorderAll as es, IconBorderLeft as ts, IconBorderTop as ns, IconBorderBottom as ls, IconBorderRight as as, IconBorderStyleSolid as ss, IconBorderStyleDashed as os, IconBorderStyleDotted as rs, IconCursorAuto as is, IconCursorPointer as us, IconCursorNotAllowed as cs, IconCursorNone as ds, ArrowRight as ps, VtjIconDocument as ms, VtjIconComponents as vs, VtjIconBlock as gs, VtjIconOutline as fs, VtjIconHistory as hs, VtjIconApi as bs, VtjIconCategory as ys, VtjIconInfo as _s, HomeFilled as ws, Plus as ks, Close as Ss, VtjIconVars as xs, VtjIconSwitch as Cs, Switch as Vs } from "@vtj/icons";
8
+ import { VtjIconBack as ql, VtjIconPc as Hl, VtjIconPhone as Gl, VtjIconPad as Xl, VtjIconUndo as Ql, VtjIconRedo as Kl, VtjIconPreview as Yl, VtjIconRefresh as Zl, VtjIconSetting as _n, icons as kt, ArrowDown as wn, Search as Dt, Back as ea, VtjIconPlus as kn, EditPen as ta, Delete as na, VtjIconSave as la, ArrowUp as aa, MoreFilled as Bt, VtjIconCheck as Sn, VtjIconCopy as xn, VtjIconEdit as Cn, VtjIconRemove as at, VtjIconLock as Vn, VtjIconUnlock as sa, VtjIconInvisible as An, VtjIconVisible as oa, VtjIconHome as ra, Files as ia, VtjIconSearch as ua, VtjIconHelp as jn, VtjIconLayers as En, Rank as ca, VtjIconArrowUp as da, VtjIconArrowDown as pa, IconDisplayBlock as ma, IconDisplayFlex as va, IconDisplayInlineBlock as ga, IconDisplayInline as fa, IconEyeInvisible as ha, IconFlexDirectionrow as ba, IconFlexDirectionrowReverse as ya, IconFlexDirectioncolumn as _a, IconFlexDirectioncolumnReverse as wa, IconFlexJustifyflexStartrow as ka, IconFlexJustifyflexEndrow as Sa, IconFlexJustifycenterrow as xa, IconFlexJustifyspaceBetweenrow as Ca, IconFlexJustifyspaceAroundrow as Va, IconFlexAlignflexStartrow as Aa, IconFlexAlignflexEndrow as ja, IconFlexAligncenterrow as Ea, IconFlexAlignbaselinerow as Pa, IconFlexAlignstretchrow as Ia, IconPositionTopLeft as Da, IconPositionTopRight as Ba, IconPositionBottomLeft as Ra, IconPositionBottomRight as $a, IconPositionLeft as Ta, IconPositionRight as za, IconPositionTop as Oa, IconPositionBottom as Fa, IconPositionAll as Na, IconTextAlignLeft as Wa, IconTextAlignCenter as Ja, IconTextAlignRight as Ma, IconTextAlignJustify as La, IconFontStyleNone as Ua, IconFontStyleItalic as qa, IconCross as Pn, IconTextDecorationUnderline as Ha, IconTextDecorationStrike as Ga, IconTextDecorationOverline as Xa, IconTileXy as Qa, IconTileX as Ka, IconTileY as Ya, IconClose as Za, IconBorderAll as es, IconBorderLeft as ts, IconBorderTop as ns, IconBorderBottom as ls, IconBorderRight as as, IconBorderStyleSolid as ss, IconBorderStyleDashed as os, IconBorderStyleDotted as rs, IconCursorAuto as is, IconCursorPointer as us, IconCursorNotAllowed as cs, IconCursorNone as ds, ArrowRight as ps, VtjIconDocument as ms, VtjIconComponents as vs, VtjIconBlock as gs, VtjIconOutline as fs, VtjIconHistory as hs, VtjIconApi as bs, VtjIconCategory as ys, VtjIconInfo as _s, HomeFilled as ws, Plus as ks, Close as Ss, VtjIconVars as xs, VtjIconSwitch as Cs, Switch as Vs } from "@vtj/icons";
9
9
  import As from "mockjs";
10
10
  /**!
11
11
  * Copyright (c) 2024, VTJ.PRO All rights reserved.
12
12
  * @name @vtj/designer
13
13
  * @author CHC chenhuachun1549@dingtalk.com
14
- * @version 0.8.98
14
+ * @version 0.8.99
15
15
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
16
16
  */
17
- const js = "0.8.98", Ut = {
17
+ const js = "0.8.99", Ut = {
18
18
  width: 390,
19
19
  height: 844
20
20
  }, qt = {
@@ -29,14 +29,14 @@ const js = "0.8.98", Ut = {
29
29
  "mouseup",
30
30
  "mouseover",
31
31
  "contextmenu"
32
- ], Ps = ["keydown", "keyup", "keypress"], Ds = [
32
+ ], Ps = ["keydown", "keyup", "keypress"], Is = [
33
33
  "GET",
34
34
  "POST",
35
35
  "PUT",
36
36
  "PATCH",
37
37
  "DELETE",
38
38
  "JSONP"
39
- ], Is = [
39
+ ], Ds = [
40
40
  "stop",
41
41
  "prevent",
42
42
  "capture",
@@ -45,7 +45,7 @@ const js = "0.8.98", Ut = {
45
45
  "passive"
46
46
  ];
47
47
  var fe = /* @__PURE__ */ ((i) => (i.Block = "block", i.Node = "node", i))(fe || {}), Bs = /* @__PURE__ */ ((i) => (i.Brand = "Brand", i.Toolbar = "Toolbar", i.Actions = "Actions", i.Apps = "Apps", i.Workspace = "Workspace", i.Settings = "Settings", i.Status = "Status", i.Preview = "Preview", i))(Bs || {});
48
- function Dn() {
48
+ function In() {
49
49
  const i = ce(), e = S(() => i.project.value?.dependencies ?? []), t = S(() => i.project.value?.apis ?? []), l = S(() => i.project.value?.meta ?? []);
50
50
  return {
51
51
  engine: i,
@@ -61,7 +61,7 @@ function Pe(i, e) {
61
61
  widgetsRef: l
62
62
  };
63
63
  }
64
- function In() {
64
+ function Dn() {
65
65
  const i = ce();
66
66
  return {
67
67
  span: S(() => {
@@ -221,10 +221,10 @@ function Ns(i, e) {
221
221
  x.length && p.push({ title: "计算属性", items: x });
222
222
  const C = Object.keys(u.methods).map(($) => `this.${$}`);
223
223
  C.length && p.push({ title: "方法", items: C });
224
- const I = Object.keys(u.dataSources).map(
224
+ const D = Object.keys(u.dataSources).map(
225
225
  ($) => `this.${$}`
226
226
  );
227
- I.length && p.push({ title: "数据源", items: I });
227
+ D.length && p.push({ title: "数据源", items: D });
228
228
  const O = Object.keys(g?.$refs || {}).map(
229
229
  ($) => `this.$refs.${$}`
230
230
  );
@@ -814,7 +814,7 @@ const Xs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
814
814
  V("div", co, [
815
815
  v(n(ye), {
816
816
  size: t.size,
817
- "prefix-icon": n(It),
817
+ "prefix-icon": n(Dt),
818
818
  clearable: "",
819
819
  modelValue: s.value,
820
820
  "onUpdate:modelValue": c[0] || (c[0] = (_) => s.value = _),
@@ -1049,7 +1049,7 @@ const Xs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1049
1049
  title: "展开",
1050
1050
  onClick: c[0] || (c[0] = (_) => f(!1))
1051
1051
  }, null, 8, ["size", "icon"])), [
1052
- [Ie, a.value]
1052
+ [De, a.value]
1053
1053
  ]) : j("", !0),
1054
1054
  t.collapsable ? Ee((d(), y(n(he), {
1055
1055
  key: 5,
@@ -1060,7 +1060,7 @@ const Xs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1060
1060
  title: "收起",
1061
1061
  onClick: c[1] || (c[1] = (_) => f(!0))
1062
1062
  }, null, 8, ["size", "icon"])), [
1063
- [Ie, !a.value]
1063
+ [De, !a.value]
1064
1064
  ]) : j("", !0),
1065
1065
  Se(b.$slots, "actions")
1066
1066
  ]),
@@ -1558,7 +1558,7 @@ function Qt(i, e = {}) {
1558
1558
  query: g
1559
1559
  } : r;
1560
1560
  }
1561
- function Do(i = {}) {
1561
+ function Io(i = {}) {
1562
1562
  const {
1563
1563
  navigator: e = $n,
1564
1564
  read: t = !1,
@@ -1576,12 +1576,12 @@ function Do(i = {}) {
1576
1576
  g.value && C != null && (s.value && x(u.value) ? await e.clipboard.writeText(C) : _(C), p.value = C, m.value = !0, f.start());
1577
1577
  }
1578
1578
  function _(C) {
1579
- const I = document.createElement("textarea");
1580
- I.value = C ?? "", I.style.position = "absolute", I.style.opacity = "0", document.body.appendChild(I), I.select(), document.execCommand("copy"), I.remove();
1579
+ const D = document.createElement("textarea");
1580
+ D.value = C ?? "", D.style.position = "absolute", D.style.opacity = "0", document.body.appendChild(D), D.select(), document.execCommand("copy"), D.remove();
1581
1581
  }
1582
1582
  function w() {
1583
- var C, I, O;
1584
- return (O = (I = (C = document?.getSelection) == null ? void 0 : C.call(document)) == null ? void 0 : I.toString()) != null ? O : "";
1583
+ var C, D, O;
1584
+ return (O = (D = (C = document?.getSelection) == null ? void 0 : C.call(document)) == null ? void 0 : D.toString()) != null ? O : "";
1585
1585
  }
1586
1586
  function x(C) {
1587
1587
  return C === "granted" || C === "prompt";
@@ -1593,7 +1593,7 @@ function Do(i = {}) {
1593
1593
  copy: c
1594
1594
  };
1595
1595
  }
1596
- function Io(i, e, t = {}) {
1596
+ function Do(i, e, t = {}) {
1597
1597
  const { window: l = it, ...a } = t;
1598
1598
  let o;
1599
1599
  const s = $t(() => l && "ResizeObserver" in l), r = () => {
@@ -1620,7 +1620,7 @@ function Ue(i, e = { width: 0, height: 0 }, t = {}) {
1620
1620
  const { window: l = it, box: a = "content-box" } = t, o = S(() => {
1621
1621
  var m, f;
1622
1622
  return (f = (m = be(i)) == null ? void 0 : m.namespaceURI) == null ? void 0 : f.includes("svg");
1623
- }), s = k(e.width), r = k(e.height), { stop: u } = Io(
1623
+ }), s = k(e.width), r = k(e.height), { stop: u } = Do(
1624
1624
  i,
1625
1625
  ([m]) => {
1626
1626
  const f = a === "border-box" ? m.borderBoxSize : a === "content-box" ? m.contentBoxSize : m.devicePixelContentBoxSize;
@@ -1744,7 +1744,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
1744
1744
  "close"
1745
1745
  ],
1746
1746
  setup(i, { emit: e }) {
1747
- const t = i, l = e, { searchResult: a, keyword: o } = Ns(t.block, t.context), { copy: s } = Do({}), r = [
1747
+ const t = i, l = e, { searchResult: a, keyword: o } = Ns(t.block, t.context), { copy: s } = Io({}), r = [
1748
1748
  {
1749
1749
  name: "normal",
1750
1750
  label: "常用"
@@ -1798,7 +1798,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
1798
1798
  class: "v-binder__tabs",
1799
1799
  items: r,
1800
1800
  modelValue: u.value,
1801
- "onUpdate:modelValue": C[1] || (C[1] = (I) => u.value = I)
1801
+ "onUpdate:modelValue": C[1] || (C[1] = (D) => u.value = D)
1802
1802
  }, {
1803
1803
  default: h(() => [
1804
1804
  v(n(M), {
@@ -1811,20 +1811,20 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
1811
1811
  Ee(V("div", null, [
1812
1812
  v(n(ye), {
1813
1813
  modelValue: n(o),
1814
- "onUpdate:modelValue": C[0] || (C[0] = (I) => mt(o) ? o.value = I : null),
1814
+ "onUpdate:modelValue": C[0] || (C[0] = (D) => mt(o) ? o.value = D : null),
1815
1815
  size: "small",
1816
1816
  clearable: "",
1817
- "prefix-icon": n(It),
1817
+ "prefix-icon": n(Dt),
1818
1818
  placeholder: "筛选可用项"
1819
1819
  }, null, 8, ["modelValue", "prefix-icon"]),
1820
- (d(!0), A(T, null, N(n(a), (I) => (d(), A("div", null, [
1820
+ (d(!0), A(T, null, N(n(a), (D) => (d(), A("div", null, [
1821
1821
  v(n(At), { "border-style": "dotted" }, {
1822
1822
  default: h(() => [
1823
- G(z(I.title), 1)
1823
+ G(z(D.title), 1)
1824
1824
  ]),
1825
1825
  _: 2
1826
1826
  }, 1024),
1827
- (d(!0), A(T, null, N(I.items, (O) => (d(), y(ue, {
1827
+ (d(!0), A(T, null, N(D.items, (O) => (d(), y(ue, {
1828
1828
  title: O,
1829
1829
  background: "",
1830
1830
  actions: ["copy"],
@@ -1835,14 +1835,14 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
1835
1835
  ]))), 256)),
1836
1836
  n(a).length ? j("", !0) : (d(), y(n(se), { key: 0 }))
1837
1837
  ], 512), [
1838
- [Ie, u.value === "normal"]
1838
+ [De, u.value === "normal"]
1839
1839
  ]),
1840
1840
  Ee(v(Ro, {
1841
1841
  context: t.context,
1842
1842
  onCopy: w,
1843
1843
  onPick: _
1844
1844
  }, null, 8, ["context"]), [
1845
- [Ie, u.value === "viewer"]
1845
+ [De, u.value === "viewer"]
1846
1846
  ])
1847
1847
  ]),
1848
1848
  _: 1
@@ -2105,13 +2105,13 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
2105
2105
  },
2106
2106
  emits: ["change", "update:modelValue"],
2107
2107
  setup(i, { emit: e }) {
2108
- const t = i, l = e, { engine: a, project: o } = Re(), s = k([]), r = k(!1), u = (C) => Array.isArray(C) ? C.map((I) => ({
2109
- name: I.filename,
2110
- url: I.filepath
2108
+ const t = i, l = e, { engine: a, project: o } = Re(), s = k([]), r = k(!1), u = (C) => Array.isArray(C) ? C.map((D) => ({
2109
+ name: D.filename,
2110
+ url: D.filepath
2111
2111
  })) : C ? { name: C.filename, url: C.filepath } : null, g = async (C) => {
2112
2112
  if (a && o.value) {
2113
- const I = await a.service.uploadStaticFile(C, o.value.id);
2114
- return u(I);
2113
+ const D = await a.service.uploadStaticFile(C, o.value.id);
2114
+ return u(D);
2115
2115
  }
2116
2116
  return null;
2117
2117
  }, p = (C) => C ? (C || "").split(",").map((O) => ({ url: O })) : [], m = k(
@@ -2124,8 +2124,8 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
2124
2124
  }
2125
2125
  ), q(r, async (C) => {
2126
2126
  if (C) {
2127
- const I = await a.service.getStaticFiles(o.value?.id).catch(() => null);
2128
- s.value = u(I);
2127
+ const D = await a.service.getStaticFiles(o.value?.id).catch(() => null);
2128
+ s.value = u(D);
2129
2129
  }
2130
2130
  });
2131
2131
  const b = () => {
@@ -2133,7 +2133,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
2133
2133
  return ne("请选择文件"), !1;
2134
2134
  const C = (t.attachment?.accept || "").toLowerCase().split(",");
2135
2135
  return C.length > 0 ? [].concat(m.value).every(($) => {
2136
- const D = $.name || $.url.split("?")[0], R = D.substring(D.lastIndexOf(".")).toLowerCase();
2136
+ const I = $.name || $.url.split("?")[0], R = I.substring(I.lastIndexOf(".")).toLowerCase();
2137
2137
  return C.includes(R);
2138
2138
  }) ? !0 : (ne(`只支持 ${C.join(",")} 文件`), !1) : !0;
2139
2139
  }, c = () => {
@@ -2145,7 +2145,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
2145
2145
  }, x = (C) => {
2146
2146
  C.name && o.value?.id && a.service.removeStaticFile(C.name, o.value?.id);
2147
2147
  };
2148
- return (C, I) => (d(), A("div", Oo, [
2148
+ return (C, D) => (d(), A("div", Oo, [
2149
2149
  v(n(ye), re({
2150
2150
  readonly: "",
2151
2151
  onFocus: w,
@@ -2155,7 +2155,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
2155
2155
  r.value ? (d(), y(n(Be), {
2156
2156
  key: 0,
2157
2157
  modelValue: r.value,
2158
- "onUpdate:modelValue": I[1] || (I[1] = (O) => r.value = O),
2158
+ "onUpdate:modelValue": D[1] || (D[1] = (O) => r.value = O),
2159
2159
  title: "文件选择器",
2160
2160
  width: "600px",
2161
2161
  height: "400px",
@@ -2183,7 +2183,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
2183
2183
  uploader: g,
2184
2184
  "model-value": s.value,
2185
2185
  "select-value": m.value,
2186
- "onUpdate:selectValue": I[0] || (I[0] = (O) => m.value = O)
2186
+ "onUpdate:selectValue": D[0] || (D[0] = (O) => m.value = O)
2187
2187
  }, t.attachment, { onRemove: x }), null, 16, ["model-value", "select-value"])
2188
2188
  ]),
2189
2189
  _: 1
@@ -2194,7 +2194,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
2194
2194
  name: "BlocksWidget",
2195
2195
  __name: "index",
2196
2196
  setup(i) {
2197
- const { span: e } = In(), { blocks: t, engine: l } = Rs(), a = [
2197
+ const { span: e } = Dn(), { blocks: t, engine: l } = Rs(), a = [
2198
2198
  {
2199
2199
  label: "设计",
2200
2200
  value: "Schema",
@@ -2235,10 +2235,10 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
2235
2235
  return ".json";
2236
2236
  if (s.value?.fromType === "Plugin")
2237
2237
  return ".js,.css,.json";
2238
- }), b = S(() => s.value?.fromType === "Plugin"), c = async (D) => {
2239
- const R = D, P = l.project.value;
2238
+ }), b = S(() => s.value?.fromType === "Plugin"), c = async (I) => {
2239
+ const R = I, P = l.project.value;
2240
2240
  if (!P) return !1;
2241
- if (D.id)
2241
+ if (I.id)
2242
2242
  if (!P.existBlockName(R.name, [R.id]))
2243
2243
  P.updateBlock(R);
2244
2244
  else
@@ -2250,22 +2250,22 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
2250
2250
  return !0;
2251
2251
  }, _ = () => {
2252
2252
  s.value = m(), u.value = !0;
2253
- }, w = (D) => {
2254
- s.value = lt(D), u.value = !0;
2255
- }, x = (D) => {
2256
- l.project.value?.removeBlock(D.id);
2257
- }, C = (D) => {
2258
- s.value && (s.value.name = fn(D));
2259
- }, I = async (D) => {
2260
- (!D.fromType || D.fromType === "Schema") && l.project.value?.active(D);
2261
- }, O = async (D) => {
2262
- const R = kl(D), P = await l.assets.getBlockMaterial(R, D.name), X = l.skeleton?.getWidget("Designer")?.widgetRef?.designer;
2253
+ }, w = (I) => {
2254
+ s.value = lt(I), u.value = !0;
2255
+ }, x = (I) => {
2256
+ l.project.value?.removeBlock(I.id);
2257
+ }, C = (I) => {
2258
+ s.value && (s.value.name = fn(I));
2259
+ }, D = async (I) => {
2260
+ (!I.fromType || I.fromType === "Schema") && l.project.value?.active(I);
2261
+ }, O = async (I) => {
2262
+ const R = kl(I), P = await l.assets.getBlockMaterial(R, I.name), X = l.skeleton?.getWidget("Designer")?.widgetRef?.designer;
2263
2263
  X && P && X.setDragging(P);
2264
2264
  }, $ = () => {
2265
- const D = l.skeleton?.getWidget("Designer")?.widgetRef?.designer;
2266
- D && D.setDragging(null);
2265
+ const I = l.skeleton?.getWidget("Designer")?.widgetRef?.designer;
2266
+ I && I.setDragging(null);
2267
2267
  };
2268
- return (D, R) => (d(), y(n(U), {
2268
+ return (I, R) => (d(), y(n(U), {
2269
2269
  class: "v-blocks-widget",
2270
2270
  title: "区块管理",
2271
2271
  subtitle: p.value,
@@ -2292,7 +2292,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
2292
2292
  tagType: o[P.fromType || "Schema"]?.type,
2293
2293
  onEdit: (X) => w(P),
2294
2294
  onRemove: (X) => x(P),
2295
- onClick: (X) => I(P),
2295
+ onClick: (X) => D(P),
2296
2296
  draggable: n(r)?.id !== P.id,
2297
2297
  onDragstart: (X) => O(P),
2298
2298
  onDragend: $
@@ -2367,7 +2367,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
2367
2367
  name: "ComponentsWidget",
2368
2368
  __name: "index",
2369
2369
  setup(i) {
2370
- const { span: e, engine: t } = In(), { tabs: l, currentTab: a, currentGroup: o, model: s, searchKey: r, searchResult: u } = Ts(), g = (m) => {
2370
+ const { span: e, engine: t } = Dn(), { tabs: l, currentTab: a, currentGroup: o, model: s, searchKey: r, searchResult: u } = Ts(), g = (m) => {
2371
2371
  const f = t.skeleton?.getWidget("Designer")?.widgetRef?.designer;
2372
2372
  f && f.setDragging(m);
2373
2373
  }, p = () => {
@@ -2481,16 +2481,16 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
2481
2481
  name: "OutlineWidget",
2482
2482
  __name: "index",
2483
2483
  setup(i) {
2484
- const { engine: e, designer: t, selected: l } = ke(), { current: a } = ie(), o = k([]), s = (D, R) => {
2484
+ const { engine: e, designer: t, selected: l } = ke(), { current: a } = ie(), o = k([]), s = (I, R) => {
2485
2485
  if (R === "slot") return [];
2486
- if (ee(D))
2487
- return D.locked ? ["unlock"] : ["lock"];
2488
- const P = D.parent;
2489
- return P && (P.locked || P.invisible) ? [] : a.value?.locked ? [] : D.locked ? ["unlock"] : D.invisible ? ["visible"] : ["lock", "invisible", "copy", "remove"];
2490
- }, r = (D, R) => {
2486
+ if (ee(I))
2487
+ return I.locked ? ["unlock"] : ["lock"];
2488
+ const P = I.parent;
2489
+ return P && (P.locked || P.invisible) ? [] : a.value?.locked ? [] : I.locked ? ["unlock"] : I.invisible ? ["visible"] : ["lock", "invisible", "copy", "remove"];
2490
+ }, r = (I, R) => {
2491
2491
  const P = {};
2492
- if (!D.some((F) => F.slot)) return u(D);
2493
- for (const F of D) {
2492
+ if (!I.some((F) => F.slot)) return u(I);
2493
+ for (const F of I) {
2494
2494
  const L = F.slot?.name || "default";
2495
2495
  P[L] || (P[L] = []), P[L].push(F);
2496
2496
  }
@@ -2505,9 +2505,9 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
2505
2505
  children: u(L)
2506
2506
  });
2507
2507
  return pe;
2508
- }, u = (D) => {
2508
+ }, u = (I) => {
2509
2509
  const R = [];
2510
- return D.forEach((P) => {
2510
+ return I.forEach((P) => {
2511
2511
  const X = {
2512
2512
  id: P.id,
2513
2513
  label: P.name,
@@ -2519,25 +2519,25 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
2519
2519
  }), R;
2520
2520
  }, g = () => {
2521
2521
  if (!a.value) return [];
2522
- const { id: D, name: R, nodes: P } = a.value;
2522
+ const { id: I, name: R, nodes: P } = a.value;
2523
2523
  return [
2524
2524
  {
2525
- id: D,
2525
+ id: I,
2526
2526
  label: R,
2527
- type: D,
2527
+ type: I,
2528
2528
  model: a.value,
2529
2529
  children: u(P)
2530
2530
  }
2531
2531
  ];
2532
2532
  }, p = async () => {
2533
2533
  o.value = g(), l.value?.model && (await we(), t.value?.setSelected(l.value.model));
2534
- }, m = S(() => l.value?.model.id), f = (D) => {
2535
- const R = D.data;
2534
+ }, m = S(() => l.value?.model.id), f = (I) => {
2535
+ const R = I.data;
2536
2536
  if (R.type === "slot" || ee(R.model) || R.model.locked || R.model.name === "template")
2537
2537
  return !1;
2538
2538
  const P = e.assets.componentMap.get(R.model.name);
2539
2539
  return P ? (t.value?.setDragging(P), !0) : !1;
2540
- }, b = async (D, R, P) => {
2540
+ }, b = async (I, R, P) => {
2541
2541
  const X = R.data, F = {
2542
2542
  prev: "top",
2543
2543
  next: "bottom",
@@ -2551,15 +2551,15 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
2551
2551
  L = !!await t.value?.allowDrop(W, F), t.value?.setDropping(L ? W : null, "inner");
2552
2552
  }
2553
2553
  return L;
2554
- }, c = (D) => {
2555
- const R = D?.model;
2556
- if (!R || R.invisible || D.type === "slot") {
2554
+ }, c = (I) => {
2555
+ const R = I?.model;
2556
+ if (!R || R.invisible || I.type === "slot") {
2557
2557
  t.value?.setSelected(null), t.value?.setHover(null);
2558
2558
  return;
2559
2559
  }
2560
2560
  t.value?.setSelected(R), t.value?.setHover(null);
2561
- }, _ = async (D, R, P) => {
2562
- const X = D.data, pe = R.data;
2561
+ }, _ = async (I, R, P) => {
2562
+ const X = I.data, pe = R.data;
2563
2563
  if (ee(pe.model)) {
2564
2564
  const Fe = X.model;
2565
2565
  delete Fe.slot, a.value?.move(Fe, void 0, "inner"), t.value?.setDropping(null), t.value?.setDragging(null);
@@ -2584,26 +2584,26 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
2584
2584
  } else
2585
2585
  p();
2586
2586
  t.value?.setDropping(null), t.value?.setDragging(null), e.simulator.refresh();
2587
- }, w = (D) => {
2588
- if (D.type === "slot") {
2587
+ }, w = (I) => {
2588
+ if (I.type === "slot") {
2589
2589
  t.value?.setHover(null);
2590
2590
  return;
2591
2591
  }
2592
- ee(D.model) ? t.value?.setHover(D.model) : (t.value?.setHover(D.model), D.model.invisible && t.value?.setHover(null), D.model.name === "slot" && t.value?.setHover(null));
2592
+ ee(I.model) ? t.value?.setHover(I.model) : (t.value?.setHover(I.model), I.model.invisible && t.value?.setHover(null), I.model.name === "slot" && t.value?.setHover(null));
2593
2593
  }, x = () => {
2594
2594
  t.value?.setHover(null);
2595
- }, C = (D) => {
2596
- const R = D.data;
2595
+ }, C = (I) => {
2596
+ const R = I.data;
2597
2597
  R.dragging = !0;
2598
2598
  const P = e.assets.componentMap.get(R.model.name);
2599
2599
  P && t.value?.setDragging(P);
2600
- }, I = async (D) => {
2601
- const R = D.data;
2600
+ }, D = async (I) => {
2601
+ const R = I.data;
2602
2602
  R.dragging = !1;
2603
- }, O = (D, R) => {
2604
- D && ((D.id === R.id || !ee(D) && R.isChild(D)) && t.value?.setSelected(null), t.value?.setHover(null));
2605
- }, $ = (D) => {
2606
- const { name: R, modelValue: P } = D, X = l.value?.model;
2603
+ }, O = (I, R) => {
2604
+ I && ((I.id === R.id || !ee(I) && R.isChild(I)) && t.value?.setSelected(null), t.value?.setHover(null));
2605
+ }, $ = (I) => {
2606
+ const { name: R, modelValue: P } = I, X = l.value?.model;
2607
2607
  switch (R) {
2608
2608
  case "lock":
2609
2609
  O(X, P), P.lock();
@@ -2626,7 +2626,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
2626
2626
  break;
2627
2627
  }
2628
2628
  };
2629
- return q(e.changed, p, { immediate: !0 }), (D, R) => (d(), y(n(U), {
2629
+ return q(e.changed, p, { immediate: !0 }), (I, R) => (d(), y(n(U), {
2630
2630
  class: "v-outline-widget",
2631
2631
  title: "大纲树"
2632
2632
  }, {
@@ -2646,7 +2646,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
2646
2646
  onCurrentChange: c,
2647
2647
  onNodeDrop: _,
2648
2648
  onNodeDragStart: C,
2649
- onNodeDragEnd: I
2649
+ onNodeDragEnd: D
2650
2650
  }, {
2651
2651
  default: h(({ data: P, node: X }) => [
2652
2652
  v(n(ue), {
@@ -2716,7 +2716,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
2716
2716
  }), qo = /* @__PURE__ */ E({
2717
2717
  __name: "base-info",
2718
2718
  setup(i) {
2719
- const e = Ds.map((t) => ({
2719
+ const e = Is.map((t) => ({
2720
2720
  label: t,
2721
2721
  value: t.toLowerCase()
2722
2722
  }));
@@ -3059,7 +3059,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
3059
3059
  }, {
3060
3060
  default: h(() => [
3061
3061
  Ee(v(qo, null, null, 512), [
3062
- [Ie, l.value === "base"]
3062
+ [De, l.value === "base"]
3063
3063
  ]),
3064
3064
  l.value === "settings" ? (d(), A("div", Ko, [
3065
3065
  p.value ? (d(), y(Go, { key: 0 })) : (d(), y(Ho, { key: 1 }))
@@ -3161,7 +3161,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
3161
3161
  size: "small",
3162
3162
  modelValue: l.value,
3163
3163
  "onUpdate:modelValue": b[0] || (b[0] = (c) => l.value = c),
3164
- "prefix-icon": n(It),
3164
+ "prefix-icon": n(Dt),
3165
3165
  placeholder: "搜索API",
3166
3166
  clearable: ""
3167
3167
  }, null, 8, ["modelValue", "prefix-icon"])
@@ -3197,7 +3197,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
3197
3197
  name: "DepsWidget",
3198
3198
  __name: "index",
3199
3199
  setup(i) {
3200
- const { dependencies: e, engine: t } = Dn(), l = k(!1), a = k(!1), o = k({}), s = S(() => a.value ? "查看依赖" : o.value ? "编辑依赖" : "新增依赖"), r = (c) => c.required || c.official ? [] : ["edit", "remove"], u = (c) => c.official && !c.required, g = async (c) => (c.urls = c.urls.split(`
3200
+ const { dependencies: e, engine: t } = In(), l = k(!1), a = k(!1), o = k({}), s = S(() => a.value ? "查看依赖" : o.value ? "编辑依赖" : "新增依赖"), r = (c) => c.required || c.official ? [] : ["edit", "remove"], u = (c) => c.official && !c.required, g = async (c) => (c.urls = c.urls.split(`
3201
3201
  `), t.project.value?.setDeps(c), !0), p = (c) => {
3202
3202
  t.project.value?.setDeps(c);
3203
3203
  }, m = () => {
@@ -3371,16 +3371,16 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
3371
3371
  inheritAttrs: !1,
3372
3372
  __name: "index",
3373
3373
  setup(i, { expose: e }) {
3374
- const t = k(), l = k(), { width: a, height: o } = Ue(t), { dependencies: s, engine: r, apis: u, meta: g } = Dn(), { current: p, isEmpty: m } = ie(), f = S(() => r.skeleton?.getWidget("Toolbar")?.widgetRef.mode ?? "pc"), b = S(() => r.project.value?.config || {}), { designer: c, hover: _, dropping: w, selected: x } = zs(
3374
+ const t = k(), l = k(), { width: a, height: o } = Ue(t), { dependencies: s, engine: r, apis: u, meta: g } = In(), { current: p, isEmpty: m } = ie(), f = S(() => r.skeleton?.getWidget("Toolbar")?.widgetRef.mode ?? "pc"), b = S(() => r.project.value?.config || {}), { designer: c, hover: _, dropping: w, selected: x } = zs(
3375
3375
  l,
3376
3376
  s,
3377
3377
  u,
3378
3378
  g,
3379
3379
  b
3380
3380
  ), C = ($) => {
3381
- const D = $.type, R = $.model;
3381
+ const I = $.type, R = $.model;
3382
3382
  if (p.value)
3383
- switch (D) {
3383
+ switch (I) {
3384
3384
  case "remove":
3385
3385
  p.value.removeNode(R), c.value?.setSelected(null);
3386
3386
  break;
@@ -3401,10 +3401,10 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
3401
3401
  c.value?.setSelected(R);
3402
3402
  break;
3403
3403
  }
3404
- }, I = ($) => {
3404
+ }, D = ($) => {
3405
3405
  if ($ && c.value) {
3406
- const D = r.assets.componentMap.get($.name);
3407
- D && c.value.setDragging(D), c.value.setDraggingNode($);
3406
+ const I = r.assets.componentMap.get($.name);
3407
+ I && c.value.setDragging(I), c.value.setDraggingNode($);
3408
3408
  }
3409
3409
  }, O = () => {
3410
3410
  c.value && (c.value.setDraggingNode(null), c.value.setDragging(null));
@@ -3412,7 +3412,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
3412
3412
  return e({
3413
3413
  designer: c,
3414
3414
  mode: f
3415
- }), ($, D) => (d(), A("div", {
3415
+ }), ($, I) => (d(), A("div", {
3416
3416
  ref_key: "container",
3417
3417
  ref: t,
3418
3418
  class: "v-designer"
@@ -3455,7 +3455,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
3455
3455
  model: n(x).model,
3456
3456
  path: n(x).path,
3457
3457
  onAction: C,
3458
- onDragstart: I,
3458
+ onDragstart: D,
3459
3459
  onDragend: O
3460
3460
  }, null, 8, ["position", "model", "path"])
3461
3461
  ], 4)) : j("", !0)
@@ -3975,7 +3975,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
3975
3975
  }, null, 8, ["current", "context", "node", "items", "onChange"])) : j("", !0),
3976
3976
  v(n(Ve), {
3977
3977
  modelValue: f.value,
3978
- "onUpdate:modelValue": C[0] || (C[0] = (I) => f.value = I),
3978
+ "onUpdate:modelValue": C[0] || (C[0] = (D) => f.value = D),
3979
3979
  title: "新增自定义属性",
3980
3980
  width: "400px",
3981
3981
  height: "150px",
@@ -4064,7 +4064,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
4064
4064
  type: "JSFunction",
4065
4065
  value: e.event?.handler?.value || "() => {}"
4066
4066
  }
4067
- }), o = Is.map((r) => ({
4067
+ }), o = Ds.map((r) => ({
4068
4068
  label: r,
4069
4069
  value: r
4070
4070
  })), s = (r) => {
@@ -4692,18 +4692,18 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
4692
4692
  u.value = F, r.value = !0;
4693
4693
  }, C = () => {
4694
4694
  p.value = void 0, g.value = !0;
4695
- }, I = (F) => {
4695
+ }, D = (F) => {
4696
4696
  p.value = { ...F }, g.value = !0;
4697
4697
  }, O = (F) => {
4698
4698
  const { name: L, modelValue: W } = F;
4699
- L === "edit" && I(W), L === "remove" && e.value?.removeEmit(W.name);
4699
+ L === "edit" && D(W), L === "remove" && e.value?.removeEmit(W.name);
4700
4700
  }, $ = () => {
4701
4701
  f.value = void 0, m.value = !0;
4702
- }, D = (F) => {
4702
+ }, I = (F) => {
4703
4703
  f.value = { ...F }, m.value = !0;
4704
4704
  }, R = (F) => {
4705
4705
  const { name: L, modelValue: W } = F;
4706
- L === "edit" && D(W), L === "remove" && e.value?.removeSlot(W.name);
4706
+ L === "edit" && I(W), L === "remove" && e.value?.removeSlot(W.name);
4707
4707
  }, P = () => {
4708
4708
  c.value = void 0, b.value = !0;
4709
4709
  }, X = (F) => {
@@ -4765,7 +4765,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
4765
4765
  title: W.name,
4766
4766
  border: "",
4767
4767
  actions: ["remove"],
4768
- onClick: ($e) => I(W),
4768
+ onClick: ($e) => D(W),
4769
4769
  onAction: O
4770
4770
  }, null, 8, ["model-value", "title", "onClick"]))), 256)),
4771
4771
  a.value.length ? j("", !0) : (d(), y(n(se), {
@@ -4797,7 +4797,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
4797
4797
  title: W.name,
4798
4798
  border: "",
4799
4799
  actions: ["remove"],
4800
- onClick: ($e) => D(W),
4800
+ onClick: ($e) => I(W),
4801
4801
  onAction: R
4802
4802
  }, null, 8, ["model-value", "title", "onClick"]))), 256)),
4803
4803
  o.value.length ? j("", !0) : (d(), y(n(se), {
@@ -4917,10 +4917,10 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
4917
4917
  x && (s.value.name = x.code, s.value.label = x.title || "");
4918
4918
  }
4919
4919
  }, c = async (w) => {
4920
- const { transform: x, test: C, name: I } = w;
4920
+ const { transform: x, test: C, name: D } = w;
4921
4921
  if (!e.current) return !1;
4922
- if (!e.item && e.current.dataSources[I])
4923
- return ne(`名称【${I}】已经存在,请更换名称`), !1;
4922
+ if (!e.item && e.current.dataSources[D])
4923
+ return ne(`名称【${D}】已经存在,请更换名称`), !1;
4924
4924
  if (x?.value) {
4925
4925
  if (!oe(x, e.context, !0))
4926
4926
  return !1;
@@ -4951,11 +4951,11 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
4951
4951
  Ce.warn(`API【${s.value.ref}】不存在`);
4952
4952
  }, C = Me(s.value.test, {
4953
4953
  runApi: x
4954
- }), I = s.value.transform?.value ? Me(s.value.transform, {}, !0) : (O) => O;
4954
+ }), D = s.value.transform?.value ? Me(s.value.transform, {}, !0) : (O) => O;
4955
4955
  r.value = !0;
4956
4956
  try {
4957
4957
  const O = await C();
4958
- u.value = JSON.stringify(await I(O), null, 2);
4958
+ u.value = JSON.stringify(await D(O), null, 2);
4959
4959
  } catch (O) {
4960
4960
  Ce.error(O);
4961
4961
  }
@@ -5266,7 +5266,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
5266
5266
  {
5267
5267
  label: "stretch",
5268
5268
  value: "stretch",
5269
- svg: Da
5269
+ svg: Ia
5270
5270
  }
5271
5271
  ], u = (g, p) => {
5272
5272
  t.value = p === "flex", e.setStyle("display", p), t.value || (e.setStyle("flex-direction", void 0), e.setStyle("justify-content", void 0), e.setStyle("align-items", void 0), e.setStyle("flex-wrap", void 0));
@@ -5490,7 +5490,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
5490
5490
  ])
5491
5491
  ]));
5492
5492
  }
5493
- }), Pr = { class: "spacing-wrap" }, Dr = { class: "spacing-max-icon" }, Ir = ["width", "height"], Br = ["d"], Rr = ["d"], $r = ["d"], Tr = ["d"], zr = { id: "margin-outer" }, Or = ["width", "height"], Fr = ["width", "height"], Nr = { id: "margin-inner" }, Wr = ["width", "height"], Jr = ["width", "height"], Mr = ["width", "height"], Lr = ["d"], Ur = ["d"], qr = ["d"], Hr = ["d"], Gr = { id: "padding-outer" }, Xr = ["width", "height"], Qr = ["width", "height"], Kr = { id: "padding-inner" }, Yr = ["width", "height"], Zr = ["width", "height"], ei = {
5493
+ }), Pr = { class: "spacing-wrap" }, Ir = { class: "spacing-max-icon" }, Dr = ["width", "height"], Br = ["d"], Rr = ["d"], $r = ["d"], Tr = ["d"], zr = { id: "margin-outer" }, Or = ["width", "height"], Fr = ["width", "height"], Nr = { id: "margin-inner" }, Wr = ["width", "height"], Jr = ["width", "height"], Mr = ["width", "height"], Lr = ["d"], Ur = ["d"], qr = ["d"], Hr = ["d"], Gr = { id: "padding-outer" }, Xr = ["width", "height"], Qr = ["width", "height"], Kr = { id: "padding-inner" }, Yr = ["width", "height"], Zr = ["width", "height"], ei = {
5494
5494
  xmlns: "http://www.w3.org/2000/svg",
5495
5495
  width: "100%",
5496
5496
  height: "100%",
@@ -5546,7 +5546,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
5546
5546
  ref: t
5547
5547
  }, [
5548
5548
  V("div", Pr, [
5549
- V("div", Dr, [
5549
+ V("div", Ir, [
5550
5550
  n(a) && n(o) ? (d(), A("svg", {
5551
5551
  key: 0,
5552
5552
  xmlns: "http://www.w3.org/2000/svg",
@@ -5674,7 +5674,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
5674
5674
  ry: "2",
5675
5675
  style: { "pointer-events": "none", "stroke-width": "2px" }
5676
5676
  }, null, 8, Jr)
5677
- ], 8, Ir)) : j("", !0),
5677
+ ], 8, Dr)) : j("", !0),
5678
5678
  V("div", {
5679
5679
  class: H(["spacing-edit margin-top", { "is-setting": e.styleJson["margin-top"] }]),
5680
5680
  onClick: c[4] || (c[4] = (_) => f("margin-top"))
@@ -5965,7 +5965,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
5965
5965
  { label: "固定", value: "fixed" },
5966
5966
  { label: "粘性", value: "sticky" }
5967
5967
  ], g = [
5968
- { label: "左上", svg: Ia, value: "0% auto auto 0%" },
5968
+ { label: "左上", svg: Da, value: "0% auto auto 0%" },
5969
5969
  { label: "右上", svg: Ba, value: "0% 0% auto auto" },
5970
5970
  { label: "左下", svg: Ra, value: "auto auto 0% 0%" },
5971
5971
  { label: "右下", svg: $a, value: "auto 0% 0% auto" },
@@ -6805,7 +6805,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
6805
6805
  _: 1
6806
6806
  }, 8, ["title"]));
6807
6807
  }
6808
- }), Di = /* @__PURE__ */ E({
6808
+ }), Ii = /* @__PURE__ */ E({
6809
6809
  name: "SchemaWidget",
6810
6810
  __name: "index",
6811
6811
  setup(i) {
@@ -6844,7 +6844,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
6844
6844
  _: 1
6845
6845
  }, 8, ["title", "subtitle"]));
6846
6846
  }
6847
- }), Ii = ["src"], Bi = /* @__PURE__ */ E({
6847
+ }), Di = ["src"], Bi = /* @__PURE__ */ E({
6848
6848
  name: "DocsWidget",
6849
6849
  __name: "index",
6850
6850
  props: {
@@ -6879,7 +6879,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
6879
6879
  ref: "frame",
6880
6880
  src: t.url,
6881
6881
  onLoad: r
6882
- }, null, 40, Ii))
6882
+ }, null, 40, Di))
6883
6883
  ]),
6884
6884
  _: 1
6885
6885
  }, 512));
@@ -6969,7 +6969,7 @@ const Bo = { class: "v-context-viewer" }, Ro = /* @__PURE__ */ E({
6969
6969
  Previewer: ji,
6970
6970
  NodePath: Ei,
6971
6971
  Schema: Pi,
6972
- Raw: Di,
6972
+ Raw: Ii,
6973
6973
  Docs: Bi,
6974
6974
  About: Fi,
6975
6975
  ProjectConfig: Ni
@@ -8474,7 +8474,7 @@ class vu {
8474
8474
  Ce.warn(`widget '${e}' is not found`);
8475
8475
  return;
8476
8476
  }
8477
- Dt(l, t), t.component && (l.component = t.component);
8477
+ It(l, t), t.component && (l.component = t.component);
8478
8478
  }
8479
8479
  /**
8480
8480
  * 根据区域名称获取区域内的器件配置
@@ -8586,7 +8586,7 @@ class hu {
8586
8586
  Ce.warn(`setter '${e}' is not found`);
8587
8587
  return;
8588
8588
  }
8589
- Dt(l, t), t.component && (l.component = t.component);
8589
+ It(l, t), t.component && (l.component = t.component);
8590
8590
  }
8591
8591
  getByType(e) {
8592
8592
  return Object.values(this.setters).filter((l) => l.type === e).map((l) => l.name);
@@ -8674,7 +8674,9 @@ class yu {
8674
8674
  }
8675
8675
  async getDropSlot(e) {
8676
8676
  if (!e) return;
8677
- const { engine: t, dropping: l } = this, a = l.value ? this.getVueInstance(l.value, e.id) : null, o = a?.$vtjDynamicSlots ? a.$vtjDynamicSlots() : [], s = t.assets, r = s.componentMap, p = ((await s.getBlockMaterial(e.from) || r.get(e.name))?.slots || ["default"]).concat(o).map((f) => typeof f == "string" ? {
8677
+ const { engine: t, dropping: l } = this, a = l.value ? this.getVueInstance(l.value, e.id) : null, o = a?.$vtjDynamicSlots ? a.$vtjDynamicSlots() : [], s = t.assets, r = s.componentMap, u = await s.getBlockMaterial(e.from) || r.get(e.name);
8678
+ if (!u?.slots && o.length === 0) return;
8679
+ const p = (u?.slots || ["default"]).concat(o).map((f) => typeof f == "string" ? {
8678
8680
  name: f,
8679
8681
  params: []
8680
8682
  } : {
@@ -9051,23 +9053,23 @@ class wu extends bn {
9051
9053
  this.renderer = new _u(f, r, g, this.designer.value), u.value && this.renderer.render(u.value), this.triggerReady();
9052
9054
  }
9053
9055
  createEnv(e = [], t = {}, l = [], a = {}) {
9054
- const o = this.contentWindow, { engine: s } = this, { project: r, assets: u, provider: g } = s, p = e.reduce((C, I) => (C[I] = o[I], C), {}), m = {};
9055
- Object.entries(a).forEach(([C, I]) => {
9056
- m[C] = o[I];
9056
+ const o = this.contentWindow, { engine: s } = this, { project: r, assets: u, provider: g } = s, p = e.reduce((C, D) => (C[D] = o[D], C), {}), m = {};
9057
+ Object.entries(a).forEach(([C, D]) => {
9058
+ m[C] = o[D];
9057
9059
  });
9058
9060
  const f = {}, { groups: b, componentMap: c } = u;
9059
9061
  for (const C of b.value) {
9060
- const I = C.names || [];
9062
+ const D = C.names || [];
9061
9063
  if (C.name === yt)
9062
- I.forEach((O) => {
9063
- const $ = c.get(O), D = $?.package || "", R = Cl[D], P = p[R];
9064
+ D.forEach((O) => {
9065
+ const $ = c.get(O), I = $?.package || "", R = Cl[I], P = p[R];
9064
9066
  P && $ && (f[O] = Lt($, P));
9065
9067
  });
9066
9068
  else {
9067
9069
  const O = p[t[C.library || ""]];
9068
- O && I.forEach(($) => {
9069
- const D = c.get($);
9070
- D ? f[$] = Lt(D, O) : f[$] = O[$];
9070
+ O && D.forEach(($) => {
9071
+ const I = c.get($);
9072
+ I ? f[$] = Lt(I, O) : f[$] = O[$];
9071
9073
  });
9072
9074
  }
9073
9075
  }
@@ -9244,7 +9246,7 @@ class oc extends bn {
9244
9246
  Ce.warn("VTJEngine constructor param [ container ] is undefined");
9245
9247
  }
9246
9248
  bindEvents() {
9247
- te.on(Al, (e) => this.saveProject(e)), te.on(jl, (e) => this.saveBlockFile(e)), te.on(El, (e) => this.saveBlockFile(e)), te.on(Pl, () => this.saveMaterials()), te.on(_t, (e) => this.activeFile(e)), te.on(Dl, () => this.publish()), te.on(Il, () => this.publishCurrent()), te.on(wt, (e) => this.changeFile(e)), te.on(Je, () => this.changeCurrentFile()), te.on(Bl, (e) => this.saveHistory(e)), te.on(Rl, (e) => this.loadHistory(e));
9249
+ te.on(Al, (e) => this.saveProject(e)), te.on(jl, (e) => this.saveBlockFile(e)), te.on(El, (e) => this.saveBlockFile(e)), te.on(Pl, () => this.saveMaterials()), te.on(_t, (e) => this.activeFile(e)), te.on(Il, () => this.publish()), te.on(Dl, () => this.publishCurrent()), te.on(wt, (e) => this.changeFile(e)), te.on(Je, () => this.changeCurrentFile()), te.on(Bl, (e) => this.saveHistory(e)), te.on(Rl, (e) => this.loadHistory(e));
9248
9250
  }
9249
9251
  async activeFile(e) {
9250
9252
  await we();
@@ -9395,7 +9397,7 @@ const je = E({
9395
9397
  const i = Kt[this.region] || Kt.EmptyRegion;
9396
9398
  return Te(i, { ...this.$props, ...this.$attrs, ref: "regionRef" });
9397
9399
  }
9398
- }), De = E({
9400
+ }), Ie = E({
9399
9401
  name: "WidgetWrapper",
9400
9402
  props: {
9401
9403
  region: {
@@ -9584,7 +9586,7 @@ const je = E({
9584
9586
  removable: m,
9585
9587
  onRemove: f
9586
9588
  } = this;
9587
- return Te(Du, {
9589
+ return Te(Iu, {
9588
9590
  context: i,
9589
9591
  current: e,
9590
9592
  name: t,
@@ -9626,21 +9628,21 @@ const je = E({
9626
9628
  dirs: ["e"],
9627
9629
  maxWidth: 600,
9628
9630
  minWidth: 49,
9629
- onResizing(C, I) {
9630
- a.value = I.elementWidth.value;
9631
+ onResizing(C, D) {
9632
+ a.value = D.elementWidth.value;
9631
9633
  },
9632
- onEnd(C, I) {
9633
- a.value = I.elementWidth.value;
9634
+ onEnd(C, D) {
9635
+ a.value = D.elementWidth.value;
9634
9636
  }
9635
9637
  }, r = {
9636
9638
  dirs: ["w"],
9637
9639
  maxWidth: 600,
9638
9640
  minWidth: 2,
9639
- onResizing(C, I) {
9640
- o.value = I.elementWidth.value;
9641
+ onResizing(C, D) {
9642
+ o.value = D.elementWidth.value;
9641
9643
  },
9642
- onEnd(C, I) {
9643
- o.value = I.elementWidth.value;
9644
+ onEnd(C, D) {
9645
+ o.value = D.elementWidth.value;
9644
9646
  }
9645
9647
  }, u = k(), g = k(), p = k(), m = k(), f = k(), b = k(), c = k(), _ = k(), w = k(!1), x = k(!1);
9646
9648
  return e({
@@ -9657,7 +9659,7 @@ const je = E({
9657
9659
  rightWidth: o,
9658
9660
  preview: _,
9659
9661
  isPreview: l
9660
- }), (C, I) => (d(), y(n(cl), { locale: n(vl) }, {
9662
+ }), (C, D) => (d(), y(n(cl), { locale: n(vl) }, {
9661
9663
  default: h(() => [
9662
9664
  v(n(Ot), { class: "v-skeleton" }, {
9663
9665
  default: h(() => [
@@ -9719,7 +9721,7 @@ const je = E({
9719
9721
  ref: f,
9720
9722
  region: "Workspace"
9721
9723
  }, null, 512), [
9722
- [Ie, !l.value]
9724
+ [De, !l.value]
9723
9725
  ])
9724
9726
  ]),
9725
9727
  _: 1
@@ -9738,7 +9740,7 @@ const je = E({
9738
9740
  ]),
9739
9741
  _: 1
9740
9742
  }, 8, ["width"])), [
9741
- [Ie, x.value],
9743
+ [De, x.value],
9742
9744
  [n(Nt), r]
9743
9745
  ])
9744
9746
  ]),
@@ -9768,7 +9770,7 @@ const je = E({
9768
9770
  }), Cu = ["title"], Vu = { class: "v-setter__content" }, Au = {
9769
9771
  key: 0,
9770
9772
  class: "v-setter__input"
9771
- }, ju = { class: "v-setter__action" }, Eu = "{{", Pu = "}}", Du = /* @__PURE__ */ E({
9773
+ }, ju = { class: "v-setter__action" }, Eu = "{{", Pu = "}}", Iu = /* @__PURE__ */ E({
9772
9774
  __name: "setter",
9773
9775
  props: {
9774
9776
  context: {},
@@ -9846,7 +9848,7 @@ const je = E({
9846
9848
  }, s.value.props, {
9847
9849
  options: t.options,
9848
9850
  modelValue: r.value,
9849
- "onUpdate:modelValue": C[0] || (C[0] = (I) => r.value = I),
9851
+ "onUpdate:modelValue": C[0] || (C[0] = (D) => r.value = D),
9850
9852
  onChange: m,
9851
9853
  disabled: u.value
9852
9854
  }), null, 16, ["current", "context", "options", "modelValue", "disabled"])),
@@ -9882,17 +9884,17 @@ const je = E({
9882
9884
  dropdown: h(() => [
9883
9885
  v(n(rn), null, {
9884
9886
  default: h(() => [
9885
- (d(!0), A(T, null, N(t.setters, (I) => (d(), y(n(ft), {
9886
- command: I,
9887
- key: I.name
9887
+ (d(!0), A(T, null, N(t.setters, (D) => (d(), y(n(ft), {
9888
+ command: D,
9889
+ key: D.name
9888
9890
  }, {
9889
9891
  default: h(() => [
9890
9892
  v(n(Sn), {
9891
9893
  class: H({
9892
- "is-placeholder": I.name !== s.value.name
9894
+ "is-placeholder": D.name !== s.value.name
9893
9895
  })
9894
9896
  }, null, 8, ["class"]),
9895
- G(" " + z(I.label), 1)
9897
+ G(" " + z(D.label), 1)
9896
9898
  ]),
9897
9899
  _: 2
9898
9900
  }, 1032, ["command"]))), 128))
@@ -9918,7 +9920,7 @@ const je = E({
9918
9920
  context: t.context,
9919
9921
  value: o.value,
9920
9922
  modelValue: a.value,
9921
- "onUpdate:modelValue": C[1] || (C[1] = (I) => a.value = I),
9923
+ "onUpdate:modelValue": C[1] || (C[1] = (D) => a.value = D),
9922
9924
  submitMethod: _,
9923
9925
  onUnbind: w
9924
9926
  }, null, 8, ["current", "context", "value", "modelValue"])) : j("", !0)
@@ -9926,14 +9928,14 @@ const je = E({
9926
9928
  _: 1
9927
9929
  }));
9928
9930
  }
9929
- }), Iu = { class: "v-empty-region" }, Bu = /* @__PURE__ */ E({
9931
+ }), Du = { class: "v-empty-region" }, Bu = /* @__PURE__ */ E({
9930
9932
  name: "EmptyRegion",
9931
9933
  __name: "empty",
9932
9934
  props: {
9933
9935
  region: {}
9934
9936
  },
9935
9937
  setup(i) {
9936
- return (e, t) => (d(), A("div", Iu, "找不到符合【" + z(e.region) + "】名称的区域组件", 1));
9938
+ return (e, t) => (d(), A("div", Du, "找不到符合【" + z(e.region) + "】名称的区域组件", 1));
9937
9939
  }
9938
9940
  }), Ru = { class: "v-brand-region" }, $u = /* @__PURE__ */ E({
9939
9941
  name: "BrandRegion",
@@ -9948,7 +9950,7 @@ const je = E({
9948
9950
  widgets: l,
9949
9951
  widgetsRef: a
9950
9952
  }), (o, s) => (d(), A("div", Ru, [
9951
- (d(!0), A(T, null, N(n(l), (r) => (d(), y(n(De), {
9953
+ (d(!0), A(T, null, N(n(l), (r) => (d(), y(n(Ie), {
9952
9954
  ref_for: !0,
9953
9955
  ref_key: "widgetsRef",
9954
9956
  ref: a,
@@ -9970,7 +9972,7 @@ const je = E({
9970
9972
  widgets: l,
9971
9973
  widgetsRef: a
9972
9974
  }), (o, s) => (d(), A("div", Tu, [
9973
- (d(!0), A(T, null, N(n(l), (r) => (d(), y(n(De), {
9975
+ (d(!0), A(T, null, N(n(l), (r) => (d(), y(n(Ie), {
9974
9976
  ref_for: !0,
9975
9977
  ref_key: "widgetsRef",
9976
9978
  ref: a,
@@ -9993,7 +9995,7 @@ const je = E({
9993
9995
  widgets: l,
9994
9996
  widgetsRef: a
9995
9997
  }), (o, s) => (d(), A("div", Ou, [
9996
- (d(!0), A(T, null, N(n(l), (r) => (d(), y(n(De), {
9998
+ (d(!0), A(T, null, N(n(l), (r) => (d(), y(n(Ie), {
9997
9999
  ref_for: !0,
9998
10000
  ref_key: "widgetsRef",
9999
10001
  ref: a,
@@ -10055,7 +10057,7 @@ const je = E({
10055
10057
  (d(!0), A(T, null, N(s.value, (w) => (d(), y(an, {
10056
10058
  key: w.name
10057
10059
  }, [
10058
- g.value?.name === w.name ? (d(), y(n(De), {
10060
+ g.value?.name === w.name ? (d(), y(n(Ie), {
10059
10061
  key: 0,
10060
10062
  ref_for: !0,
10061
10063
  ref_key: "widgetsRef",
@@ -10127,7 +10129,7 @@ const je = E({
10127
10129
  (d(!0), A(T, null, N(n(l), (w) => (d(), A(T, {
10128
10130
  key: w.name
10129
10131
  }, [
10130
- u.value === w.name ? (d(), y(n(De), {
10132
+ u.value === w.name ? (d(), y(n(Ie), {
10131
10133
  key: 0,
10132
10134
  ref_for: !0,
10133
10135
  ref_key: "widgetsRef",
@@ -10244,13 +10246,13 @@ const je = E({
10244
10246
  (d(!0), A(T, null, N(n(u), (C) => (d(), A(T, {
10245
10247
  key: C.name
10246
10248
  }, [
10247
- p.value === C.name ? (d(), y(n(De), {
10249
+ p.value === C.name ? (d(), y(n(Ie), {
10248
10250
  key: 0,
10249
10251
  ref_for: !0,
10250
10252
  ref_key: "widgetsRef",
10251
10253
  ref: g,
10252
10254
  region: w.region,
10253
- widget: n(Dt)({ props: { isStyleCodeMode: m.value } }, C)
10255
+ widget: n(It)({ props: { isStyleCodeMode: m.value } }, C)
10254
10256
  }, null, 8, ["region", "widget"])) : j("", !0)
10255
10257
  ], 64))), 128))
10256
10258
  ]),
@@ -10285,7 +10287,7 @@ const je = E({
10285
10287
  widgets: l,
10286
10288
  widgetsRef: a
10287
10289
  }), (o, s) => (d(), A("div", Gu, [
10288
- (d(!0), A(T, null, N(n(l), (r) => (d(), y(n(De), {
10290
+ (d(!0), A(T, null, N(n(l), (r) => (d(), y(n(Ie), {
10289
10291
  ref_for: !0,
10290
10292
  ref_key: "widgetsRef",
10291
10293
  ref: a,
@@ -10324,7 +10326,7 @@ const je = E({
10324
10326
  (d(!0), A(T, null, N(n(l), (p) => (d(), y(an, {
10325
10327
  key: p.name
10326
10328
  }, [
10327
- r.value === p.name ? (d(), y(n(De), {
10329
+ r.value === p.name ? (d(), y(n(Ie), {
10328
10330
  key: 0,
10329
10331
  ref_for: !0,
10330
10332
  ref_key: "widgetsRef",
@@ -10349,12 +10351,12 @@ const je = E({
10349
10351
  Preview: Qu
10350
10352
  };
10351
10353
  export {
10352
- Ds as API_METHOD_TYPES,
10354
+ Is as API_METHOD_TYPES,
10353
10355
  ku as Assets,
10354
10356
  Tt as Binder,
10355
10357
  St as Box,
10356
10358
  yu as Designer,
10357
- Is as EVENT_MODIFIERS,
10359
+ Ds as EVENT_MODIFIERS,
10358
10360
  le as Editor,
10359
10361
  oc as Engine,
10360
10362
  mr as EventBinder,
@@ -10369,7 +10371,7 @@ export {
10369
10371
  Bs as RegionType,
10370
10372
  je as RegionWrapper,
10371
10373
  _u as Renderer,
10372
- Du as SetterView,
10374
+ Iu as SetterView,
10373
10375
  J as SetterWrapper,
10374
10376
  wu as Simulator,
10375
10377
  xu as Skeleton,
@@ -10381,7 +10383,7 @@ export {
10381
10383
  Ro as Viewer,
10382
10384
  Tn as Viewport,
10383
10385
  fe as WidgetGroup,
10384
- De as WidgetWrapper,
10386
+ Ie as WidgetWrapper,
10385
10387
  Ji as builtInDeps,
10386
10388
  qi as builtInMaterials,
10387
10389
  mu as builtInSetters,
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@vtj/designer",
3
3
  "private": false,
4
- "version": "0.8.98",
4
+ "version": "0.8.99",
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.98",
10
- "@vtj/renderer": "~0.8.98",
11
- "@vtj/icons": "~0.8.98",
12
- "@vtj/utils": "~0.8.98",
13
- "@vtj/ui": "~0.8.98"
9
+ "@vtj/core": "~0.8.99",
10
+ "@vtj/renderer": "~0.8.99",
11
+ "@vtj/utils": "~0.8.99",
12
+ "@vtj/ui": "~0.8.99",
13
+ "@vtj/icons": "~0.8.99"
14
14
  },
15
15
  "devDependencies": {
16
16
  "@types/mockjs": "~1.0.10",
@@ -2,7 +2,7 @@
2
2
  * Copyright (c) 2024, VTJ.PRO All rights reserved.
3
3
  * @name @vtj/designer
4
4
  * @author CHC chenhuachun1549@dingtalk.com
5
- * @version 0.8.97
5
+ * @version 0.8.98
6
6
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
7
7
  */
8
- export declare const version = "0.8.97";
8
+ export declare const version = "0.8.98";