@vtj/designer 0.7.12 → 0.7.13

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,26 +1,26 @@
1
- import { defineComponent as E, openBlock as c, createElementBlock as j, toDisplayString as N, computed as S, unref as n, ref as w, reactive as Re, watchEffect as un, watch as X, toValue as et, createVNode as v, withCtx as g, createElementVNode as z, createBlock as _, createCommentVNode as C, createTextVNode as H, Fragment as $, renderList as B, normalizeClass as te, resolveDynamicComponent as jt, createSlots as cn, renderSlot as de, withModifiers as je, toRaw as dn, withDirectives as Ae, isRef as tt, vShow as We, mergeProps as ue, normalizeStyle as Fe, nextTick as ye, defineAsyncComponent as pn, h as xe, normalizeProps as At, guardReactiveProps as Dt, withKeys as ze, onMounted as Pt, onUnmounted as It, createApp as Rt, shallowRef as Me, shallowReactive as mn, triggerRef as he, inject as vn, markRaw as gt, KeepAlive as $t } from "vue";
2
- import { ElNotification as Ue, ElMessageBox as ct, ElMessage as dt, ElButton as re, ElDivider as Le, ElRadioGroup as fn, ElRadioButton as Ze, ElButtonGroup as gn, ElBadge as hn, ElDropdown as Bt, ElDropdownMenu as Tt, ElDropdownItem as nt, ElInput as pe, ElEmpty as Z, ElTooltip as Ft, ElTag as bn, ElSwitch as zt, ElTree as pt, ElAlert as _n, ElRow as st, ElCol as lt, ElCollapse as yn, ElCollapseItem as kn, ElForm as Ne, ElDrawer as wn, ElBreadcrumb as Sn, ElBreadcrumbItem as Vn, ElLoading as xn, ElSelect as Cn, ElOption as En, ElInputNumber as jn, ElColorPicker as An, ElConfigProvider as Dn, ElContainer as ht, ElHeader as Pn, ElAside as bt, ElMain as In, ElFooter as Rn, ElFormItem as $n } from "element-plus";
3
- import Bn from "element-plus/es/locale/lang/zh-cn";
4
- import { XAction as ke, XIcon as De, XDialog as $e, XDialogForm as ce, XField as P, XPanel as mt, XTabs as Mt, XContainer as O, XForm as Tn, XActionBar as Fn, vResizable as _t, createDialog as zn } from "@vtj/ui";
5
- import { delay as Nt, upperFirstCamelCase as Ot, toRawType as Qe, cloneDeep as He, logger as me, isPlainObject as Mn, merge as Wt, arrayToMap as Nn, toArray as On } from "@vtj/utils";
6
- import { isBlock as U, DirectiveModel as Lt, emitter as q, EVENT_PROJECT_ACTIVED as at, EVENT_NODE_CHANGE as Pe, NodeModel as yt, EVENT_BLOCK_CHANGE as ot, Base as Jt, ProjectModel as Wn, EVENT_PROJECT_CHANGE as Ln, EVENT_PROJECT_BLOCKS_CHANGE as Jn, EVENT_PROJECT_PAGES_CHANGE as Un, EVENT_PROJECT_DEPS_CHANGE as Hn, EVENT_PROJECT_PUBLISH as qn, EVENT_PROJECT_FILE_PUBLISH as Gn, EVENT_HISTORY_CHANGE as Kn, EVENT_HISTORY_LOAD as Zn, BlockModel as kt, HistoryModel as Qn } from "@vtj/core";
7
- import { parseExpression as Je, parseFunction as Xn, JSCodeToString as Ce, LIFE_CYCLES_LIST as Yn, DATA_TYPES as es, isJSExpression as Ie, createLoader as ts, ContextMode as rt, createRenderer as ns, parseDeps as ss, createAssetsCss as ls, createAssetScripts as wt, getRawComponent as as, createSchemaApis as os, Provider as rs, isJSFunction as is } from "@vtj/renderer";
8
- import { VtjIconBack as us, VtjIconPc as cs, VtjIconPhone as ds, VtjIconPad as ps, VtjIconUndo as ms, VtjIconRedo as vs, VtjIconBug as fs, VtjIconPreview as gs, VtjIconRefresh as hs, VtjIconSetting as bs, icons as it, ArrowDown as _s, Search as Ut, Back as ys, VtjIconPlus as Ht, Delete as ks, VtjIconSave as ws, MoreFilled as vt, VtjIconCheck as qt, VtjIconCopy as Gt, VtjIconEdit as Kt, VtjIconRemove as qe, VtjIconLock as Zt, VtjIconUnlock as Ss, VtjIconInvisible as Qt, VtjIconVisible as Vs, VtjIconHome as xs, VtjIconSearch as Cs, VtjIconLayers as Xt, VtjIconArrowUp as Es, VtjIconArrowDown as js, ArrowRight as As, VtjIconDocument as Ds, VtjIconComponents as Ps, VtjIconBlock as Is, VtjIconOutline as Rs, VtjIconHistory as $s, VtjIconApi as Bs, VtjIconCategory as Ts, VtjIconInfo as Fs, VtjIconVars as zs, VtjIconSwitch as Ms, VtjIconHelp as Ns } from "@vtj/icons";
9
- import { useClipboard as Os, useElementSize as Yt } from "@vueuse/core";
1
+ import { defineComponent as E, openBlock as c, createElementBlock as j, toDisplayString as N, computed as S, unref as n, ref as w, reactive as Re, watchEffect as un, watch as X, toValue as Xe, createVNode as v, withCtx as g, createElementVNode as z, createBlock as _, createCommentVNode as C, createTextVNode as H, Fragment as $, renderList as B, normalizeClass as te, resolveDynamicComponent as jt, createSlots as cn, renderSlot as de, withModifiers as je, toRaw as dn, withDirectives as Ae, isRef as Ye, vShow as Oe, mergeProps as ue, normalizeStyle as Fe, nextTick as ye, defineAsyncComponent as pn, h as xe, normalizeProps as At, guardReactiveProps as Dt, withKeys as ze, onMounted as Pt, onUnmounted as It, createApp as Rt, shallowRef as et, shallowReactive as mn, triggerRef as he, inject as vn, markRaw as gt, KeepAlive as $t } from "vue";
2
+ import { ElNotification as Le, ElMessageBox as ut, ElMessage as ct, ElButton as re, ElDivider as dt, ElRadioGroup as fn, ElRadioButton as Ge, ElButtonGroup as gn, ElDropdown as Bt, ElDropdownMenu as Tt, ElDropdownItem as tt, ElInput as pe, ElEmpty as Z, ElTooltip as Ft, ElTag as hn, ElSwitch as zt, ElTree as pt, ElAlert as bn, ElRow as nt, ElCol as st, ElCollapse as _n, ElCollapseItem as yn, ElForm as Me, ElDrawer as kn, ElBreadcrumb as wn, ElBreadcrumbItem as Sn, ElLoading as Vn, ElSelect as xn, ElOption as Cn, ElInputNumber as En, ElColorPicker as jn, ElConfigProvider as An, ElContainer as ht, ElHeader as Dn, ElAside as bt, ElMain as Pn, ElFooter as In, ElFormItem as Rn } from "element-plus";
3
+ import $n from "element-plus/es/locale/lang/zh-cn";
4
+ import { XIcon as De, XDialog as $e, XDialogForm as ce, XField as P, XPanel as mt, XAction as Se, XTabs as Mt, XContainer as O, XForm as Bn, XActionBar as Tn, vResizable as _t, createDialog as Fn } from "@vtj/ui";
5
+ import { delay as Nt, upperFirstCamelCase as Ot, toRawType as Ke, cloneDeep as Je, logger as me, isPlainObject as zn, merge as Wt, arrayToMap as Mn, toArray as Nn } from "@vtj/utils";
6
+ import { isBlock as U, DirectiveModel as Lt, emitter as q, EVENT_PROJECT_ACTIVED as lt, EVENT_NODE_CHANGE as Pe, NodeModel as yt, EVENT_BLOCK_CHANGE as at, Base as Jt, ProjectModel as On, EVENT_PROJECT_CHANGE as Wn, EVENT_PROJECT_BLOCKS_CHANGE as Ln, EVENT_PROJECT_PAGES_CHANGE as Jn, EVENT_PROJECT_DEPS_CHANGE as Un, EVENT_PROJECT_PUBLISH as Hn, EVENT_PROJECT_FILE_PUBLISH as qn, EVENT_HISTORY_CHANGE as Gn, EVENT_HISTORY_LOAD as Kn, BlockModel as kt, HistoryModel as Zn } from "@vtj/core";
7
+ import { parseExpression as We, parseFunction as Qn, JSCodeToString as Ce, LIFE_CYCLES_LIST as Xn, DATA_TYPES as Yn, isJSExpression as Ie, createLoader as es, ContextMode as ot, createRenderer as ts, parseDeps as ns, createAssetsCss as ss, createAssetScripts as wt, getRawComponent as ls, createSchemaApis as as, Provider as os, isJSFunction as rs } from "@vtj/renderer";
8
+ import { VtjIconBack as is, VtjIconPc as us, VtjIconPhone as cs, VtjIconPad as ds, VtjIconUndo as ps, VtjIconRedo as ms, VtjIconPreview as vs, VtjIconRefresh as fs, VtjIconSetting as gs, icons as rt, ArrowDown as hs, Search as Ut, Back as bs, VtjIconPlus as Ht, Delete as _s, VtjIconSave as ys, MoreFilled as vt, VtjIconCheck as qt, VtjIconCopy as Gt, VtjIconEdit as Kt, VtjIconRemove as Ue, VtjIconLock as Zt, VtjIconUnlock as ks, VtjIconInvisible as Qt, VtjIconVisible as ws, VtjIconHome as Ss, VtjIconSearch as Vs, VtjIconLayers as Xt, VtjIconArrowUp as xs, VtjIconArrowDown as Cs, ArrowRight as Es, VtjIconDocument as js, VtjIconComponents as As, VtjIconBlock as Ds, VtjIconOutline as Ps, VtjIconHistory as Is, VtjIconApi as Rs, VtjIconCategory as $s, VtjIconInfo as Bs, VtjIconVars as Ts, VtjIconSwitch as Fs, VtjIconHelp as zs } from "@vtj/icons";
9
+ import { useClipboard as Ms, useElementSize as Yt } from "@vueuse/core";
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.7.12
14
+ * @version 0.7.13
15
15
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
16
16
  */
17
- const Ws = "0.7.12", St = {
17
+ const Ns = "0.7.13", St = {
18
18
  width: 390,
19
19
  height: 844
20
20
  }, Vt = {
21
21
  width: 1180,
22
22
  height: 820
23
- }, ve = /^[A-Za-z_$][\w_-]*$/, Ls = [
23
+ }, ve = /^[A-Za-z_$][\w_-]*$/, Os = [
24
24
  "click",
25
25
  "dblclick",
26
26
  "mouseenter",
@@ -29,14 +29,14 @@ const Ws = "0.7.12", St = {
29
29
  "mouseup",
30
30
  "mouseover",
31
31
  "contextmenu"
32
- ], Js = ["keydown", "keyup", "keypress"], Us = [
32
+ ], Ws = ["keydown", "keyup", "keypress"], Ls = [
33
33
  "GET",
34
34
  "POST",
35
35
  "PUT",
36
36
  "PATCH",
37
37
  "DELETE",
38
38
  "JSONP"
39
- ], Hs = [
39
+ ], Js = [
40
40
  "stop",
41
41
  "prevent",
42
42
  "capture",
@@ -44,8 +44,8 @@ const Ws = "0.7.12", St = {
44
44
  "once",
45
45
  "passive"
46
46
  ];
47
- var oe = /* @__PURE__ */ ((i) => (i.Block = "block", i.Node = "node", i))(oe || {}), qs = /* @__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))(qs || {});
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vvpBmnl10s8uCyFD7rsujCgINFDnTl+bex+59UUMtP+vQr40AYkBIFUExKFbFl5gzqLKacqCuCAQ6pveEGZqNQe8VKFhEQhiwwuA66RXVj93JAzCRxTSwJmqWBzX5aJu0VVExILWZ4vCwQuVvY6M9EDfZNERAmABao1vKP6iWpREdWJkFjUUgHfMhjopD79Vb9TW20YWdlChOPK5JSoRflr1NLjfDVfcr8LUoDwed8c3yCzYFmUIB9BM3U6prQi+UjrkY9s4CnXZGdu0dWkD5CwJZFwxO0sw20JLJCFdPIJfKmFJwD/B4g2wB0X86iqAAAAAElFTkSuQmCC", Gs = ["title", "src"], Ks = { key: 1 }, Zs = /* @__PURE__ */ E({
47
+ var oe = /* @__PURE__ */ ((i) => (i.Block = "block", i.Node = "node", i))(oe || {}), Us = /* @__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))(Us || {});
48
+ const en = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAQd0lEQVR4nO2dCXRVxRnHf/clIPsekBgIS1hFdqVoZbGLFNTWWgQ3bLVurRYJcTuntbW22qooKKWl2toWquygIFa01doqmBBWWcomIkhACLIKyXvcnu/eefiSNzd57y4vAfI/553wuPfNzJ3/nW9m/t83M4Yx6iTVGOlAC6AD0Bs4F2gGtFT/lmtNgLpABDgMFAN7gCJgH3AQ2ACsAz5V91RbpFfDguUAg4EewBCgLdAQqJXAb5sD7RyuHVGfpcBy4AOgADjkc/k9obq0kP7AN4CrgK7qrQ8aJrALeAt4Q/3dV7XVULWEtAauBq5ThNSpqoIo7AReBWYA/6mqQlQFId2AW4HRwHmpzjwBSMv5N/BHYAHwRSozTyUhQsS9iohGqcrUI1YDE4GXgROpyDAVhMiIKBe4I0V9QxCQgcCvgdeCzigUcPo/BN4HHjiNyRAMBBYBs4BOQWYUFCFd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cDPyt/FXd/FbGxRNSWTKpYCMBb5t1n8/hPaImyDwpxWTIUUpzdBecBIeZUbGrBoHgcYnJSIYQsWu/CELfqoGliMx2qoaKJLl/qGPjauAfpMf6WUV7wlemkcrOZw7LVmrgAhPVgMkRlRGytWYjTN8gXqHHKkssES/C8zWmyzPCamfwSiN8EiEkorY23VT1z3Xa4qfquL1KkaifbZfapTR1mxadOZiTzLwuGcfn20p7qUHiWKlOcEt4BWKynugp6tiKGlSObUoX3JtMXbkJDXhYEVMDZxSpzUQ3J1tHbkPLZMTwlxpCtNinDu0vcPNjt4SE1XHcf3L5+zMV0jKuTXREpYOX4MsSNfJ6+myt/XKQSfR3YkN63MDr0pawGnkldHrMGYxCdc6KZ4Xcr7VGv1F2M9ColWoKOfR+hF8TZz+P756htprN9zHN6oxSdU7hdZ7WaZaD3wfcS6TUN1SLOZN9KavVxpW/dXO8akXwmxBUWOpDyqauCiD9qkSJImGo187bCUEQEsUSdbz3A3426SrEEhUiJWbqQFDFCJIQgewK8oTacfN36vvpBmnl10s8uCyFD7rsujCgINFDnTl+bex+59UUMtP+vQr40AYkBIFUExKFbFl5gzqLKacqCuCAQ6pveEGZqNQe8VKFhEQhiwwuA66RXVj93JAzCRxTSwJmqWBzX5aJu0VVExILWZ4vCwQuVvY6M9EDfZNERAmABao1vKP6iWpREdWJkFjUUgHfMhjopD79Vb9TW20YWdlChOPK5JSoRflr1NLjfDVfcr8LUoDwed8c3yCzYFmUIB9BM3U6prQi+UjrkY9s4CnXZGdu0dWkD5CwJZFwxO0sw20JLJCFdPIJfKmFJwD/B4g2wB0X86iqAAAAAElFTkSuQmCC", Hs = ["title", "src"], qs = { key: 1 }, Gs = /* @__PURE__ */ E({
49
49
  name: "LogoWidget",
50
50
  inheritAttrs: !1,
51
51
  __name: "index",
@@ -67,14 +67,14 @@ const en = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAA
67
67
  title: e.text,
68
68
  class: "v-logo-widget__icon",
69
69
  src: e.icon
70
- }, null, 8, Gs)) : (c(), j("span", Ks, N(e.text), 1))
70
+ }, null, 8, Hs)) : (c(), j("span", qs, N(e.text), 1))
71
71
  ]));
72
72
  }
73
- }), Qs = { class: "v-empty-widget" }, Xs = /* @__PURE__ */ E({
73
+ }), Ks = { class: "v-empty-widget" }, Zs = /* @__PURE__ */ E({
74
74
  name: "EmptyWidget",
75
75
  __name: "index",
76
76
  setup(i) {
77
- return (e, t) => (c(), j("div", Qs, "EmptyWidget"));
77
+ return (e, t) => (c(), j("div", Ks, "EmptyWidget"));
78
78
  }
79
79
  });
80
80
  function tn() {
@@ -84,7 +84,7 @@ function tn() {
84
84
  dependencies: e
85
85
  };
86
86
  }
