@vtj/designer 0.8.146 → 0.8.148

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,23 +1,23 @@
1
- var Hn = Object.defineProperty;
2
- var qn = (u, e, t) => e in u ? Hn(u, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : u[e] = t;
3
- var $ = (u, e, t) => qn(u, typeof e != "symbol" ? e + "" : e, t);
1
+ var qn = Object.defineProperty;
2
+ var Hn = (u, e, t) => e in u ? qn(u, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : u[e] = t;
3
+ var $ = (u, e, t) => Hn(u, typeof e != "symbol" ? e + "" : e, t);
4
4
  import { computed as S, unref as n, ref as k, reactive as Ke, watchEffect as Gn, watch as J, toValue as vt, defineComponent as E, openBlock as p, createElementBlock as j, toDisplayString as F, createVNode as v, withCtx as b, createElementVNode as V, createBlock as y, createCommentVNode as A, createTextVNode as K, readonly as Xn, getCurrentScope as Kn, onScopeDispose as Qn, onMounted as st, nextTick as ke, getCurrentInstance as nn, shallowRef as Ue, toRaw as ln, Fragment as O, renderList as W, normalizeClass as X, resolveDynamicComponent as sn, createSlots as Yn, withDirectives as De, vShow as Te, renderSlot as Ce, withModifiers as Je, isRef as gt, mergeProps as ie, normalizeStyle as et, defineAsyncComponent as Zn, h as Oe, inject as Ct, provide as el, normalizeProps as an, guardReactiveProps as on, withKeys as tt, onUnmounted as rn, markRaw as ft, createApp as un, shallowReactive as tl, triggerRef as je, KeepAlive as cn } from "vue";
5
5
  import { ElNotification as Vt, ElMessageBox as At, ElMessage as Qe, ElButton as ae, ElDivider as jt, ElRadioGroup as dn, ElRadioButton as nt, ElButtonGroup as nl, ElDropdown as pn, ElDropdownMenu as mn, ElDropdownItem as ht, ElInput as _e, ElEmpty as oe, ElAlert as Et, ElTooltip as vn, ElTag as ll, ElSwitch as gn, ElTree as Dt, ElRow as bt, ElCol as yt, ElCollapse as sl, ElCollapseItem as al, ElDrawer as fn, ElForm as fe, ElFormItem as hn, ElBreadcrumb as ol, ElBreadcrumbItem as rl, ElLoading as il, ElSelect as ul, ElOption as cl, ElInputNumber as dl, ElColorPicker as pl, ElUpload as ml, ElSlider as vl, ElConfigProvider as gl, ElContainer as Wt, ElHeader as fl, ElAside as Nt, ElMain as hl, ElFooter as bl } from "element-plus";
6
6
  import yl from "element-plus/es/locale/lang/zh-cn";
7
7
  import { XIcon as Se, XDialog as Be, XDialogForm as Ae, XField as T, XPanel as at, XAction as be, XTabs as Pt, XContainer as U, XForm as It, XAttachment as _l, XActionBar as wl, XInputUnit as bn, vResizable as Jt, createDialog as kl } from "@vtj/ui";
8
8
  import { delay as Tt, upperFirstCamelCase as yn, toRawType as dt, cloneDeep as ot, logger as Ve, isPlainObject as Sl, fileToBase64 as xl, merge as Bt, debounce as Cl, arrayToMap as Vl, toArray as Al } from "@vtj/utils";
9
- import { isBlock as te, DirectiveModel as _n, createNodeFrom as jl, BUILT_IN_VUE as El, BUILT_IN_VUE_ROUTER as Dl, BUILT_IN_NAME as _t, emitter as ne, EVENT_PROJECT_ACTIVED as wt, EVENT_NODE_CHANGE as He, NodeModel as Mt, EVENT_BLOCK_CHANGE as kt, Base as wn, BUILT_IN_LIBRARAY_MAP as Pl, ProjectModel as Il, EVENT_PROJECT_CHANGE as Tl, EVENT_PROJECT_BLOCKS_CHANGE as Bl, EVENT_PROJECT_PAGES_CHANGE as Rl, EVENT_PROJECT_DEPS_CHANGE as $l, EVENT_PROJECT_PUBLISH as Ol, EVENT_PROJECT_FILE_PUBLISH as zl, EVENT_HISTORY_CHANGE as Fl, EVENT_HISTORY_LOAD as Ll, BlockModel as Ut, HistoryModel as Wl } from "@vtj/core";
10
- import { parseExpression as qe, parseFunction as Nl, JSCodeToString as ze, LIFE_CYCLES_LIST as Jl, DATA_TYPES as Ml, isJSExpression as Ge, ContextMode as kn, parseDeps as Ul, createAssetsCss as Hl, createAssetScripts as Ht, getRawComponent as qt, createSchemaApis as ql, mockCleanup as Gl, mockApis as Xl, Provider as Kl, isJSFunction as Ql } from "@vtj/renderer";
11
- import { VtjIconBack as Yl, VtjIconPc as Zl, VtjIconPhone as es, VtjIconPad as ts, VtjIconUndo as ns, VtjIconRedo as ls, VtjIconPreview as ss, VtjIconRefresh as as, VtjIconSetting as Sn, icons as St, ArrowDown as xn, Search as Rt, CopyDocument as os, Back as rs, VtjIconPlus as Cn, EditPen as is, Delete as us, VtjIconSave as cs, ArrowUp as ds, MoreFilled as $t, VtjIconCheck as Vn, VtjIconCopy as An, VtjIconEdit as jn, VtjIconRemove as rt, VtjIconLock as En, VtjIconUnlock as ps, VtjIconInvisible as Dn, VtjIconVisible as ms, VtjIconHome as vs, Files as gs, VtjIconSearch as fs, VtjIconHelp as Pn, VtjIconLayers as In, Rank as hs, VtjIconArrowUp as bs, VtjIconArrowDown as ys, IconDisplayBlock as _s, IconDisplayFlex as ws, IconDisplayInlineBlock as ks, IconDisplayInline as Ss, IconEyeInvisible as xs, IconFlexDirectionrow as Cs, IconFlexDirectionrowReverse as Vs, IconFlexDirectioncolumn as As, IconFlexDirectioncolumnReverse as js, IconFlexJustifyflexStartrow as Es, IconFlexJustifyflexEndrow as Ds, IconFlexJustifycenterrow as Ps, IconFlexJustifyspaceBetweenrow as Is, IconFlexJustifyspaceAroundrow as Ts, IconFlexAlignflexStartrow as Bs, IconFlexAlignflexEndrow as Rs, IconFlexAligncenterrow as $s, IconFlexAlignbaselinerow as Os, IconFlexAlignstretchrow as zs, IconPositionTopLeft as Fs, IconPositionTopRight as Ls, IconPositionBottomLeft as Ws, IconPositionBottomRight as Ns, IconPositionLeft as Js, IconPositionRight as Ms, IconPositionTop as Us, IconPositionBottom as Hs, IconPositionAll as qs, IconTextAlignLeft as Gs, IconTextAlignCenter as Xs, IconTextAlignRight as Ks, IconTextAlignJustify as Qs, IconFontStyleNone as Ys, IconFontStyleItalic as Zs, IconCross as Tn, IconTextDecorationUnderline as ea, IconTextDecorationStrike as ta, IconTextDecorationOverline as na, IconTileXy as la, IconTileX as sa, IconTileY as aa, IconClose as oa, IconBorderAll as ra, IconBorderLeft as ia, IconBorderTop as ua, IconBorderBottom as ca, IconBorderRight as da, IconBorderStyleSolid as pa, IconBorderStyleDashed as ma, IconBorderStyleDotted as va, IconCursorAuto as ga, IconCursorPointer as fa, IconCursorNotAllowed as ha, IconCursorNone as ba, ArrowRight as ya, VtjIconDocument as _a, VtjIconComponents as wa, VtjIconBlock as ka, VtjIconOutline as Sa, VtjIconHistory as xa, VtjIconApi as Ca, VtjIconCategory as Va, VtjIconInfo as Aa, HomeFilled as ja, Plus as Ea, Close as Da, VtjIconVars as Pa, VtjIconSwitch as Ia, Switch as Ta } from "@vtj/icons";
9
+ import { isBlock as te, DirectiveModel as _n, createNodeFrom as jl, BUILT_IN_VUE as El, BUILT_IN_VUE_ROUTER as Dl, BUILT_IN_NAME as _t, emitter as ne, EVENT_PROJECT_ACTIVED as wt, EVENT_NODE_CHANGE as qe, NodeModel as Mt, EVENT_BLOCK_CHANGE as kt, Base as wn, BUILT_IN_LIBRARAY_MAP as Pl, ProjectModel as Il, EVENT_PROJECT_CHANGE as Tl, EVENT_PROJECT_BLOCKS_CHANGE as Bl, EVENT_PROJECT_PAGES_CHANGE as Rl, EVENT_PROJECT_DEPS_CHANGE as $l, EVENT_PROJECT_PUBLISH as Ol, EVENT_PROJECT_FILE_PUBLISH as zl, EVENT_HISTORY_CHANGE as Fl, EVENT_HISTORY_LOAD as Ll, BlockModel as Ut, HistoryModel as Wl } from "@vtj/core";
10
+ import { parseExpression as He, parseFunction as Nl, JSCodeToString as ze, LIFE_CYCLES_LIST as Jl, DATA_TYPES as Ml, isJSExpression as Ge, ContextMode as kn, parseDeps as Ul, createAssetsCss as ql, createAssetScripts as qt, getRawComponent as Ht, createSchemaApis as Hl, mockCleanup as Gl, mockApis as Xl, Provider as Kl, isJSFunction as Ql } from "@vtj/renderer";
11
+ import { VtjIconBack as Yl, VtjIconPc as Zl, VtjIconPhone as es, VtjIconPad as ts, VtjIconUndo as ns, VtjIconRedo as ls, VtjIconPreview as ss, VtjIconRefresh as as, VtjIconSetting as Sn, icons as St, ArrowDown as xn, Search as Rt, CopyDocument as os, Back as rs, VtjIconPlus as Cn, EditPen as is, Delete as us, VtjIconSave as cs, ArrowUp as ds, MoreFilled as $t, VtjIconCheck as Vn, VtjIconCopy as An, VtjIconEdit as jn, VtjIconRemove as rt, VtjIconLock as En, VtjIconUnlock as ps, VtjIconInvisible as Dn, VtjIconVisible as ms, VtjIconHome as vs, Files as gs, VtjIconSearch as fs, VtjIconHelp as Pn, VtjIconLayers as In, Rank as hs, VtjIconArrowUp as bs, VtjIconArrowDown as ys, IconDisplayBlock as _s, IconDisplayFlex as ws, IconDisplayInlineBlock as ks, IconDisplayInline as Ss, IconEyeInvisible as xs, IconFlexDirectionrow as Cs, IconFlexDirectionrowReverse as Vs, IconFlexDirectioncolumn as As, IconFlexDirectioncolumnReverse as js, IconFlexJustifyflexStartrow as Es, IconFlexJustifyflexEndrow as Ds, IconFlexJustifycenterrow as Ps, IconFlexJustifyspaceBetweenrow as Is, IconFlexJustifyspaceAroundrow as Ts, IconFlexAlignflexStartrow as Bs, IconFlexAlignflexEndrow as Rs, IconFlexAligncenterrow as $s, IconFlexAlignbaselinerow as Os, IconFlexAlignstretchrow as zs, IconPositionTopLeft as Fs, IconPositionTopRight as Ls, IconPositionBottomLeft as Ws, IconPositionBottomRight as Ns, IconPositionLeft as Js, IconPositionRight as Ms, IconPositionTop as Us, IconPositionBottom as qs, IconPositionAll as Hs, IconTextAlignLeft as Gs, IconTextAlignCenter as Xs, IconTextAlignRight as Ks, IconTextAlignJustify as Qs, IconFontStyleNone as Ys, IconFontStyleItalic as Zs, IconCross as Tn, IconTextDecorationUnderline as ea, IconTextDecorationStrike as ta, IconTextDecorationOverline as na, IconTileXy as la, IconTileX as sa, IconTileY as aa, IconClose as oa, IconBorderAll as ra, IconBorderLeft as ia, IconBorderTop as ua, IconBorderBottom as ca, IconBorderRight as da, IconBorderStyleSolid as pa, IconBorderStyleDashed as ma, IconBorderStyleDotted as va, IconCursorAuto as ga, IconCursorPointer as fa, IconCursorNotAllowed as ha, IconCursorNone as ba, ArrowRight as ya, VtjIconDocument as _a, VtjIconComponents as wa, VtjIconBlock as ka, VtjIconOutline as Sa, VtjIconHistory as xa, VtjIconApi as Ca, VtjIconCategory as Va, VtjIconInfo as Aa, HomeFilled as ja, Plus as Ea, Close as Da, VtjIconVars as Pa, VtjIconSwitch as Ia, Switch as Ta } from "@vtj/icons";
12
12
  import Ba from "mockjs";
13
13
  /**!
14
14
  * Copyright (c) 2024, VTJ.PRO All rights reserved.
15
15
  * @name @vtj/designer
16
16
  * @author CHC chenhuachun1549@dingtalk.com
17
- * @version 0.8.146
17
+ * @version 0.8.148
18
18
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
19
19
  */
20
- const Ra = "0.8.146", Gt = {
20
+ const Ra = "0.8.148", Gt = {
21
21
  width: 390,
22
22
  height: 844
23
23
  }, Xt = {
@@ -134,7 +134,7 @@ function ue() {
134
134
  context: t
135
135
  };
136
136
  }
137
- function Ha(u, e, t, l, s) {
137
+ function qa(u, e, t, l, s) {
138
138
  const a = de();
139
139
  a.simulator.init(u, e, t, l, s);
140
140
  const o = S(() => a.simulator.designer.value), r = S(
@@ -153,7 +153,7 @@ function Ha(u, e, t, l, s) {
153
153
  selected: g
154
154
  };
155
155
  }
156
- function qa(u, e = !0) {
156
+ function Ha(u, e = !0) {
157
157
  const { top: t, height: l, width: s, left: a } = u || {};
158
158
  if (l > 100 && s > 200)
159
159
  return "inner";
@@ -190,7 +190,7 @@ function pt(u, e) {
190
190
  return {
191
191
  ...e,
192
192
  style: o,
193
- position: qa(e.rect, u !== "selected")
193
+ position: Ha(e.rect, u !== "selected")
194
194
  };
195
195
  }
196
196
  function xe() {
@@ -359,7 +359,7 @@ function re(u, e, t = !1) {
359
359
  let l = !0;
360
360
  const s = Qa(e);
361
361
  try {
362
- u.type === "JSExpression" ? qe(u, s, t, !0) : Nl(u, s, t, !0);
362
+ u.type === "JSExpression" ? He(u, s, t, !0) : Nl(u, s, t, !0);
363
363
  } catch (a) {
364
364
  l = !1, Vt.error({
365
365
  title: "代码错误",
@@ -1256,7 +1256,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
1256
1256
  _: 1
1257
1257
  }, 8, ["content"]));
1258
1258
  }
1259
- }), q = /* @__PURE__ */ E({
1259
+ }), H = /* @__PURE__ */ E({
1260
1260
  name: "VPanel",
1261
1261
  __name: "panel",
1262
1262
  props: {
@@ -2091,7 +2091,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
2091
2091
  pages: vt(l)
2092
2092
  });
2093
2093
  };
2094
- return (h, c) => (p(), y(n(q), {
2094
+ return (h, c) => (p(), y(n(H), {
2095
2095
  class: "v-pages-widget",
2096
2096
  title: "页面管理",
2097
2097
  plus: "",
@@ -2234,7 +2234,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
2234
2234
  }, 8, ["modelValue"])) : A("", !0)
2235
2235
  ]));
2236
2236
  }
2237
- }), Ho = /* @__PURE__ */ E({
2237
+ }), qo = /* @__PURE__ */ E({
2238
2238
  name: "BlocksWidget",
2239
2239
  __name: "index",
2240
2240
  setup(u) {
@@ -2309,7 +2309,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
2309
2309
  const P = l.skeleton?.getWidget("Designer")?.widgetRef?.designer;
2310
2310
  P && P.setDragging(null);
2311
2311
  };
2312
- return (P, B) => (p(), y(n(q), {
2312
+ return (P, B) => (p(), y(n(H), {
2313
2313
  class: "v-blocks-widget",
2314
2314
  title: "区块管理",
2315
2315
  subtitle: d.value,
@@ -2404,7 +2404,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
2404
2404
  _: 1
2405
2405
  }, 8, ["subtitle"]));
2406
2406
  }
2407
- }), qo = { class: "v-components-widget__search" }, Go = {
2407
+ }), Ho = { class: "v-components-widget__search" }, Go = {
2408
2408
  key: 0,
2409
2409
  class: "v-components-widget__result"
2410
2410
  }, Xo = { class: "v-components-widget__list" }, Ko = /* @__PURE__ */ E({
@@ -2418,13 +2418,13 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
2418
2418
  const m = t.skeleton?.getWidget("Designer")?.widgetRef?.designer;
2419
2419
  m && m.setDragging(null);
2420
2420
  };
2421
- return (m, f) => (p(), y(n(q), {
2421
+ return (m, f) => (p(), y(n(H), {
2422
2422
  class: "v-components-widget",
2423
2423
  title: "组件库",
2424
2424
  body: { flex: !0, direction: "column" }
2425
2425
  }, {
2426
2426
  default: b(() => [
2427
- V("div", qo, [
2427
+ V("div", Ho, [
2428
2428
  v(n(_e), {
2429
2429
  modelValue: n(r),
2430
2430
  "onUpdate:modelValue": f[0] || (f[0] = (h) => gt(r) ? r.value = h : null),
@@ -2535,18 +2535,18 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
2535
2535
  const D = {};
2536
2536
  if (!P.some((L) => L.slot)) return i(P);
2537
2537
  for (const L of P) {
2538
- const H = L.slot?.name || "default";
2539
- D[H] || (D[H] = []), D[H].push(L);
2538
+ const q = L.slot?.name || "default";
2539
+ D[q] || (D[q] = []), D[q].push(L);
2540
2540
  }
2541
2541
  const me = [];
2542
- for (const [L, H] of Object.entries(D))
2542
+ for (const [L, q] of Object.entries(D))
2543
2543
  me.push({
2544
2544
  id: `${B.id}-${L}`,
2545
2545
  label: `#${L}`,
2546
2546
  type: "slot",
2547
2547
  model: B,
2548
2548
  disabled: !0,
2549
- children: i(H)
2549
+ children: i(q)
2550
2550
  });
2551
2551
  return me;
2552
2552
  }, i = (P) => {
@@ -2587,14 +2587,14 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
2587
2587
  next: "bottom",
2588
2588
  inner: "inner"
2589
2589
  }[D];
2590
- let H = !1;
2590
+ let q = !1;
2591
2591
  if (te(G.model))
2592
- H = D === "inner", t.value?.setDropping(H ? G.model : null, "inner");
2592
+ q = D === "inner", t.value?.setDropping(q ? G.model : null, "inner");
2593
2593
  else {
2594
2594
  const N = G.model;
2595
- H = !!await t.value?.allowDrop(N, L), t.value?.setDropping(H ? N : null, "inner");
2595
+ q = !!await t.value?.allowDrop(N, L), t.value?.setDropping(q ? N : null, "inner");
2596
2596
  }
2597
- return H;
2597
+ return q;
2598
2598
  }, c = (P) => {
2599
2599
  const B = P?.model;
2600
2600
  if (!B || B.invisible || P.type === "slot") {
@@ -2609,10 +2609,10 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
2609
2609
  delete We.slot, s.value?.move(We, void 0, "inner"), t.value?.setDropping(null), t.value?.setDragging(null);
2610
2610
  return;
2611
2611
  }
2612
- const L = me.model, H = { before: "left", after: "right" }[D] || "inner";
2612
+ const L = me.model, q = { before: "left", after: "right" }[D] || "inner";
2613
2613
  if (!await t.value?.allowDrop(
2614
2614
  L,
2615
- H
2615
+ q
2616
2616
  )) {
2617
2617
  t.value?.setDropping(null), d(), Qe.warning({
2618
2618
  message: `${G.model.name}不能放置到该位置`
@@ -2624,7 +2624,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
2624
2624
  );
2625
2625
  if ($e !== null) {
2626
2626
  const We = G.model;
2627
- We.slot = $e, s.value?.move(We, L, H);
2627
+ We.slot = $e, s.value?.move(We, L, q);
2628
2628
  } else
2629
2629
  d();
2630
2630
  t.value?.setDropping(null), t.value?.setDragging(null), e.simulator.refresh();
@@ -2670,7 +2670,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
2670
2670
  break;
2671
2671
  }
2672
2672
  };
2673
- return J(e.changed, d, { immediate: !0 }), (P, B) => (p(), y(n(q), {
2673
+ return J(e.changed, d, { immediate: !0 }), (P, B) => (p(), y(n(H), {
2674
2674
  class: "v-outline-widget",
2675
2675
  title: "大纲树"
2676
2676
  }, {
@@ -2730,7 +2730,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
2730
2730
  }, o = async () => {
2731
2731
  await Fe("确定要清空历史记录吗?") && e.value?.clear();
2732
2732
  };
2733
- return (r, i) => (p(), y(n(q), {
2733
+ return (r, i) => (p(), y(n(H), {
2734
2734
  class: "v-history-widget",
2735
2735
  title: "历史记录",
2736
2736
  subtitle: s.value,
@@ -3007,7 +3007,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
3007
3007
  e.model ? [o.value.id] : []
3008
3008
  ) ? (le(`API名称 [ ${o.value.name} ] 已存在`), !1) : o.value.headers && !re(o.value.headers, window) || o.value.mockTemplate && !re(o.value.mockTemplate, window) ? !1 : (e.project?.setApi(o.value), s.value?.close(), !0), c = () => {
3009
3009
  if (o.value.mockTemplate) {
3010
- const _ = qe(
3010
+ const _ = He(
3011
3011
  o.value.mockTemplate,
3012
3012
  {},
3013
3013
  !0
@@ -3193,7 +3193,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
3193
3193
  }, m = (f) => {
3194
3194
  s.value = !0, t.value = ot(f), e.value = !0;
3195
3195
  };
3196
- return (f, h) => (p(), y(n(q), {
3196
+ return (f, h) => (p(), y(n(H), {
3197
3197
  class: "v-apis-widget",
3198
3198
  title: "API管理",
3199
3199
  plus: "",
@@ -3261,7 +3261,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
3261
3261
  `)
3262
3262
  }, s.value = !1, l.value = !0), _.name === "remove" && t.project.value?.removeDeps(c);
3263
3263
  };
3264
- return (c, _) => (p(), y(n(q), {
3264
+ return (c, _) => (p(), y(n(H), {
3265
3265
  class: "v-deps-widget",
3266
3266
  title: "依赖管理",
3267
3267
  plus: "",
@@ -3417,7 +3417,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
3417
3417
  inheritAttrs: !1,
3418
3418
  __name: "index",
3419
3419
  setup(u, { expose: e }) {
3420
- const t = k(), l = k(), { width: s, height: a } = Xe(t), { dependencies: o, engine: r, apis: i, meta: g } = Bn(), { current: d, isEmpty: m } = ue(), f = S(() => r.skeleton?.getWidget("Toolbar")?.widgetRef.mode ?? "pc"), h = S(() => r.project.value?.config || {}), { designer: c, hover: _, dropping: w, selected: x } = Ha(
3420
+ const t = k(), l = k(), { width: s, height: a } = Xe(t), { dependencies: o, engine: r, apis: i, meta: g } = Bn(), { current: d, isEmpty: m } = ue(), f = S(() => r.skeleton?.getWidget("Toolbar")?.widgetRef.mode ?? "pc"), h = S(() => r.project.value?.config || {}), { designer: c, hover: _, dropping: w, selected: x } = qa(
3421
3421
  l,
3422
3422
  o,
3423
3423
  i,
@@ -3552,7 +3552,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
3552
3552
  }, f = async (c) => e.submit(c, o.value), h = () => {
3553
3553
  l.value?.itemRef.validate();
3554
3554
  };
3555
- return (c, _) => (p(), y(n(q), {
3555
+ return (c, _) => (p(), y(n(H), {
3556
3556
  title: e.title,
3557
3557
  class: "v-sub-panel",
3558
3558
  size: "small",
@@ -3930,7 +3930,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
3930
3930
  const g = (t.items || []).map((d) => o(d.label || d.name)).sort((d, m) => m - d)[0];
3931
3931
  return g ? g * 6 + 24 : 100;
3932
3932
  });
3933
- return (i, g) => (p(), y(n(q), {
3933
+ return (i, g) => (p(), y(n(H), {
3934
3934
  title: t.title,
3935
3935
  class: "v-sub-panel",
3936
3936
  size: "small",
@@ -4187,7 +4187,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
4187
4187
  fit: ""
4188
4188
  }, {
4189
4189
  default: b(() => [
4190
- v(n(q), {
4190
+ v(n(H), {
4191
4191
  title: "组件事件",
4192
4192
  class: "v-sub-panel",
4193
4193
  size: "small",
@@ -4213,7 +4213,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
4213
4213
  ]),
4214
4214
  _: 1
4215
4215
  }),
4216
- v(n(q), {
4216
+ v(n(H), {
4217
4217
  title: "鼠标事件",
4218
4218
  class: "v-sub-panel",
4219
4219
  size: "small",
@@ -4234,7 +4234,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
4234
4234
  ]),
4235
4235
  _: 1
4236
4236
  }),
4237
- v(n(q), {
4237
+ v(n(H), {
4238
4238
  title: "键盘事件",
4239
4239
  class: "v-sub-panel",
4240
4240
  size: "small",
@@ -4281,7 +4281,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
4281
4281
  const r = (t.value?.getEditor()).getValue();
4282
4282
  s(r), pe("保存成功");
4283
4283
  };
4284
- return (o, r) => (p(), y(n(q), {
4284
+ return (o, r) => (p(), y(n(H), {
4285
4285
  class: "v-css-widget v-sub-panel",
4286
4286
  title: "lang:css scoped",
4287
4287
  size: "small",
@@ -4316,14 +4316,14 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
4316
4316
  onValueChange: g,
4317
4317
  onForChange: d,
4318
4318
  onModelChange: m
4319
- } = no(l), f = (h) => h.arg ? typeof h.arg == "string" ? h.arg : qe(h.arg, {}) : "modelValue";
4319
+ } = no(l), f = (h) => h.arg ? typeof h.arg == "string" ? h.arg : He(h.arg, {}) : "modelValue";
4320
4320
  return (h, c) => (p(), y(n(U), {
4321
4321
  class: "v-directives-widget",
4322
4322
  direction: "column",
4323
4323
  fit: ""
4324
4324
  }, {
4325
4325
  default: b(() => [
4326
- v(n(q), {
4326
+ v(n(H), {
4327
4327
  class: "v-sub-panel",
4328
4328
  title: "内置指令",
4329
4329
  size: "small",
@@ -4370,7 +4370,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
4370
4370
  ]),
4371
4371
  _: 1
4372
4372
  }),
4373
- v(n(q), {
4373
+ v(n(H), {
4374
4374
  class: "v-sub-panel",
4375
4375
  title: "循环",
4376
4376
  size: "small",
@@ -4423,7 +4423,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
4423
4423
  ]),
4424
4424
  _: 1
4425
4425
  }),
4426
- v(n(q), {
4426
+ v(n(H), {
4427
4427
  class: "v-sub-panel",
4428
4428
  title: "双向绑定",
4429
4429
  size: "small",
@@ -4431,7 +4431,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
4431
4431
  grow: ""
4432
4432
  }, {
4433
4433
  default: b(() => [
4434
- (p(!0), j(O, null, W(n(i), (_, w) => (p(), y(n(q), {
4434
+ (p(!0), j(O, null, W(n(i), (_, w) => (p(), y(n(H), {
4435
4435
  card: "",
4436
4436
  border: "",
4437
4437
  class: "v-sub-panel",
@@ -4736,8 +4736,8 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
4736
4736
  const { current: e, context: t } = ue(), l = S(() => (e.value?.props || []).map((L) => typeof L == "string" ? { name: L } : L)), s = S(() => (e.value?.emits || []).map((L) => typeof L == "string" ? { name: L, params: [] } : L)), a = S(() => (e.value?.slots || []).map((L) => typeof L == "string" ? { name: L, params: [] } : L)), o = S(() => e.value?.inject || []), r = k(!1), i = k(), g = k(!1), d = k(), m = k(!1), f = k(), h = k(!1), c = k(), _ = () => {
4737
4737
  i.value = void 0, r.value = !0;
4738
4738
  }, w = (L) => {
4739
- const { name: H, modelValue: N } = L;
4740
- H === "edit" && x(N), H === "remove" && e.value?.removeProp(N);
4739
+ const { name: q, modelValue: N } = L;
4740
+ q === "edit" && x(N), q === "remove" && e.value?.removeProp(N);
4741
4741
  }, x = (L) => {
4742
4742
  i.value = L, r.value = !0;
4743
4743
  }, C = () => {
@@ -4745,31 +4745,31 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
4745
4745
  }, I = (L) => {
4746
4746
  d.value = { ...L }, g.value = !0;
4747
4747
  }, z = (L) => {
4748
- const { name: H, modelValue: N } = L;
4749
- H === "edit" && I(N), H === "remove" && e.value?.removeEmit(N.name);
4748
+ const { name: q, modelValue: N } = L;
4749
+ q === "edit" && I(N), q === "remove" && e.value?.removeEmit(N.name);
4750
4750
  }, R = () => {
4751
4751
  f.value = void 0, m.value = !0;
4752
4752
  }, P = (L) => {
4753
4753
  f.value = { ...L }, m.value = !0;
4754
4754
  }, B = (L) => {
4755
- const { name: H, modelValue: N } = L;
4756
- H === "edit" && P(N), H === "remove" && e.value?.removeSlot(N.name);
4755
+ const { name: q, modelValue: N } = L;
4756
+ q === "edit" && P(N), q === "remove" && e.value?.removeSlot(N.name);
4757
4757
  }, D = () => {
4758
4758
  c.value = void 0, h.value = !0;
4759
4759
  }, G = (L) => {
4760
4760
  c.value = L, h.value = !0;
4761
4761
  }, me = (L) => {
4762
- const { name: H, modelValue: N } = L;
4763
- H === "edit" && G(N), H === "remove" && e.value?.removeInject(N);
4762
+ const { name: q, modelValue: N } = L;
4763
+ q === "edit" && G(N), q === "remove" && e.value?.removeInject(N);
4764
4764
  };
4765
- return (L, H) => n(e) && n(t) ? (p(), y(n(U), {
4765
+ return (L, q) => n(e) && n(t) ? (p(), y(n(U), {
4766
4766
  key: 0,
4767
4767
  class: "v-defined-widget",
4768
4768
  direction: "column",
4769
4769
  fit: ""
4770
4770
  }, {
4771
4771
  default: b(() => [
4772
- v(n(q), {
4772
+ v(n(H), {
4773
4773
  class: "v-sub-panel",
4774
4774
  title: "定义属性",
4775
4775
  size: "small",
@@ -4795,13 +4795,13 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
4795
4795
  current: n(e),
4796
4796
  context: n(t),
4797
4797
  modelValue: r.value,
4798
- "onUpdate:modelValue": H[0] || (H[0] = (N) => r.value = N),
4798
+ "onUpdate:modelValue": q[0] || (q[0] = (N) => r.value = N),
4799
4799
  item: i.value
4800
4800
  }, null, 8, ["current", "context", "modelValue", "item"])) : A("", !0)
4801
4801
  ]),
4802
4802
  _: 1
4803
4803
  }),
4804
- v(n(q), {
4804
+ v(n(H), {
4805
4805
  class: "v-sub-panel",
4806
4806
  title: "定义事件",
4807
4807
  size: "small",
@@ -4825,7 +4825,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
4825
4825
  g.value ? (p(), y(xr, {
4826
4826
  key: 1,
4827
4827
  modelValue: g.value,
4828
- "onUpdate:modelValue": H[1] || (H[1] = (N) => g.value = N),
4828
+ "onUpdate:modelValue": q[1] || (q[1] = (N) => g.value = N),
4829
4829
  current: n(e),
4830
4830
  context: n(t),
4831
4831
  item: d.value
@@ -4833,7 +4833,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
4833
4833
  ]),
4834
4834
  _: 1
4835
4835
  }),
4836
- v(n(q), {
4836
+ v(n(H), {
4837
4837
  class: "v-sub-panel",
4838
4838
  title: "定义插槽",
4839
4839
  size: "small",
@@ -4857,7 +4857,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
4857
4857
  m.value ? (p(), y(Cr, {
4858
4858
  key: 1,
4859
4859
  modelValue: m.value,
4860
- "onUpdate:modelValue": H[2] || (H[2] = (N) => m.value = N),
4860
+ "onUpdate:modelValue": q[2] || (q[2] = (N) => m.value = N),
4861
4861
  current: n(e),
4862
4862
  context: n(t),
4863
4863
  item: f.value
@@ -4865,7 +4865,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
4865
4865
  ]),
4866
4866
  _: 1
4867
4867
  }),
4868
- v(n(q), {
4868
+ v(n(H), {
4869
4869
  class: "v-sub-panel",
4870
4870
  title: "注入",
4871
4871
  size: "small",
@@ -4890,7 +4890,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
4890
4890
  h.value ? (p(), y(Vr, {
4891
4891
  key: 1,
4892
4892
  modelValue: h.value,
4893
- "onUpdate:modelValue": H[3] || (H[3] = (N) => h.value = N),
4893
+ "onUpdate:modelValue": q[3] || (q[3] = (N) => h.value = N),
4894
4894
  current: n(e),
4895
4895
  context: n(t),
4896
4896
  item: c.value
@@ -4999,9 +4999,9 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
4999
4999
  if (R)
5000
5000
  return await R.apply(R, z);
5001
5001
  Ve.warn(`API【${o.value.ref}】不存在`);
5002
- }, C = qe(o.value.test, {
5002
+ }, C = He(o.value.test, {
5003
5003
  runApi: x
5004
- }), I = o.value.transform?.value ? qe(o.value.transform, {}, !0) : (z) => z;
5004
+ }), I = o.value.transform?.value ? He(o.value.transform, {}, !0) : (z) => z;
5005
5005
  r.value = !0;
5006
5006
  try {
5007
5007
  const z = await C();
@@ -5153,7 +5153,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
5153
5153
  fit: ""
5154
5154
  }, {
5155
5155
  default: b(() => [
5156
- v(n(q), {
5156
+ v(n(H), {
5157
5157
  title: "请求方法",
5158
5158
  class: "v-sub-panel",
5159
5159
  size: "small",
@@ -5321,7 +5321,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
5321
5321
  ], i = (g, d) => {
5322
5322
  t.value = d === "flex", e.setStyle("display", d), 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));
5323
5323
  };
5324
- return (g, d) => (p(), y(n(q), {
5324
+ return (g, d) => (p(), y(n(H), {
5325
5325
  title: "布局",
5326
5326
  class: "v-sub-panel",
5327
5327
  size: "small",
@@ -5408,7 +5408,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
5408
5408
  const i = (t.value?.getEditor()).getValue();
5409
5409
  a(i), pe("保存成功");
5410
5410
  };
5411
- return (r, i) => (p(), y(n(q), {
5411
+ return (r, i) => (p(), y(n(H), {
5412
5412
  class: "v-css-widget v-sub-panel",
5413
5413
  title: "JSON",
5414
5414
  size: "small",
@@ -5540,7 +5540,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
5540
5540
  ])
5541
5541
  ]));
5542
5542
  }
5543
- }), Rr = { class: "spacing-wrap" }, $r = { class: "spacing-max-icon" }, Or = ["width", "height"], zr = ["d"], Fr = ["d"], Lr = ["d"], Wr = ["d"], Nr = { id: "margin-outer" }, Jr = ["width", "height"], Mr = ["width", "height"], Ur = { id: "margin-inner" }, Hr = ["width", "height"], qr = ["width", "height"], Gr = ["width", "height"], Xr = ["d"], Kr = ["d"], Qr = ["d"], Yr = ["d"], Zr = { id: "padding-outer" }, ei = ["width", "height"], ti = ["width", "height"], ni = { id: "padding-inner" }, li = ["width", "height"], si = ["width", "height"], ai = {
5543
+ }), Rr = { class: "spacing-wrap" }, $r = { class: "spacing-max-icon" }, Or = ["width", "height"], zr = ["d"], Fr = ["d"], Lr = ["d"], Wr = ["d"], Nr = { id: "margin-outer" }, Jr = ["width", "height"], Mr = ["width", "height"], Ur = { id: "margin-inner" }, qr = ["width", "height"], Hr = ["width", "height"], Gr = ["width", "height"], Xr = ["d"], Kr = ["d"], Qr = ["d"], Yr = ["d"], Zr = { id: "padding-outer" }, ei = ["width", "height"], ti = ["width", "height"], ni = { id: "padding-inner" }, li = ["width", "height"], si = ["width", "height"], ai = {
5544
5544
  xmlns: "http://www.w3.org/2000/svg",
5545
5545
  width: "100%",
5546
5546
  height: "100%",
@@ -5562,7 +5562,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
5562
5562
  }, f = (h) => {
5563
5563
  g.value = h, d.value = e.styleJson[h], i.value = !0;
5564
5564
  };
5565
- return (h, c) => (p(), y(n(q), {
5565
+ return (h, c) => (p(), y(n(H), {
5566
5566
  title: "间距",
5567
5567
  class: "v-sub-panel",
5568
5568
  size: "small",
@@ -5690,7 +5690,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
5690
5690
  rx: "2",
5691
5691
  ry: "2",
5692
5692
  style: { "pointer-events": "none" }
5693
- }, null, 8, Hr)
5693
+ }, null, 8, qr)
5694
5694
  ]),
5695
5695
  V("rect", {
5696
5696
  class: "stroke",
@@ -5703,7 +5703,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
5703
5703
  rx: "2",
5704
5704
  ry: "2",
5705
5705
  style: { "pointer-events": "none", "stroke-width": "2px" }
5706
- }, null, 8, qr)
5706
+ }, null, 8, Hr)
5707
5707
  ], 8, Or)) : A("", !0),
5708
5708
  V("div", {
5709
5709
  class: X(["spacing-edit margin-top", { "is-setting": e.styleJson["margin-top"] }]),
@@ -5970,7 +5970,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
5970
5970
  ]
5971
5971
  }
5972
5972
  ];
5973
- return (a, o) => (p(), y(n(q), {
5973
+ return (a, o) => (p(), y(n(H), {
5974
5974
  title: "尺寸",
5975
5975
  class: "v-sub-panel v-",
5976
5976
  size: "small",
@@ -6022,14 +6022,14 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
6022
6022
  { label: "左", svg: Js, value: "0% auto 0% 0%" },
6023
6023
  { label: "右", svg: Ms, value: "0% 0% 0% auto" },
6024
6024
  { label: "上", svg: Us, value: "auto 0% 0% 0%" },
6025
- { label: "下", svg: Hs, value: "0% 0% auto 0%" },
6026
- { label: "填充", svg: qs, value: "0% 0% 0% 0%" }
6025
+ { label: "下", svg: qs, value: "0% 0% auto 0%" },
6026
+ { label: "填充", svg: Hs, value: "0% 0% 0% 0%" }
6027
6027
  ], d = S(() => (e.styleJson.inset || "").split(" ")), m = (h) => {
6028
6028
  o.value = h, r.value = e.styleJson[h], a.value = !0;
6029
6029
  }, f = () => {
6030
6030
  a.value = !1, o.value = void 0, r.value = void 0;
6031
6031
  };
6032
- return (h, c) => (p(), y(n(q), {
6032
+ return (h, c) => (p(), y(n(H), {
6033
6033
  title: "定位",
6034
6034
  class: "v-sub-panel",
6035
6035
  size: "small",
@@ -6312,7 +6312,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
6312
6312
  { label: "删除线", value: "line-through", svg: ta },
6313
6313
  { label: "上划线", value: "overline", svg: na }
6314
6314
  ];
6315
- return (o, r) => (p(), y(n(q), {
6315
+ return (o, r) => (p(), y(n(H), {
6316
6316
  title: "文本",
6317
6317
  class: "v-sub-panel",
6318
6318
  size: "small",
@@ -6417,7 +6417,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
6417
6417
  { label: "覆盖", value: "cover" },
6418
6418
  { label: "填充", value: "contain" }
6419
6419
  ];
6420
- return (i, g) => (p(), y(n(q), {
6420
+ return (i, g) => (p(), y(n(H), {
6421
6421
  title: "背景",
6422
6422
  class: "v-sub-panel",
6423
6423
  size: "small",
@@ -6529,7 +6529,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
6529
6529
  {
6530
6530
  immediate: !0
6531
6531
  }
6532
- ), (r, i) => (p(), y(n(q), {
6532
+ ), (r, i) => (p(), y(n(H), {
6533
6533
  title: "边框",
6534
6534
  class: "v-sub-panel",
6535
6535
  size: "small",
@@ -6647,7 +6647,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
6647
6647
  r !== void 0 ? (Number(r) || 0) / 100 : void 0
6648
6648
  );
6649
6649
  }, a = () => Number(e.styleJson.opacity ?? 1) * 100;
6650
- return (o, r) => (p(), y(n(q), {
6650
+ return (o, r) => (p(), y(n(H), {
6651
6651
  title: "效果",
6652
6652
  class: "v-sub-panel",
6653
6653
  size: "small",
@@ -6844,7 +6844,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
6844
6844
  le(g?.message);
6845
6845
  }
6846
6846
  };
6847
- return (o, r) => (p(), y(n(q), {
6847
+ return (o, r) => (p(), y(n(H), {
6848
6848
  class: "v-schema-widget",
6849
6849
  title: s.value,
6850
6850
  subtitle: "手动修改DSL有风险,可能导致页面无法加载,请确认您的操作无误。",
@@ -6884,7 +6884,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
6884
6884
  immediate: !0,
6885
6885
  deep: !0
6886
6886
  }
6887
- ), (r, i) => (p(), y(n(q), {
6887
+ ), (r, i) => (p(), y(n(H), {
6888
6888
  class: "v-raw-widget",
6889
6889
  title: o.value,
6890
6890
  subtitle: a.value,
@@ -6925,7 +6925,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
6925
6925
  const r = () => {
6926
6926
  s?.close();
6927
6927
  };
6928
- return e({ refresh: o }), (i, g) => (p(), y(n(q), {
6928
+ return e({ refresh: o }), (i, g) => (p(), y(n(H), {
6929
6929
  class: "v-docs-widget",
6930
6930
  size: "small",
6931
6931
  fit: "",
@@ -6964,7 +6964,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
6964
6964
  const { project: e } = Re(), t = (l) => {
6965
6965
  e.value?.setConfig(l);
6966
6966
  };
6967
- return (l, s) => (p(), y(n(q), {
6967
+ return (l, s) => (p(), y(n(H), {
6968
6968
  class: "v-project-config-widget",
6969
6969
  title: "项目配置"
6970
6970
  }, {
@@ -7012,7 +7012,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
7012
7012
  Toolbar: go,
7013
7013
  Actions: ho,
7014
7014
  Pages: Mo,
7015
- Blocks: Ho,
7015
+ Blocks: qo,
7016
7016
  Components: Ko,
7017
7017
  Outline: Qo,
7018
7018
  History: Yo,
@@ -7379,6 +7379,20 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
7379
7379
  required: !1,
7380
7380
  official: !0,
7381
7381
  enabled: !1
7382
+ },
7383
+ {
7384
+ package: "vant",
7385
+ version: "latest",
7386
+ library: "vant",
7387
+ urls: [
7388
+ "@vtj/materials/deps/vant/index.css",
7389
+ "@vtj/materials/deps/vant/vant.min.js"
7390
+ ],
7391
+ assetsUrl: "@vtj/materials/assets/vant/index.umd.js",
7392
+ assetsLibrary: "VantMaterial",
7393
+ required: !1,
7394
+ official: !0,
7395
+ enabled: !1
7382
7396
  }
7383
7397
  ], Ji = [
7384
7398
  {
@@ -7867,7 +7881,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
7867
7881
  }
7868
7882
  }
7869
7883
  }
7870
- ], Hi = [
7884
+ ], qi = [
7871
7885
  {
7872
7886
  name: _t,
7873
7887
  version: "latest",
@@ -7877,7 +7891,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
7877
7891
  categories: Ji,
7878
7892
  components: Ui
7879
7893
  }
7880
- ], qi = /* @__PURE__ */ E({
7894
+ ], Hi = /* @__PURE__ */ E({
7881
7895
  name: "StringSetter",
7882
7896
  __name: "string",
7883
7897
  setup(u) {
@@ -8338,7 +8352,7 @@ const Eo = { class: "v-icon-setter" }, Do = { class: "v-icon-setter__content" },
8338
8352
  ]));
8339
8353
  }
8340
8354
  }), ee = {
8341
- StringSetter: qi,
8355
+ StringSetter: Hi,
8342
8356
  BooleanSetter: Gi,
8343
8357
  ExpressionSetter: Qi,
8344
8358
  SelectSetter: Yi,
@@ -8766,7 +8780,7 @@ class _u {
8766
8780
  ), ne.on(
8767
8781
  wt,
8768
8782
  this.bind(this.onActiveChange, "onActiveChange")
8769
- ), ne.on(He, this.bind(this.onViewChange, "onViewChange")), J(
8783
+ ), ne.on(qe, this.bind(this.onViewChange, "onViewChange")), J(
8770
8784
  this.devtools.isOpen,
8771
8785
  (l) => {
8772
8786
  l && this.cleanHelper();
@@ -8794,7 +8808,7 @@ class _u {
8794
8808
  wt,
8795
8809
  this.bind(this.onActiveChange, "onActiveChange")
8796
8810
  ), ne.off(
8797
- He,
8811
+ qe,
8798
8812
  this.bind(this.onViewChange, "onViewChange")
8799
8813
  );
8800
8814
  }
@@ -9083,7 +9097,7 @@ class wu {
9083
9097
  } catch (f) {
9084
9098
  le(f.message || "未知错误", "运行时错误"), console.error(f);
9085
9099
  }
9086
- this.context = d, ne.on(He, this.nodeChange), ne.on(kt, this.blockChange);
9100
+ this.context = d, ne.on(qe, this.nodeChange), ne.on(kt, this.blockChange);
9087
9101
  }
9088
9102
  dispose() {
9089
9103
  if (this.app) {
@@ -9091,7 +9105,7 @@ class wu {
9091
9105
  const e = this.app._container;
9092
9106
  e && e.parentNode && (e.parentNode.removeChild(e), this.app._container = null), this.app = null;
9093
9107
  }
9094
- this.dsl = null, this.context = null, ne.off(He, this.nodeChange), ne.off(kt, this.blockChange);
9108
+ this.dsl = null, this.context = null, ne.off(qe, this.nodeChange), ne.off(kt, this.blockChange);
9095
9109
  }
9096
9110
  updateChild(e, t) {
9097
9111
  const l = t.children || t.nodes || [];
@@ -9176,12 +9190,12 @@ class ku extends wn {
9176
9190
  background: #fff;
9177
9191
  }
9178
9192
  </style>
9179
- ${Hl(r)}
9193
+ ${ql(r)}
9180
9194
  </head>
9181
9195
  <body>
9182
9196
  </body>
9183
- ${Ht(o)}
9184
- ${Ht(i)}
9197
+ ${qt(o)}
9198
+ ${qt(i)}
9185
9199
  <script>
9186
9200
  __simulator__.emitReady(${JSON.stringify(g)},
9187
9201
  ${JSON.stringify(d)},
@@ -9219,17 +9233,17 @@ class ku extends wn {
9219
9233
  if (I.name === _t)
9220
9234
  z.forEach((R) => {
9221
9235
  const P = _.get(R), B = P?.package || "", D = Pl[B], G = m[D];
9222
- G && P && (h[R] = qt(P, G));
9236
+ G && P && (h[R] = Ht(P, G));
9223
9237
  });
9224
9238
  else {
9225
9239
  const R = m[l[I.library || ""]];
9226
9240
  R && z.forEach((P) => {
9227
9241
  const B = _.get(P);
9228
- B ? h[P] = qt(B, R) : h[P] = R[P];
9242
+ B ? h[P] = Ht(B, R) : h[P] = R[P];
9229
9243
  });
9230
9244
  }
9231
9245
  }
9232
- const { adapter: w, globals: x } = d, C = ql(
9246
+ const { adapter: w, globals: x } = d, C = Hl(
9233
9247
  i.value?.apis,
9234
9248
  i.value?.meta,
9235
9249
  w
@@ -9297,7 +9311,7 @@ class Su {
9297
9311
  return t;
9298
9312
  }
9299
9313
  load(e) {
9300
- const t = [...Hi, ...e].filter((l) => !!l);
9314
+ const t = [...qi, ...e].filter((l) => !!l);
9301
9315
  t.sort((l, s) => l.order - s.order);
9302
9316
  for (let l of t)
9303
9317
  l.components && (this.components = this.components.concat(l.components));
@@ -9403,7 +9417,7 @@ class ic extends wn {
9403
9417
  Ve.warn("VTJEngine constructor param [ container ] is undefined");
9404
9418
  }
9405
9419
  bindEvents() {
9406
- ne.on(Tl, (t) => this.saveProject(t)), ne.on(Bl, (t) => this.saveBlockFile(t)), ne.on(Rl, (t) => this.saveBlockFile(t)), ne.on($l, () => this.saveMaterials()), ne.on(wt, (t) => this.activeFile(t)), ne.on(Ol, () => this.publish()), ne.on(zl, () => this.publishCurrent()), ne.on(kt, (t) => this.changeFile(t)), ne.on(He, () => this.changeCurrentFile()), ne.on(Fl, (t) => this.saveHistory(t)), ne.on(Ll, (t) => this.loadHistory(t));
9420
+ ne.on(Tl, (t) => this.saveProject(t)), ne.on(Bl, (t) => this.saveBlockFile(t)), ne.on(Rl, (t) => this.saveBlockFile(t)), ne.on($l, () => this.saveMaterials()), ne.on(wt, (t) => this.activeFile(t)), ne.on(Ol, () => this.publish()), ne.on(zl, () => this.publishCurrent()), ne.on(kt, (t) => this.changeFile(t)), ne.on(qe, () => this.changeCurrentFile()), ne.on(Fl, (t) => this.saveHistory(t)), ne.on(Ll, (t) => this.loadHistory(t));
9407
9421
  }
9408
9422
  async activeFile(t) {
9409
9423
  await ke();
@@ -10163,7 +10177,7 @@ const Ee = E({
10163
10177
  }, null, 8, ["region", "widget"]))), 256))
10164
10178
  ]));
10165
10179
  }
10166
- }), Wu = { class: "v-apps-region" }, Nu = { class: "v-apps-region__header" }, Ju = { class: "v-apps-region__top" }, Mu = { class: "v-apps-region__bottom" }, Uu = { class: "v-apps-region__panels" }, Hu = /* @__PURE__ */ E({
10180
+ }), Wu = { class: "v-apps-region" }, Nu = { class: "v-apps-region__header" }, Ju = { class: "v-apps-region__top" }, Mu = { class: "v-apps-region__bottom" }, Uu = { class: "v-apps-region__panels" }, qu = /* @__PURE__ */ E({
10167
10181
  name: "AppsRegion",
10168
10182
  inheritAttrs: !1,
10169
10183
  __name: "apps",
@@ -10228,7 +10242,7 @@ const Ee = E({
10228
10242
  ])
10229
10243
  ]));
10230
10244
  }
10231
- }), qu = /* @__PURE__ */ E({
10245
+ }), Hu = /* @__PURE__ */ E({
10232
10246
  name: "WorkspaceRegion",
10233
10247
  __name: "workspace",
10234
10248
  props: {
@@ -10503,8 +10517,8 @@ const Ee = E({
10503
10517
  Brand: $u,
10504
10518
  Toolbar: zu,
10505
10519
  Actions: Lu,
10506
- Apps: Hu,
10507
- Workspace: qu,
10520
+ Apps: qu,
10521
+ Workspace: Hu,
10508
10522
  Settings: Gu,
10509
10523
  Status: Ku,
10510
10524
  Preview: Qu
@@ -10527,7 +10541,7 @@ export {
10527
10541
  $a as MOUSE_EVENT_LIST,
10528
10542
  we as NAME_REGEX,
10529
10543
  Xt as PAD_SIZE,
10530
- q as Panel,
10544
+ H as Panel,
10531
10545
  Na as RegionType,
10532
10546
  Ee as RegionWrapper,
10533
10547
  wu as Renderer,
@@ -10548,7 +10562,7 @@ export {
10548
10562
  he as WidgetGroup,
10549
10563
  Ie as WidgetWrapper,
10550
10564
  Ni as builtInDeps,
10551
- Hi as builtInMaterials,
10565
+ qi as builtInMaterials,
10552
10566
  mu as builtInSetters,
10553
10567
  Wi as builtInWidgets,
10554
10568
  Fe as confirm,
package/package.json CHANGED
@@ -1,22 +1,22 @@
1
1
  {
2
2
  "name": "@vtj/designer",
3
3
  "private": false,
4
- "version": "0.8.146",
4
+ "version": "0.8.148",
5
5
  "type": "module",
6
6
  "dependencies": {
7
7
  "mockjs": "~1.1.0",
8
8
  "monaco-editor": "~0.51.0",
9
- "@vtj/core": "~0.8.146",
10
- "@vtj/icons": "~0.8.146",
11
- "@vtj/ui": "~0.8.146",
12
- "@vtj/renderer": "~0.8.146",
13
- "@vtj/utils": "~0.8.146"
9
+ "@vtj/core": "~0.8.148",
10
+ "@vtj/icons": "~0.8.148",
11
+ "@vtj/ui": "~0.8.148",
12
+ "@vtj/renderer": "~0.8.148",
13
+ "@vtj/utils": "~0.8.148"
14
14
  },
15
15
  "devDependencies": {
16
16
  "@types/mockjs": "~1.0.10",
17
17
  "vue": "~3.5.5",
18
18
  "vue-router": "~4.4.0",
19
- "@vtj/cli": "~0.8.36"
19
+ "@vtj/cli": "~0.8.37"
20
20
  },
21
21
  "files": [
22
22
  "dist",
@@ -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.145
5
+ * @version 0.8.147
6
6
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
7
7
  */
8
- export declare const version = "0.8.145";
8
+ export declare const version = "0.8.147";