87
- function we(i, e) {
87
+ function ke(i, e) {
88
88
  const t = S(() => on.getWidgets(n(i), n(e)).filter((l) => !l.invisible)), s = w();
89
89
  return {
90
90
  widgets: t,
@@ -101,15 +101,15 @@ function nn() {
101
101
  engine: i
102
102
  };
103
103
  }
104
- function Ys() {
104
+ function Qs() {
105
105
  const i = se(), e = S(() => i.project.value?.blocks ?? []);
106
106
  return {
107
107
  engine: i,
108
108
  blocks: e
109
109
  };
110
110
  }
111
- const el = (i = []) => i.map((e) => e.name);
112
- function tl() {
111
+ const Xs = (i = []) => i.map((e) => e.name);
112
+ function Ys() {
113
113
  const i = se(), { components: e, groups: t, componentMap: s } = i.assets, l = Re({}), a = S(() => {
114
114
  const f = {};
115
115
  return t.value && t.value.forEach((b) => {
@@ -122,7 +122,7 @@ function tl() {
122
122
  })) : []), o = w(r.value[0]?.name), u = w(""), p = S(() => a.value[o.value]);
123
123
  un(() => {
124
124
  const f = r.value.reduce(
125
- (b, h) => (b[h.name] = el(
125
+ (b, h) => (b[h.name] = Xs(
126
126
  a.value[h.name].children
127
127
  ), b),
128
128
  {}
@@ -155,15 +155,15 @@ function ne() {
155
155
  context: t
156
156
  };
157
157
  }
158
- function nl(i, e) {
158
+ function el(i, e) {
159
159
  const t = se();
160
160
  t.simulator.init(i, e);
161
161
  const s = S(() => t.simulator.designer.value), l = S(
162
- () => Xe("hover", s.value?.hover.value)
162
+ () => Ze("hover", s.value?.hover.value)
163
163
  ), a = S(
164
- () => Xe("dropping", s.value?.dropping.value)
164
+ () => Ze("dropping", s.value?.dropping.value)
165
165
  ), r = S(
166
- () => Xe("selected", s.value?.selected.value)
166
+ () => Ze("selected", s.value?.selected.value)
167
167
  );
168
168
  return X(t.changed, () => {
169
169
  s.value?.updateRect();
@@ -174,14 +174,14 @@ function nl(i, e) {
174
174
  selected: r
175
175
  };
176
176
  }
177
- function sl(i, e = !0) {
177
+ function tl(i, e = !0) {
178
178
  const { top: t, height: s, width: l, left: a } = i || {};
179
179
  if (s > 100 && l > 200)
180
180
  return "inner";
181
181
  let r, o;
182
182
  return o = t > 30 ? "top" : "bottom", r = e || a < 300 && l < 300 ? "left" : "right", [r, o].join("-");
183
183
  }
184
- function ll(i) {
184
+ function nl(i) {
185
185
  const { rect: e, type: t } = i, { left: s, width: l, top: a, height: r } = e, o = { left: s, width: l, top: a, height: r };
186
186
  switch (t) {
187
187
  case "left":
@@ -199,10 +199,10 @@ function ll(i) {
199
199
  }
200
200
  return o;
201
201
  }
202
- function Xe(i, e) {
202
+ function Ze(i, e) {
203
203
  if (!e)
204
204
  return null;
205
- const { left: t, top: s, width: l, height: a } = i === "dropping" ? ll(e) : e.rect, r = {
205
+ const { left: t, top: s, width: l, height: a } = i === "dropping" ? nl(e) : e.rect, r = {
206
206
  left: `${t}px`,
207
207
  top: `${s}px`,
208
208
  width: `${l}px`,
@@ -212,7 +212,7 @@ function Xe(i, e) {
212
212
  return {
213
213
  ...e,
214
214
  style: r,
215
- position: sl(e.rect, i !== "selected")
215
+ position: tl(e.rect, i !== "selected")
216
216
  };
217
217
  }
218
218
  function fe() {
@@ -226,9 +226,9 @@ function fe() {
226
226
  isSelectBlock: s
227
227
  };
228
228
  }
229
- function al(i, e) {
229
+ function sl(i, e) {
230
230
  const t = w(""), { selected: s, isSelectBlock: l } = fe(), a = S(() => s.value?.model.id), r = S(() => {
231
- const u = et(i), p = et(e), m = [];
231
+ const u = Xe(i), p = Xe(e), m = [];
232
232
  if (!u)
233
233
  return m;
234
234
  const f = p?.__contextRefs[a.value || ""], h = p === f || l.value ? [] : Object.keys(f?.context || {}).filter((A) => !["context", "ref"].includes(A)).map((A) => `this.context.${A}`);
@@ -285,7 +285,7 @@ const Te = [
285
285
  label: "表达式"
286
286
  }
287
287
  ];
288
- function ol(i) {
288
+ function ll(i) {
289
289
  const e = se(), t = S(() => {
290
290
  const f = i.value?.model || null;
291
291
  return U(f) ? null : f;
@@ -352,18 +352,18 @@ function ol(i) {
352
352
  };
353
353
  }
354
354
  function Q(i, e = "提示") {
355
- return Ue.warning({
355
+ return Le.warning({
356
356
  title: e,
357
357
  message: i
358
358
  });
359
359
  }
360
360
  async function Ee(i) {
361
- return await ct.confirm(i, "提示", { type: "warning" }).catch(
361
+ return await ut.confirm(i, "提示", { type: "warning" }).catch(
362
362
  () => !1
363
363
  );
364
364
  }
365
365
  function ae(i, e = "success") {
366
- return dt({
366
+ return ct({
367
367
  message: i,
368
368
  type: e
369
369
  });
@@ -371,9 +371,9 @@ function ae(i, e = "success") {
371
371
  function ee(i, e, t = !1) {
372
372
  let s = !0;
373
373
  try {
374
- i.type === "JSExpression" ? Je(i, e, t, !0) : Xn(i, e, t, !0);
374
+ i.type === "JSExpression" ? We(i, e, t, !0) : Qn(i, e, t, !0);
375
375
  } catch (l) {
376
- s = !1, Ue.error({
376
+ s = !1, Le.error({
377
377
  title: "代码错误",
378
378
  message: l.message
379
379
  });
@@ -403,17 +403,17 @@ function sn() {
403
403
  backwardDisabled: u
404
404
  };
405
405
  }
406
- function Ge() {
406
+ function He() {
407
407
  const i = se(), e = S(() => i.project.value);
408
408
  return {
409
409
  engine: i,
410
410
  project: e
411
411
  };
412
412
  }
413
- function rl(i) {
413
+ function al(i) {
414
414
  const e = se(), t = S(() => {
415
415
  const o = i.value?.model || null;
416
- return U(o) ? null : o;
416
+ return !o || U(o) ? null : o;
417
417
  }), s = w();
418
418
  X(t, async (o) => {
419
419
  o?.from ? s.value = await e.assets.getBlockMaterial(o.from) || void 0 : s.value = void 0;
@@ -422,7 +422,7 @@ function rl(i) {
422
422
  if (U(t.value))
423
423
  return [];
424
424
  const o = t.value?.events || {};
425
- return Ls.map((u) => ({
425
+ return Os.map((u) => ({
426
426
  name: u,
427
427
  event: o[u]
428
428
  }));
@@ -430,7 +430,7 @@ function rl(i) {
430
430
  if (U(t.value))
431
431
  return [];
432
432
  const o = t.value?.events || {};
433
- return Js.map((u) => ({
433
+ return Ws.map((u) => ({
434
434
  name: u,
435
435
  event: o[u]
436
436
  }));
@@ -456,12 +456,12 @@ const xt = (i, e) => new Lt({
456
456
  name: i,
457
457
  value: void 0,
458
458
  iterator: e
459
- }), il = (i = "modelValue") => new Lt({
459
+ }), ol = (i = "modelValue") => new Lt({
460
460
  name: "vModel",
461
461
  value: void 0,
462
462
  arg: i
463
463
  });
464
- function ul(i) {
464
+ function rl(i) {
465
465
  if (!i)
466
466
  return [];
467
467
  const { props: e = [], events: t = [] } = i;
@@ -471,7 +471,7 @@ function ul(i) {
471
471
  }
472
472
  return [];
473
473
  }
474
- function cl(i) {
474
+ function il(i) {
475
475
  const e = se(), t = S(() => {
476
476
  const d = i.value?.model || null;
477
477
  return U(d) ? null : d;
@@ -479,9 +479,9 @@ function cl(i) {
479
479
  if (!t.value)
480
480
  return [];
481
481
  const d = e.assets.componentMap.get(t.value.name || "");
482
- return (d ? ul(d) : []).map((y) => (t.value?.directives || []).find(
482
+ return (d ? rl(d) : []).map((y) => (t.value?.directives || []).find(
483
483
  (V) => V.name === "vModel" && V.arg == y.name
484
- ) || il(y.name));
484
+ ) || ol(y.name));
485
485
  }), a = s("vIf"), r = s("vShow"), o = s("vBind"), u = s("vFor"), p = l(), m = {
486
486
  vIf: a,
487
487
  vShow: r,
@@ -520,15 +520,15 @@ function cl(i) {
520
520
  }
521
521
  };
522
522
  }
523
- function dl() {
524
- const { engine: i, project: e } = Ge(), t = S(() => e.value?.apis || []);
523
+ function ul() {
524
+ const { engine: i, project: e } = He(), t = S(() => e.value?.apis || []);
525
525
  return {
526
526
  engine: i,
527
527
  project: e,
528
528
  apis: t
529
529
  };
530
530
  }
531
- const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */ E({
531
+ const cl = { class: "v-switcher-widget" }, dl = { key: 1 }, pl = /* @__PURE__ */ E({
532
532
  name: "SwitcherWidget",
533
533
  inheritAttrs: !1,
534
534
  __name: "index",
@@ -537,26 +537,26 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
537
537
  const t = e, { engine: s } = ne(), l = S(() => s.project.value?.name), a = S(() => s.project.value?.currentFile?.title), r = () => {
538
538
  t("click", s.project.value);
539
539
  };
540
- return (o, u) => (c(), j("div", pl, [
540
+ return (o, u) => (c(), j("div", cl, [
541
541
  v(n(re), {
542
542
  size: "small",
543
543
  round: "",
544
544
  onClick: r
545
545
  }, {
546
546
  default: g(() => [
547
- v(n(us), { class: "v-switcher-widget__back" }),
547
+ v(n(is), { class: "v-switcher-widget__back" }),
548
548
  z("span", null, N(l.value), 1),
549
- a.value ? (c(), _(n(Le), {
549
+ a.value ? (c(), _(n(dt), {
550
550
  key: 0,
551
551
  direction: "vertical"
552
552
  })) : C("", !0),
553
- a.value ? (c(), j("span", ml, N(a.value), 1)) : C("", !0)
553
+ a.value ? (c(), j("span", dl, N(a.value), 1)) : C("", !0)
554
554
  ]),
555
555
  _: 1
556
556
  })
557
557
  ]));
558
558
  }
559
- }), fl = { class: "v-toolbar-widget" }, gl = /* @__PURE__ */ E({
559
+ }), ml = { class: "v-toolbar-widget" }, vl = /* @__PURE__ */ E({
560
560
  name: "ToolbarWidget",
561
561
  inheritAttrs: !1,
562
562
  __name: "index",
@@ -567,28 +567,28 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
567
567
  const t = i, { forward: s, backward: l, forwardDisabled: a, backwardDisabled: r } = sn(), o = w("pc");
568
568
  return e({
569
569
  mode: o
570
- }), (u, p) => (c(), j("div", fl, [
570
+ }), (u, p) => (c(), j("div", ml, [
571
571
  v(n(fn), {
572
572
  size: "small",
573
573
  modelValue: o.value,
574
574
  "onUpdate:modelValue": p[0] || (p[0] = (m) => o.value = m)
575
575
  }, {
576
576
  default: g(() => [
577
- v(n(Ze), { label: "pc" }, {
577
+ v(n(Ge), { label: "pc" }, {
578
578
  default: g(() => [
579
- v(n(cs))
579
+ v(n(us))
580
580
  ]),
581
581
  _: 1
582
582
  }),
583
- v(n(Ze), { label: "mobile" }, {
583
+ v(n(Ge), { label: "mobile" }, {
584
584
  default: g(() => [
585
- v(n(ds))
585
+ v(n(cs))
586
586
  ]),
587
587
  _: 1
588
588
  }),
589
- v(n(Ze), { label: "pad" }, {
589
+ v(n(Ge), { label: "pad" }, {
590
590
  default: g(() => [
591
- v(n(ps))
591
+ v(n(ds))
592
592
  ]),
593
593
  _: 1
594
594
  })
@@ -605,7 +605,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
605
605
  disabled: n(r) || !!t.preview
606
606
  }, {
607
607
  default: g(() => [
608
- v(n(ms))
608
+ v(n(ps))
609
609
  ]),
610
610
  _: 1
611
611
  }, 8, ["onClick", "disabled"]),
@@ -616,7 +616,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
616
616
  disabled: n(a) || !!t.preview
617
617
  }, {
618
618
  default: g(() => [
619
- v(n(vs))
619
+ v(n(ms))
620
620
  ]),
621
621
  _: 1
622
622
  }, 8, ["onClick", "disabled"])
@@ -625,7 +625,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
625
625
  })
626
626
  ]));
627
627
  }
628
- }), hl = { class: "v-actions-widget" }, bl = /* @__PURE__ */ z("span", null, "发布", -1), _l = /* @__PURE__ */ E({
628
+ }), fl = { class: "v-actions-widget" }, gl = /* @__PURE__ */ z("span", null, "发布", -1), hl = /* @__PURE__ */ E({
629
629
  name: "ActionsWidget",
630
630
  inheritAttrs: !1,
631
631
  __name: "index",
@@ -654,22 +654,9 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
654
654
  const m = e.project.value;
655
655
  m && (p === "current" ? o() : m.publish());
656
656
  };
657
- return (p, m) => (c(), j("div", hl, [
658
- v(n(hn), {
659
- value: 0,
660
- max: 99,
661
- hidden: !0
662
- }, {
663
- default: g(() => [
664
- v(n(ke), {
665
- mode: "icon",
666
- icon: n(fs),
667
- background: "hover"
668
- }, null, 8, ["icon"])
669
- ]),
670
- _: 1
671
- }),
672
- v(n(Le), { direction: "vertical" }),
657
+ return (p, m) => (c(), j("div", fl, [
658
+ C("", !0),
659
+ C("", !0),
673
660
  v(n(re), {
674
661
  onClick: r,
675
662
  type: s.value ? "warning" : "default",
@@ -677,7 +664,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
677
664
  title: "预览"
678
665
  }, {
679
666
  default: g(() => [
680
- v(n(gs))
667
+ v(n(vs))
681
668
  ]),
682
669
  _: 1
683
670
  }, 8, ["type"]),
@@ -688,7 +675,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
688
675
  title: "刷新"
689
676
  }, {
690
677
  default: g(() => [
691
- v(n(hs))
678
+ v(n(fs))
692
679
  ]),
693
680
  _: 1
694
681
  }),
@@ -699,11 +686,11 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
699
686
  onClick: a
700
687
  }, {
701
688
  default: g(() => [
702
- v(n(bs))
689
+ v(n(gs))
703
690
  ]),
704
691
  _: 1
705
692
  }),
706
- v(n(Le), { direction: "vertical" }),
693
+ v(n(dt), { direction: "vertical" }),
707
694
  v(n(Bt), {
708
695
  "split-button": "",
709
696
  type: "primary",
@@ -714,13 +701,13 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
714
701
  dropdown: g(() => [
715
702
  v(n(Tt), null, {
716
703
  default: g(() => [
717
- v(n(nt), { command: "current" }, {
704
+ v(n(tt), { command: "current" }, {
718
705
  default: g(() => [
719
706
  H("发布页面")
720
707
  ]),
721
708
  _: 1
722
709
  }),
723
- v(n(nt), { command: "project" }, {
710
+ v(n(tt), { command: "project" }, {
724
711
  default: g(() => [
725
712
  H("整站发布")
726
713
  ]),
@@ -731,13 +718,13 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
731
718
  })
732
719
  ]),
733
720
  default: g(() => [
734
- bl
721
+ gl
735
722
  ]),
736
723
  _: 1
737
724
  })
738
725
  ]));
739
726
  }
740
- }), yl = { class: "v-icon-setter" }, kl = { class: "v-icon-setter__content" }, wl = { class: "v-icon-setter__list" }, ln = /* @__PURE__ */ E({
727
+ }), bl = { class: "v-icon-setter" }, _l = { class: "v-icon-setter__content" }, yl = { class: "v-icon-setter__list" }, ln = /* @__PURE__ */ E({
741
728
  name: "IconSetter",
742
729
  __name: "icon",
743
730
  props: {
@@ -747,9 +734,9 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
747
734
  emits: ["change", "update:modelValue"],
748
735
  setup(i, { emit: e }) {
749
736
  const t = i, s = e, l = w(!1), a = w(t.modelValue), r = w(""), o = S(
750
- () => it[t.modelValue] || t.modelValue
737
+ () => rt[t.modelValue] || t.modelValue
751
738
  ), u = S(() => {
752
- const h = Object.entries(it);
739
+ const h = Object.entries(rt);
753
740
  return r.value ? h.filter((d) => d[0].toLowerCase().includes(r.value)) : h;
754
741
  }), p = (h) => {
755
742
  a.value = h;
@@ -760,13 +747,13 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
760
747
  }, b = () => {
761
748
  l.value = !0;
762
749
  };
763
- return (h, d) => (c(), j("div", yl, [
750
+ return (h, d) => (c(), j("div", bl, [
764
751
  v(n(pe), {
765
752
  size: t.size,
766
753
  readonly: "",
767
754
  placeholder: "请选择图标",
768
755
  "model-value": t.modelValue,
769
- "suffix-icon": n(_s),
756
+ "suffix-icon": n(hs),
770
757
  onFocus: b
771
758
  }, {
772
759
  prepend: g(() => [
@@ -799,7 +786,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
799
786
  })
800
787
  ]),
801
788
  default: g(() => [
802
- z("div", kl, [
789
+ z("div", _l, [
803
790
  v(n(pe), {
804
791
  size: t.size,
805
792
  "prefix-icon": n(Ut),
@@ -808,7 +795,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
808
795
  "onUpdate:modelValue": d[0] || (d[0] = (k) => r.value = k),
809
796
  placeholder: "请输入查询关键字"
810
797
  }, null, 8, ["size", "prefix-icon", "modelValue"]),
811
- z("div", wl, [
798
+ z("div", yl, [
812
799
  (c(!0), j($, null, B(u.value, (k) => (c(), _(n(De), {
813
800
  icon: k[1],
814
801
  onClick: (y) => p(k[0]),
@@ -822,7 +809,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
822
809
  }, 8, ["modelValue"])) : C("", !0)
823
810
  ]));
824
811
  }
825
- }), Sl = /* @__PURE__ */ E({
812
+ }), kl = /* @__PURE__ */ E({
826
813
  name: "PageForm",
827
814
  __name: "form",
828
815
  props: {
@@ -830,7 +817,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
830
817
  parentId: {}
831
818
  },
832
819
  setup(i) {
833
- const e = i, { project: t } = Ge(), s = S(() => e.item ? "编辑页面" : "新增页面"), l = () => ({
820
+ const e = i, { project: t } = He(), s = S(() => e.item ? "编辑页面" : "新增页面"), l = () => ({
834
821
  dir: !1,
835
822
  name: "",
836
823
  title: "",
@@ -971,7 +958,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
971
958
  }, u = S(() => t.header ? {
972
959
  content: t.title,
973
960
  subtitle: t.subtitle,
974
- icon: t.back ? ys : void 0,
961
+ icon: t.back ? bs : void 0,
975
962
  onClickBack: t.back ? a : void 0
976
963
  } : null);
977
964
  return (p, m) => (c(), _(n(mt), {
@@ -981,7 +968,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
981
968
  fit: ""
982
969
  }, cn({
983
970
  actions: g(() => [
984
- t.plus ? (c(), _(n(ke), {
971
+ t.plus ? (c(), _(n(Se), {
985
972
  key: 0,
986
973
  size: p.$attrs.size,
987
974
  mode: "icon",
@@ -990,20 +977,20 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
990
977
  title: "新增",
991
978
  onClick: l
992
979
  }, null, 8, ["size", "icon"])) : C("", !0),
993
- t.remove ? (c(), _(n(ke), {
980
+ t.remove ? (c(), _(n(Se), {
994
981
  key: 1,
995
982
  size: p.$attrs.size,
996
983
  mode: "icon",
997
- icon: n(ks),
984
+ icon: n(_s),
998
985
  background: "hover",
999
986
  title: "清除",
1000
987
  onClick: r
1001
988
  }, null, 8, ["size", "icon"])) : C("", !0),
1002
- t.save ? (c(), _(n(ke), {
989
+ t.save ? (c(), _(n(Se), {
1003
990
  key: 2,
1004
991
  size: p.$attrs.size,
1005
992
  mode: "icon",
1006
- icon: n(ws),
993
+ icon: n(ys),
1007
994
  background: "hover",
1008
995
  title: "保存",
1009
996
  onClick: o
@@ -1024,10 +1011,10 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
1024
1011
  } : void 0
1025
1012
  ]), 1032, ["header"]));
1026
1013
  }
1027
- }), Vl = { class: "v-tabs__header" }, xl = {
1014
+ }), wl = { class: "v-tabs__header" }, Sl = {
1028
1015
  key: 0,
1029
1016
  class: "v-tabs__actions"
1030
- }, Ke = /* @__PURE__ */ E({
1017
+ }, qe = /* @__PURE__ */ E({
1031
1018
  __name: "tabs",
1032
1019
  props: {
1033
1020
  items: { default: () => [] },
@@ -1061,7 +1048,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
1061
1048
  radius: !1
1062
1049
  }, {
1063
1050
  header: g(() => [
1064
- z("div", Vl, [
1051
+ z("div", wl, [
1065
1052
  v(n(Mt), {
1066
1053
  class: "v-tabs__tabs",
1067
1054
  items: t.items,
@@ -1071,8 +1058,8 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
1071
1058
  onTabRemove: r,
1072
1059
  stretch: t.stretch
1073
1060
  }, null, 8, ["items", "modelValue", "stretch"]),
1074
- t.menus && t.menus.length ? (c(), j("div", xl, [
1075
- t.menus && t.menus.length ? (c(), _(n(ke), {
1061
+ t.menus && t.menus.length ? (c(), j("div", Sl, [
1062
+ t.menus && t.menus.length ? (c(), _(n(Se), {
1076
1063
  key: 0,
1077
1064
  mode: "icon",
1078
1065
  size: "small",
@@ -1108,10 +1095,10 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
1108
1095
  _: 3
1109
1096
  }));
1110
1097
  }
1111
- }), Cl = {
1098
+ }), Vl = {
1112
1099
  key: 2,
1113
1100
  class: "v-item__index"
1114
- }, El = { class: "v-item__content" }, jl = {
1101
+ }, xl = { class: "v-item__content" }, Cl = {
1115
1102
  key: 3,
1116
1103
  class: "v-item__subtitle"
1117
1104
  }, Y = /* @__PURE__ */ E({
@@ -1150,7 +1137,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
1150
1137
  },
1151
1138
  remove: {
1152
1139
  label: "删除",
1153
- icon: qe
1140
+ icon: Ue
1154
1141
  },
1155
1142
  lock: {
1156
1143
  label: "锁定",
@@ -1158,7 +1145,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
1158
1145
  },
1159
1146
  unlock: {
1160
1147
  label: "解锁",
1161
- icon: Ss
1148
+ icon: ks
1162
1149
  },
1163
1150
  invisible: {
1164
1151
  label: "隐藏",
@@ -1166,11 +1153,11 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
1166
1153
  },
1167
1154
  visible: {
1168
1155
  label: "显示",
1169
- icon: Vs
1156
+ icon: ws
1170
1157
  },
1171
1158
  home: {
1172
1159
  label: "主页",
1173
- icon: xs
1160
+ icon: Ss
1174
1161
  }
1175
1162
  }, s = i, l = e, a = w(!!s.modelValue), r = S(() => s.actions.map((m) => {
1176
1163
  const f = t[m];
@@ -1187,7 +1174,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
1187
1174
  })), u = () => {
1188
1175
  l("click", s.modelValue);
1189
1176
  }, p = async (m) => {
1190
- m === "remove" ? await ct.confirm("确定删除吗?", "提示", {
1177
+ m === "remove" ? await ut.confirm("确定删除吗?", "提示", {
1191
1178
  type: "warning"
1192
1179
  }).catch(() => !1) && l("action", {
1193
1180
  name: m,
@@ -1221,7 +1208,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
1221
1208
  key: 0,
1222
1209
  icon: m.icon
1223
1210
  }, null, 8, ["icon"])) : C("", !0),
1224
- s.tag ? (c(), _(n(bn), {
1211
+ s.tag ? (c(), _(n(hn), {
1225
1212
  key: 1,
1226
1213
  class: "v-item__tag",
1227
1214
  size: "small",
@@ -1232,9 +1219,9 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
1232
1219
  ]),
1233
1220
  _: 1
1234
1221
  }, 8, ["type"])) : C("", !0),
1235
- m.index !== void 0 ? (c(), j("span", Cl, " # " + N(m.index), 1)) : C("", !0),
1236
- z("span", El, N(m.title), 1),
1237
- m.subtitle ? (c(), j("span", jl, N(m.subtitle), 1)) : C("", !0)
1222
+ m.index !== void 0 ? (c(), j("span", Vl, " # " + N(m.index), 1)) : C("", !0),
1223
+ z("span", xl, N(m.title), 1),
1224
+ m.subtitle ? (c(), j("span", Cl, N(m.subtitle), 1)) : C("", !0)
1238
1225
  ])
1239
1226
  ]),
1240
1227
  _: 3
@@ -1245,7 +1232,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
1245
1232
  }, ["stop"]))
1246
1233
  }, {
1247
1234
  default: g(() => [
1248
- (c(!0), j($, null, B(r.value, (b) => (c(), _(n(ke), {
1235
+ (c(!0), j($, null, B(r.value, (b) => (c(), _(n(Se), {
1249
1236
  name: b.name,
1250
1237
  title: b.label,
1251
1238
  mode: "icon",
@@ -1270,7 +1257,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
1270
1257
  _: 3
1271
1258
  }, 8, ["class"]));
1272
1259
  }
1273
- }), Al = ["draggable"], Dl = { class: "v-box__name" }, Pl = { class: "v-box__label" }, ut = /* @__PURE__ */ E({
1260
+ }), El = ["draggable"], jl = { class: "v-box__name" }, Al = { class: "v-box__label" }, it = /* @__PURE__ */ E({
1274
1261
  name: "VBox",
1275
1262
  __name: "box",
1276
1263
  props: {
@@ -1285,7 +1272,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
1285
1272
  const t = i, s = e, l = () => {
1286
1273
  s("edit");
1287
1274
  }, a = async () => {
1288
- await ct.confirm("确认删除?", "提示", {
1275
+ await ut.confirm("确认删除?", "提示", {
1289
1276
  type: "warning"
1290
1277
  }).catch(() => !1) && s("remove");
1291
1278
  }, r = S(() => ({
@@ -1308,8 +1295,8 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
1308
1295
  align: "center"
1309
1296
  }, {
1310
1297
  default: g(() => [
1311
- z("span", Dl, N(t.name), 1),
1312
- z("span", Pl, N(t.title), 1)
1298
+ z("span", jl, N(t.name), 1),
1299
+ z("span", Al, N(t.title), 1)
1313
1300
  ]),
1314
1301
  _: 1
1315
1302
  }),
@@ -1325,15 +1312,15 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
1325
1312
  onClick: l
1326
1313
  }, null, 8, ["icon"]),
1327
1314
  v(n(De), {
1328
- icon: n(qe),
1315
+ icon: n(Ue),
1329
1316
  onClick: a
1330
1317
  }, null, 8, ["icon"])
1331
1318
  ]),
1332
1319
  _: 1
1333
1320
  })) : C("", !0)
1334
- ], 42, Al));
1321
+ ], 42, El));
1335
1322
  }
1336
- }), Il = { class: "v-context-viewer" }, Rl = /* @__PURE__ */ E({
1323
+ }), Dl = { class: "v-context-viewer" }, Pl = /* @__PURE__ */ E({
1337
1324
  __name: "viewer",
1338
1325
  props: {
1339
1326
  context: {}
@@ -1341,20 +1328,20 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
1341
1328
  emits: ["pick", "copy"],
1342
1329
  setup(i, { emit: e }) {
1343
1330
  const t = i, s = e, l = ["$provider", "$apis", "$components", "context"], a = (m) => {
1344
- const f = m.value, b = Qe(f);
1331
+ const f = m.value, b = Ke(f);
1345
1332
  return b === "Object" || b === "Module" ? Object.keys(f || {}).length === 0 : b === "Array" ? f.length === 0 : !0;
1346
1333
  }, r = (m, f = "this") => typeof m == "object" ? Array.isArray(m) ? m.map((b, h) => {
1347
1334
  const d = `[${h}]`;
1348
1335
  return {
1349
1336
  label: d,
1350
1337
  value: b,
1351
- type: Qe(b),
1338
+ type: Ke(b),
1352
1339
  path: `${f}${d}`
1353
1340
  };
1354
1341
  }) : Object.entries(m).map(([b, h]) => ({
1355
1342
  label: b,
1356
1343
  value: h,
1357
- type: Qe(h),
1344
+ type: Ke(h),
1358
1345
  path: `${f}.${b}`
1359
1346
  })).filter(
1360
1347
  (b) => !b.label.startsWith("__") && !l.includes(b.label)
@@ -1370,7 +1357,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
1370
1357
  }, p = (m) => {
1371
1358
  s("pick", m.path);
1372
1359
  };
1373
- return (m, f) => (c(), j("div", Il, [
1360
+ return (m, f) => (c(), j("div", Dl, [
1374
1361
  m.context ? (c(), _(n(pt), {
1375
1362
  key: 0,
1376
1363
  lazy: "",
@@ -1415,7 +1402,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
1415
1402
  "close"
1416
1403
  ],
1417
1404
  setup(i, { emit: e }) {
1418
- const t = i, s = e, { searchResult: l, keyword: a } = al(t.block, t.context), { copy: r } = Os({}), o = [
1405
+ const t = i, s = e, { searchResult: l, keyword: a } = sl(t.block, t.context), { copy: r } = Ms({}), o = [
1419
1406
  {
1420
1407
  name: "normal",
1421
1408
  label: "常用"
@@ -1437,7 +1424,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
1437
1424
  }, k = (V) => {
1438
1425
  s("pick", V);
1439
1426
  }, y = (V) => {
1440
- r(V), dt.success({
1427
+ r(V), ct.success({
1441
1428
  message: "已经复制到粘贴板"
1442
1429
  });
1443
1430
  };
@@ -1464,7 +1451,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
1464
1451
  height: "100%"
1465
1452
  }, {
1466
1453
  default: g(() => [
1467
- v(Ke, {
1454
+ v(qe, {
1468
1455
  class: "v-binder__tabs",
1469
1456
  items: o,
1470
1457
  modelValue: u.value,
@@ -1481,14 +1468,14 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
1481
1468
  Ae(z("div", null, [
1482
1469
  v(n(pe), {
1483
1470
  modelValue: n(a),
1484
- "onUpdate:modelValue": x[0] || (x[0] = (D) => tt(a) ? a.value = D : null),
1471
+ "onUpdate:modelValue": x[0] || (x[0] = (D) => Ye(a) ? a.value = D : null),
1485
1472
  size: "small",
1486
1473
  clearable: "",
1487
1474
  "prefix-icon": n(Ut),
1488
1475
  placeholder: "筛选可用项"
1489
1476
  }, null, 8, ["modelValue", "prefix-icon"]),
1490
1477
  (c(!0), j($, null, B(n(l), (D) => (c(), j("div", null, [
1491
- v(n(Le), { "border-style": "dotted" }, {
1478
+ v(n(dt), { "border-style": "dotted" }, {
1492
1479
  default: g(() => [
1493
1480
  H(N(D.title), 1)
1494
1481
  ]),
@@ -1505,14 +1492,14 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
1505
1492
  ]))), 256)),
1506
1493
  n(l).length ? C("", !0) : (c(), _(n(Z), { key: 0 }))
1507
1494
  ], 512), [
1508
- [We, u.value === "normal"]
1495
+ [Oe, u.value === "normal"]
1509
1496
  ]),
1510
- Ae(v(Rl, {
1497
+ Ae(v(Pl, {
1511
1498
  context: t.context,
1512
1499
  onCopy: y,
1513
1500
  onPick: k
1514
1501
  }, null, 8, ["context"]), [
1515
- [We, u.value === "viewer"]
1502
+ [Oe, u.value === "viewer"]
1516
1503
  ])
1517
1504
  ]),
1518
1505
  _: 1
@@ -1577,7 +1564,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
1577
1564
  })
1578
1565
  ]),
1579
1566
  default: g(() => [
1580
- v(n(Tn), {
1567
+ v(n(Bn), {
1581
1568
  ref_key: "formRef",
1582
1569
  ref: p,
1583
1570
  class: "v-binder__form",
@@ -1603,7 +1590,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
1603
1590
  _: 3
1604
1591
  }, 8, ["model-value", "title"]));
1605
1592
  }
1606
- }), $l = { class: "v-slots-picker__sn" }, Bl = /* @__PURE__ */ E({
1593
+ }), Il = { class: "v-slots-picker__sn" }, Rl = /* @__PURE__ */ E({
1607
1594
  __name: "slots",
1608
1595
  props: {
1609
1596
  slots: { default: () => [] }
@@ -1625,7 +1612,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
1625
1612
  onSubmit: o
1626
1613
  }, u.$attrs), {
1627
1614
  default: g(() => [
1628
- v(n(_n), {
1615
+ v(n(bn), {
1629
1616
  title: "该组件支持多个插槽,请选择放置到其中一个",
1630
1617
  type: "warning",
1631
1618
  closable: !1
@@ -1645,7 +1632,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
1645
1632
  onClick: (b) => r(m)
1646
1633
  }, {
1647
1634
  default: g(() => [
1648
- z("span", $l, "#" + N(f + 1), 1),
1635
+ z("span", Il, "#" + N(f + 1), 1),
1649
1636
  H(" " + N(m.name), 1)
1650
1637
  ]),
1651
1638
  _: 2
@@ -1690,15 +1677,15 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
1690
1677
  de(a.$slots, "default")
1691
1678
  ], 6));
1692
1679
  }
1693
- }), Tl = /* @__PURE__ */ E({
1680
+ }), $l = /* @__PURE__ */ E({
1694
1681
  name: "PagesWidget",
1695
1682
  __name: "index",
1696
1683
  setup(i) {
1697
- const { project: e, engine: t } = Ge(), s = S(() => e.value?.pages || []), { current: l } = ne(), a = w(!1), r = w(), o = w(), u = () => {
1684
+ const { project: e, engine: t } = He(), s = S(() => e.value?.pages || []), { current: l } = ne(), a = w(!1), r = w(), o = w(), u = () => {
1698
1685
  o.value = void 0, r.value = void 0, a.value = !0;
1699
1686
  }, p = async (h) => {
1700
1687
  const { name: d, modelValue: k } = h, { data: y, node: V } = k;
1701
- if (d === "add" && (r.value = void 0, o.value = y.id, a.value = !0), d === "edit" && (r.value = He(y), o.value = void 0, a.value = !0), d === "remove") {
1688
+ if (d === "add" && (r.value = void 0, o.value = y.id, a.value = !0), d === "edit" && (r.value = Je(y), o.value = void 0, a.value = !0), d === "remove") {
1702
1689
  if (y.dir) {
1703
1690
  const x = e.value?.getPage(y.id);
1704
1691
  if (x && x.children?.length) {
@@ -1717,7 +1704,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
1717
1704
  h.raw && ae("这是源码模式页面,不能低代码设计", "warning"), h.dir || h.raw ? t.project.value?.deactivate() : t.project.value?.active(h);
1718
1705
  }, f = (h, d, k) => k === "inner" ? !!d.data.dir : !0, b = () => {
1719
1706
  e.value?.update({
1720
- pages: et(s)
1707
+ pages: Xe(s)
1721
1708
  });
1722
1709
  };
1723
1710
  return (h, d) => (c(), _(n(W), {
@@ -1739,7 +1726,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
1739
1726
  default: g(({ data: k, node: y }) => [
1740
1727
  v(n(Y), {
1741
1728
  class: "v-pages-widget__item",
1742
- icon: n(it)[k.icon],
1729
+ icon: n(rt)[k.icon],
1743
1730
  title: k.title,
1744
1731
  subtitle: k.name,
1745
1732
  "model-value": { data: k, node: y },
@@ -1757,7 +1744,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
1757
1744
  ]),
1758
1745
  _: 1
1759
1746
  }, 8, ["data"]),
1760
- a.value ? (c(), _(Sl, {
1747
+ a.value ? (c(), _(kl, {
1761
1748
  key: 0,
1762
1749
  modelValue: a.value,
1763
1750
  "onUpdate:modelValue": d[0] || (d[0] = (k) => a.value = k),
@@ -1768,11 +1755,11 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
1768
1755
  _: 1
1769
1756
  }));
1770
1757
  }
1771
- }), Fl = /* @__PURE__ */ E({
1758
+ }), Bl = /* @__PURE__ */ E({
1772
1759
  name: "BlocksWidget",
1773
1760
  __name: "index",
1774
1761
  setup(i) {
1775
- const { span: e } = nn(), { blocks: t, engine: s } = Ys(), l = w(void 0), { current: a } = ne(), r = w(!1), o = S(() => l.value?.id ? "编辑" : "新增"), u = S(() => `(共 ${t.value.length} 个)`), p = () => ({
1762
+ const { span: e } = nn(), { blocks: t, engine: s } = Qs(), l = w(void 0), { current: a } = ne(), r = w(!1), o = S(() => l.value?.id ? "编辑" : "新增"), u = S(() => `(共 ${t.value.length} 个)`), p = () => ({
1776
1763
  name: "",
1777
1764
  title: "",
1778
1765
  type: "block"
@@ -1793,7 +1780,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
1793
1780
  }, f = () => {
1794
1781
  l.value = p(), r.value = !0;
1795
1782
  }, b = (x) => {
1796
- l.value = He(x), r.value = !0;
1783
+ l.value = Je(x), r.value = !0;
1797
1784
  }, h = (x) => {
1798
1785
  s.project.value?.removeBlock(x.id);
1799
1786
  }, d = (x) => {
@@ -1818,17 +1805,17 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
1818
1805
  onPlus: f
1819
1806
  }, {
1820
1807
  default: g(() => [
1821
- v(n(st), {
1808
+ v(n(nt), {
1822
1809
  wrap: "wrap",
1823
1810
  gutter: 5
1824
1811
  }, {
1825
1812
  default: g(() => [
1826
- (c(!0), j($, null, B(n(t), (F) => (c(), _(n(lt), {
1813
+ (c(!0), j($, null, B(n(t), (F) => (c(), _(n(st), {
1827
1814
  key: F.id,
1828
1815
  span: n(e)
1829
1816
  }, {
1830
1817
  default: g(() => [
1831
- v(n(ut), {
1818
+ v(n(it), {
1832
1819
  name: F.name,
1833
1820
  title: F.title,
1834
1821
  active: n(a)?.id === F.id,
@@ -1881,14 +1868,14 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
1881
1868
  _: 1
1882
1869
  }, 8, ["subtitle"]));
1883
1870
  }
1884
- }), zl = { class: "v-components-widget__search" }, Ml = {
1871
+ }), Tl = { class: "v-components-widget__search" }, Fl = {
1885
1872
  key: 0,
1886
1873
  class: "v-components-widget__result"
1887
- }, Nl = { class: "v-components-widget__list" }, Ol = /* @__PURE__ */ E({
1874
+ }, zl = { class: "v-components-widget__list" }, Ml = /* @__PURE__ */ E({
1888
1875
  name: "ComponentsWidget",
1889
1876
  __name: "index",
1890
1877
  setup(i) {
1891
- const { span: e, engine: t } = nn(), { tabs: s, currentTab: l, currentGroup: a, model: r, searchKey: o, searchResult: u } = tl(), p = (f) => {
1878
+ const { span: e, engine: t } = nn(), { tabs: s, currentTab: l, currentGroup: a, model: r, searchKey: o, searchResult: u } = Ys(), p = (f) => {
1892
1879
  const b = t.skeleton?.getWidget("Designer")?.widgetRef?.designer;
1893
1880
  b && b.setDragging(f);
1894
1881
  }, m = () => {
@@ -1901,32 +1888,32 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
1901
1888
  body: { flex: !0, direction: "column" }
1902
1889
  }, {
1903
1890
  default: g(() => [
1904
- z("div", zl, [
1891
+ z("div", Tl, [
1905
1892
  v(n(pe), {
1906
1893
  modelValue: n(o),
1907
- "onUpdate:modelValue": b[0] || (b[0] = (h) => tt(o) ? o.value = h : null),
1894
+ "onUpdate:modelValue": b[0] || (b[0] = (h) => Ye(o) ? o.value = h : null),
1908
1895
  placeholder: "搜索组件",
1909
1896
  clearable: "",
1910
1897
  size: "small"
1911
1898
  }, {
1912
1899
  prefix: g(() => [
1913
- v(n(Cs))
1900
+ v(n(Vs))
1914
1901
  ]),
1915
1902
  _: 1
1916
1903
  }, 8, ["modelValue"])
1917
1904
  ]),
1918
- n(o) ? (c(), j("div", Ml, [
1919
- v(n(st), {
1905
+ n(o) ? (c(), j("div", Fl, [
1906
+ v(n(nt), {
1920
1907
  wrap: "wrap",
1921
1908
  gutter: 5
1922
1909
  }, {
1923
1910
  default: g(() => [
1924
- (c(!0), j($, null, B(n(u), (h) => (c(), _(n(lt), {
1911
+ (c(!0), j($, null, B(n(u), (h) => (c(), _(n(st), {
1925
1912
  span: n(e),
1926
1913
  key: h.name
1927
1914
  }, {
1928
1915
  default: g(() => [
1929
- v(n(ut), {
1916
+ v(n(it), {
1930
1917
  name: h.name,
1931
1918
  title: h.label || h.name,
1932
1919
  draggable: "",
@@ -1944,34 +1931,34 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
1944
1931
  key: 1,
1945
1932
  items: n(s),
1946
1933
  modelValue: n(l),
1947
- "onUpdate:modelValue": b[2] || (b[2] = (h) => tt(l) ? l.value = h : null)
1934
+ "onUpdate:modelValue": b[2] || (b[2] = (h) => Ye(l) ? l.value = h : null)
1948
1935
  }, {
1949
1936
  default: g(() => [
1950
- z("div", Nl, [
1951
- n(a) ? (c(), _(n(yn), {
1937
+ z("div", zl, [
1938
+ n(a) ? (c(), _(n(_n), {
1952
1939
  key: 0,
1953
1940
  modelValue: n(r)[n(l)],
1954
1941
  "onUpdate:modelValue": b[1] || (b[1] = (h) => n(r)[n(l)] = h)
1955
1942
  }, {
1956
1943
  default: g(() => [
1957
- (c(!0), j($, null, B(n(a).children, (h) => (c(), _(n(kn), {
1944
+ (c(!0), j($, null, B(n(a).children, (h) => (c(), _(n(yn), {
1958
1945
  key: h.name,
1959
1946
  name: h.name,
1960
1947
  title: `${h.label} (${h.count})`
1961
1948
  }, {
1962
1949
  default: g(() => [
1963
- h.components ? (c(), _(n(st), {
1950
+ h.components ? (c(), _(n(nt), {
1964
1951
  key: 0,
1965
1952
  wrap: "wrap",
1966
1953
  gutter: 5
1967
1954
  }, {
1968
1955
  default: g(() => [
1969
- (c(!0), j($, null, B(h.components, (d) => (c(), _(n(lt), {
1956
+ (c(!0), j($, null, B(h.components, (d) => (c(), _(n(st), {
1970
1957
  span: n(e),
1971
1958
  key: d.name
1972
1959
  }, {
1973
1960
  default: g(() => [
1974
- v(n(ut), {
1961
+ v(n(it), {
1975
1962
  name: d.name,
1976
1963
  title: d.label || d.name,
1977
1964
  draggable: "",
@@ -1998,7 +1985,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
1998
1985
  _: 1
1999
1986
  }));
2000
1987
  }
2001
- }), Wl = /* @__PURE__ */ E({
1988
+ }), Nl = /* @__PURE__ */ E({
2002
1989
  name: "OutlineWidget",
2003
1990
  __name: "index",
2004
1991
  setup(i) {
@@ -2068,7 +2055,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
2068
2055
  ge,
2069
2056
  M
2070
2057
  )) {
2071
- t.value?.setDropping(null), p(), dt.warning({
2058
+ t.value?.setDropping(null), p(), ct.warning({
2072
2059
  message: `${G.model.name}不能放置到该位置`
2073
2060
  }), t.value?.setDragging(null);
2074
2061
  return;
@@ -2170,7 +2157,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
2170
2157
  _: 1
2171
2158
  }));
2172
2159
  }
2173
- }), Ll = /* @__PURE__ */ E({
2160
+ }), Ol = /* @__PURE__ */ E({
2174
2161
  name: "HistoryWidget",
2175
2162
  __name: "index",
2176
2163
  setup(i) {
@@ -2218,11 +2205,11 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
2218
2205
  return xe("div", "组件加载失败!");
2219
2206
  }
2220
2207
  })
2221
- }), Jl = /* @__PURE__ */ E({
2208
+ }), Wl = /* @__PURE__ */ E({
2222
2209
  name: "ApisWidget",
2223
2210
  __name: "index",
2224
2211
  setup(i) {
2225
- const e = w(!1), t = w(null), s = w(!1), l = S(() => s.value ? "编辑API" : "新增API"), a = S(() => r.value?.apis || []), { project: r } = Ge(), o = () => ({
2212
+ const e = w(!1), t = w(null), s = w(!1), l = S(() => s.value ? "编辑API" : "新增API"), a = S(() => r.value?.apis || []), { project: r } = He(), o = () => ({
2226
2213
  method: "get",
2227
2214
  name: "",
2228
2215
  label: "",
@@ -2241,7 +2228,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
2241
2228
  }
2242
2229
  }), u = () => {
2243
2230
  e.value = !0, s.value = !1, t.value = o();
2244
- }, p = Us.map((y) => ({
2231
+ }, p = Ls.map((y) => ({
2245
2232
  label: y,
2246
2233
  value: y.toLowerCase()
2247
2234
  })), m = {
@@ -2275,7 +2262,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
2275
2262
  }, h = (y) => {
2276
2263
  y.name === "edit" && d(y.modelValue), y.name === "remove" && r.value?.removeApi(y.modelValue.name);
2277
2264
  }, d = (y) => {
2278
- s.value = !0, t.value = He(y), e.value = !0;
2265
+ s.value = !0, t.value = Je(y), e.value = !0;
2279
2266
  }, k = async (y) => r.value?.existApiName(
2280
2267
  y.name,
2281
2268
  s.value ? [y.id] : []
@@ -2480,7 +2467,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
2480
2467
  _: 1
2481
2468
  }));
2482
2469
  }
2483
- }), Ul = /* @__PURE__ */ E({
2470
+ }), Ll = /* @__PURE__ */ E({
2484
2471
  name: "DepsWidget",
2485
2472
  __name: "index",
2486
2473
  setup(i) {
@@ -2575,7 +2562,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
2575
2562
  _: 1
2576
2563
  }));
2577
2564
  }
2578
- }), Hl = /* @__PURE__ */ E({
2565
+ }), Jl = /* @__PURE__ */ E({
2579
2566
  __name: "actions",
2580
2567
  props: {
2581
2568
  position: {},
@@ -2593,12 +2580,12 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
2593
2580
  }))), o = [
2594
2581
  {
2595
2582
  name: "prev",
2596
- icon: Es,
2583
+ icon: xs,
2597
2584
  title: "向前移动"
2598
2585
  },
2599
2586
  {
2600
2587
  name: "next",
2601
- icon: js,
2588
+ icon: Cs,
2602
2589
  title: "向后移动"
2603
2590
  },
2604
2591
  {
@@ -2608,7 +2595,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
2608
2595
  },
2609
2596
  {
2610
2597
  name: "remove",
2611
- icon: qe,
2598
+ icon: Ue,
2612
2599
  title: "删除"
2613
2600
  }
2614
2601
  ], u = (m) => {
@@ -2619,7 +2606,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
2619
2606
  return (m, f) => (c(), j("div", {
2620
2607
  class: te(["v-actions", [`is-${t.position}`]])
2621
2608
  }, [
2622
- v(n(ke), {
2609
+ v(n(Se), {
2623
2610
  mode: "icon",
2624
2611
  size: "small",
2625
2612
  icon: n(Xt),
@@ -2628,7 +2615,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
2628
2615
  background: "none",
2629
2616
  onCommand: u
2630
2617
  }, null, 8, ["icon", "label", "menus"]),
2631
- v(n(Fn), {
2618
+ v(n(Tn), {
2632
2619
  disabled: !a.value,
2633
2620
  mode: "icon",
2634
2621
  size: "small",
@@ -2638,15 +2625,15 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
2638
2625
  }, null, 8, ["disabled"])
2639
2626
  ], 2));
2640
2627
  }
2641
- }), ql = {
2628
+ }), Ul = {
2642
2629
  key: 1,
2643
2630
  class: "v-designer__placeholder"
2644
- }, Gl = /* @__PURE__ */ E({
2631
+ }, Hl = /* @__PURE__ */ E({
2645
2632
  name: "VDesigner",
2646
2633
  inheritAttrs: !1,
2647
2634
  __name: "index",
2648
2635
  setup(i, { expose: e }) {
2649
- const t = w(), s = w(), { width: l, height: a } = Yt(t), { dependencies: r, engine: o } = tn(), { current: u, isEmpty: p } = ne(), m = S(() => o.skeleton?.getWidget("Toolbar")?.widgetRef.mode ?? "pc"), { designer: f, hover: b, dropping: h, selected: d } = nl(
2636
+ const t = w(), s = w(), { width: l, height: a } = Yt(t), { dependencies: r, engine: o } = tn(), { current: u, isEmpty: p } = ne(), m = S(() => o.skeleton?.getWidget("Toolbar")?.widgetRef.mode ?? "pc"), { designer: f, hover: b, dropping: h, selected: d } = el(
2650
2637
  s,
2651
2638
  r
2652
2639
  ), k = (y) => {
@@ -2715,7 +2702,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
2715
2702
  class: "v-designer__selected",
2716
2703
  style: Fe(n(d).style)
2717
2704
  }, [
2718
- v(Hl, {
2705
+ v(Jl, {
2719
2706
  position: n(d).position,
2720
2707
  model: n(d).model,
2721
2708
  path: n(d).path,
@@ -2729,7 +2716,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
2729
2716
  key: 0,
2730
2717
  description: "请新建或打开文件"
2731
2718
  })),
2732
- n(u) && n(p) ? (c(), j("div", ql, " 您可以拖拽组件放置到这里 ")) : C("", !0)
2719
+ n(u) && n(p) ? (c(), j("div", Ul, " 您可以拖拽组件放置到这里 ")) : C("", !0)
2733
2720
  ], 512));
2734
2721
  }
2735
2722
  }), Be = /* @__PURE__ */ E({
@@ -2835,7 +2822,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
2835
2822
  _: 3
2836
2823
  }, 8, ["title"]));
2837
2824
  }
2838
- }), Kl = /* @__PURE__ */ E({
2825
+ }), ql = /* @__PURE__ */ E({
2839
2826
  __name: "state",
2840
2827
  props: {
2841
2828
  context: {},
@@ -2867,7 +2854,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
2867
2854
  submit: a
2868
2855
  }, null, 8, ["current", "context", "list"]));
2869
2856
  }
2870
- }), Zl = /* @__PURE__ */ E({
2857
+ }), Gl = /* @__PURE__ */ E({
2871
2858
  __name: "computed",
2872
2859
  props: {
2873
2860
  context: {},
@@ -2899,7 +2886,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
2899
2886
  submit: a
2900
2887
  }, null, 8, ["current", "context", "list"]));
2901
2888
  }
2902
- }), Ql = /* @__PURE__ */ E({
2889
+ }), Kl = /* @__PURE__ */ E({
2903
2890
  __name: "methods",
2904
2891
  props: {
2905
2892
  context: {},
@@ -2931,14 +2918,14 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
2931
2918
  submit: a
2932
2919
  }, null, 8, ["current", "context", "list"]));
2933
2920
  }
2934
- }), Xl = /* @__PURE__ */ E({
2921
+ }), Zl = /* @__PURE__ */ E({
2935
2922
  __name: "lifeCycles",
2936
2923
  props: {
2937
2924
  context: {},
2938
2925
  current: {}
2939
2926
  },
2940
2927
  setup(i) {
2941
- const e = i, t = S(() => Yn.map((o) => ({
2928
+ const e = i, t = S(() => Xn.map((o) => ({
2942
2929
  label: o,
2943
2930
  value: o
2944
2931
  }))), s = S(() => Object.entries(e.current?.lifeCycles || {}).map(([u, p]) => ({ name: u, value: Ce(p) }))), l = () => ({
@@ -2994,7 +2981,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
2994
2981
  _: 1
2995
2982
  }, 8, ["current", "context", "list"]));
2996
2983
  }
2997
- }), Yl = /* @__PURE__ */ E({
2984
+ }), Ql = /* @__PURE__ */ E({
2998
2985
  __name: "watch",
2999
2986
  props: {
3000
2987
  context: {},
@@ -3089,7 +3076,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
3089
3076
  _: 1
3090
3077
  }, 8, ["current", "context", "list"]));
3091
3078
  }
3092
- }), ea = /* @__PURE__ */ E({
3079
+ }), Xl = /* @__PURE__ */ E({
3093
3080
  __name: "index",
3094
3081
  setup(i) {
3095
3082
  const { current: e, context: t } = ne();
@@ -3099,23 +3086,23 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
3099
3086
  fit: ""
3100
3087
  }, {
3101
3088
  default: g(() => [
3102
- v(Kl, {
3089
+ v(ql, {
3103
3090
  current: n(e),
3104
3091
  context: n(t)
3105
3092
  }, null, 8, ["current", "context"]),
3106
- v(Zl, {
3093
+ v(Gl, {
3107
3094
  current: n(e),
3108
3095
  context: n(t)
3109
3096
  }, null, 8, ["current", "context"]),
3110
- v(Ql, {
3097
+ v(Kl, {
3111
3098
  current: n(e),
3112
3099
  context: n(t)
3113
3100
  }, null, 8, ["current", "context"]),
3114
- v(Xl, {
3101
+ v(Zl, {
3115
3102
  current: n(e),
3116
3103
  context: n(t)
3117
3104
  }, null, 8, ["current", "context"]),
3118
- v(Yl, {
3105
+ v(Ql, {
3119
3106
  current: n(e),
3120
3107
  context: n(t)
3121
3108
  }, null, 8, ["current", "context"])
@@ -3123,7 +3110,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
3123
3110
  _: 1
3124
3111
  }));
3125
3112
  }
3126
- }), Ye = /* @__PURE__ */ E({
3113
+ }), Qe = /* @__PURE__ */ E({
3127
3114
  __name: "setters",
3128
3115
  props: {
3129
3116
  context: {},
@@ -3147,7 +3134,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
3147
3134
  fit: !1
3148
3135
  }, {
3149
3136
  default: g(() => [
3150
- v(n(Ne), {
3137
+ v(n(Me), {
3151
3138
  class: "v-properties-widget__form",
3152
3139
  size: "small",
3153
3140
  "label-width": "90px",
@@ -3170,7 +3157,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
3170
3157
  _: 1
3171
3158
  }, 8, ["title"]));
3172
3159
  }
3173
- }), ta = /* @__PURE__ */ E({
3160
+ }), Yl = /* @__PURE__ */ E({
3174
3161
  name: "PropertiesWidget",
3175
3162
  __name: "index",
3176
3163
  setup(i) {
@@ -3183,7 +3170,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
3183
3170
  addCustom: p,
3184
3171
  removeCustom: m,
3185
3172
  isExist: f
3186
- } = ol(s), b = w(!1), h = w(), d = () => {
3173
+ } = ll(s), b = w(!1), h = w(), d = () => {
3187
3174
  b.value = !0, h.value = {
3188
3175
  name: ""
3189
3176
  };
@@ -3200,7 +3187,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
3200
3187
  fit: ""
3201
3188
  }, {
3202
3189
  default: g(() => [
3203
- n(l) ? (c(), _(Ye, {
3190
+ n(l) ? (c(), _(Qe, {
3204
3191
  key: 0,
3205
3192
  title: "通用属性",
3206
3193
  current: n(e),
@@ -3209,7 +3196,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
3209
3196
  items: n(a),
3210
3197
  onChange: n(r)
3211
3198
  }, null, 8, ["current", "context", "node", "items", "onChange"])) : C("", !0),
3212
- n(l) ? (c(), _(Ye, {
3199
+ n(l) ? (c(), _(Qe, {
3213
3200
  key: 1,
3214
3201
  title: "组件属性",
3215
3202
  current: n(e),
@@ -3218,7 +3205,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
3218
3205
  items: n(o),
3219
3206
  onChange: n(r)
3220
3207
  }, null, 8, ["current", "context", "node", "items", "onChange"])) : C("", !0),
3221
- n(l) ? (c(), _(Ye, {
3208
+ n(l) ? (c(), _(Qe, {
3222
3209
  key: 2,
3223
3210
  title: "自定义属性",
3224
3211
  current: n(e),
@@ -3259,7 +3246,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
3259
3246
  _: 1
3260
3247
  })) : C("", !0);
3261
3248
  }
3262
- }), na = /* @__PURE__ */ E({
3249
+ }), ea = /* @__PURE__ */ E({
3263
3250
  name: "VariableBinder",
3264
3251
  __name: "variable",
3265
3252
  props: {
@@ -3304,7 +3291,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
3304
3291
  _: 1
3305
3292
  }, 8, ["block", "context", "model"]));
3306
3293
  }
3307
- }), sa = /* @__PURE__ */ E({
3294
+ }), ta = /* @__PURE__ */ E({
3308
3295
  name: "EventBinder",
3309
3296
  __name: "event",
3310
3297
  props: {
@@ -3322,7 +3309,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
3322
3309
  type: "JSFunction",
3323
3310
  value: e.event?.handler?.value || "() => {}"
3324
3311
  }
3325
- }), a = Hs.map((o) => ({
3312
+ }), a = Js.map((o) => ({
3326
3313
  label: o,
3327
3314
  value: o
3328
3315
  })), r = (o) => {
@@ -3364,15 +3351,15 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
3364
3351
  _: 1
3365
3352
  }, 8, ["block", "context", "model"]));
3366
3353
  }
3367
- }), la = /* @__PURE__ */ E({
3354
+ }), na = /* @__PURE__ */ E({
3368
3355
  name: "EventsWidget",
3369
3356
  __name: "index",
3370
3357
  setup(i) {
3371
- const { current: e, context: t } = ne(), { selected: s } = fe(), { mouseEventList: l, keyboardEventList: a, componentEventList: r } = rl(s), o = w({
3358
+ const { current: e, context: t } = ne(), { selected: s } = fe(), { mouseEventList: l, keyboardEventList: a, componentEventList: r } = al(s), o = w({
3372
3359
  name: "",
3373
3360
  event: void 0
3374
3361
  }), u = w(!1), p = (d) => {
3375
- o.value = He(d), u.value = !0;
3362
+ o.value = Je(d), u.value = !0;
3376
3363
  }, m = async (d) => {
3377
3364
  const k = {
3378
3365
  ...d,
@@ -3407,6 +3394,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
3407
3394
  description: "该组件无自带事件"
3408
3395
  })),
3409
3396
  (c(!0), j($, null, B(n(r), (y) => (c(), _(n(Y), {
3397
+ key: `component_${y.name}`,
3410
3398
  title: y.name,
3411
3399
  "model-value": y,
3412
3400
  border: "",
@@ -3415,7 +3403,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
3415
3403
  active: !!y.event,
3416
3404
  onClick: (V) => p(y),
3417
3405
  onAction: h
3418
- }, null, 8, ["title", "model-value", "actions", "active", "onClick"]))), 256))
3406
+ }, null, 8, ["title", "model-value", "actions", "active", "onClick"]))), 128))
3419
3407
  ]),
3420
3408
  _: 1
3421
3409
  }),
@@ -3427,6 +3415,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
3427
3415
  }, {
3428
3416
  default: g(() => [
3429
3417
  (c(!0), j($, null, B(n(l), (y) => (c(), _(n(Y), {
3418
+ key: `mouse_${y.name}`,
3430
3419
  title: y.name,
3431
3420
  "model-value": y,
3432
3421
  border: "",
@@ -3435,7 +3424,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
3435
3424
  active: !!y.event,
3436
3425
  onClick: (V) => p(y),
3437
3426
  onAction: h
3438
- }, null, 8, ["title", "model-value", "actions", "active", "onClick"]))), 256))
3427
+ }, null, 8, ["title", "model-value", "actions", "active", "onClick"]))), 128))
3439
3428
  ]),
3440
3429
  _: 1
3441
3430
  }),
@@ -3448,6 +3437,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
3448
3437
  }, {
3449
3438
  default: g(() => [
3450
3439
  (c(!0), j($, null, B(n(a), (y) => (c(), _(n(Y), {
3440
+ key: `keyboard_${y.name}`,
3451
3441
  title: y.name,
3452
3442
  "model-value": y,
3453
3443
  border: "",
@@ -3456,11 +3446,11 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
3456
3446
  active: !!y.event,
3457
3447
  onClick: (V) => p(y),
3458
3448
  onAction: h
3459
- }, null, 8, ["title", "model-value", "actions", "active", "onClick"]))), 256))
3449
+ }, null, 8, ["title", "model-value", "actions", "active", "onClick"]))), 128))
3460
3450
  ]),
3461
3451
  _: 1
3462
3452
  }),
3463
- u.value ? (c(), _(n(sa), {
3453
+ u.value ? (c(), _(n(ta), {
3464
3454
  key: 0,
3465
3455
  modelValue: u.value,
3466
3456
  "onUpdate:modelValue": k[0] || (k[0] = (y) => u.value = y),
@@ -3475,7 +3465,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
3475
3465
  _: 1
3476
3466
  }));
3477
3467
  }
3478
- }), aa = /* @__PURE__ */ E({
3468
+ }), sa = /* @__PURE__ */ E({
3479
3469
  name: "CssWidget",
3480
3470
  __name: "index",
3481
3471
  setup(i) {
@@ -3507,7 +3497,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
3507
3497
  _: 1
3508
3498
  }));
3509
3499
  }
3510
- }), oa = /* @__PURE__ */ E({
3500
+ }), la = /* @__PURE__ */ E({
3511
3501
  name: "DirectivesWidget",
3512
3502
  __name: "index",
3513
3503
  setup(i) {
@@ -3520,7 +3510,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
3520
3510
  onValueChange: p,
3521
3511
  onForChange: m,
3522
3512
  onModelChange: f
3523
- } = cl(s), b = (h) => h.arg ? typeof h.arg == "string" ? h.arg : Je(h.arg, {}) : "modelValue";
3513
+ } = il(s), b = (h) => h.arg ? typeof h.arg == "string" ? h.arg : We(h.arg, {}) : "modelValue";
3524
3514
  return (h, d) => (c(), _(n(O), {
3525
3515
  class: "v-directives-widget",
3526
3516
  direction: "column",
@@ -3534,7 +3524,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
3534
3524
  fit: !1
3535
3525
  }, {
3536
3526
  default: g(() => [
3537
- v(n(Ne), {
3527
+ v(n(Me), {
3538
3528
  size: "small",
3539
3529
  "label-width": "80px",
3540
3530
  onKeydown: d[0] || (d[0] = ze(je(() => {
@@ -3581,7 +3571,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
3581
3571
  fit: !1
3582
3572
  }, {
3583
3573
  default: g(() => [
3584
- v(n(Ne), {
3574
+ v(n(Me), {
3585
3575
  size: "small",
3586
3576
  "label-width": "80px",
3587
3577
  onKeydown: d[1] || (d[1] = ze(je(() => {
@@ -3645,7 +3635,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
3645
3635
  fit: !1
3646
3636
  }, {
3647
3637
  default: g(() => [
3648
- v(n(Ne), {
3638
+ v(n(Me), {
3649
3639
  size: "small",
3650
3640
  "label-width": "60px",
3651
3641
  onKeydown: d[2] || (d[2] = ze(je(() => {
@@ -3679,7 +3669,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
3679
3669
  _: 1
3680
3670
  }));
3681
3671
  }
3682
- }), ra = /* @__PURE__ */ E({
3672
+ }), aa = /* @__PURE__ */ E({
3683
3673
  name: "DefinedPropsDialog",
3684
3674
  __name: "props",
3685
3675
  props: {
@@ -3698,7 +3688,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
3698
3688
  },
3699
3689
  e.item
3700
3690
  )
3701
- ), l = Object.keys(es).map((r) => ({
3691
+ ), l = Object.keys(Yn).map((r) => ({
3702
3692
  label: r,
3703
3693
  value: r
3704
3694
  })), a = async (r) => {
@@ -3757,7 +3747,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
3757
3747
  _: 1
3758
3748
  }, 8, ["title", "model"]));
3759
3749
  }
3760
- }), ia = /* @__PURE__ */ E({
3750
+ }), oa = /* @__PURE__ */ E({
3761
3751
  name: "DefinedEventsDialog",
3762
3752
  __name: "events",
3763
3753
  props: {
@@ -3792,7 +3782,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
3792
3782
  _: 1
3793
3783
  }, 8, ["title", "model"]));
3794
3784
  }
3795
- }), ua = /* @__PURE__ */ E({
3785
+ }), ra = /* @__PURE__ */ E({
3796
3786
  name: "DefinedSlotsDialog",
3797
3787
  __name: "slots",
3798
3788
  props: {
@@ -3827,7 +3817,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
3827
3817
  _: 1
3828
3818
  }, 8, ["title", "model"]));
3829
3819
  }
3830
- }), ca = /* @__PURE__ */ E({
3820
+ }), ia = /* @__PURE__ */ E({
3831
3821
  name: "DefinedInjectsDialog",
3832
3822
  __name: "injects",
3833
3823
  props: {
@@ -3894,7 +3884,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
3894
3884
  _: 1
3895
3885
  }, 8, ["title", "model"]));
3896
3886
  }
3897
- }), da = /* @__PURE__ */ E({
3887
+ }), ua = /* @__PURE__ */ E({
3898
3888
  name: "DefinedWidget",
3899
3889
  __name: "index",
3900
3890
  setup(i) {
@@ -3955,7 +3945,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
3955
3945
  key: 0,
3956
3946
  "image-size": 50
3957
3947
  })),
3958
- o.value ? (c(), _(ra, {
3948
+ o.value ? (c(), _(aa, {
3959
3949
  key: 1,
3960
3950
  current: n(e),
3961
3951
  context: n(t),
@@ -3987,7 +3977,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
3987
3977
  key: 0,
3988
3978
  "image-size": 50
3989
3979
  })),
3990
- p.value ? (c(), _(ia, {
3980
+ p.value ? (c(), _(oa, {
3991
3981
  key: 1,
3992
3982
  modelValue: p.value,
3993
3983
  "onUpdate:modelValue": J[1] || (J[1] = (R) => p.value = R),
@@ -4019,7 +4009,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
4019
4009
  key: 0,
4020
4010
  "image-size": 50
4021
4011
  })),
4022
- f.value ? (c(), _(ua, {
4012
+ f.value ? (c(), _(ra, {
4023
4013
  key: 1,
4024
4014
  modelValue: f.value,
4025
4015
  "onUpdate:modelValue": J[2] || (J[2] = (R) => f.value = R),
@@ -4052,7 +4042,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
4052
4042
  key: 0,
4053
4043
  "image-size": 50
4054
4044
  })),
4055
- h.value ? (c(), _(ca, {
4045
+ h.value ? (c(), _(ia, {
4056
4046
  key: 1,
4057
4047
  modelValue: h.value,
4058
4048
  "onUpdate:modelValue": J[3] || (J[3] = (R) => h.value = R),
@@ -4067,7 +4057,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
4067
4057
  _: 1
4068
4058
  })) : C("", !0);
4069
4059
  }
4070
- }), pa = /* @__PURE__ */ E({
4060
+ }), ca = /* @__PURE__ */ E({
4071
4061
  name: "DataSourceDialogForm",
4072
4062
  __name: "form",
4073
4063
  props: {
@@ -4076,7 +4066,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
4076
4066
  item: {}
4077
4067
  },
4078
4068
  setup(i) {
4079
- const e = i, { apis: t } = dl(), l = w(
4069
+ const e = i, { apis: t } = ul(), l = w(
4080
4070
  Object.assign({
4081
4071
  type: "api",
4082
4072
  ref: "",
@@ -4138,9 +4128,9 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
4138
4128
  if (x)
4139
4129
  return await x.apply(x, V);
4140
4130
  me.warn(`API【${l.value.ref}】不存在`);
4141
- }, k = Je(l.value.test, {
4131
+ }, k = We(l.value.test, {
4142
4132
  runApi: d
4143
- }), y = l.value.transform?.value ? Je(l.value.transform, {}, !0) : (V) => V;
4133
+ }), y = l.value.transform?.value ? We(l.value.transform, {}, !0) : (V) => V;
4144
4134
  a.value = !0;
4145
4135
  try {
4146
4136
  const V = await k();
@@ -4233,7 +4223,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
4233
4223
  ]),
4234
4224
  _: 1
4235
4225
  }),
4236
- o.value ? (c(), _(n(wn), {
4226
+ o.value ? (c(), _(n(kn), {
4237
4227
  key: 0,
4238
4228
  class: "v-drawer",
4239
4229
  modelValue: o.value,
@@ -4258,7 +4248,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
4258
4248
  _: 1
4259
4249
  }, 8, ["title", "model"]));
4260
4250
  }
4261
- }), ma = /* @__PURE__ */ E({
4251
+ }), da = /* @__PURE__ */ E({
4262
4252
  name: "DataSourcesWidget",
4263
4253
  __name: "index",
4264
4254
  setup(i) {
@@ -4302,7 +4292,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
4302
4292
  ]),
4303
4293
  _: 1
4304
4294
  }),
4305
- s.value ? (c(), _(pa, {
4295
+ s.value ? (c(), _(ca, {
4306
4296
  key: 0,
4307
4297
  modelValue: s.value,
4308
4298
  "onUpdate:modelValue": m[0] || (m[0] = (f) => s.value = f),
@@ -4314,7 +4304,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
4314
4304
  _: 1
4315
4305
  }));
4316
4306
  }
4317
- }), va = /* @__PURE__ */ E({
4307
+ }), pa = /* @__PURE__ */ E({
4318
4308
  name: "StyleWidget",
4319
4309
  __name: "index",
4320
4310
  setup(i) {
@@ -4356,7 +4346,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
4356
4346
  _: 1
4357
4347
  }));
4358
4348
  }
4359
- }), fa = ["src"], ga = /* @__PURE__ */ E({
4349
+ }), ma = ["src"], va = /* @__PURE__ */ E({
4360
4350
  name: "PreviewerWidget",
4361
4351
  __name: "index",
4362
4352
  props: {
@@ -4385,13 +4375,13 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
4385
4375
  ref: "iframe",
4386
4376
  frameborder: "0",
4387
4377
  src: p.value
4388
- }, null, 8, fa)) : C("", !0)
4378
+ }, null, 8, ma)) : C("", !0)
4389
4379
  ]),
4390
4380
  _: 1
4391
4381
  }, 8, ["mode", "width", "height"])
4392
4382
  ]));
4393
4383
  }
4394
- }), ha = /* @__PURE__ */ E({
4384
+ }), fa = /* @__PURE__ */ E({
4395
4385
  name: "NodePathWidget",
4396
4386
  inheritAttrs: !1,
4397
4387
  __name: "index",
@@ -4401,13 +4391,13 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
4401
4391
  }, a = (r) => {
4402
4392
  t.value?.setHover(r);
4403
4393
  };
4404
- return (r, o) => n(e) ? (c(), _(n(Sn), {
4394
+ return (r, o) => n(e) ? (c(), _(n(wn), {
4405
4395
  key: 0,
4406
4396
  class: "v-nodepath-widget",
4407
- "separator-icon": n(As)
4397
+ "separator-icon": n(Es)
4408
4398
  }, {
4409
4399
  default: g(() => [
4410
- (c(!0), j($, null, B(s.value, (u) => (c(), _(n(Vn), {
4400
+ (c(!0), j($, null, B(s.value, (u) => (c(), _(n(Sn), {
4411
4401
  onClick: (p) => l(u),
4412
4402
  onMouseover: (p) => a(u)
4413
4403
  }, {
@@ -4420,7 +4410,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
4420
4410
  _: 1
4421
4411
  }, 8, ["separator-icon"])) : C("", !0);
4422
4412
  }
4423
- }), ba = /* @__PURE__ */ E({
4413
+ }), ga = /* @__PURE__ */ E({
4424
4414
  name: "SchemaWidget",
4425
4415
  __name: "index",
4426
4416
  setup(i) {
@@ -4460,11 +4450,11 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
4460
4450
  _: 1
4461
4451
  }, 8, ["title"]));
4462
4452
  }
4463
- }), _a = /* @__PURE__ */ E({
4453
+ }), ha = /* @__PURE__ */ E({
4464
4454
  name: "SchemaWidget",
4465
4455
  __name: "index",
4466
4456
  setup(i) {
4467
- const { current: e, engine: t } = ne(), s = w(), l = w(""), a = S(() => e.value ? `$vtj/raw/${e.value.id}.vue` : ""), r = S(() => e.value ? e.value.name : "");
4457
+ const { current: e, engine: t } = ne(), s = w(), l = w(""), a = S(() => e.value ? `$vtj/vue/${e.value.id}.vue` : ""), r = S(() => e.value ? e.value.name : "");
4468
4458
  return X(
4469
4459
  e,
4470
4460
  async (o) => {
@@ -4499,7 +4489,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
4499
4489
  _: 1
4500
4490
  }, 8, ["title", "subtitle"]));
4501
4491
  }
4502
- }), ya = ["src"], ka = /* @__PURE__ */ E({
4492
+ }), ba = ["src"], _a = /* @__PURE__ */ E({
4503
4493
  name: "DocsWidget",
4504
4494
  __name: "index",
4505
4495
  props: {
@@ -4509,7 +4499,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
4509
4499
  const e = i, t = w();
4510
4500
  let s = null;
4511
4501
  Pt(() => {
4512
- s || (s = xn.service({ target: t.value?.$el }));
4502
+ s || (s = Vn.service({ target: t.value?.$el }));
4513
4503
  }), It(() => {
4514
4504
  l(), s = null;
4515
4505
  });
@@ -4530,52 +4520,52 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
4530
4520
  ref: "frame",
4531
4521
  src: e.url,
4532
4522
  onLoad: l
4533
- }, null, 40, ya)
4523
+ }, null, 40, ba)
4534
4524
  ]),
4535
4525
  _: 1
4536
4526
  }, 512));
4537
4527
  }
4538
- }), wa = { class: "v-about-widget" }, Sa = { class: "v-about-widget__logo" }, Va = ["src"], xa = /* @__PURE__ */ z("div", { class: "v-about-widget__name" }, "VTJ.PRO", -1), Ca = { class: "v-about-widget__version" }, Ea = /* @__PURE__ */ E({
4528
+ }), ya = { class: "v-about-widget" }, ka = { class: "v-about-widget__logo" }, wa = ["src"], Sa = /* @__PURE__ */ z("div", { class: "v-about-widget__name" }, "VTJ.PRO", -1), Va = { class: "v-about-widget__version" }, xa = /* @__PURE__ */ E({
4539
4529
  name: "AboutWidget",
4540
4530
  __name: "index",
4541
4531
  setup(i) {
4542
- return (e, t) => (c(), j("div", wa, [
4543
- z("div", Sa, [
4544
- z("img", { src: n(en) }, null, 8, Va)
4532
+ return (e, t) => (c(), j("div", ya, [
4533
+ z("div", ka, [
4534
+ z("img", { src: n(en) }, null, 8, wa)
4545
4535
  ]),
4546
- xa,
4547
- z("div", Ca, "版本:" + N(n(Ws)), 1)
4536
+ Sa,
4537
+ z("div", Va, "版本:" + N(n(Ns)), 1)
4548
4538
  ]));
4549
4539
  }
4550
4540
  }), L = {
4551
- Logo: Zs,
4552
- EmptyWidget: Xs,
4553
- Switcher: vl,
4554
- Toolbar: gl,
4555
- Actions: _l,
4556
- Pages: Tl,
4557
- Blocks: Fl,
4558
- Components: Ol,
4559
- Outline: Wl,
4560
- History: Ll,
4561
- Apis: Jl,
4562
- Deps: Ul,
4563
- Designer: Gl,
4564
- Scripts: ea,
4565
- Properties: ta,
4566
- Events: la,
4567
- Css: aa,
4568
- Directives: oa,
4569
- Defined: da,
4570
- DataSources: ma,
4571
- Style: va,
4572
- Previewer: ga,
4573
- NodePath: ha,
4574
- Schema: ba,
4575
- Raw: _a,
4576
- Docs: ka,
4577
- About: Ea
4578
- }, ja = [
4541
+ Logo: Gs,
4542
+ EmptyWidget: Zs,
4543
+ Switcher: pl,
4544
+ Toolbar: vl,
4545
+ Actions: hl,
4546
+ Pages: $l,
4547
+ Blocks: Bl,
4548
+ Components: Ml,
4549
+ Outline: Nl,
4550
+ History: Ol,
4551
+ Apis: Wl,
4552
+ Deps: Ll,
4553
+ Designer: Hl,
4554
+ Scripts: Xl,
4555
+ Properties: Yl,
4556
+ Events: na,
4557
+ Css: sa,
4558
+ Directives: la,
4559
+ Defined: ua,
4560
+ DataSources: da,
4561
+ Style: pa,
4562
+ Previewer: va,
4563
+ NodePath: fa,
4564
+ Schema: ga,
4565
+ Raw: ha,
4566
+ Docs: _a,
4567
+ About: xa
4568
+ }, Ca = [
4579
4569
  {
4580
4570
  name: "Logo",
4581
4571
  region: "Brand",
@@ -4602,7 +4592,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
4602
4592
  component: L.Pages,
4603
4593
  type: "app",
4604
4594
  openType: "panel",
4605
- icon: Ds,
4595
+ icon: js,
4606
4596
  label: "页面管理"
4607
4597
  },
4608
4598
  {
@@ -4611,7 +4601,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
4611
4601
  component: L.Blocks,
4612
4602
  type: "app",
4613
4603
  openType: "panel",
4614
- icon: Ps,
4604
+ icon: As,
4615
4605
  label: "区块管理"
4616
4606
  },
4617
4607
  {
@@ -4620,7 +4610,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
4620
4610
  component: L.Components,
4621
4611
  type: "app",
4622
4612
  openType: "panel",
4623
- icon: Is,
4613
+ icon: Ds,
4624
4614
  label: "组件库"
4625
4615
  },
4626
4616
  {
@@ -4629,7 +4619,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
4629
4619
  component: L.Outline,
4630
4620
  type: "app",
4631
4621
  openType: "panel",
4632
- icon: Rs,
4622
+ icon: Ps,
4633
4623
  label: "大纲树"
4634
4624
  },
4635
4625
  {
@@ -4638,7 +4628,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
4638
4628
  component: L.History,
4639
4629
  type: "app",
4640
4630
  openType: "panel",
4641
- icon: $s,
4631
+ icon: Is,
4642
4632
  label: "历史记录"
4643
4633
  },
4644
4634
  {
@@ -4647,7 +4637,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
4647
4637
  component: L.Apis,
4648
4638
  type: "app",
4649
4639
  openType: "panel",
4650
- icon: Bs,
4640
+ icon: Rs,
4651
4641
  label: "API管理"
4652
4642
  },
4653
4643
  {
@@ -4656,7 +4646,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
4656
4646
  component: L.Deps,
4657
4647
  type: "app",
4658
4648
  openType: "panel",
4659
- icon: Ts,
4649
+ icon: $s,
4660
4650
  label: "依赖管理"
4661
4651
  },
4662
4652
  {
@@ -4665,7 +4655,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
4665
4655
  component: L.About,
4666
4656
  type: "app",
4667
4657
  openType: "dialog",
4668
- icon: Fs,
4658
+ icon: Bs,
4669
4659
  label: "关于",
4670
4660
  props: {
4671
4661
  width: 500,
@@ -4781,7 +4771,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
4781
4771
  region: "Status",
4782
4772
  component: L.NodePath
4783
4773
  }
4784
- ], Aa = [
4774
+ ], Ea = [
4785
4775
  {
4786
4776
  package: "vue",
4787
4777
  version: "latest",
@@ -4880,7 +4870,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
4880
4870
  official: !0,
4881
4871
  enabled: !1
4882
4872
  }
4883
- ], Da = [
4873
+ ], ja = [
4884
4874
  {
4885
4875
  id: "elements",
4886
4876
  category: "特殊元素"
@@ -4889,7 +4879,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
4889
4879
  id: "components",
4890
4880
  category: "内置组件"
4891
4881
  }
4892
- ], Pa = [
4882
+ ], Aa = [
4893
4883
  {
4894
4884
  name: "component",
4895
4885
  label: "动态组件",
@@ -4926,8 +4916,8 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
4926
4916
  children: "默认插槽内容"
4927
4917
  }
4928
4918
  }
4929
- ], Ia = [
4930
- ...Pa,
4919
+ ], Da = [
4920
+ ...Aa,
4931
4921
  {
4932
4922
  name: "Transition",
4933
4923
  label: "过渡效果",
@@ -5242,23 +5232,23 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
5242
5232
  }
5243
5233
  ]
5244
5234
  }
5245
- ], Ra = [
5235
+ ], Pa = [
5246
5236
  {
5247
5237
  name: "vue",
5248
5238
  version: "latest",
5249
5239
  label: "内置",
5250
5240
  library: "Vue",
5251
5241
  order: 0,
5252
- categories: Da,
5253
- components: Ia
5242
+ categories: ja,
5243
+ components: Da
5254
5244
  }
5255
- ], $a = /* @__PURE__ */ E({
5245
+ ], Ia = /* @__PURE__ */ E({
5256
5246
  name: "StringSetter",
5257
5247
  __name: "string",
5258
5248
  setup(i) {
5259
5249
  return (e, t) => (c(), _(n(pe), ue({ clearable: "" }, e.$attrs), null, 16));
5260
5250
  }
5261
- }), Ba = /* @__PURE__ */ E({
5251
+ }), Ra = /* @__PURE__ */ E({
5262
5252
  name: "BooleanSetter",
5263
5253
  __name: "boolean",
5264
5254
  setup(i) {
@@ -5266,7 +5256,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
5266
5256
  "model-value": !!e.$attrs.modelValue
5267
5257
  }), null, 16, ["model-value"]));
5268
5258
  }
5269
- }), Ta = "{{", Fa = "}}", za = /* @__PURE__ */ E({
5259
+ }), $a = "{{", Ba = "}}", Ta = /* @__PURE__ */ E({
5270
5260
  name: "ExpressionSetter",
5271
5261
  __name: "expression",
5272
5262
  props: {
@@ -5302,15 +5292,15 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
5302
5292
  onChange: o
5303
5293
  }, {
5304
5294
  prefix: g(() => [
5305
- H(N(Ta))
5295
+ H(N($a))
5306
5296
  ]),
5307
5297
  suffix: g(() => [
5308
- H(N(Fa))
5298
+ H(N(Ba))
5309
5299
  ]),
5310
5300
  _: 1
5311
5301
  }, 8, ["modelValue"]));
5312
5302
  }
5313
- }), Ma = /* @__PURE__ */ E({
5303
+ }), Fa = /* @__PURE__ */ E({
5314
5304
  name: "SelectSetter",
5315
5305
  __name: "select",
5316
5306
  props: {
@@ -5318,16 +5308,16 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
5318
5308
  },
5319
5309
  setup(i) {
5320
5310
  const e = i;
5321
- return (t, s) => (c(), _(n(Cn), ue({ clearable: "" }, t.$attrs), {
5311
+ return (t, s) => (c(), _(n(xn), ue({ clearable: "" }, t.$attrs), {
5322
5312
  default: g(() => [
5323
- (c(!0), j($, null, B(e.options, (l) => (c(), _(n(En), ue({
5313
+ (c(!0), j($, null, B(e.options, (l) => (c(), _(n(Cn), ue({
5324
5314
  key: l.label
5325
5315
  }, l), null, 16))), 128))
5326
5316
  ]),
5327
5317
  _: 1
5328
5318
  }, 16));
5329
5319
  }
5330
- }), Na = /* @__PURE__ */ E({
5320
+ }), za = /* @__PURE__ */ E({
5331
5321
  name: "NumberSetter",
5332
5322
  __name: "number",
5333
5323
  props: {
@@ -5338,19 +5328,19 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
5338
5328
  const t = i, s = e, l = S(() => Ie(t.modelValue) ? void 0 : Number(t.modelValue || 0)), a = (r) => {
5339
5329
  s("change", r);
5340
5330
  };
5341
- return (r, o) => (c(), _(n(jn), ue({
5331
+ return (r, o) => (c(), _(n(En), ue({
5342
5332
  class: "v-number-setter",
5343
5333
  "controls-position": "right",
5344
5334
  "model-value": l.value
5345
5335
  }, r.$attrs, { onChange: a }), null, 16, ["model-value"]));
5346
5336
  }
5347
- }), Oa = /* @__PURE__ */ E({
5337
+ }), Ma = /* @__PURE__ */ E({
5348
5338
  name: "ColorSetter",
5349
5339
  __name: "color",
5350
5340
  setup(i) {
5351
- return (e, t) => (c(), _(n(An), At(Dt(e.$attrs)), null, 16));
5341
+ return (e, t) => (c(), _(n(jn), At(Dt(e.$attrs)), null, 16));
5352
5342
  }
5353
- }), Wa = /* @__PURE__ */ E({
5343
+ }), Na = /* @__PURE__ */ E({
5354
5344
  name: "JsonSetter",
5355
5345
  __name: "json",
5356
5346
  props: {
@@ -5367,12 +5357,12 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
5367
5357
  const d = JSON.parse(b);
5368
5358
  if (t.type === "Array" && !Array.isArray(d))
5369
5359
  throw new Error(`"${b}" is not a Array`);
5370
- if (t.type === "Object" && !Mn(d))
5360
+ if (t.type === "Object" && !zn(d))
5371
5361
  throw new Error(`"${b}" is not a PlainObject`);
5372
5362
  if (typeof d != "object")
5373
5363
  throw new Error(`"${b}" is not a ${t.type}`);
5374
5364
  } catch (d) {
5375
- h = !1, Ue.error({
5365
+ h = !1, Le.error({
5376
5366
  title: "代码错误",
5377
5367
  message: d?.message || d
5378
5368
  });
@@ -5425,7 +5415,7 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
5425
5415
  }, 8, ["modelValue", "title"])) : C("", !0)
5426
5416
  ], 2));
5427
5417
  }
5428
- }), La = /* @__PURE__ */ E({
5418
+ }), Oa = /* @__PURE__ */ E({
5429
5419
  name: "FunctionSetter",
5430
5420
  __name: "function",
5431
5421
  props: {
@@ -5486,20 +5476,20 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
5486
5476
  ], 2));
5487
5477
  }
5488
5478
  }), le = {
5489
- StringSetter: $a,
5490
- BooleanSetter: Ba,
5491
- ExpressionSetter: za,
5492
- SelectSetter: Ma,
5493
- NumberSetter: Na,
5494
- ColorSetter: Oa,
5479
+ StringSetter: Ia,
5480
+ BooleanSetter: Ra,
5481
+ ExpressionSetter: Ta,
5482
+ SelectSetter: Fa,
5483
+ NumberSetter: za,
5484
+ ColorSetter: Ma,
5495
5485
  IconSetter: ln,
5496
- JsonSetter: Wa,
5497
- FunctionSetter: La
5498
- }, Ja = {
5486
+ JsonSetter: Na,
5487
+ FunctionSetter: Oa
5488
+ }, Wa = {
5499
5489
  name: "StringSetter",
5500
5490
  component: le.StringSetter,
5501
5491
  type: "String"
5502
- }, Ua = [
5492
+ }, La = [
5503
5493
  {
5504
5494
  name: "InputSetter",
5505
5495
  component: le.StringSetter,
@@ -5578,14 +5568,14 @@ const pl = { class: "v-switcher-widget" }, ml = { key: 1 }, vl = /* @__PURE__ */
5578
5568
  type: "Function"
5579
5569
  }
5580
5570
  ];
5581
- class Ha {
5571
+ class Ja {
5582
5572
  widgets = {};
5583
5573
  constructor() {
5584
5574
  this.widgets = this.createWidgets();
5585
5575
  }
5586
5576
  createWidgets() {
5587
5577
  const e = {};
5588
- for (const t of ja)
5578
+ for (const t of Ca)
5589
5579
  e[t.name] = t;
5590
5580
  return e;
5591
5581
  }
@@ -5631,9 +5621,9 @@ class Ha {
5631
5621
  ) : s;
5632
5622
  }
5633
5623
  }
5634
- const on = new Ha();
5635
- class qa {
5636
- constructor(e = Aa) {
5624
+ const on = new Ja();
5625
+ class Ua {
5626
+ constructor(e = Ea) {
5637
5627
  this.deps = e;
5638
5628
  }
5639
5629
  /**
@@ -5685,16 +5675,16 @@ class qa {
5685
5675
  t > -1 && this.deps.splice(t, 1);
5686
5676
  }
5687
5677
  }
5688
- const Ga = new qa();
5689
- class Ka {
5678
+ const Ha = new Ua();
5679
+ class qa {
5690
5680
  setters = {};
5691
- defaultSetter = Ja;
5681
+ defaultSetter = Wa;
5692
5682
  constructor() {
5693
5683
  this.setters = this.createSetters();
5694
5684
  }
5695
5685
  createSetters() {
5696
5686
  const e = {};
5697
- for (const t of Ua)
5687
+ for (const t of La)
5698
5688
  e[t.name] = t;
5699
5689
  return e;
5700
5690
  }
@@ -5731,10 +5721,10 @@ class Ka {
5731
5721
  return Object.values(this.setters).filter((s) => s.type === e).map((s) => s.name);
5732
5722
  }
5733
5723
  }
5734
- const Oe = new Ka();
5735
- function Za(i) {
5724
+ const Ne = new qa();
5725
+ function Ga(i) {
5736
5726
  return new Promise((e, t) => {
5737
- const s = Rt(Bl, {
5727
+ const s = Rt(Rl, {
5738
5728
  slots: i,
5739
5729
  onClose: () => {
5740
5730
  s.unmount(), t(null);
@@ -5746,15 +5736,15 @@ function Za(i) {
5746
5736
  s.mount(document.createElement("div"));
5747
5737
  });
5748
5738
  }
5749
- class Qa {
5739
+ class Ka {
5750
5740
  constructor(e, t, s) {
5751
5741
  this.engine = e, this.contentWindow = t, this.dependencies = s, this.document = this.contentWindow.document, this.bindEvents(t, this.document);
5752
5742
  }
5753
5743
  proxied = {};
5754
5744
  document = null;
5755
- hover = Me(null);
5756
- dropping = Me(null);
5757
- selected = Me(null);
5745
+ hover = et(null);
5746
+ dropping = et(null);
5747
+ selected = w(null);
5758
5748
  dragging = null;
5759
5749
  bind(e, t) {
5760
5750
  let s = this.proxied[t];
@@ -5768,7 +5758,7 @@ class Qa {
5768
5758
  "scroll",
5769
5759
  this.bind(this.onViewChange, "onViewChange")
5770
5760
  ), e.addEventListener("resize", this.bind(this.onViewChange, "onViewChange")), t.addEventListener("mouseleave", this.bind(this.onLeave, "onLeave")), t.addEventListener("dragleave", this.bind(this.onLeave, "onLeave")), t.addEventListener("dragover", this.bind(this.onDragOver, "onDragOver")), t.addEventListener("drop", this.bind(this.onDrop, "onDrop")), t.addEventListener("click", this.bind(this.onSelected, "onSelected")), q.on(
5771
- at,
5761
+ lt,
5772
5762
  this.bind(this.onActiveChange, "onActiveChange")
5773
5763
  ), q.on(Pe, this.bind(this.onViewChange, "onViewChange"));
5774
5764
  }
@@ -5786,7 +5776,7 @@ class Qa {
5786
5776
  "dragover",
5787
5777
  this.bind(this.onDragOver, "onDragOver")
5788
5778
  ), t.removeEventListener("drop", this.bind(this.onDrop, "onDrop")), t.removeEventListener("click", this.bind(this.onSelected, "onSelected")), q.off(
5789
- at,
5779
+ lt,
5790
5780
  this.bind(this.onActiveChange, "onActiveChange")
5791
5781
  ), q.off(
5792
5782
  Pe,
@@ -5825,7 +5815,7 @@ class Qa {
5825
5815
  return;
5826
5816
  if (r.length === 1)
5827
5817
  return r[0];
5828
- const o = await Za(r).catch(() => null);
5818
+ const o = await Ga(r).catch(() => null);
5829
5819
  if (!(o && o.name === "default" && (!o.params || o.params?.length === 0)))
5830
5820
  return o;
5831
5821
  }
@@ -6012,7 +6002,7 @@ class Qa {
6012
6002
  this.setSelected(null), this.setHover(null), this.setDragging(null), e && t && this.unbindEvents(e, t), this.document = null;
6013
6003
  }
6014
6004
  }
6015
- class Xa {
6005
+ class Za {
6016
6006
  constructor(e, t, s = null) {
6017
6007
  this.env = e, this.service = t, this.designer = s, this.nodeChange = this.__onNodeChange.bind(this), this.blockChange = this.__onBlockChange.bind(this);
6018
6008
  }
@@ -6029,7 +6019,7 @@ class Xa {
6029
6019
  err: a,
6030
6020
  instance: r,
6031
6021
  info: o
6032
- }), Ue.error({
6022
+ }), Le.error({
6033
6023
  title: "运行错误",
6034
6024
  message: m
6035
6025
  });
@@ -6047,19 +6037,19 @@ class Xa {
6047
6037
  apis: o
6048
6038
  } = this.env, u = t.document.createElement("div");
6049
6039
  u.id = "app", s.appendChild(u), this.dsl = l.reactive(e.toDsl());
6050
- const p = ts({
6040
+ const p = es({
6051
6041
  getDsl: async (b) => await this.service.getFile(b) || null,
6052
6042
  options: {
6053
- mode: rt.Design,
6043
+ mode: ot.Design,
6054
6044
  Vue: l,
6055
6045
  components: a,
6056
6046
  libs: r,
6057
6047
  apis: o,
6058
6048
  window: t
6059
6049
  }
6060
- }), { renderer: m, context: f } = ns({
6050
+ }), { renderer: m, context: f } = ts({
6061
6051
  Vue: l,
6062
- mode: rt.Design,
6052
+ mode: ot.Design,
6063
6053
  dsl: this.dsl,
6064
6054
  components: a,
6065
6055
  libs: r,
@@ -6073,7 +6063,7 @@ class Xa {
6073
6063
  } catch (b) {
6074
6064
  Q(b.message || "未知错误", "运行时错误"), console.error(b);
6075
6065
  }
6076
- this.context = f, q.on(Pe, this.nodeChange), q.on(ot, this.blockChange);
6066
+ this.context = f, q.on(Pe, this.nodeChange), q.on(at, this.blockChange);
6077
6067
  }
6078
6068
  dispose() {
6079
6069
  if (this.app) {
@@ -6081,7 +6071,7 @@ class Xa {
6081
6071
  const e = this.app._container;
6082
6072
  e && e.parentNode && (e.parentNode.removeChild(e), this.app._container = null), this.app = null;
6083
6073
  }
6084
- this.dsl = null, this.context = null, q.off(Pe, this.nodeChange), q.off(ot, this.blockChange);
6074
+ this.dsl = null, this.context = null, q.off(Pe, this.nodeChange), q.off(at, this.blockChange);
6085
6075
  }
6086
6076
  updateChild(e, t) {
6087
6077
  const s = t.children || t.nodes || [];
@@ -6102,10 +6092,10 @@ class Xa {
6102
6092
  this.dispose(), this.render(e), this.designer?.selected.value && this.designer.setSelected(e);
6103
6093
  }
6104
6094
  }
6105
- class Ya extends Jt {
6095
+ class Qa extends Jt {
6106
6096
  contentWindow = null;
6107
6097
  renderer = null;
6108
- designer = Me(null);
6098
+ designer = et(null);
6109
6099
  engine;
6110
6100
  materialPath;
6111
6101
  constructor(e) {
@@ -6119,13 +6109,13 @@ class Ya extends Jt {
6119
6109
  X(
6120
6110
  [e, t],
6121
6111
  () => {
6122
- e.value && t.value.length && (this.resetReady(), this.setup(e.value, t.value), this.contentWindow && (this.designer.value?.dispose(), this.designer.value = new Qa(
6112
+ e.value && t.value.length && (this.resetReady(), this.setup(e.value, t.value), this.contentWindow && (this.designer.value?.dispose(), this.designer.value = new Ka(
6123
6113
  this.engine,
6124
6114
  this.contentWindow,
6125
6115
  t
6126
6116
  )));
6127
6117
  },
6128
- { immediate: !0 }
6118
+ { immediate: !0, deep: !0 }
6129
6119
  );
6130
6120
  }
6131
6121
  setup(e, t) {
@@ -6144,7 +6134,7 @@ class Ya extends Jt {
6144
6134
  libraryExports: u,
6145
6135
  materialExports: p,
6146
6136
  materialMapLibrary: m
6147
- } = ss(t, this.materialPath);
6137
+ } = ns(t, this.materialPath);
6148
6138
  l.open(), l.write(`
6149
6139
  <!DOCTYPE html>
6150
6140
  <html lang="zh-CN">
@@ -6162,7 +6152,7 @@ class Ya extends Jt {
6162
6152
  background: #fff;
6163
6153
  }
6164
6154
  </style>
6165
- ${ls(r)}
6155
+ ${ss(r)}
6166
6156
  ${wt(a)}
6167
6157
  ${wt(o)}
6168
6158
  </head>
@@ -6185,7 +6175,7 @@ class Ya extends Jt {
6185
6175
  }
6186
6176
  a.load(m);
6187
6177
  const f = this.createEnv(e, s, m);
6188
- this.renderer = new Xa(f, r, this.designer.value), o.value && this.renderer.render(o.value), this.triggerReady();
6178
+ this.renderer = new Za(f, r, this.designer.value), o.value && this.renderer.render(o.value), this.triggerReady();
6189
6179
  }
6190
6180
  createEnv(e = [], t = {}, s = []) {
6191
6181
  const l = this.contentWindow, { engine: a } = this, { project: r, assets: o, provider: u } = a, p = e.reduce((y, V) => (y[V] = l[V], y), {}), m = {}, { groups: f, componentMap: b } = o;
@@ -6193,10 +6183,10 @@ class Ya extends Jt {
6193
6183
  const V = y.names || [], x = p[t[y.library || ""]];
6194
6184
  x && V.forEach((D) => {
6195
6185
  const F = b.get(D);
6196
- F ? m[D] = as(F, x) : m[D] = x[D];
6186
+ F ? m[D] = ls(F, x) : m[D] = x[D];
6197
6187
  });
6198
6188
  }
6199
- const { adapter: h, globals: d } = u, k = os(r.value?.apis, h);
6189
+ const { adapter: h, globals: d } = u, k = as(r.value?.apis, h);
6200
6190
  return {
6201
6191
  window: l,
6202
6192
  Vue: l.Vue,
@@ -6217,7 +6207,7 @@ class Ya extends Jt {
6217
6207
  this.renderer?.dispose(), this.designer.value?.dispose(), this.contentWindow = null, this.renderer = null, this.designer.value = null;
6218
6208
  }
6219
6209
  }
6220
- class eo {
6210
+ class Xa {
6221
6211
  constructor(e) {
6222
6212
  this.service = e;
6223
6213
  }
@@ -6256,11 +6246,11 @@ class eo {
6256
6246
  return t;
6257
6247
  }
6258
6248
  load(e) {
6259
- const t = [...Ra, ...e].filter((s) => !!s);
6249
+ const t = [...Pa, ...e].filter((s) => !!s);
6260
6250
  t.sort((s, l) => s.order - l.order);
6261
6251
  for (let s of t)
6262
6252
  s.components && (this.components = this.components.concat(s.components));
6263
- this.groups.value = this.parseGroups(t), this.componentMap = Nn(this.components, "name");
6253
+ this.groups.value = this.parseGroups(t), this.componentMap = Mn(this.components, "name");
6264
6254
  }
6265
6255
  async getBlockMaterial(e) {
6266
6256
  if (!e || typeof e == "string")
@@ -6276,7 +6266,7 @@ class eo {
6276
6266
  let h = [];
6277
6267
  for (const d of b)
6278
6268
  h = h.concat(
6279
- Oe.getByType(d)
6269
+ Ne.getByType(d)
6280
6270
  );
6281
6271
  return h;
6282
6272
  };
@@ -6299,7 +6289,7 @@ class eo {
6299
6289
  }
6300
6290
  }
6301
6291
  const rn = Symbol("VtjEngine");
6302
- class Mo extends Jt {
6292
+ class Fo extends Jt {
6303
6293
  app;
6304
6294
  skeleton;
6305
6295
  container;
@@ -6328,33 +6318,33 @@ class Mo extends Jt {
6328
6318
  materials: o,
6329
6319
  materialPath: u = "./"
6330
6320
  } = e;
6331
- this.container = t, this.service = s, this.provider = new rs({
6332
- mode: rt.Design,
6321
+ this.container = t, this.service = s, this.provider = new os({
6322
+ mode: ot.Design,
6333
6323
  globals: a,
6334
6324
  project: l,
6335
6325
  service: s,
6336
6326
  dependencies: r,
6337
6327
  materials: o,
6338
6328
  materialPath: u
6339
- }), this.assets = new eo(this.service), this.simulator = new Ya({
6329
+ }), this.assets = new Xa(this.service), this.simulator = new Qa({
6340
6330
  engine: this,
6341
6331
  materialPath: u
6342
6332
  }), this.bindEvents(), this.init(l), Pt(this.render.bind(this)), It(this.dispose.bind(this));
6343
6333
  }
6344
6334
  async init(e) {
6345
6335
  const t = await this.service.init(e).catch((s) => (me.warn("VTJEngine service init fail.", s), null));
6346
- t && (t.dependencies = Ga.merge(t.dependencies || []), this.project.value = new Wn(t), this.saveMaterials(), this.triggerReady());
6336
+ t && (t.dependencies = Ha.merge(t.dependencies || []), this.project.value = new On(t), this.saveMaterials(), this.triggerReady());
6347
6337
  }
6348
6338
  render() {
6349
6339
  const e = n(this.container);
6350
6340
  if (e) {
6351
- const t = Rt(to);
6341
+ const t = Rt(Ya);
6352
6342
  t.provide(rn, mn(this)), t.mount(e), this.app = t;
6353
6343
  } else
6354
6344
  me.warn("VTJEngine constructor param [ container ] is undefined");
6355
6345
  }
6356
6346
  bindEvents() {
6357
- q.on(Ln, (e) => this.saveProject(e)), q.on(Jn, (e) => this.saveBlockFile(e)), q.on(Un, (e) => this.saveBlockFile(e)), q.on(Hn, () => this.saveMaterials()), q.on(at, (e) => this.activeFile(e)), q.on(qn, () => this.publish()), q.on(Gn, () => this.publishCurrent()), q.on(ot, (e) => this.changeFile(e)), q.on(Pe, () => this.changeCurrentFile()), q.on(Kn, (e) => this.saveHistory(e)), q.on(Zn, (e) => this.loadHistory(e));
6347
+ q.on(Wn, (e) => this.saveProject(e)), q.on(Ln, (e) => this.saveBlockFile(e)), q.on(Jn, (e) => this.saveBlockFile(e)), q.on(Un, () => this.saveMaterials()), q.on(lt, (e) => this.activeFile(e)), q.on(Hn, () => this.publish()), q.on(qn, () => this.publishCurrent()), q.on(at, (e) => this.changeFile(e)), q.on(Pe, () => this.changeCurrentFile()), q.on(Gn, (e) => this.saveHistory(e)), q.on(Kn, (e) => this.loadHistory(e));
6358
6348
  }
6359
6349
  async activeFile(e) {
6360
6350
  await ye();
@@ -6426,7 +6416,7 @@ class Mo extends Jt {
6426
6416
  async initHistory(e) {
6427
6417
  if (e) {
6428
6418
  const t = await this.service.getHistory(e.id).catch(() => null);
6429
- this.history.value = new Qn(
6419
+ this.history.value = new Zn(
6430
6420
  Object.assign(t || {}, { id: e.id })
6431
6421
  );
6432
6422
  } else
@@ -6506,7 +6496,7 @@ const be = E({
6506
6496
  const i = Et[this.region] || Et.EmptyRegion;
6507
6497
  return xe(i, { ...this.$props, ...this.$attrs, ref: "regionRef" });
6508
6498
  }
6509
- }), Se = E({
6499
+ }), we = E({
6510
6500
  name: "WidgetWrapper",
6511
6501
  props: {
6512
6502
  region: {
@@ -6531,7 +6521,7 @@ const be = E({
6531
6521
  ref: "widgetRef"
6532
6522
  });
6533
6523
  }
6534
- }), to = E({
6524
+ }), Ya = E({
6535
6525
  name: "SkeletonWrapper",
6536
6526
  setup() {
6537
6527
  const i = w(), e = se(), t = w({});
@@ -6545,7 +6535,7 @@ const be = E({
6545
6535
  this.engine.skeleton = this;
6546
6536
  },
6547
6537
  render() {
6548
- return xe(no, { ...this.$props, ...this.$attrs, ref: "skeletonRef" });
6538
+ return xe(eo, { ...this.$props, ...this.$attrs, ref: "skeletonRef" });
6549
6539
  },
6550
6540
  methods: {
6551
6541
  /**
@@ -6579,7 +6569,7 @@ const be = E({
6579
6569
  */
6580
6570
  getWidgets(i) {
6581
6571
  const e = this.getRegion(i);
6582
- return e ? On(
6572
+ return e ? Nn(
6583
6573
  e.regionRef?.widgetsRef || []
6584
6574
  ) : [];
6585
6575
  },
@@ -6672,8 +6662,8 @@ const be = E({
6672
6662
  defaultSetter() {
6673
6663
  const { value: i, computedSetters: e } = this;
6674
6664
  let t = typeof i;
6675
- t === "Object" && (Array.isArray(i) ? t = "Array" : Ie(i) ? t = "Object" : is(i) && (t = "Function"));
6676
- const s = Oe.getByType(t) || [];
6665
+ t === "Object" && (Array.isArray(i) ? t = "Array" : Ie(i) ? t = "Object" : rs(i) && (t = "Function"));
6666
+ const s = Ne.getByType(t) || [];
6677
6667
  return s.length ? (e.find((l) => s.includes(l.name)) || e[0])?.name : e[0]?.name;
6678
6668
  }
6679
6669
  },
@@ -6693,7 +6683,7 @@ const be = E({
6693
6683
  removable: f,
6694
6684
  onRemove: b
6695
6685
  } = this;
6696
- return xe(uo, {
6686
+ return xe(ro, {
6697
6687
  context: i,
6698
6688
  current: e,
6699
6689
  name: t,
@@ -6712,7 +6702,7 @@ const be = E({
6712
6702
  emits: ["change", "remove"],
6713
6703
  methods: {
6714
6704
  getSetter(i) {
6715
- return typeof i == "string" ? Oe.get(i) || Oe.defaultSetter : i;
6705
+ return typeof i == "string" ? Ne.get(i) || Ne.defaultSetter : i;
6716
6706
  },
6717
6707
  changeValue(i) {
6718
6708
  this.$emit("change", this.name, i);
@@ -6721,7 +6711,7 @@ const be = E({
6721
6711
  this.$emit("remove", i);
6722
6712
  }
6723
6713
  }
6724
- }), no = /* @__PURE__ */ E({
6714
+ }), eo = /* @__PURE__ */ E({
6725
6715
  name: "Skeletion",
6726
6716
  __name: "skeleton",
6727
6717
  props: {
@@ -6766,11 +6756,11 @@ const be = E({
6766
6756
  rightWidth: a,
6767
6757
  preview: k,
6768
6758
  isPreview: s
6769
- }), (x, D) => (c(), _(n(Dn), { locale: n(Bn) }, {
6759
+ }), (x, D) => (c(), _(n(An), { locale: n($n) }, {
6770
6760
  default: g(() => [
6771
6761
  v(n(ht), { class: "v-skeleton" }, {
6772
6762
  default: g(() => [
6773
- v(n(Pn), {
6763
+ v(n(Dn), {
6774
6764
  class: "v-skeleton__header",
6775
6765
  height: x.headerHeight
6776
6766
  }, {
@@ -6814,7 +6804,7 @@ const be = E({
6814
6804
  }, 8, ["width", "class"])), [
6815
6805
  [n(_t), r]
6816
6806
  ]),
6817
- v(n(In), { class: "v-skeleton__main" }, {
6807
+ v(n(Pn), { class: "v-skeleton__main" }, {
6818
6808
  default: g(() => [
6819
6809
  s.value ? (c(), _(n(be), {
6820
6810
  key: 0,
@@ -6828,7 +6818,7 @@ const be = E({
6828
6818
  ref: b,
6829
6819
  region: "Workspace"
6830
6820
  }, null, 512), [
6831
- [We, !s.value]
6821
+ [Oe, !s.value]
6832
6822
  ])
6833
6823
  ]),
6834
6824
  _: 1
@@ -6847,13 +6837,13 @@ const be = E({
6847
6837
  ]),
6848
6838
  _: 1
6849
6839
  }, 8, ["width"])), [
6850
- [We, V.value],
6840
+ [Oe, V.value],
6851
6841
  [n(_t), o]
6852
6842
  ])
6853
6843
  ]),
6854
6844
  _: 1
6855
6845
  }),
6856
- s.value ? C("", !0) : (c(), _(n(Rn), {
6846
+ s.value ? C("", !0) : (c(), _(n(In), {
6857
6847
  key: 0,
6858
6848
  class: "v-skeleton__footer",
6859
6849
  height: x.footerHeight
@@ -6874,10 +6864,10 @@ const be = E({
6874
6864
  _: 1
6875
6865
  }, 8, ["locale"]));
6876
6866
  }
6877
- }), so = { key: 1 }, lo = { class: "v-setter__content" }, ao = {
6867
+ }), to = { key: 1 }, no = { class: "v-setter__content" }, so = {
6878
6868
  key: 0,
6879
6869
  class: "v-setter__input"
6880
- }, oo = { class: "v-setter__action" }, ro = "{{", io = "}}", uo = /* @__PURE__ */ E({
6870
+ }, lo = { class: "v-setter__action" }, ao = "{{", oo = "}}", ro = /* @__PURE__ */ E({
6881
6871
  __name: "setter",
6882
6872
  props: {
6883
6873
  context: {},
@@ -6925,7 +6915,7 @@ const be = E({
6925
6915
  }, k = async (V) => ee(V, t.context, !0) ? (p[r.value.name] = o.value, o.value = V, s("change", V), !0) : !1, y = async () => {
6926
6916
  await Ee("确定要解除绑定吗?") && (d(), o.value = void 0, s("change", ""));
6927
6917
  };
6928
- return (V, x) => (c(), _(n($n), {
6918
+ return (V, x) => (c(), _(n(Rn), {
6929
6919
  class: "v-setter",
6930
6920
  size: "small",
6931
6921
  "label-positon": "left"
@@ -6940,11 +6930,11 @@ const be = E({
6940
6930
  H(N(t.label || t.name), 1)
6941
6931
  ]),
6942
6932
  _: 1
6943
- }, 8, ["content"])) : (c(), j("span", so, N(t.label || t.name), 1))
6933
+ }, 8, ["content"])) : (c(), j("span", to, N(t.label || t.name), 1))
6944
6934
  ]),
6945
6935
  default: g(() => [
6946
- z("div", lo, [
6947
- r.value ? (c(), j("div", ao, [
6936
+ z("div", no, [
6937
+ r.value ? (c(), j("div", so, [
6948
6938
  u.value ? C("", !0) : (c(), _(jt(r.value.component), ue({
6949
6939
  key: 0,
6950
6940
  current: t.current,
@@ -6963,16 +6953,16 @@ const be = E({
6963
6953
  "model-value": "JSExpression"
6964
6954
  }, {
6965
6955
  prefix: g(() => [
6966
- H(N(ro))
6956
+ H(N(ao))
6967
6957
  ]),
6968
6958
  suffix: g(() => [
6969
- H(N(io))
6959
+ H(N(oo))
6970
6960
  ]),
6971
6961
  _: 1
6972
6962
  })) : C("", !0)
6973
6963
  ])) : C("", !0),
6974
- z("div", oo, [
6975
- t.variable ? (c(), _(n(zs), {
6964
+ z("div", lo, [
6965
+ t.variable ? (c(), _(n(Ts), {
6976
6966
  key: 0,
6977
6967
  onClick: h,
6978
6968
  class: te(["v-icon-vars", { "is-active": u.value }]),
@@ -6988,7 +6978,7 @@ const be = E({
6988
6978
  dropdown: g(() => [
6989
6979
  v(n(Tt), null, {
6990
6980
  default: g(() => [
6991
- (c(!0), j($, null, B(t.setters, (D) => (c(), _(n(nt), {
6981
+ (c(!0), j($, null, B(t.setters, (D) => (c(), _(n(tt), {
6992
6982
  command: D,
6993
6983
  key: D.name
6994
6984
  }, {
@@ -7007,18 +6997,18 @@ const be = E({
7007
6997
  })
7008
6998
  ]),
7009
6999
  default: g(() => [
7010
- v(n(Ms), { title: "切换设置器" })
7000
+ v(n(Fs), { title: "切换设置器" })
7011
7001
  ]),
7012
7002
  _: 1
7013
7003
  }, 8, ["disabled"])) : C("", !0),
7014
- t.removable ? (c(), _(n(qe), {
7004
+ t.removable ? (c(), _(n(Ue), {
7015
7005
  key: 2,
7016
7006
  onClick: b,
7017
7007
  title: "删除"
7018
7008
  })) : C("", !0)
7019
7009
  ])
7020
7010
  ]),
7021
- l.value ? (c(), _(n(na), {
7011
+ l.value ? (c(), _(n(ea), {
7022
7012
  key: 0,
7023
7013
  current: t.current,
7024
7014
  context: t.context,
@@ -7032,16 +7022,16 @@ const be = E({
7032
7022
  _: 1
7033
7023
  }));
7034
7024
  }
7035
- }), co = { class: "v-empty-region" }, po = /* @__PURE__ */ E({
7025
+ }), io = { class: "v-empty-region" }, uo = /* @__PURE__ */ E({
7036
7026
  name: "EmptyRegion",
7037
7027
  __name: "empty",
7038
7028
  props: {
7039
7029
  region: {}
7040
7030
  },
7041
7031
  setup(i) {
7042
- return (e, t) => (c(), j("div", co, "找不到符合【" + N(e.region) + "】名称的区域组件", 1));
7032
+ return (e, t) => (c(), j("div", io, "找不到符合【" + N(e.region) + "】名称的区域组件", 1));
7043
7033
  }
7044
- }), mo = { class: "v-brand-region" }, vo = /* @__PURE__ */ E({
7034
+ }), co = { class: "v-brand-region" }, po = /* @__PURE__ */ E({
7045
7035
  name: "BrandRegion",
7046
7036
  inheritAttrs: !1,
7047
7037
  __name: "brand",
@@ -7049,12 +7039,12 @@ const be = E({
7049
7039
  region: {}
7050
7040
  },
7051
7041
  setup(i, { expose: e }) {
7052
- const t = i, { widgets: s, widgetsRef: l } = we(t.region);
7042
+ const t = i, { widgets: s, widgetsRef: l } = ke(t.region);
7053
7043
  return e({
7054
7044
  widgets: s,
7055
7045
  widgetsRef: l
7056
- }), (a, r) => (c(), j("div", mo, [
7057
- (c(!0), j($, null, B(n(s), (o) => (c(), _(n(Se), {
7046
+ }), (a, r) => (c(), j("div", co, [
7047
+ (c(!0), j($, null, B(n(s), (o) => (c(), _(n(we), {
7058
7048
  ref_for: !0,
7059
7049
  ref_key: "widgetsRef",
7060
7050
  ref: l,
@@ -7063,7 +7053,7 @@ const be = E({
7063
7053
  }, null, 8, ["region", "widget"]))), 256))
7064
7054
  ]));
7065
7055
  }
7066
- }), fo = { class: "v-toolbar-region" }, go = /* @__PURE__ */ E({
7056
+ }), mo = { class: "v-toolbar-region" }, vo = /* @__PURE__ */ E({
7067
7057
  name: "ToolbarRegion",
7068
7058
  __name: "toolbar",
7069
7059
  props: {
@@ -7071,12 +7061,12 @@ const be = E({
7071
7061
  preview: { type: Boolean }
7072
7062
  },
7073
7063
  setup(i, { expose: e }) {
7074
- const t = i, { widgets: s, widgetsRef: l } = we(t.region);
7064
+ const t = i, { widgets: s, widgetsRef: l } = ke(t.region);
7075
7065
  return e({
7076
7066
  widgets: s,
7077
7067
  widgetsRef: l
7078
- }), (a, r) => (c(), j("div", fo, [
7079
- (c(!0), j($, null, B(n(s), (o) => (c(), _(n(Se), {
7068
+ }), (a, r) => (c(), j("div", mo, [
7069
+ (c(!0), j($, null, B(n(s), (o) => (c(), _(n(we), {
7080
7070
  ref_for: !0,
7081
7071
  ref_key: "widgetsRef",
7082
7072
  ref: l,
@@ -7086,7 +7076,7 @@ const be = E({
7086
7076
  }, null, 8, ["region", "widget", "preview"]))), 256))
7087
7077
  ]));
7088
7078
  }
7089
- }), ho = { class: "v-actions-region" }, bo = /* @__PURE__ */ E({
7079
+ }), fo = { class: "v-actions-region" }, go = /* @__PURE__ */ E({
7090
7080
  name: "ActionsRegion",
7091
7081
  inheritAttrs: !1,
7092
7082
  __name: "actions",
@@ -7094,12 +7084,12 @@ const be = E({
7094
7084
  region: {}
7095
7085
  },
7096
7086
  setup(i, { expose: e }) {
7097
- const t = i, { widgets: s, widgetsRef: l } = we(t.region);
7087
+ const t = i, { widgets: s, widgetsRef: l } = ke(t.region);
7098
7088
  return e({
7099
7089
  widgets: s,
7100
7090
  widgetsRef: l
7101
- }), (a, r) => (c(), j("div", ho, [
7102
- (c(!0), j($, null, B(n(s), (o) => (c(), _(n(Se), {
7091
+ }), (a, r) => (c(), j("div", fo, [
7092
+ (c(!0), j($, null, B(n(s), (o) => (c(), _(n(we), {
7103
7093
  ref_for: !0,
7104
7094
  ref_key: "widgetsRef",
7105
7095
  ref: l,
@@ -7108,7 +7098,7 @@ const be = E({
7108
7098
  }, null, 8, ["region", "widget"]))), 256))
7109
7099
  ]));
7110
7100
  }
7111
- }), _o = { class: "v-apps-region" }, yo = { class: "v-apps-region__header" }, ko = { class: "v-apps-region__top" }, wo = { class: "v-apps-region__bottom" }, So = { class: "v-apps-region__panels" }, Vo = /* @__PURE__ */ E({
7101
+ }), ho = { class: "v-apps-region" }, bo = { class: "v-apps-region__header" }, _o = { class: "v-apps-region__top" }, yo = { class: "v-apps-region__bottom" }, ko = { class: "v-apps-region__panels" }, wo = /* @__PURE__ */ E({
7112
7102
  name: "AppsRegion",
7113
7103
  inheritAttrs: !1,
7114
7104
  __name: "apps",
@@ -7117,10 +7107,10 @@ const be = E({
7117
7107
  index: { default: 0 }
7118
7108
  },
7119
7109
  setup(i, { expose: e }) {
7120
- const t = i, s = se(), { widgets: l, widgetsRef: a } = we(t.region), r = S(() => l.value.filter((d) => d.openType === "panel")), o = S(() => l.value.filter((d) => d.openType !== "panel")), u = r.value[t.index], p = w(u), m = w(u), f = (d) => {
7110
+ const t = i, s = se(), { widgets: l, widgetsRef: a } = ke(t.region), r = S(() => l.value.filter((d) => d.openType === "panel")), o = S(() => l.value.filter((d) => d.openType !== "panel")), u = r.value[t.index], p = w(u), m = w(u), f = (d) => {
7121
7111
  p.value = d, m.value = m.value?.name === d.name ? null : d;
7122
7112
  }, b = (d) => {
7123
- d.openType === "link" && d.url && window.open(d.url), d.openType === "dialog" && zn({
7113
+ d.openType === "link" && d.url && window.open(d.url), d.openType === "dialog" && Fn({
7124
7114
  title: d.label,
7125
7115
  icon: d.icon,
7126
7116
  ...d.props,
@@ -7136,9 +7126,9 @@ const be = E({
7136
7126
  const k = r.value.find((y) => y.name === d);
7137
7127
  p.value = k, m.value = k;
7138
7128
  }
7139
- }), (d, k) => (c(), j("div", _o, [
7140
- z("div", yo, [
7141
- z("div", ko, [
7129
+ }), (d, k) => (c(), j("div", ho, [
7130
+ z("div", bo, [
7131
+ z("div", _o, [
7142
7132
  (c(!0), j($, null, B(r.value, (y) => (c(), _(n(Ct), {
7143
7133
  key: `icon-${y.name}`,
7144
7134
  icon: y.icon,
@@ -7148,7 +7138,7 @@ const be = E({
7148
7138
  onClick: (V) => f(y)
7149
7139
  }, null, 8, ["icon", "label", "active", "open", "onClick"]))), 128))
7150
7140
  ]),
7151
- z("div", wo, [
7141
+ z("div", yo, [
7152
7142
  (c(!0), j($, null, B(o.value, (y) => (c(), _(n(Ct), {
7153
7143
  key: `icon-${y.name}`,
7154
7144
  icon: y.icon,
@@ -7157,11 +7147,11 @@ const be = E({
7157
7147
  }, null, 8, ["icon", "label", "onClick"]))), 128))
7158
7148
  ])
7159
7149
  ]),
7160
- z("div", So, [
7150
+ z("div", ko, [
7161
7151
  (c(!0), j($, null, B(r.value, (y) => (c(), _($t, {
7162
7152
  key: y.name
7163
7153
  }, [
7164
- p.value?.name === y.name ? (c(), _(n(Se), {
7154
+ p.value?.name === y.name ? (c(), _(n(we), {
7165
7155
  key: 0,
7166
7156
  ref_for: !0,
7167
7157
  ref_key: "widgetsRef",
@@ -7173,14 +7163,14 @@ const be = E({
7173
7163
  ])
7174
7164
  ]));
7175
7165
  }
7176
- }), xo = /* @__PURE__ */ E({
7166
+ }), So = /* @__PURE__ */ E({
7177
7167
  name: "WorkspaceRegion",
7178
7168
  __name: "workspace",
7179
7169
  props: {
7180
7170
  region: {}
7181
7171
  },
7182
7172
  setup(i, { expose: e }) {
7183
- const t = i, { widgets: s, widgetsRef: l } = we(t.region), a = Re(
7173
+ const t = i, { widgets: s, widgetsRef: l } = ke(t.region), a = Re(
7184
7174
  s.value.map((h) => ({
7185
7175
  name: h.name,
7186
7176
  command: h.name,
@@ -7207,7 +7197,7 @@ const be = E({
7207
7197
  const k = a.find((y) => y.name === h);
7208
7198
  k && (k.props = Object.assign({}, k.props, d), k.checked = !0, u.value = k.name);
7209
7199
  }
7210
- }), (h, d) => (c(), _(n(Ke), {
7200
+ }), (h, d) => (c(), _(n(qe), {
7211
7201
  class: "v-workspace-region",
7212
7202
  items: r.value,
7213
7203
  menus: o.value,
@@ -7221,7 +7211,7 @@ const be = E({
7221
7211
  (c(!0), j($, null, B(n(s), (k) => (c(), j($, {
7222
7212
  key: k.name
7223
7213
  }, [
7224
- u.value === k.name ? (c(), _(n(Se), {
7214
+ u.value === k.name ? (c(), _(n(we), {
7225
7215
  key: 0,
7226
7216
  ref_for: !0,
7227
7217
  ref_key: "widgetsRef",
@@ -7234,7 +7224,7 @@ const be = E({
7234
7224
  _: 1
7235
7225
  }, 8, ["items", "menus", "modelValue"]));
7236
7226
  }
7237
- }), Co = /* @__PURE__ */ E({
7227
+ }), Vo = /* @__PURE__ */ E({
7238
7228
  name: "SettingsRegion",
7239
7229
  __name: "settings",
7240
7230
  props: {
@@ -7243,7 +7233,7 @@ const be = E({
7243
7233
  setup(i, { expose: e }) {
7244
7234
  const t = i, s = se(), { current: l } = ne(), { selected: a, isSelectBlock: r } = fe(), o = S(
7245
7235
  () => r.value ? oe.Block : oe.Node
7246
- ), { widgets: u, widgetsRef: p } = we(t.region, o), m = S(() => u.value.map((d) => ({
7236
+ ), { widgets: u, widgetsRef: p } = ke(t.region, o), m = S(() => u.value.map((d) => ({
7247
7237
  name: d.name,
7248
7238
  label: d.label
7249
7239
  }))), f = w(""), b = S(() => {
@@ -7297,9 +7287,9 @@ const be = E({
7297
7287
  }),
7298
7288
  b.value ? (c(), _(n(O), { key: 0 }, {
7299
7289
  default: g(() => [
7300
- v(n(ke), {
7290
+ v(n(Se), {
7301
7291
  onClick: h,
7302
- icon: n(Ns),
7292
+ icon: n(zs),
7303
7293
  mode: "text",
7304
7294
  label: "帮助"
7305
7295
  }, null, 8, ["icon"])
@@ -7315,7 +7305,7 @@ const be = E({
7315
7305
  padding: !1
7316
7306
  }, {
7317
7307
  default: g(() => [
7318
- v(n(Ke), {
7308
+ v(n(qe), {
7319
7309
  items: m.value,
7320
7310
  modelValue: f.value,
7321
7311
  "onUpdate:modelValue": k[0] || (k[0] = (y) => f.value = y),
@@ -7326,7 +7316,7 @@ const be = E({
7326
7316
  (c(!0), j($, null, B(n(u), (y) => (c(), j($, {
7327
7317
  key: y.name
7328
7318
  }, [
7329
- f.value === y.name ? (c(), _(n(Se), {
7319
+ f.value === y.name ? (c(), _(n(we), {
7330
7320
  key: 0,
7331
7321
  ref_for: !0,
7332
7322
  ref_key: "widgetsRef",
@@ -7354,7 +7344,7 @@ const be = E({
7354
7344
  _: 1
7355
7345
  })) : C("", !0);
7356
7346
  }
7357
- }), Eo = { class: "v-status-region" }, jo = /* @__PURE__ */ E({
7347
+ }), xo = { class: "v-status-region" }, Co = /* @__PURE__ */ E({
7358
7348
  name: "StatusRegion",
7359
7349
  inheritAttrs: !1,
7360
7350
  __name: "status",
@@ -7362,12 +7352,12 @@ const be = E({
7362
7352
  region: {}
7363
7353
  },
7364
7354
  setup(i, { expose: e }) {
7365
- const t = i, { widgets: s, widgetsRef: l } = we(t.region);
7355
+ const t = i, { widgets: s, widgetsRef: l } = ke(t.region);
7366
7356
  return e({
7367
7357
  widgets: s,
7368
7358
  widgetsRef: l
7369
- }), (a, r) => (c(), j("div", Eo, [
7370
- (c(!0), j($, null, B(n(s), (o) => (c(), _(n(Se), {
7359
+ }), (a, r) => (c(), j("div", xo, [
7360
+ (c(!0), j($, null, B(n(s), (o) => (c(), _(n(we), {
7371
7361
  ref_for: !0,
7372
7362
  ref_key: "widgetsRef",
7373
7363
  ref: l,
@@ -7376,14 +7366,14 @@ const be = E({
7376
7366
  }, null, 8, ["region", "widget"]))), 256))
7377
7367
  ]));
7378
7368
  }
7379
- }), Ao = /* @__PURE__ */ E({
7369
+ }), Eo = /* @__PURE__ */ E({
7380
7370
  name: "PreviewRegion",
7381
7371
  __name: "preview",
7382
7372
  props: {
7383
7373
  region: {}
7384
7374
  },
7385
7375
  setup(i, { expose: e }) {
7386
- const t = i, { widgets: s, widgetsRef: l } = we(t.region), a = Re(
7376
+ const t = i, { widgets: s, widgetsRef: l } = ke(t.region), a = Re(
7387
7377
  s.value.map((u) => ({
7388
7378
  name: u.name,
7389
7379
  command: u.name,
@@ -7396,7 +7386,7 @@ const be = E({
7396
7386
  currentTab: o,
7397
7387
  widgets: s,
7398
7388
  widgetsRef: l
7399
- }), (u, p) => (c(), _(n(Ke), {
7389
+ }), (u, p) => (c(), _(n(qe), {
7400
7390
  class: "v-workspace-region",
7401
7391
  items: r.value,
7402
7392
  modelValue: o.value,
@@ -7406,7 +7396,7 @@ const be = E({
7406
7396
  (c(!0), j($, null, B(n(s), (m) => (c(), _($t, {
7407
7397
  key: m.name
7408
7398
  }, [
7409
- o.value === m.name ? (c(), _(n(Se), {
7399
+ o.value === m.name ? (c(), _(n(we), {
7410
7400
  key: 0,
7411
7401
  ref_for: !0,
7412
7402
  ref_key: "widgetsRef",
@@ -7420,64 +7410,64 @@ const be = E({
7420
7410
  }, 8, ["items", "modelValue"]));
7421
7411
  }
7422
7412
  }), Et = {
7423
- EmptyRegion: po,
7424
- Brand: vo,
7425
- Toolbar: go,
7426
- Actions: bo,
7427
- Apps: Vo,
7428
- Workspace: xo,
7429
- Settings: Co,
7430
- Status: jo,
7431
- Preview: Ao
7413
+ EmptyRegion: uo,
7414
+ Brand: po,
7415
+ Toolbar: vo,
7416
+ Actions: go,
7417
+ Apps: wo,
7418
+ Workspace: So,
7419
+ Settings: Vo,
7420
+ Status: Co,
7421
+ Preview: Eo
7432
7422
  };
7433
7423
  export {
7434
- Us as API_METHOD_TYPES,
7435
- eo as Assets,
7424
+ Ls as API_METHOD_TYPES,
7425
+ Xa as Assets,
7436
7426
  ft as Binder,
7437
- ut as Box,
7438
- Qa as Designer,
7439
- Hs as EVENT_MODIFIERS,
7427
+ it as Box,
7428
+ Ka as Designer,
7429
+ Js as EVENT_MODIFIERS,
7440
7430
  K as Editor,
7441
- Mo as Engine,
7442
- sa as EventBinder,
7431
+ Fo as Engine,
7432
+ ta as EventBinder,
7443
7433
  Ct as Icon,
7444
7434
  Y as Item,
7445
- Js as KEYBOARD_EVENT_LIST,
7435
+ Ws as KEYBOARD_EVENT_LIST,
7446
7436
  St as MOBILE_SIZE,
7447
- Ls as MOUSE_EVENT_LIST,
7437
+ Os as MOUSE_EVENT_LIST,
7448
7438
  ve as NAME_REGEX,
7449
7439
  Vt as PAD_SIZE,
7450
7440
  W as Panel,
7451
- qs as RegionType,
7441
+ Us as RegionType,
7452
7442
  be as RegionWrapper,
7453
- Xa as Renderer,
7454
- uo as SetterView,
7443
+ Za as Renderer,
7444
+ ro as SetterView,
7455
7445
  _e as SetterWrapper,
7456
- Ya as Simulator,
7457
- no as Skeleton,
7458
- to as SkeletonWrapper,
7459
- Bl as SlotsPicker,
7460
- Ke as Tabs,
7461
- Ws as VTJ_DESIGNER_VERSION,
7462
- na as VariableBinder,
7463
- Rl as Viewer,
7446
+ Qa as Simulator,
7447
+ eo as Skeleton,
7448
+ Ya as SkeletonWrapper,
7449
+ Rl as SlotsPicker,
7450
+ qe as Tabs,
7451
+ Ns as VTJ_DESIGNER_VERSION,
7452
+ ea as VariableBinder,
7453
+ Pl as Viewer,
7464
7454
  an as Viewport,
7465
7455
  oe as WidgetGroup,
7466
- Se as WidgetWrapper,
7467
- Aa as builtInDeps,
7468
- Ra as builtInMaterials,
7469
- Ua as builtInSetters,
7470
- ja as builtInWidgets,
7456
+ we as WidgetWrapper,
7457
+ Ea as builtInDeps,
7458
+ Pa as builtInMaterials,
7459
+ La as builtInSetters,
7460
+ Ca as builtInWidgets,
7471
7461
  Ee as confirm,
7472
- Za as createSlotsPicker,
7473
- Ja as defaultSetter,
7474
- Ga as depsManager,
7462
+ Ga as createSlotsPicker,
7463
+ Wa as defaultSetter,
7464
+ Ha as depsManager,
7475
7465
  rn as engineKey,
7476
7466
  ee as expressionValidate,
7477
7467
  ae as message,
7478
7468
  Q as notify,
7479
7469
  Et as regions,
7480
- Oe as setterManager,
7470
+ Ne as setterManager,
7481
7471
  le as setters,
7482
7472
  se as useEngine,
7483
7473
  on as widgetManager,