@vtj/designer 0.8.162 → 0.8.163

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,11 +1,11 @@
1
1
  var Qn = Object.defineProperty;
2
- var Yn = (u, e, t) => e in u ? Qn(u, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : u[e] = t;
3
- var F = (u, e, t) => Yn(u, typeof e != "symbol" ? e + "" : e, t);
4
- import { computed as S, unref as n, ref as k, reactive as Qe, watchEffect as Zn, watch as M, toValue as ht, defineComponent as E, openBlock as p, createElementBlock as A, toDisplayString as W, createVNode as v, withCtx as h, createElementVNode as V, createBlock as y, createCommentVNode as j, createTextVNode as X, readonly as el, getCurrentScope as tl, onScopeDispose as nl, onMounted as st, nextTick as Ce, getCurrentInstance as on, shallowRef as qe, toRaw as rn, Fragment as z, renderList as J, normalizeClass as G, resolveDynamicComponent as un, createSlots as ll, withDirectives as Te, vShow as $e, renderSlot as je, withModifiers as Me, isRef as bt, mergeProps as ue, normalizeStyle as tt, defineAsyncComponent as al, h as Fe, inject as jt, provide as sl, normalizeProps as cn, guardReactiveProps as dn, withKeys as nt, onUnmounted as pn, markRaw as yt, createApp as mn, shallowReactive as ol, triggerRef as Pe, KeepAlive as vn } from "vue";
2
+ var Yn = (i, e, t) => e in i ? Qn(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
3
+ var F = (i, e, t) => Yn(i, typeof e != "symbol" ? e + "" : e, t);
4
+ import { computed as S, unref as n, ref as k, reactive as Qe, watchEffect as Zn, watch as M, toValue as ht, defineComponent as E, openBlock as p, createElementBlock as A, toDisplayString as W, createVNode as v, withCtx as h, createElementVNode as V, createBlock as y, createCommentVNode as j, createTextVNode as X, readonly as el, getCurrentScope as tl, onScopeDispose as nl, onMounted as st, nextTick as xe, getCurrentInstance as on, shallowRef as qe, toRaw as rn, Fragment as z, renderList as J, normalizeClass as G, resolveDynamicComponent as un, createSlots as ll, withDirectives as Te, vShow as $e, renderSlot as Ae, withModifiers as Me, isRef as bt, mergeProps as ue, normalizeStyle as tt, defineAsyncComponent as al, h as Fe, inject as jt, provide as sl, normalizeProps as cn, guardReactiveProps as dn, withKeys as nt, onUnmounted as pn, markRaw as yt, createApp as mn, shallowReactive as ol, triggerRef as Pe, KeepAlive as vn } from "vue";
5
5
  import { ElNotification as Et, ElMessageBox as Dt, ElMessage as Ye, ElButton as oe, ElDivider as Pt, ElRadioGroup as gn, ElRadioButton as lt, ElButtonGroup as rl, ElDropdown as fn, ElDropdownMenu as hn, ElDropdownItem as _t, ElInput as ye, ElEmpty as re, ElAlert as It, ElTooltip as bn, ElTag as il, ElSwitch as yn, ElTree as Tt, ElCollapse as Bt, ElCollapseItem as Rt, ElRow as wt, ElCol as kt, ElDrawer as _n, ElForm as be, ElFormItem as wn, ElBreadcrumb as ul, ElBreadcrumbItem as cl, ElLoading as dl, ElSelect as pl, ElOption as ml, ElInputNumber as vl, ElColorPicker as gl, ElUpload as fl, ElSlider as hl, ElConfigProvider as bl, ElContainer as Ut, ElHeader as yl, ElAside as qt, ElMain as _l, ElFooter as wl } from "element-plus";
6
6
  import kl from "element-plus/es/locale/lang/zh-cn";
7
- import { XIcon as Ve, XDialog as Oe, XDialogForm as De, XField as P, XPanel as ot, XAction as ke, XTabs as $t, XContainer as q, XForm as Ot, XAttachment as Sl, XActionBar as xl, XInputUnit as kn, vResizable as Ht, createDialog as Cl } from "@vtj/ui";
8
- import { delay as zt, upperFirstCamelCase as Sn, toRawType as vt, cloneDeep as rt, groupBy as xn, logger as Ee, isPlainObject as Vl, fileToBase64 as Al, merge as Ft, debounce as jl, arrayToMap as El, toArray as Dl } from "@vtj/utils";
7
+ import { XIcon as Ce, XDialog as Oe, XDialogForm as Ee, XField as P, XPanel as ot, XAction as ke, XTabs as $t, XContainer as q, XForm as Ot, XAttachment as Sl, XActionBar as xl, XInputUnit as kn, vResizable as Ht, createDialog as Cl } from "@vtj/ui";
8
+ import { delay as zt, upperFirstCamelCase as Sn, toRawType as vt, cloneDeep as rt, groupBy as xn, logger as je, isPlainObject as Vl, fileToBase64 as Al, merge as Ft, debounce as jl, arrayToMap as El, toArray as Dl } from "@vtj/utils";
9
9
  import { isBlock as te, DirectiveModel as Cn, createNodeFrom as Pl, BUILT_IN_VUE as Il, BUILT_IN_VUE_ROUTER as Tl, BUILT_IN_NAME as St, emitter as le, EVENT_PROJECT_ACTIVED as xt, EVENT_NODE_CHANGE as He, NodeModel as Gt, EVENT_BLOCK_CHANGE as Ct, Base as Vn, BUILT_IN_LIBRARAY_MAP as Bl, ProjectModel as Rl, EVENT_PROJECT_CHANGE as $l, EVENT_PROJECT_BLOCKS_CHANGE as Ol, EVENT_PROJECT_PAGES_CHANGE as zl, EVENT_PROJECT_DEPS_CHANGE as Fl, EVENT_PROJECT_PUBLISH as Ll, EVENT_PROJECT_FILE_PUBLISH as Wl, EVENT_HISTORY_CHANGE as Nl, EVENT_HISTORY_LOAD as Jl, BlockModel as Xt, HistoryModel as Ml } from "@vtj/core";
10
10
  import { parseExpression as Ge, parseFunction as Ul, JSCodeToString as Le, LIFE_CYCLES_LIST as ql, DATA_TYPES as Hl, isJSExpression as Xe, ContextMode as An, parseDeps as Gl, createAssetsCss as Xl, createAssetScripts as Kt, getRawComponent as Qt, createSchemaApis as Kl, mockCleanup as Ql, mockApis as Yl, Provider as Zl, isJSFunction as ea } from "@vtj/renderer";
11
11
  import { VtjIconBack as ta, VtjIconPc as na, VtjIconPhone as la, VtjIconPad as aa, VtjIconUndo as sa, VtjIconRedo as oa, VtjIconPreview as ra, VtjIconRefresh as ia, VtjIconSetting as jn, icons as Vt, ArrowDown as En, Search as it, CopyDocument as ua, Back as ca, VtjIconPlus as Dn, EditPen as da, Delete as pa, VtjIconSave as ma, ArrowUp as va, MoreFilled as Lt, VtjIconCheck as Pn, VtjIconCopy as In, VtjIconEdit as Tn, VtjIconRemove as ut, VtjIconLock as Bn, VtjIconUnlock as ga, VtjIconInvisible as Rn, VtjIconVisible as fa, VtjIconHome as ha, Files as ba, VtjIconSearch as ya, VtjIconHelp as $n, VtjIconLayers as On, Rank as _a, VtjIconArrowUp as wa, VtjIconArrowDown as ka, IconDisplayBlock as Sa, IconDisplayFlex as xa, IconDisplayInlineBlock as Ca, IconDisplayInline as Va, IconEyeInvisible as Aa, IconFlexDirectionrow as ja, IconFlexDirectionrowReverse as Ea, IconFlexDirectioncolumn as Da, IconFlexDirectioncolumnReverse as Pa, IconFlexJustifyflexStartrow as Ia, IconFlexJustifyflexEndrow as Ta, IconFlexJustifycenterrow as Ba, IconFlexJustifyspaceBetweenrow as Ra, IconFlexJustifyspaceAroundrow as $a, IconFlexAlignflexStartrow as Oa, IconFlexAlignflexEndrow as za, IconFlexAligncenterrow as Fa, IconFlexAlignbaselinerow as La, IconFlexAlignstretchrow as Wa, IconPositionTopLeft as Na, IconPositionTopRight as Ja, IconPositionBottomLeft as Ma, IconPositionBottomRight as Ua, IconPositionLeft as qa, IconPositionRight as Ha, IconPositionTop as Ga, IconPositionBottom as Xa, IconPositionAll as Ka, IconTextAlignLeft as Qa, IconTextAlignCenter as Ya, IconTextAlignRight as Za, IconTextAlignJustify as es, IconFontStyleNone as ts, IconFontStyleItalic as ns, IconCross as zn, IconTextDecorationUnderline as ls, IconTextDecorationStrike as as, IconTextDecorationOverline as ss, IconTileXy as os, IconTileX as rs, IconTileY as is, IconClose as us, IconBorderAll as cs, IconBorderLeft as ds, IconBorderTop as ps, IconBorderBottom as ms, IconBorderRight as vs, IconBorderStyleSolid as gs, IconBorderStyleDashed as fs, IconBorderStyleDotted as hs, IconCursorAuto as bs, IconCursorPointer as ys, IconCursorNotAllowed as _s, IconCursorNone as ws, ArrowRight as ks, VtjIconDocument as Ss, VtjIconComponents as xs, VtjIconBlock as Cs, VtjIconOutline as Vs, VtjIconHistory as As, VtjIconApi as js, VtjIconCategory as Es, VtjIconInfo as Ds, HomeFilled as Ps, Plus as Is, Close as Ts, VtjIconVars as Bs, VtjIconSwitch as Rs, Switch as $s } from "@vtj/icons";
@@ -14,16 +14,16 @@ import Os from "mockjs";
14
14
  * Copyright (c) 2024, VTJ.PRO All rights reserved.
15
15
  * @name @vtj/designer
16
16
  * @author CHC chenhuachun1549@dingtalk.com
17
- * @version 0.8.162
17
+ * @version 0.8.163
18
18
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
19
19
  */
20
- const zs = "0.8.162", Yt = {
20
+ const zs = "0.8.163", Yt = {
21
21
  width: 390,
22
22
  height: 844
23
23
  }, Zt = {
24
24
  width: 1024,
25
25
  height: 768
26
- }, xe = /^[A-Za-z_$][\:\w_-]*$/, Fs = [
26
+ }, De = /^[A-Za-z_$][\:\w_-]*$/, Fs = [
27
27
  "click",
28
28
  "dblclick",
29
29
  "mouseenter",
@@ -47,43 +47,43 @@ const zs = "0.8.162", Yt = {
47
47
  "once",
48
48
  "passive"
49
49
  ], en = "__vue-devtools-frame-state__", Js = "@id/virtual:vue-devtools-path:overlay.js", Ms = "@id/virtual:vue-devtools-path:overlay/devtools-overlay.mjs";
50
- var we = /* @__PURE__ */ ((u) => (u.Block = "block", u.Node = "node", u))(we || {}), Us = /* @__PURE__ */ ((u) => (u.Brand = "Brand", u.Toolbar = "Toolbar", u.Actions = "Actions", u.Apps = "Apps", u.Workspace = "Workspace", u.Settings = "Settings", u.Status = "Status", u.Preview = "Preview", u))(Us || {});
50
+ var we = /* @__PURE__ */ ((i) => (i.Block = "block", i.Node = "node", i))(we || {}), 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 || {});
51
51
  function Fn() {
52
- const u = pe(), e = S(() => u.project.value?.dependencies ?? []), t = S(() => u.project.value?.apis ?? []), l = S(() => u.project.value?.meta ?? []);
52
+ const i = pe(), e = S(() => i.project.value?.dependencies ?? []), t = S(() => i.project.value?.apis ?? []), l = S(() => i.project.value?.meta ?? []);
53
53
  return {
54
- engine: u,
54
+ engine: i,
55
55
  dependencies: e,
56
56
  apis: t,
57
57
  meta: l
58
58
  };
59
59
  }
60
- function Be(u, e) {
61
- const t = S(() => Xn.getWidgets(n(u), n(e)).filter((a) => !a.invisible)), l = k();
60
+ function Be(i, e) {
61
+ const t = S(() => Xn.getWidgets(n(i), n(e)).filter((a) => !a.invisible)), l = k();
62
62
  return {
63
63
  widgets: t,
64
64
  widgetsRef: l
65
65
  };
66
66
  }
67
67
  function Ln() {
68
- const u = pe();
68
+ const i = pe();
69
69
  return {
70
70
  span: S(() => {
71
- const a = u.skeleton?.skeletonRef.leftWidth || 400, s = Math.min(Math.floor((a - 50) / 120), 24);
71
+ const a = i.skeleton?.skeletonRef.leftWidth || 400, s = Math.min(Math.floor((a - 50) / 120), 24);
72
72
  return Math.floor(24 / s);
73
73
  }),
74
- engine: u
74
+ engine: i
75
75
  };
76
76
  }
77
77
  function qs() {
78
- const u = pe(), e = S(() => u.project.value?.blocks ?? []);
78
+ const i = pe(), e = S(() => i.project.value?.blocks ?? []);
79
79
  return {
80
- engine: u,
80
+ engine: i,
81
81
  blocks: e
82
82
  };
83
83
  }
84
- const Hs = (u = []) => u.map((e) => e.name);
84
+ const Hs = (i = []) => i.map((e) => e.name);
85
85
  function Gs() {
86
- const u = pe(), { components: e, groups: t, componentMap: l } = u.assets, a = Qe({}), s = S(() => {
86
+ const i = pe(), { components: e, groups: t, componentMap: l } = i.assets, a = Qe({}), s = S(() => {
87
87
  const m = {};
88
88
  return t.value && t.value.forEach((f) => {
89
89
  m[f.name] = f;
@@ -92,7 +92,7 @@ function Gs() {
92
92
  label: `${m.label} (${m.count})`,
93
93
  name: m.name,
94
94
  disabled: !m.children?.length
95
- })) : []), r = k(o.value[0]?.name), i = k(""), g = S(() => s.value[r.value]);
95
+ })) : []), r = k(o.value[0]?.name), u = k(""), g = S(() => s.value[r.value]);
96
96
  Zn(() => {
97
97
  const m = o.value.reduce(
98
98
  (f, b) => (f[b.name] = Hs(
@@ -109,7 +109,7 @@ function Gs() {
109
109
  { immediate: !0 }
110
110
  );
111
111
  const d = S(() => {
112
- const m = i.value.toLowerCase();
112
+ const m = u.value.toLowerCase();
113
113
  return !m || !e ? [] : e.filter((f) => f.name.toLowerCase().includes(m) || f.label?.toLowerCase().includes(m));
114
114
  });
115
115
  return {
@@ -121,25 +121,25 @@ function Gs() {
121
121
  model: a,
122
122
  currentTab: r,
123
123
  currentGroup: g,
124
- searchKey: i,
124
+ searchKey: u,
125
125
  searchResult: d
126
126
  };
127
127
  }
128
128
  function ce() {
129
- const u = pe(), e = S(() => u.current.value), t = S(() => u.simulator.renderer?.context ?? null), l = S(() => u.isEmptyCurrent.value);
129
+ const i = pe(), e = S(() => i.current.value), t = S(() => i.simulator.renderer?.context ?? null), l = S(() => i.isEmptyCurrent.value);
130
130
  return {
131
- engine: u,
131
+ engine: i,
132
132
  current: e,
133
133
  isEmpty: l,
134
134
  context: t
135
135
  };
136
136
  }
137
- function Xs(u, e, t, l, a) {
137
+ function Xs(i, e, t, l, a) {
138
138
  const s = pe();
139
- s.simulator.init(u, e, t, l, a);
139
+ s.simulator.init(i, e, t, l, a);
140
140
  const o = S(() => s.simulator.designer.value), r = S(
141
141
  () => gt("hover", o.value?.hover.value)
142
- ), i = S(
142
+ ), u = S(
143
143
  () => gt("dropping", o.value?.dropping.value)
144
144
  ), g = S(
145
145
  () => gt("selected", o.value?.selected.value)
@@ -148,20 +148,20 @@ function Xs(u, e, t, l, a) {
148
148
  o.value?.updateRect();
149
149
  }), {
150
150
  designer: o,
151
- dropping: i,
151
+ dropping: u,
152
152
  hover: r,
153
153
  selected: g
154
154
  };
155
155
  }
156
- function Ks(u, e = !0) {
157
- const { top: t, height: l, width: a, left: s } = u || {};
156
+ function Ks(i, e = !0) {
157
+ const { top: t, height: l, width: a, left: s } = i || {};
158
158
  if (l > 100 && a > 200)
159
159
  return "inner";
160
160
  let o, r;
161
161
  return r = t > 30 ? "top" : "bottom", o = e || s < 300 && a < 300 ? "left" : "right", [o, r].join("-");
162
162
  }
163
- function Qs(u) {
164
- const { rect: e, type: t } = u, { left: l, width: a, top: s, height: o } = e, r = { left: l, width: a, top: s, height: o };
163
+ function Qs(i) {
164
+ const { rect: e, type: t } = i, { left: l, width: a, top: s, height: o } = e, r = { left: l, width: a, top: s, height: o };
165
165
  switch (t) {
166
166
  case "left":
167
167
  r.left = 0, r.width = 0;
@@ -178,9 +178,9 @@ function Qs(u) {
178
178
  }
179
179
  return r;
180
180
  }
181
- function gt(u, e) {
181
+ function gt(i, e) {
182
182
  if (!e) return null;
183
- const { left: t, top: l, width: a, height: s } = u === "dropping" ? Qs(e) : e.rect, o = {
183
+ const { left: t, top: l, width: a, height: s } = i === "dropping" ? Qs(e) : e.rect, o = {
184
184
  left: `${t}px`,
185
185
  top: `${l}px`,
186
186
  width: `${a}px`,
@@ -190,41 +190,41 @@ function gt(u, e) {
190
190
  return {
191
191
  ...e,
192
192
  style: o,
193
- position: Ks(e.rect, u !== "selected")
193
+ position: Ks(e.rect, i !== "selected")
194
194
  };
195
195
  }
196
- function Ae() {
197
- const u = pe(), e = S(
198
- () => u.simulator.designer.value
196
+ function Ve() {
197
+ const i = pe(), e = S(
198
+ () => i.simulator.designer.value
199
199
  ), t = S(() => e.value?.selected.value), l = S(() => te(t.value?.model));
200
200
  return {
201
- engine: u,
201
+ engine: i,
202
202
  designer: e,
203
203
  selected: t,
204
204
  isSelectBlock: l
205
205
  };
206
206
  }
207
- function Ys(u, e) {
208
- const t = k(""), { selected: l, isSelectBlock: a } = Ae(), s = S(() => l.value?.model.id), o = S(() => {
209
- const i = ht(u), g = ht(e), d = [];
210
- if (!i) return d;
207
+ function Ys(i, e) {
208
+ const t = k(""), { selected: l, isSelectBlock: a } = Ve(), s = S(() => l.value?.model.id), o = S(() => {
209
+ const u = ht(i), g = ht(e), d = [];
210
+ if (!u) return d;
211
211
  const m = g?.__contextRefs[s.value || ""], b = g === m || a.value ? [] : Object.keys(m?.context || {}).filter((O) => !["context", "ref"].includes(O)).map((O) => `this.context.${O}`);
212
212
  b.length && d.push({ title: "上下文", items: b });
213
- const c = i.inject.map((O) => `this.${O.name}`);
213
+ const c = u.inject.map((O) => `this.${O.name}`);
214
214
  c.length && d.push({ title: "注入", items: c });
215
- const _ = i.props.map(
215
+ const _ = u.props.map(
216
216
  (O) => typeof O == "string" ? `this.props.${O}` : `this.props.${O.name}`
217
217
  );
218
218
  _.length && d.push({ title: "属性", items: _ });
219
- const w = Object.keys(i.state).map((O) => `this.state.${O}`);
219
+ const w = Object.keys(u.state).map((O) => `this.state.${O}`);
220
220
  w.length && d.push({ title: "状态", items: w });
221
- const x = Object.keys(i.computed).map(
221
+ const x = Object.keys(u.computed).map(
222
222
  (O) => `this.${O}.value`
223
223
  );
224
224
  x.length && d.push({ title: "计算属性", items: x });
225
- const C = Object.keys(i.methods).map((O) => `this.${O}`);
225
+ const C = Object.keys(u.methods).map((O) => `this.${O}`);
226
226
  C.length && d.push({ title: "方法", items: C });
227
- const D = Object.keys(i.dataSources).map(
227
+ const D = Object.keys(u.dataSources).map(
228
228
  (O) => `this.${O}`
229
229
  );
230
230
  D.length && d.push({ title: "数据源", items: D });
@@ -234,10 +234,10 @@ function Ys(u, e) {
234
234
  return L.length && d.push({ title: "refs", items: L }), d;
235
235
  }), r = S(() => {
236
236
  if (!t.value) return o.value;
237
- const i = t.value.toLowerCase(), g = [];
237
+ const u = t.value.toLowerCase(), g = [];
238
238
  return o.value.forEach((d) => {
239
239
  const m = d.items.filter(
240
- (f) => f.toLowerCase().includes(i)
240
+ (f) => f.toLowerCase().includes(u)
241
241
  );
242
242
  m.length && g.push({
243
243
  title: d.title,
@@ -261,9 +261,9 @@ const et = [
261
261
  label: "表达式"
262
262
  }
263
263
  ];
264
- function Zs(u) {
264
+ function Zs(i) {
265
265
  const e = pe(), t = S(() => {
266
- const m = u.value?.model || null;
266
+ const m = i.value?.model || null;
267
267
  return te(m) ? null : m;
268
268
  }), l = k();
269
269
  M(
@@ -326,25 +326,25 @@ function Zs(u) {
326
326
  isExist: o
327
327
  };
328
328
  }
329
- function ae(u, e = "提示") {
329
+ function ae(i, e = "提示") {
330
330
  return Et.warning({
331
331
  title: e,
332
- message: u
332
+ message: i
333
333
  });
334
334
  }
335
- async function We(u) {
336
- return await Dt.confirm(u, "提示", { type: "warning" }).catch(
335
+ async function We(i) {
336
+ return await Dt.confirm(i, "提示", { type: "warning" }).catch(
337
337
  () => !1
338
338
  );
339
339
  }
340
- function ve(u, e = "success") {
340
+ function ve(i, e = "success") {
341
341
  return Ye({
342
- message: u,
342
+ message: i,
343
343
  type: e
344
344
  });
345
345
  }
346
- function eo(u) {
347
- const e = u ? { ...u } : {}, t = (l) => new Proxy(l || {}, {
346
+ function eo(i) {
347
+ const e = i ? { ...i } : {}, t = (l) => new Proxy(l || {}, {
348
348
  get(a, s) {
349
349
  return typeof s == "symbol" ? () => {
350
350
  } : t(a[s]);
@@ -356,11 +356,11 @@ function eo(u) {
356
356
  }
357
357
  }), e;
358
358
  }
359
- function ie(u, e, t = !1) {
359
+ function ie(i, e, t = !1) {
360
360
  let l = !0;
361
361
  const a = eo(e);
362
362
  try {
363
- u.type === "JSExpression" ? Ge(u, a, t, !0) : Ul(u, a, t, !0);
363
+ i.type === "JSExpression" ? Ge(i, a, t, !0) : Ul(i, a, t, !0);
364
364
  } catch (s) {
365
365
  l = !1, Et.error({
366
366
  title: "代码错误",
@@ -369,42 +369,42 @@ function ie(u, e, t = !1) {
369
369
  }
370
370
  return l;
371
371
  }
372
- function to(u) {
373
- return Object.keys(u).concat(Object.getOwnPropertyNames(Object.getPrototypeOf(u))).filter((e) => !["constructor"].includes(e));
372
+ function to(i) {
373
+ return Object.keys(i).concat(Object.getOwnPropertyNames(Object.getPrototypeOf(i))).filter((e) => !["constructor"].includes(e));
374
374
  }
375
375
  function Wn() {
376
- const u = pe(), e = S(
377
- () => u.simulator.designer.value
376
+ const i = pe(), e = S(
377
+ () => i.simulator.designer.value
378
378
  ), t = S(
379
- () => u.current.value ? u.history.value : null
379
+ () => i.current.value ? i.history.value : null
380
380
  ), l = S(() => t.value?.items.length || 0), a = () => {
381
381
  e.value?.cleanHelper(), t.value?.forward();
382
382
  }, s = () => {
383
383
  t.value?.backward(), e.value?.cleanHelper();
384
384
  }, o = (g) => {
385
385
  e.value?.cleanHelper(), t.value?.load(g), ve("已载入历史记录", "success");
386
- }, r = S(() => l.value <= 1 ? !0 : (t.value?.index || -1) <= 0), i = S(() => l.value <= 1 ? !0 : (t.value?.index || -1) >= l.value - 1);
386
+ }, r = S(() => l.value <= 1 ? !0 : (t.value?.index || -1) <= 0), u = S(() => l.value <= 1 ? !0 : (t.value?.index || -1) >= l.value - 1);
387
387
  return {
388
- engine: u,
388
+ engine: i,
389
389
  history: t,
390
390
  total: l,
391
391
  forward: a,
392
392
  backward: s,
393
393
  load: o,
394
394
  forwardDisabled: r,
395
- backwardDisabled: i
395
+ backwardDisabled: u
396
396
  };
397
397
  }
398
398
  function ze() {
399
- const u = pe(), e = S(() => u.project.value);
399
+ const i = pe(), e = S(() => i.project.value);
400
400
  return {
401
- engine: u,
401
+ engine: i,
402
402
  project: e
403
403
  };
404
404
  }
405
- function no(u) {
405
+ function no(i) {
406
406
  const e = pe(), t = S(() => {
407
- const r = u.value?.model || null;
407
+ const r = i.value?.model || null;
408
408
  return !r || te(r) ? null : r;
409
409
  }), l = k();
410
410
  M(
@@ -419,16 +419,16 @@ function no(u) {
419
419
  const a = S(() => {
420
420
  if (te(t.value)) return [];
421
421
  const r = t.value?.events || {};
422
- return Fs.map((i) => ({
423
- name: i,
424
- event: r[i]
422
+ return Fs.map((u) => ({
423
+ name: u,
424
+ event: r[u]
425
425
  }));
426
426
  }), s = S(() => {
427
427
  if (te(t.value)) return [];
428
428
  const r = t.value?.events || {};
429
- return Ls.map((i) => ({
430
- name: i,
431
- event: r[i]
429
+ return Ls.map((u) => ({
430
+ name: u,
431
+ event: r[u]
432
432
  }));
433
433
  }), o = S(() => {
434
434
  if (!t.value || te(t.value)) return [];
@@ -447,27 +447,27 @@ function no(u) {
447
447
  componentEventList: o
448
448
  };
449
449
  }
450
- const tn = (u, e) => new Cn({
451
- name: u,
450
+ const tn = (i, e) => new Cn({
451
+ name: i,
452
452
  value: void 0,
453
453
  iterator: e
454
- }), lo = (u = "modelValue") => new Cn({
454
+ }), lo = (i = "modelValue") => new Cn({
455
455
  name: "vModel",
456
456
  value: void 0,
457
- arg: u
457
+ arg: i
458
458
  });
459
- function ao(u) {
460
- if (!u) return [];
461
- const { props: e = [], events: t = [] } = u;
459
+ function ao(i) {
460
+ if (!i) return [];
461
+ const { props: e = [], events: t = [] } = i;
462
462
  if (e.length && t.length) {
463
463
  const l = t.filter((a) => (typeof a == "string" ? a : a.name).startsWith("update:")).map((a) => a = typeof a == "string" ? a : a.name);
464
464
  return l.length ? e.filter((a) => l.some((s) => s.endsWith(":" + a.name))) : [];
465
465
  }
466
466
  return [];
467
467
  }
468
- function so(u) {
468
+ function so(i) {
469
469
  const e = pe(), t = S(() => {
470
- const c = u.value?.model || null;
470
+ const c = i.value?.model || null;
471
471
  return te(c) ? null : c;
472
472
  }), l = (c) => S(() => t.value && (t.value.directives || []).find((_) => _.name === c) || tn(c)), a = () => S(() => {
473
473
  if (!t.value) return [];
@@ -475,11 +475,11 @@ function so(u) {
475
475
  return (c ? ao(c) : []).map((w) => (t.value?.directives || []).find(
476
476
  (x) => x.name === "vModel" && x.arg == w.name
477
477
  ) || lo(w.name));
478
- }), s = l("vIf"), o = l("vShow"), r = l("vBind"), i = l("vFor"), g = a(), d = {
478
+ }), s = l("vIf"), o = l("vShow"), r = l("vBind"), u = l("vFor"), g = a(), d = {
479
479
  vIf: s,
480
480
  vShow: o,
481
481
  vBind: r,
482
- vFor: i
482
+ vFor: u
483
483
  };
484
484
  return {
485
485
  engine: e,
@@ -487,7 +487,7 @@ function so(u) {
487
487
  vIf: s,
488
488
  vShow: o,
489
489
  vBind: r,
490
- vFor: i,
490
+ vFor: u,
491
491
  vModels: g,
492
492
  onValueChange: (c, _) => {
493
493
  const w = d[c];
@@ -496,13 +496,13 @@ function so(u) {
496
496
  onForChange: (c, _) => {
497
497
  if (t.value) {
498
498
  if (c === "value") {
499
- _ ? (i.value.value = _, t.value.setDirective(i.value)) : t.value.removeDirective(i.value);
499
+ _ ? (u.value.value = _, t.value.setDirective(u.value)) : t.value.removeDirective(u.value);
500
500
  return;
501
501
  }
502
- (c === "item" || c === "index") && (i.value.iterator = {
503
- ...i.value.iterator,
502
+ (c === "item" || c === "index") && (u.value.iterator = {
503
+ ...u.value.iterator,
504
504
  [c]: _ || void 0
505
- }, t.value.setDirective(i.value));
505
+ }, t.value.setDirective(u.value));
506
506
  }
507
507
  },
508
508
  onModelChange: (c, _) => {
@@ -513,9 +513,9 @@ function so(u) {
513
513
  };
514
514
  }
515
515
  function oo() {
516
- const { engine: u, project: e } = ze(), t = S(() => e.value?.apis || []), l = S(() => e.value?.meta || []);
516
+ const { engine: i, project: e } = ze(), t = S(() => e.value?.apis || []), l = S(() => e.value?.meta || []);
517
517
  return {
518
- engine: u,
518
+ engine: i,
519
519
  project: e,
520
520
  apis: t,
521
521
  meta: l
@@ -530,8 +530,8 @@ const ro = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
530
530
  text: { default: "VTJ" },
531
531
  link: {}
532
532
  },
533
- setup(u) {
534
- const { engine: e } = ce(), t = u, l = S(() => t.icon || e.project.value?.config?.logo || ro), a = () => {
533
+ setup(i) {
534
+ const { engine: e } = ce(), t = i, l = S(() => t.icon || e.project.value?.config?.logo || ro), a = () => {
535
535
  t.link && (location.href = t.link);
536
536
  };
537
537
  return (s, o) => (p(), A("div", {
@@ -549,7 +549,7 @@ const ro = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
549
549
  }), po = { class: "v-empty-widget" }, mo = /* @__PURE__ */ E({
550
550
  name: "EmptyWidget",
551
551
  __name: "index",
552
- setup(u) {
552
+ setup(i) {
553
553
  return (e, t) => (p(), A("div", po, "EmptyWidget"));
554
554
  }
555
555
  }), vo = { class: "v-switcher-widget" }, go = { key: 1 }, fo = /* @__PURE__ */ E({
@@ -557,11 +557,11 @@ const ro = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
557
557
  inheritAttrs: !1,
558
558
  __name: "index",
559
559
  emits: ["click"],
560
- setup(u, { emit: e }) {
560
+ setup(i, { emit: e }) {
561
561
  const t = e, { engine: l } = ce(), a = S(() => l.project.value?.config?.title || l.project.value?.name), s = S(() => l.project.value?.currentFile?.title), o = () => {
562
562
  t("click", l.project.value);
563
563
  };
564
- return (r, i) => (p(), A("div", vo, [
564
+ return (r, u) => (p(), A("div", vo, [
565
565
  v(n(oe), {
566
566
  size: "small",
567
567
  round: "",
@@ -587,11 +587,11 @@ const ro = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
587
587
  props: {
588
588
  preview: { type: Boolean }
589
589
  },
590
- setup(u, { expose: e }) {
591
- const t = u, { forward: l, backward: a, forwardDisabled: s, backwardDisabled: o } = Wn(), r = k("pc");
590
+ setup(i, { expose: e }) {
591
+ const t = i, { forward: l, backward: a, forwardDisabled: s, backwardDisabled: o } = Wn(), r = k("pc");
592
592
  return e({
593
593
  mode: r
594
- }), (i, g) => (p(), A("div", ho, [
594
+ }), (u, g) => (p(), A("div", ho, [
595
595
  v(n(gn), {
596
596
  size: "small",
597
597
  modelValue: r.value,
@@ -665,8 +665,8 @@ const ro = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
665
665
  props: {
666
666
  coder: { type: Boolean, default: !0 }
667
667
  },
668
- setup(u) {
669
- const { engine: e, designer: t } = Ae(), l = k(!1), a = () => {
668
+ setup(i) {
669
+ const { engine: e, designer: t } = Ve(), l = k(!1), a = () => {
670
670
  e.current.value ? (l.value ? e.skeleton?.getWidget("Previewer")?.widgetRef.refresh() : (t.value?.setSelected(null), e.simulator.refresh()), ve("刷新完成", "success")) : ve("请先打开文件", "warning");
671
671
  }, s = async () => {
672
672
  e.current.value ? (l.value && (e.skeleton?.closePreview(), l.value = !1, await zt(1e3)), t.value?.setSelected(e.current.value)) : ve("请先打开文件", "warning");
@@ -683,7 +683,7 @@ const ro = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
683
683
  }, r = () => {
684
684
  const g = e.project.value;
685
685
  g && (g.currentFile ? g.publish(g.currentFile) : ve("请先打开文件", "warning"));
686
- }, i = (g) => {
686
+ }, u = (g) => {
687
687
  const d = e.project.value;
688
688
  d && (g === "current" ? r() : d.publish());
689
689
  };
@@ -729,7 +729,7 @@ const ro = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
729
729
  type: "primary",
730
730
  size: "small",
731
731
  onClick: r,
732
- onCommand: i
732
+ onCommand: u
733
733
  }, {
734
734
  dropdown: h(() => [
735
735
  v(n(hn), null, {
@@ -758,37 +758,37 @@ const ro = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
758
758
  ]));
759
759
  }
760
760
  });
761
- function Wt(u) {
762
- return tl() ? (nl(u), !0) : !1;
761
+ function Wt(i) {
762
+ return tl() ? (nl(i), !0) : !1;
763
763
  }
764
- function Ne(u) {
765
- return typeof u == "function" ? u() : n(u);
764
+ function Ne(i) {
765
+ return typeof i == "function" ? i() : n(i);
766
766
  }
767
767
  const ct = typeof window < "u" && typeof document < "u";
768
768
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
769
- const wo = Object.prototype.toString, ko = (u) => wo.call(u) === "[object Object]", at = () => {
769
+ const wo = Object.prototype.toString, ko = (i) => wo.call(i) === "[object Object]", at = () => {
770
770
  }, So = /* @__PURE__ */ xo();
771
771
  function xo() {
772
- var u, e;
773
- return ct && ((u = window?.navigator) == null ? void 0 : u.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((e = window?.navigator) == null ? void 0 : e.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window?.navigator.userAgent));
772
+ var i, e;
773
+ return ct && ((i = window?.navigator) == null ? void 0 : i.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((e = window?.navigator) == null ? void 0 : e.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window?.navigator.userAgent));
774
774
  }
775
- function Co(u) {
775
+ function Co(i) {
776
776
  let e;
777
777
  function t() {
778
- return e || (e = u()), e;
778
+ return e || (e = i()), e;
779
779
  }
780
780
  return t.reset = async () => {
781
781
  const l = e;
782
782
  e = void 0, l && await l;
783
783
  }, t;
784
784
  }
785
- function Vo(u) {
785
+ function Vo(i) {
786
786
  return on();
787
787
  }
788
- function Ao(u, e = !0, t) {
789
- Vo() ? st(u, t) : e ? u() : Ce(u);
788
+ function Ao(i, e = !0, t) {
789
+ Vo() ? st(i, t) : e ? i() : xe(i);
790
790
  }
791
- function jo(u, e, t = {}) {
791
+ function jo(i, e, t = {}) {
792
792
  const {
793
793
  immediate: l = !0
794
794
  } = t, a = k(!1);
@@ -799,31 +799,31 @@ function jo(u, e, t = {}) {
799
799
  function r() {
800
800
  a.value = !1, o();
801
801
  }
802
- function i(...g) {
802
+ function u(...g) {
803
803
  o(), a.value = !0, s = setTimeout(() => {
804
- a.value = !1, s = null, u(...g);
804
+ a.value = !1, s = null, i(...g);
805
805
  }, Ne(e));
806
806
  }
807
- return l && (a.value = !0, ct && i()), Wt(r), {
807
+ return l && (a.value = !0, ct && u()), Wt(r), {
808
808
  isPending: el(a),
809
- start: i,
809
+ start: u,
810
810
  stop: r
811
811
  };
812
812
  }
813
813
  const dt = ct ? window : void 0, Nn = ct ? window.navigator : void 0;
814
- function Se(u) {
814
+ function Se(i) {
815
815
  var e;
816
- const t = Ne(u);
816
+ const t = Ne(i);
817
817
  return (e = t?.$el) != null ? e : t;
818
818
  }
819
- function Ue(...u) {
819
+ function Ue(...i) {
820
820
  let e, t, l, a;
821
- if (typeof u[0] == "string" || Array.isArray(u[0]) ? ([t, l, a] = u, e = dt) : [e, t, l, a] = u, !e)
821
+ if (typeof i[0] == "string" || Array.isArray(i[0]) ? ([t, l, a] = i, e = dt) : [e, t, l, a] = i, !e)
822
822
  return at;
823
823
  Array.isArray(t) || (t = [t]), Array.isArray(l) || (l = [l]);
824
824
  const s = [], o = () => {
825
825
  s.forEach((d) => d()), s.length = 0;
826
- }, r = (d, m, f, b) => (d.addEventListener(m, f, b), () => d.removeEventListener(m, f, b)), i = M(
826
+ }, r = (d, m, f, b) => (d.addEventListener(m, f, b), () => d.removeEventListener(m, f, b)), u = M(
827
827
  () => [Se(e), Ne(a)],
828
828
  ([d, m]) => {
829
829
  if (o(), !d)
@@ -835,18 +835,18 @@ function Ue(...u) {
835
835
  },
836
836
  { immediate: !0, flush: "post" }
837
837
  ), g = () => {
838
- i(), o();
838
+ u(), o();
839
839
  };
840
840
  return Wt(g), g;
841
841
  }
842
842
  let nn = !1;
843
- function Eo(u, e, t = {}) {
843
+ function Eo(i, e, t = {}) {
844
844
  const { window: l = dt, ignore: a = [], capture: s = !0, detectIframe: o = !1 } = t;
845
845
  if (!l)
846
846
  return at;
847
847
  So && !nn && (nn = !0, Array.from(l.document.body.children).forEach((b) => b.addEventListener("click", at)), l.document.documentElement.addEventListener("click", at));
848
848
  let r = !0;
849
- const i = (b) => Ne(a).some((c) => {
849
+ const u = (b) => Ne(a).some((c) => {
850
850
  if (typeof c == "string")
851
851
  return Array.from(l.document.querySelectorAll(c)).some((_) => _ === b.target || b.composedPath().includes(_));
852
852
  {
@@ -854,9 +854,9 @@ function Eo(u, e, t = {}) {
854
854
  return _ && (b.target === _ || b.composedPath().includes(_));
855
855
  }
856
856
  }), g = (b) => {
857
- const c = Se(u);
857
+ const c = Se(i);
858
858
  if (!(!c || c === b.target || b.composedPath().includes(c))) {
859
- if (b.detail === 0 && (r = !i(b)), !r) {
859
+ if (b.detail === 0 && (r = !u(b)), !r) {
860
860
  r = !0;
861
861
  return;
862
862
  }
@@ -871,13 +871,13 @@ function Eo(u, e, t = {}) {
871
871
  }, 0), g(b));
872
872
  }, { passive: !0, capture: s }),
873
873
  Ue(l, "pointerdown", (b) => {
874
- const c = Se(u);
875
- r = !i(b) && !!(c && !b.composedPath().includes(c));
874
+ const c = Se(i);
875
+ r = !u(b) && !!(c && !b.composedPath().includes(c));
876
876
  }, { passive: !0 }),
877
877
  o && Ue(l, "blur", (b) => {
878
878
  setTimeout(() => {
879
879
  var c;
880
- const _ = Se(u);
880
+ const _ = Se(i);
881
881
  ((c = l.document.activeElement) == null ? void 0 : c.tagName) === "IFRAME" && !_?.contains(l.document.activeElement) && e(b);
882
882
  }, 0);
883
883
  })
@@ -885,24 +885,24 @@ function Eo(u, e, t = {}) {
885
885
  return () => m.forEach((b) => b());
886
886
  }
887
887
  function Do() {
888
- const u = k(!1), e = on();
888
+ const i = k(!1), e = on();
889
889
  return e && st(() => {
890
- u.value = !0;
891
- }, e), u;
890
+ i.value = !0;
891
+ }, e), i;
892
892
  }
893
- function Nt(u) {
893
+ function Nt(i) {
894
894
  const e = Do();
895
- return S(() => (e.value, !!u()));
895
+ return S(() => (e.value, !!i()));
896
896
  }
897
- function ln(u, e = {}) {
897
+ function ln(i, e = {}) {
898
898
  const {
899
899
  controls: t = !1,
900
900
  navigator: l = Nn
901
- } = e, a = Nt(() => l && "permissions" in l), s = qe(), o = typeof u == "string" ? { name: u } : u, r = qe(), i = () => {
901
+ } = e, a = Nt(() => l && "permissions" in l), s = qe(), o = typeof i == "string" ? { name: i } : i, r = qe(), u = () => {
902
902
  var d, m;
903
903
  r.value = (m = (d = s.value) == null ? void 0 : d.state) != null ? m : "prompt";
904
904
  };
905
- Ue(s, "change", i);
905
+ Ue(s, "change", u);
906
906
  const g = Co(async () => {
907
907
  if (a.value) {
908
908
  if (!s.value)
@@ -911,7 +911,7 @@ function ln(u, e = {}) {
911
911
  } catch {
912
912
  s.value = void 0;
913
913
  } finally {
914
- i();
914
+ u();
915
915
  }
916
916
  if (t)
917
917
  return rn(s.value);
@@ -923,14 +923,14 @@ function ln(u, e = {}) {
923
923
  query: g
924
924
  } : r;
925
925
  }
926
- function Jn(u = {}) {
926
+ function Jn(i = {}) {
927
927
  const {
928
928
  navigator: e = Nn,
929
929
  read: t = !1,
930
930
  source: l,
931
931
  copiedDuring: a = 1500,
932
932
  legacy: s = !1
933
- } = u, o = Nt(() => e && "clipboard" in e), r = ln("clipboard-read"), i = ln("clipboard-write"), g = S(() => o.value || s), d = k(""), m = k(!1), f = jo(() => m.value = !1, a);
933
+ } = i, o = Nt(() => e && "clipboard" in e), r = ln("clipboard-read"), u = ln("clipboard-write"), g = S(() => o.value || s), d = k(""), m = k(!1), f = jo(() => m.value = !1, a);
934
934
  function b() {
935
935
  o.value && x(r.value) ? e.clipboard.readText().then((C) => {
936
936
  d.value = C;
@@ -938,7 +938,7 @@ function Jn(u = {}) {
938
938
  }
939
939
  g.value && t && Ue(["copy", "cut"], b);
940
940
  async function c(C = Ne(l)) {
941
- g.value && C != null && (o.value && x(i.value) ? await e.clipboard.writeText(C) : _(C), d.value = C, m.value = !0, f.start());
941
+ g.value && C != null && (o.value && x(u.value) ? await e.clipboard.writeText(C) : _(C), d.value = C, m.value = !0, f.start());
942
942
  }
943
943
  function _(C) {
944
944
  const D = document.createElement("textarea");
@@ -958,16 +958,16 @@ function Jn(u = {}) {
958
958
  copy: c
959
959
  };
960
960
  }
961
- function Po(u, e, t = {}) {
961
+ function Po(i, e, t = {}) {
962
962
  const { window: l = dt, ...a } = t;
963
963
  let s;
964
964
  const o = Nt(() => l && "ResizeObserver" in l), r = () => {
965
965
  s && (s.disconnect(), s = void 0);
966
- }, i = S(() => {
967
- const m = Ne(u);
966
+ }, u = S(() => {
967
+ const m = Ne(i);
968
968
  return Array.isArray(m) ? m.map((f) => Se(f)) : [Se(m)];
969
969
  }), g = M(
970
- i,
970
+ u,
971
971
  (m) => {
972
972
  if (r(), o.value && l) {
973
973
  s = new ResizeObserver(e);
@@ -984,16 +984,16 @@ function Po(u, e, t = {}) {
984
984
  stop: d
985
985
  };
986
986
  }
987
- function Ke(u, e = { width: 0, height: 0 }, t = {}) {
987
+ function Ke(i, e = { width: 0, height: 0 }, t = {}) {
988
988
  const { window: l = dt, box: a = "content-box" } = t, s = S(() => {
989
989
  var m, f;
990
- return (f = (m = Se(u)) == null ? void 0 : m.namespaceURI) == null ? void 0 : f.includes("svg");
991
- }), o = k(e.width), r = k(e.height), { stop: i } = Po(
992
- u,
990
+ return (f = (m = Se(i)) == null ? void 0 : m.namespaceURI) == null ? void 0 : f.includes("svg");
991
+ }), o = k(e.width), r = k(e.height), { stop: u } = Po(
992
+ i,
993
993
  ([m]) => {
994
994
  const f = a === "border-box" ? m.borderBoxSize : a === "content-box" ? m.contentBoxSize : m.devicePixelContentBoxSize;
995
995
  if (l && s.value) {
996
- const b = Se(u);
996
+ const b = Se(i);
997
997
  if (b) {
998
998
  const c = b.getBoundingClientRect();
999
999
  o.value = c.width, r.value = c.height;
@@ -1007,17 +1007,17 @@ function Ke(u, e = { width: 0, height: 0 }, t = {}) {
1007
1007
  t
1008
1008
  );
1009
1009
  Ao(() => {
1010
- const m = Se(u);
1010
+ const m = Se(i);
1011
1011
  m && (o.value = "offsetWidth" in m ? m.offsetWidth : e.width, r.value = "offsetHeight" in m ? m.offsetHeight : e.height);
1012
1012
  });
1013
1013
  const g = M(
1014
- () => Se(u),
1014
+ () => Se(i),
1015
1015
  (m) => {
1016
1016
  o.value = m ? e.width : 0, r.value = m ? e.height : 0;
1017
1017
  }
1018
1018
  );
1019
1019
  function d() {
1020
- i(), g();
1020
+ u(), g();
1021
1021
  }
1022
1022
  return {
1023
1023
  width: o,
@@ -1033,10 +1033,10 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
1033
1033
  size: { default: "small" }
1034
1034
  },
1035
1035
  emits: ["change", "update:modelValue"],
1036
- setup(u, { emit: e }) {
1037
- const t = u, l = e, a = k(!1), s = k(t.modelValue), o = k(""), r = S(
1036
+ setup(i, { emit: e }) {
1037
+ const t = i, l = e, a = k(!1), s = k(t.modelValue), o = k(""), r = S(
1038
1038
  () => Vt[t.modelValue] || t.modelValue
1039
- ), i = S(() => {
1039
+ ), u = S(() => {
1040
1040
  const b = Object.entries(Vt);
1041
1041
  return o.value ? b.filter((c) => c[0].toLowerCase().includes(o.value)) : b;
1042
1042
  }), g = (b) => {
@@ -1058,7 +1058,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
1058
1058
  onFocus: f
1059
1059
  }, {
1060
1060
  prepend: h(() => [
1061
- v(n(Ve), { icon: r.value }, null, 8, ["icon"])
1061
+ v(n(Ce), { icon: r.value }, null, 8, ["icon"])
1062
1062
  ]),
1063
1063
  _: 1
1064
1064
  }, 8, ["size", "model-value", "suffix-icon"]),
@@ -1097,12 +1097,12 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
1097
1097
  placeholder: "请输入查询关键字"
1098
1098
  }, null, 8, ["size", "prefix-icon", "modelValue"]),
1099
1099
  V("div", Bo, [
1100
- (p(!0), A(z, null, J(i.value, (_) => (p(), y(n(Ve), {
1100
+ (p(!0), A(z, null, J(u.value, (_) => (p(), y(n(Ce), {
1101
1101
  icon: _[1],
1102
1102
  onClick: (w) => g(_[0]),
1103
1103
  class: G({ "is-active": s.value === _[0] })
1104
1104
  }, null, 8, ["icon", "onClick", "class"]))), 256)),
1105
- i.value.length === 0 ? (p(), y(n(re), { key: 0 })) : j("", !0)
1105
+ u.value.length === 0 ? (p(), y(n(re), { key: 0 })) : j("", !0)
1106
1106
  ])
1107
1107
  ])
1108
1108
  ]),
@@ -1117,8 +1117,8 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
1117
1117
  item: {},
1118
1118
  parentId: {}
1119
1119
  },
1120
- setup(u) {
1121
- const e = u, { project: t } = ze(), l = S(() => e.item ? "编辑页面" : "新增页面"), a = () => ({
1120
+ setup(i) {
1121
+ const e = i, { project: t } = ze(), l = S(() => e.item ? "编辑页面" : "新增页面"), a = () => ({
1122
1122
  dir: !1,
1123
1123
  name: "",
1124
1124
  title: "",
@@ -1131,18 +1131,18 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
1131
1131
  { label: "目录", value: !0 }
1132
1132
  ], r = (m) => {
1133
1133
  s.value && (s.value.name = Sn(m));
1134
- }, i = async (m) => t.value?.existPageName(m.name, [m.id]) ? (ae("页面名称已存在,请更换"), !1) : (e.item ? t.value?.updatePage(m) : t.value?.createPage(m, e.parentId), !0), { copy: g } = Jn({}), d = (m) => {
1134
+ }, u = async (m) => t.value?.existPageName(m.name, [m.id]) ? (ae("页面名称已存在,请更换"), !1) : (e.item ? t.value?.updatePage(m) : t.value?.createPage(m, e.parentId), !0), { copy: g } = Jn({}), d = (m) => {
1135
1135
  g(m), Ye.success({
1136
1136
  message: "已经复制到粘贴板"
1137
1137
  });
1138
1138
  };
1139
- return (m, f) => (p(), y(n(De), {
1139
+ return (m, f) => (p(), y(n(Ee), {
1140
1140
  title: l.value,
1141
1141
  width: "800px",
1142
1142
  height: "500px",
1143
1143
  "form-props": { tooltipMessage: !1 },
1144
1144
  model: s.value,
1145
- "submit-method": i
1145
+ "submit-method": u
1146
1146
  }, {
1147
1147
  default: h(() => [
1148
1148
  v(n(P), {
@@ -1163,7 +1163,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
1163
1163
  v(n(It), { closable: !1 }, {
1164
1164
  default: h(() => [
1165
1165
  X(W(`/page/${s.value.id}`) + " ", 1),
1166
- v(n(Ve), {
1166
+ v(n(Ce), {
1167
1167
  icon: n(ua),
1168
1168
  onClick: f[0] || (f[0] = (b) => d(`/page/${s.value.id}`))
1169
1169
  }, null, 8, ["icon"])
@@ -1178,7 +1178,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
1178
1178
  label: "名称",
1179
1179
  required: "",
1180
1180
  onChange: r,
1181
- rules: { pattern: n(xe), message: "名称格式不正确" }
1181
+ rules: { pattern: n(De), message: "名称格式不正确" }
1182
1182
  }, null, 8, ["rules"]),
1183
1183
  v(n(P), {
1184
1184
  name: "title",
@@ -1233,8 +1233,8 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
1233
1233
  open: { type: Boolean, default: !1 }
1234
1234
  },
1235
1235
  emits: ["click"],
1236
- setup(u, { emit: e }) {
1237
- const t = u, l = e, a = S(() => ({
1236
+ setup(i, { emit: e }) {
1237
+ const t = i, l = e, a = S(() => ({
1238
1238
  "is-active": t.active,
1239
1239
  "is-open": t.open
1240
1240
  })), s = () => {
@@ -1272,14 +1272,14 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
1272
1272
  collapsable: { type: Boolean }
1273
1273
  },
1274
1274
  emits: ["plus", "back", "remove", "save", "edit"],
1275
- setup(u, { emit: e }) {
1276
- const t = u, l = e, a = k(!1), s = S(() => ({
1275
+ setup(i, { emit: e }) {
1276
+ const t = i, l = e, a = k(!1), s = S(() => ({
1277
1277
  "is-collapsed": !!a.value
1278
1278
  })), o = () => {
1279
1279
  l("plus");
1280
1280
  }, r = () => {
1281
1281
  l("edit");
1282
- }, i = () => {
1282
+ }, u = () => {
1283
1283
  l("back");
1284
1284
  }, g = () => {
1285
1285
  l("remove");
@@ -1289,7 +1289,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
1289
1289
  content: t.title,
1290
1290
  subtitle: t.subtitle,
1291
1291
  icon: t.back ? ca : void 0,
1292
- onClickBack: t.back ? i : void 0,
1292
+ onClickBack: t.back ? u : void 0,
1293
1293
  onClick: t.collapsable ? () => {
1294
1294
  a.value = !a.value;
1295
1295
  } : void 0
@@ -1361,17 +1361,17 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
1361
1361
  }, null, 8, ["size", "icon"])), [
1362
1362
  [$e, !a.value]
1363
1363
  ]) : j("", !0),
1364
- je(b.$slots, "actions")
1364
+ Ae(b.$slots, "actions")
1365
1365
  ]),
1366
1366
  default: h(() => [
1367
- je(b.$slots, "default")
1367
+ Ae(b.$slots, "default")
1368
1368
  ]),
1369
1369
  _: 2
1370
1370
  }, [
1371
1371
  b.$slots.footer ? {
1372
1372
  name: "footer",
1373
1373
  fn: h(() => [
1374
- je(b.$slots, "footer")
1374
+ Ae(b.$slots, "footer")
1375
1375
  ]),
1376
1376
  key: "0"
1377
1377
  } : void 0
@@ -1395,26 +1395,26 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
1395
1395
  "remove",
1396
1396
  "action-click"
1397
1397
  ],
1398
- setup(u, { emit: e }) {
1399
- const t = u, l = e, a = k(
1398
+ setup(i, { emit: e }) {
1399
+ const t = i, l = e, a = k(
1400
1400
  (t.modelValue || t.items[0]?.name) ?? ""
1401
1401
  );
1402
1402
  M(a, () => {
1403
1403
  l("update:modelValue", a.value);
1404
1404
  }), M(
1405
1405
  () => t.modelValue,
1406
- (i) => {
1407
- a.value = i;
1406
+ (u) => {
1407
+ a.value = u;
1408
1408
  }
1409
1409
  );
1410
- const s = (i) => {
1411
- l("command", i);
1412
- }, o = (i) => {
1413
- l("remove", i);
1414
- }, r = (i) => {
1415
- l("action-click", i);
1410
+ const s = (u) => {
1411
+ l("command", u);
1412
+ }, o = (u) => {
1413
+ l("remove", u);
1414
+ }, r = (u) => {
1415
+ l("action-click", u);
1416
1416
  };
1417
- return (i, g) => (p(), y(n(ot), {
1417
+ return (u, g) => (p(), y(n(ot), {
1418
1418
  class: "v-tabs",
1419
1419
  border: !1,
1420
1420
  fit: "",
@@ -1464,7 +1464,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
1464
1464
  ])
1465
1465
  ]),
1466
1466
  default: h(() => [
1467
- je(i.$slots, "default")
1467
+ Ae(u.$slots, "default")
1468
1468
  ]),
1469
1469
  _: 3
1470
1470
  }));
@@ -1493,7 +1493,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
1493
1493
  small: { type: Boolean }
1494
1494
  },
1495
1495
  emits: ["click", "action", "update:modelValue", "switch"],
1496
- setup(u, { emit: e }) {
1496
+ setup(i, { emit: e }) {
1497
1497
  const t = {
1498
1498
  add: {
1499
1499
  label: "创建",
@@ -1531,7 +1531,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
1531
1531
  label: "主页",
1532
1532
  icon: ha
1533
1533
  }
1534
- }, l = u, a = e, s = k(!!l.modelValue), o = S(() => l.actions.map((d) => {
1534
+ }, l = i, a = e, s = k(!!l.modelValue), o = S(() => l.actions.map((d) => {
1535
1535
  const m = t[d];
1536
1536
  return {
1537
1537
  name: d,
@@ -1543,7 +1543,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
1543
1543
  "is-active": l.active,
1544
1544
  "is-hover": l.hover,
1545
1545
  "is-small": l.small
1546
- })), i = () => {
1546
+ })), u = () => {
1547
1547
  a("click", l.modelValue);
1548
1548
  }, g = async (d) => {
1549
1549
  d === "remove" ? await Dt.confirm("确定删除吗?", "提示", {
@@ -1567,7 +1567,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
1567
1567
  class: G(["v-item", r.value]),
1568
1568
  justify: "space-between",
1569
1569
  align: "center",
1570
- onClick: i
1570
+ onClick: u
1571
1571
  }, {
1572
1572
  default: h(() => [
1573
1573
  v(n(q), {
@@ -1575,8 +1575,8 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
1575
1575
  align: "center"
1576
1576
  }, {
1577
1577
  default: h(() => [
1578
- je(d.$slots, "default", {}, () => [
1579
- d.icon ? (p(), y(n(Ve), {
1578
+ Ae(d.$slots, "default", {}, () => [
1579
+ d.icon ? (p(), y(n(Ce), {
1580
1580
  key: 0,
1581
1581
  icon: d.icon
1582
1582
  }, null, 8, ["icon"])) : j("", !0),
@@ -1624,7 +1624,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
1624
1624
  class: "v-item__switch",
1625
1625
  size: "small"
1626
1626
  }, null, 8, ["modelValue"])) : j("", !0),
1627
- je(d.$slots, "status")
1627
+ Ae(d.$slots, "status")
1628
1628
  ]),
1629
1629
  _: 3
1630
1630
  })
@@ -1645,8 +1645,8 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
1645
1645
  tagType: {}
1646
1646
  },
1647
1647
  emits: ["edit", "remove", "dragstart", "dragend"],
1648
- setup(u, { emit: e }) {
1649
- const t = u, l = e, a = () => {
1648
+ setup(i, { emit: e }) {
1649
+ const t = i, l = e, a = () => {
1650
1650
  l("edit");
1651
1651
  }, s = async () => {
1652
1652
  await Dt.confirm("确认删除?", "提示", {
@@ -1657,14 +1657,14 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
1657
1657
  "is-draggable": t.draggable
1658
1658
  })), r = () => {
1659
1659
  l("dragstart", t);
1660
- }, i = () => {
1660
+ }, u = () => {
1661
1661
  l("dragend", t);
1662
1662
  };
1663
1663
  return (g, d) => (p(), A("div", {
1664
1664
  class: G(["v-box", o.value]),
1665
1665
  draggable: g.draggable,
1666
1666
  onDragstart: r,
1667
- onDragend: i
1667
+ onDragend: u
1668
1668
  }, [
1669
1669
  v(n(q), {
1670
1670
  direction: "column",
@@ -1684,11 +1684,11 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
1684
1684
  align: "center"
1685
1685
  }, {
1686
1686
  default: h(() => [
1687
- v(n(Ve), {
1687
+ v(n(Ce), {
1688
1688
  icon: n(Tn),
1689
1689
  onClick: a
1690
1690
  }, null, 8, ["icon"]),
1691
- v(n(Ve), {
1691
+ v(n(Ce), {
1692
1692
  icon: n(ut),
1693
1693
  onClick: s
1694
1694
  }, null, 8, ["icon"])
@@ -1707,8 +1707,8 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
1707
1707
  context: {}
1708
1708
  },
1709
1709
  emits: ["pick", "copy"],
1710
- setup(u, { emit: e }) {
1711
- const t = u, l = e, a = ["$provider", "$apis", "$components", "context"], s = (d) => {
1710
+ setup(i, { emit: e }) {
1711
+ const t = i, l = e, a = ["$provider", "$apis", "$components", "context"], s = (d) => {
1712
1712
  const m = d.value, f = vt(m);
1713
1713
  return f === "Object" || f === "Module" ? Object.keys(m || {}).length === 0 : f === "Array" ? m.length === 0 : !0;
1714
1714
  }, o = (d, m = "this") => typeof d == "object" ? Array.isArray(d) ? d.map((b, c) => {
@@ -1736,7 +1736,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
1736
1736
  const f = rn(d.data.value);
1737
1737
  m(o(f, d.data.path));
1738
1738
  }
1739
- }, i = (d) => {
1739
+ }, u = (d) => {
1740
1740
  l("copy", d.path);
1741
1741
  }, g = (d) => {
1742
1742
  l("pick", d.path);
@@ -1758,7 +1758,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
1758
1758
  onClick: (b) => g(f),
1759
1759
  background: "",
1760
1760
  actions: ["copy"],
1761
- onAction: (b) => i(f),
1761
+ onAction: (b) => u(f),
1762
1762
  grow: "",
1763
1763
  small: ""
1764
1764
  }, null, 8, ["title", "subtitle", "subtitle-cls", "onClick", "onAction"])
@@ -1787,8 +1787,8 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
1787
1787
  "update:modelValue",
1788
1788
  "close"
1789
1789
  ],
1790
- setup(u, { emit: e }) {
1791
- const t = u, l = e, { searchResult: a, keyword: s } = Ys(t.block, t.context), { copy: o } = Jn({}), r = [
1790
+ setup(i, { emit: e }) {
1791
+ const t = i, l = e, { searchResult: a, keyword: s } = Ys(t.block, t.context), { copy: o } = Jn({}), r = [
1792
1792
  {
1793
1793
  name: "normal",
1794
1794
  label: "常用"
@@ -1797,7 +1797,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
1797
1797
  name: "viewer",
1798
1798
  label: "高级"
1799
1799
  }
1800
- ], i = k("normal"), g = k(), d = async (x) => {
1800
+ ], u = k("normal"), g = k(), d = async (x) => {
1801
1801
  l("submit", x), t.submitMethod ? await t.submitMethod(x) && m() : m();
1802
1802
  }, m = () => {
1803
1803
  l("update:modelValue", !1), l("close");
@@ -1841,8 +1841,8 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
1841
1841
  v(pt, {
1842
1842
  class: "v-binder__tabs",
1843
1843
  items: r,
1844
- modelValue: i.value,
1845
- "onUpdate:modelValue": C[1] || (C[1] = (D) => i.value = D)
1844
+ modelValue: u.value,
1845
+ "onUpdate:modelValue": C[1] || (C[1] = (D) => u.value = D)
1846
1846
  }, {
1847
1847
  default: h(() => [
1848
1848
  v(n(q), {
@@ -1879,14 +1879,14 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
1879
1879
  ]))), 256)),
1880
1880
  n(a).length ? j("", !0) : (p(), y(n(re), { key: 0 }))
1881
1881
  ], 512), [
1882
- [$e, i.value === "normal"]
1882
+ [$e, u.value === "normal"]
1883
1883
  ]),
1884
1884
  Te(v(Mo, {
1885
1885
  context: t.context,
1886
1886
  onCopy: w,
1887
1887
  onPick: _
1888
1888
  }, null, 8, ["context"]), [
1889
- [$e, i.value === "viewer"]
1889
+ [$e, u.value === "viewer"]
1890
1890
  ])
1891
1891
  ]),
1892
1892
  _: 1
@@ -1963,7 +1963,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
1963
1963
  "submit-method": d
1964
1964
  }, {
1965
1965
  default: h(() => [
1966
- je(x.$slots, "default")
1966
+ Ae(x.$slots, "default")
1967
1967
  ]),
1968
1968
  _: 3
1969
1969
  }, 8, ["model", "rules"])
@@ -1983,13 +1983,13 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
1983
1983
  slots: { default: () => [] }
1984
1984
  },
1985
1985
  emits: ["submit", "update:modelValue"],
1986
- setup(u, { emit: e }) {
1987
- const t = u, l = e, a = k(), s = S(() => `${50 * Math.ceil(t.slots.length / 4) + 180}px`), o = (i) => {
1988
- a.value = i;
1986
+ setup(i, { emit: e }) {
1987
+ const t = i, l = e, a = k(), s = S(() => `${50 * Math.ceil(t.slots.length / 4) + 180}px`), o = (u) => {
1988
+ a.value = u;
1989
1989
  }, r = () => {
1990
1990
  a.value ? (l("submit", a.value), l("update:modelValue", !1)) : ae("请选择插槽");
1991
1991
  };
1992
- return (i, g) => (p(), y(n(Oe), ue({
1992
+ return (u, g) => (p(), y(n(Oe), ue({
1993
1993
  class: "v-slots-picker",
1994
1994
  title: "选择插槽",
1995
1995
  width: "600px",
@@ -1997,7 +1997,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
1997
1997
  submit: "",
1998
1998
  cancel: "",
1999
1999
  onSubmit: r
2000
- }, i.$attrs), {
2000
+ }, u.$attrs), {
2001
2001
  default: h(() => [
2002
2002
  v(n(It), {
2003
2003
  title: "该组件支持多个插槽,请选择放置到其中一个",
@@ -2039,11 +2039,11 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
2039
2039
  width: {},
2040
2040
  height: {}
2041
2041
  },
2042
- setup(u) {
2043
- const e = u, t = S(() => [`is-${e.mode}`]), l = S(() => {
2042
+ setup(i) {
2043
+ const e = i, t = S(() => [`is-${e.mode}`]), l = S(() => {
2044
2044
  if (e.mode === "pc") return 1;
2045
- const s = e.mode === "mobile" ? Yt : Zt, { width: o, height: r } = s, i = o > 0 ? (e.width || 0) / o : 1, g = r > 0 ? (e.height || 0) / r : 1;
2046
- return Math.min(i, g);
2045
+ const s = e.mode === "mobile" ? Yt : Zt, { width: o, height: r } = s, u = o > 0 ? (e.width || 0) / o : 1, g = r > 0 ? (e.height || 0) / r : 1;
2046
+ return Math.min(u, g);
2047
2047
  }), a = S(() => {
2048
2048
  if (e.mode === "pc") return {};
2049
2049
  const s = e.mode === "mobile" ? Yt : Zt, { width: o, height: r } = s;
@@ -2059,14 +2059,14 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
2059
2059
  class: G(["v-viewport", t.value]),
2060
2060
  style: tt(a.value)
2061
2061
  }, [
2062
- je(s.$slots, "default")
2062
+ Ae(s.$slots, "default")
2063
2063
  ], 6));
2064
2064
  }
2065
2065
  }), Ho = /* @__PURE__ */ E({
2066
2066
  name: "PagesWidget",
2067
2067
  __name: "index",
2068
- setup(u) {
2069
- const { project: e, engine: t } = ze(), l = S(() => e.value?.pages || []), { current: a } = ce(), s = k(!1), o = k(), r = k(), i = S(() => `(共 ${l.value.length} 项)`), g = () => {
2068
+ setup(i) {
2069
+ const { project: e, engine: t } = ze(), l = S(() => e.value?.pages || []), { current: a } = ce(), s = k(!1), o = k(), r = k(), u = S(() => `(共 ${l.value.length} 项)`), g = () => {
2070
2070
  r.value = void 0, o.value = void 0, s.value = !0;
2071
2071
  }, d = async (c) => {
2072
2072
  const { name: _, modelValue: w } = c, { data: x, node: C } = w;
@@ -2096,7 +2096,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
2096
2096
  class: "v-pages-widget",
2097
2097
  title: "页面管理",
2098
2098
  plus: "",
2099
- subtitle: i.value,
2099
+ subtitle: u.value,
2100
2100
  onPlus: g
2101
2101
  }, {
2102
2102
  default: h(() => [
@@ -2148,14 +2148,14 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
2148
2148
  attachment: {}
2149
2149
  },
2150
2150
  emits: ["change", "update:modelValue"],
2151
- setup(u, { emit: e }) {
2152
- const t = u, l = e, { engine: a, project: s } = ze(), o = k([]), r = k(!1), i = (C) => Array.isArray(C) ? C.map((D) => ({
2151
+ setup(i, { emit: e }) {
2152
+ const t = i, l = e, { engine: a, project: s } = ze(), o = k([]), r = k(!1), u = (C) => Array.isArray(C) ? C.map((D) => ({
2153
2153
  name: D.filename,
2154
2154
  url: D.filepath
2155
2155
  })) : C ? { name: C.filename, url: C.filepath } : null, g = async (C) => {
2156
2156
  if (a && s.value) {
2157
2157
  const D = await a.service.uploadStaticFile(C, s.value.id);
2158
- return i(D);
2158
+ return u(D);
2159
2159
  }
2160
2160
  return null;
2161
2161
  }, d = (C) => C ? (C || "").split(",").map((L) => ({ url: L })) : [], m = k(
@@ -2169,7 +2169,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
2169
2169
  ), M(r, async (C) => {
2170
2170
  if (C) {
2171
2171
  const D = await a.service.getStaticFiles(s.value?.id).catch(() => null);
2172
- o.value = i(D);
2172
+ o.value = u(D);
2173
2173
  }
2174
2174
  });
2175
2175
  const b = () => {
@@ -2238,10 +2238,10 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
2238
2238
  }), Xo = { class: "v-blocks__search" }, Ko = /* @__PURE__ */ E({
2239
2239
  name: "BlocksWidget",
2240
2240
  __name: "index",
2241
- setup(u) {
2241
+ setup(i) {
2242
2242
  const { span: e } = Ln(), { blocks: t, engine: l } = qs(), a = k(""), s = S(() => a.value ? t.value.filter((B) => B.name.includes(a.value) || B.title?.includes(a.value)) : t.value), o = S(
2243
2243
  () => xn(s.value, (B) => B.category || "默认分组")
2244
- ), r = S(() => Object.keys(o.value)), i = {
2244
+ ), r = S(() => Object.keys(o.value)), u = {
2245
2245
  filterable: !0,
2246
2246
  allowCreate: !0,
2247
2247
  defaultFirstOption: !0
@@ -2381,7 +2381,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
2381
2381
  _: 1
2382
2382
  }, 8, ["model-value"]),
2383
2383
  n(t).length ? j("", !0) : (p(), y(n(re), { key: 0 })),
2384
- v(n(De), {
2384
+ v(n(Ee), {
2385
2385
  modelValue: c.value,
2386
2386
  "onUpdate:modelValue": $[1] || ($[1] = (ne) => c.value = ne),
2387
2387
  title: _.value,
@@ -2407,7 +2407,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
2407
2407
  tip: "名称为英文驼峰格式",
2408
2408
  rules: {
2409
2409
  message: "名称格式错误",
2410
- pattern: n(xe)
2410
+ pattern: n(De)
2411
2411
  },
2412
2412
  onChange: T
2413
2413
  }, null, 8, ["rules"]),
@@ -2434,7 +2434,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
2434
2434
  name: "category",
2435
2435
  label: "分组",
2436
2436
  editor: "select",
2437
- props: i,
2437
+ props: u,
2438
2438
  options: g.value
2439
2439
  }, null, 8, ["options"])
2440
2440
  ]),
@@ -2450,8 +2450,8 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
2450
2450
  }, Zo = { class: "v-components-widget__list" }, er = /* @__PURE__ */ E({
2451
2451
  name: "ComponentsWidget",
2452
2452
  __name: "index",
2453
- setup(u) {
2454
- const { span: e, engine: t } = Ln(), { tabs: l, currentTab: a, currentGroup: s, model: o, searchKey: r, searchResult: i } = Gs(), g = (m) => {
2453
+ setup(i) {
2454
+ const { span: e, engine: t } = Ln(), { tabs: l, currentTab: a, currentGroup: s, model: o, searchKey: r, searchResult: u } = Gs(), g = (m) => {
2455
2455
  const f = t.skeleton?.getWidget("Designer")?.widgetRef?.designer;
2456
2456
  f && f.setDragging(m);
2457
2457
  }, d = () => {
@@ -2484,7 +2484,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
2484
2484
  gutter: 5
2485
2485
  }, {
2486
2486
  default: h(() => [
2487
- (p(!0), A(z, null, J(n(i), (b) => (p(), y(n(kt), {
2487
+ (p(!0), A(z, null, J(n(u), (b) => (p(), y(n(kt), {
2488
2488
  span: n(e),
2489
2489
  key: b.name
2490
2490
  }, {
@@ -2502,7 +2502,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
2502
2502
  ]),
2503
2503
  _: 1
2504
2504
  }),
2505
- n(i).length ? j("", !0) : (p(), y(n(re), { key: 0 }))
2505
+ n(u).length ? j("", !0) : (p(), y(n(re), { key: 0 }))
2506
2506
  ])) : (p(), y(n($t), {
2507
2507
  key: 1,
2508
2508
  items: n(l),
@@ -2564,8 +2564,8 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
2564
2564
  }), tr = /* @__PURE__ */ E({
2565
2565
  name: "OutlineWidget",
2566
2566
  __name: "index",
2567
- setup(u) {
2568
- const { engine: e, designer: t, selected: l } = Ae(), { current: a } = ce(), s = k([]), o = (I, R) => {
2567
+ setup(i) {
2568
+ const { engine: e, designer: t, selected: l } = Ve(), { current: a } = ce(), s = k([]), o = (I, R) => {
2569
2569
  if (R === "slot") return [];
2570
2570
  if (te(I))
2571
2571
  return I.locked ? ["unlock"] : ["lock"];
@@ -2573,7 +2573,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
2573
2573
  return T && (T.locked || T.invisible) ? [] : a.value?.locked ? [] : I.locked ? ["unlock"] : I.invisible ? ["visible"] : ["lock", "invisible", "copy", "remove"];
2574
2574
  }, r = (I, R) => {
2575
2575
  const T = {};
2576
- if (!I.some((N) => N.slot)) return i(I);
2576
+ if (!I.some((N) => N.slot)) return u(I);
2577
2577
  for (const N of I) {
2578
2578
  const B = N.slot?.name || "default";
2579
2579
  T[B] || (T[B] = []), T[B].push(N);
@@ -2586,10 +2586,10 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
2586
2586
  type: "slot",
2587
2587
  model: R,
2588
2588
  disabled: !0,
2589
- children: i(B)
2589
+ children: u(B)
2590
2590
  });
2591
2591
  return me;
2592
- }, i = (I) => {
2592
+ }, u = (I) => {
2593
2593
  const R = [];
2594
2594
  return I.forEach((T) => {
2595
2595
  const K = {
@@ -2610,11 +2610,11 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
2610
2610
  label: R,
2611
2611
  type: I,
2612
2612
  model: a.value,
2613
- children: i(T)
2613
+ children: u(T)
2614
2614
  }
2615
2615
  ];
2616
2616
  }, d = async () => {
2617
- s.value = g(), l.value?.model && (await Ce(), t.value?.setSelected(l.value.model));
2617
+ s.value = g(), l.value?.model && (await xe(), t.value?.setSelected(l.value.model));
2618
2618
  }, m = S(() => l.value?.model.id), f = (I) => {
2619
2619
  const R = I.data;
2620
2620
  if (R.type === "slot" || te(R.model) || R.model.locked || R.model.name === "template")
@@ -2764,13 +2764,13 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
2764
2764
  }), nr = /* @__PURE__ */ E({
2765
2765
  name: "HistoryWidget",
2766
2766
  __name: "index",
2767
- setup(u) {
2767
+ setup(i) {
2768
2768
  const { history: e, load: t, total: l } = Wn(), a = S(() => `(共 ${l.value} 条)`), s = (r) => {
2769
2769
  r.name === "remove" && e.value?.remove(r.modelValue.id);
2770
2770
  }, o = async () => {
2771
2771
  await We("确定要清空历史记录吗?") && e.value?.clear();
2772
2772
  };
2773
- return (r, i) => (p(), y(n(H), {
2773
+ return (r, u) => (p(), y(n(H), {
2774
2774
  class: "v-history-widget",
2775
2775
  title: "历史记录",
2776
2776
  subtitle: a.value,
@@ -2802,8 +2802,8 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
2802
2802
  props: {
2803
2803
  categories: {}
2804
2804
  },
2805
- setup(u) {
2806
- const e = u, t = Ws.map((s) => ({
2805
+ setup(i) {
2806
+ const e = i, t = Ws.map((s) => ({
2807
2807
  label: s,
2808
2808
  value: s.toLowerCase()
2809
2809
  })), l = {
@@ -2826,7 +2826,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
2826
2826
  name: "name",
2827
2827
  label: "接口名称",
2828
2828
  required: "",
2829
- rules: { pattern: n(xe), message: "名称格式不正确" }
2829
+ rules: { pattern: n(De), message: "名称格式不正确" }
2830
2830
  }, null, 8, ["rules"]),
2831
2831
  v(n(P), {
2832
2832
  name: "label",
@@ -2861,7 +2861,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
2861
2861
  })
2862
2862
  }), ar = /* @__PURE__ */ E({
2863
2863
  __name: "request-settings",
2864
- setup(u) {
2864
+ setup(i) {
2865
2865
  const e = [
2866
2866
  {
2867
2867
  label: "表单",
@@ -2940,7 +2940,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
2940
2940
  }
2941
2941
  }), sr = /* @__PURE__ */ E({
2942
2942
  __name: "jsonp-options",
2943
- setup(u) {
2943
+ setup(i) {
2944
2944
  return (e, t) => (p(), A("div", null, [
2945
2945
  v(n(P), {
2946
2946
  name: "jsonpOptions.jsonpCallback",
@@ -2968,7 +2968,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
2968
2968
  }
2969
2969
  }), or = /* @__PURE__ */ E({
2970
2970
  __name: "mock-template",
2971
- setup(u) {
2971
+ setup(i) {
2972
2972
  const e = jt("currentModel", null), { project: t } = ze(), l = S(() => t.value?.config || {}), a = () => {
2973
2973
  window.open("https://vtj.pro/help/mock.html");
2974
2974
  };
@@ -3026,8 +3026,8 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
3026
3026
  project: {},
3027
3027
  categories: {}
3028
3028
  },
3029
- setup(u) {
3030
- const e = u, t = S(() => e.model ? "编辑API" : "新增API"), l = k("base"), a = k(), s = k(), o = k(e.model || {}), r = k(!1), i = k(""), g = [
3029
+ setup(i) {
3030
+ const e = i, t = S(() => e.model ? "编辑API" : "新增API"), l = k("base"), a = k(), s = k(), o = k(e.model || {}), r = k(!1), u = k(""), g = [
3031
3031
  {
3032
3032
  label: "基础信息",
3033
3033
  value: "base"
@@ -3053,7 +3053,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
3053
3053
  }
3054
3054
  ), M(l, async () => {
3055
3055
  s.value?.formRef.validate(async (_) => {
3056
- _ || (await Ce(), l.value = "base");
3056
+ _ || (await xe(), l.value = "base");
3057
3057
  });
3058
3058
  });
3059
3059
  const m = () => {
@@ -3075,7 +3075,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
3075
3075
  type: x
3076
3076
  })
3077
3077
  );
3078
- i.value = JSON.stringify(C, null, 2), r.value = !0;
3078
+ u.value = JSON.stringify(C, null, 2), r.value = !0;
3079
3079
  }
3080
3080
  };
3081
3081
  return (_, w) => (p(), y(n(Oe), {
@@ -3188,7 +3188,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
3188
3188
  }, {
3189
3189
  default: h(() => [
3190
3190
  v(n(se), {
3191
- "model-value": i.value,
3191
+ "model-value": u.value,
3192
3192
  border: "",
3193
3193
  dark: "",
3194
3194
  height: "100%",
@@ -3204,13 +3204,13 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
3204
3204
  }), ur = { class: "v-apis__search" }, cr = /* @__PURE__ */ E({
3205
3205
  name: "ApisWidget",
3206
3206
  __name: "index",
3207
- setup(u) {
3207
+ setup(i) {
3208
3208
  const { project: e } = ze(), t = k(!1), l = k(null), a = k(""), s = k(!1), o = S(() => {
3209
3209
  const c = e.value?.apis || [];
3210
3210
  return a.value ? c.filter((_) => _.name.includes(a.value) || _.label?.includes(a.value) || _.url.includes(a.value)) : c;
3211
3211
  }), r = S(
3212
3212
  () => xn(o.value, (c) => c.category || "默认分组")
3213
- ), i = S(() => Object.keys(r.value)), g = () => ({
3213
+ ), u = S(() => Object.keys(r.value)), g = () => ({
3214
3214
  id: "",
3215
3215
  method: "get",
3216
3216
  name: "",
@@ -3270,7 +3270,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
3270
3270
  clearable: ""
3271
3271
  }, null, 8, ["modelValue", "prefix-icon"])
3272
3272
  ]),
3273
- v(n(Bt), { "model-value": i.value }, {
3273
+ v(n(Bt), { "model-value": u.value }, {
3274
3274
  default: h(() => [
3275
3275
  (p(!0), A(z, null, J(r.value, (w, x) => (p(), y(n(Rt), {
3276
3276
  name: x,
@@ -3305,7 +3305,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
3305
3305
  "onUpdate:modelValue": _[1] || (_[1] = (w) => t.value = w),
3306
3306
  model: l.value,
3307
3307
  project: n(e),
3308
- categories: i.value
3308
+ categories: u.value
3309
3309
  }, null, 8, ["modelValue", "model", "project", "categories"])
3310
3310
  ]),
3311
3311
  _: 1
@@ -3314,8 +3314,8 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
3314
3314
  }), dr = /* @__PURE__ */ E({
3315
3315
  name: "DepsWidget",
3316
3316
  __name: "index",
3317
- setup(u) {
3318
- const { dependencies: e, engine: t } = Fn(), l = k(!1), a = k(!1), s = k({}), o = S(() => a.value ? "查看依赖" : s.value ? "编辑依赖" : "新增依赖"), r = (c) => c.required || c.official ? [] : ["edit", "remove"], i = (c) => c.official && !c.required, g = async (c) => (c.urls = c.urls.split(`
3317
+ setup(i) {
3318
+ const { dependencies: e, engine: t } = Fn(), l = k(!1), a = k(!1), s = k({}), o = S(() => a.value ? "查看依赖" : s.value ? "编辑依赖" : "新增依赖"), r = (c) => c.required || c.official ? [] : ["edit", "remove"], u = (c) => c.official && !c.required, g = async (c) => (c.urls = c.urls.split(`
3319
3319
  `), c.enabled = !0, c.official = !1, t.project.value?.setDeps(c), !0), d = (c) => {
3320
3320
  t.project.value?.setDeps(c);
3321
3321
  }, m = () => {
@@ -3348,14 +3348,14 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
3348
3348
  subtitle: w.version,
3349
3349
  actions: r(w),
3350
3350
  background: "",
3351
- switch: i(w),
3351
+ switch: u(w),
3352
3352
  modelValue: w.enabled,
3353
3353
  "onUpdate:modelValue": (x) => w.enabled = x,
3354
3354
  onSwitch: (x) => d(w),
3355
3355
  onClick: (x) => f(w),
3356
3356
  onAction: (x) => b(w, x)
3357
3357
  }, null, 8, ["title", "subtitle", "actions", "switch", "modelValue", "onUpdate:modelValue", "onSwitch", "onClick", "onAction"]))), 128)),
3358
- v(n(De), {
3358
+ v(n(Ee), {
3359
3359
  modelValue: l.value,
3360
3360
  "onUpdate:modelValue": _[0] || (_[0] = (w) => l.value = w),
3361
3361
  width: "600px",
@@ -3416,8 +3416,8 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
3416
3416
  path: { default: () => [] }
3417
3417
  },
3418
3418
  emits: ["action", "dragstart", "dragend"],
3419
- setup(u, { emit: e }) {
3420
- const t = u, l = e, a = S(() => t.model.name), s = S(() => !te(t.model) && !t.model.locked), o = S(() => t.path.map((d) => ({
3419
+ setup(i, { emit: e }) {
3420
+ const t = i, l = e, a = S(() => t.model.name), s = S(() => !te(t.model) && !t.model.locked), o = S(() => t.path.map((d) => ({
3421
3421
  command: d,
3422
3422
  label: d.name,
3423
3423
  onMouseenter: () => {
@@ -3456,7 +3456,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
3456
3456
  icon: ut,
3457
3457
  title: "删除"
3458
3458
  }
3459
- ], i = (d) => {
3459
+ ], u = (d) => {
3460
3460
  l("action", { type: "selected", model: d.command });
3461
3461
  }, g = async (d) => {
3462
3462
  d.name === "remove" ? await We("确定删除?") && l("action", { type: d.name, model: t.model }) : l("action", { type: d.name, model: t.model });
@@ -3471,7 +3471,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
3471
3471
  label: a.value,
3472
3472
  menus: o.value,
3473
3473
  background: "none",
3474
- onCommand: i
3474
+ onCommand: u
3475
3475
  }, null, 8, ["icon", "label", "menus"]),
3476
3476
  v(n(xl), {
3477
3477
  disabled: !s.value,
@@ -3490,11 +3490,11 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
3490
3490
  name: "VDesigner",
3491
3491
  inheritAttrs: !1,
3492
3492
  __name: "index",
3493
- setup(u, { expose: e }) {
3494
- const t = k(), l = k(), { width: a, height: s } = Ke(t), { dependencies: o, engine: r, apis: i, meta: g } = Fn(), { current: d, isEmpty: m } = ce(), f = S(() => r.skeleton?.getWidget("Toolbar")?.widgetRef.mode ?? "pc"), b = S(() => r.project.value?.config || {}), { designer: c, hover: _, dropping: w, selected: x } = Xs(
3493
+ setup(i, { expose: e }) {
3494
+ const t = k(), l = k(), { width: a, height: s } = Ke(t), { dependencies: o, engine: r, apis: u, meta: g } = Fn(), { current: d, isEmpty: m } = ce(), f = S(() => r.skeleton?.getWidget("Toolbar")?.widgetRef.mode ?? "pc"), b = S(() => r.project.value?.config || {}), { designer: c, hover: _, dropping: w, selected: x } = Xs(
3495
3495
  l,
3496
3496
  o,
3497
- i,
3497
+ u,
3498
3498
  g,
3499
3499
  b
3500
3500
  ), C = (O) => {
@@ -3601,12 +3601,12 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
3601
3601
  list: {},
3602
3602
  remove: {},
3603
3603
  submit: {},
3604
- itemTitle: { type: Function, default: (u) => u.name }
3604
+ itemTitle: { type: Function, default: (i) => i.name }
3605
3605
  },
3606
- setup(u) {
3607
- const e = u, t = k(), l = k(), a = k(!1), s = k(e.createEmpty()), o = k(!1), r = S(
3606
+ setup(i) {
3607
+ const e = i, t = k(), l = k(), a = k(!1), s = k(e.createEmpty()), o = k(!1), r = S(
3608
3608
  () => o.value ? `编辑${e.title}` : `新增${e.title}`
3609
- ), i = () => {
3609
+ ), u = () => {
3610
3610
  o.value = !1, s.value = e.createEmpty(), a.value = !0;
3611
3611
  }, g = (c, _) => {
3612
3612
  switch (_.name) {
@@ -3632,7 +3632,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
3632
3632
  size: "small",
3633
3633
  fit: !1,
3634
3634
  plus: "",
3635
- onPlus: i
3635
+ onPlus: u
3636
3636
  }, {
3637
3637
  default: h(() => [
3638
3638
  (p(!0), A(z, null, J(c.list, (w) => (p(), y(n(de), {
@@ -3657,7 +3657,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
3657
3657
  onPick: d
3658
3658
  }, {
3659
3659
  default: h(() => [
3660
- je(c.$slots, "fields", cn(dn({ model: s.value, isEdit: o.value, nameLabel: c.nameLabel, valueLabel: c.valueLabel })), () => [
3660
+ Ae(c.$slots, "fields", cn(dn({ model: s.value, isEdit: o.value, nameLabel: c.nameLabel, valueLabel: c.valueLabel })), () => [
3661
3661
  v(n(P), {
3662
3662
  name: "name",
3663
3663
  label: c.nameLabel,
@@ -3699,19 +3699,19 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
3699
3699
  context: {},
3700
3700
  current: {}
3701
3701
  },
3702
- setup(u) {
3703
- const e = u, t = S(() => Object.entries(e.current?.state || {}).map(([r, i]) => ({ name: r, value: Le(i) }))), l = () => ({
3702
+ setup(i) {
3703
+ const e = i, t = S(() => Object.entries(e.current?.state || {}).map(([r, u]) => ({ name: r, value: Le(u) }))), l = () => ({
3704
3704
  name: "",
3705
3705
  value: ""
3706
3706
  }), a = (o) => e.current?.removeState(o.name), s = async (o, r) => {
3707
- const { name: i, value: g } = o;
3708
- if (!r && e.current?.state[i])
3709
- return ae(`名称 ${i} 已存在,请更换!`), !1;
3707
+ const { name: u, value: g } = o;
3708
+ if (!r && e.current?.state[u])
3709
+ return ae(`名称 ${u} 已存在,请更换!`), !1;
3710
3710
  const d = {
3711
3711
  type: "JSExpression",
3712
3712
  value: g
3713
3713
  };
3714
- return ie(d, e.context, !0) ? (e.current?.setState(i, d), !0) : !1;
3714
+ return ie(d, e.context, !0) ? (e.current?.setState(u, d), !0) : !1;
3715
3715
  };
3716
3716
  return (o, r) => (p(), y(Ze, {
3717
3717
  title: "状态数据",
@@ -3731,19 +3731,19 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
3731
3731
  context: {},
3732
3732
  current: {}
3733
3733
  },
3734
- setup(u) {
3735
- const e = u, t = S(() => Object.entries(e.current?.computed || {}).map(([r, i]) => ({ name: r, value: Le(i) }))), l = () => ({
3734
+ setup(i) {
3735
+ const e = i, t = S(() => Object.entries(e.current?.computed || {}).map(([r, u]) => ({ name: r, value: Le(u) }))), l = () => ({
3736
3736
  name: "",
3737
3737
  value: "() => { }"
3738
3738
  }), a = (o) => e.current?.removeFunction("computed", o.name), s = async (o, r) => {
3739
- const { name: i, value: g } = o;
3740
- if (!r && e.current?.computed[i])
3741
- return ae(`名称 ${i} 已存在,请更换!`), !1;
3739
+ const { name: u, value: g } = o;
3740
+ if (!r && e.current?.computed[u])
3741
+ return ae(`名称 ${u} 已存在,请更换!`), !1;
3742
3742
  const d = {
3743
3743
  type: "JSFunction",
3744
3744
  value: g
3745
3745
  };
3746
- return ie(d, e.context, !0) ? (e.current?.setFunction("computed", i, d), !0) : !1;
3746
+ return ie(d, e.context, !0) ? (e.current?.setFunction("computed", u, d), !0) : !1;
3747
3747
  };
3748
3748
  return (o, r) => (p(), y(Ze, {
3749
3749
  title: "计算属性",
@@ -3763,19 +3763,19 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
3763
3763
  context: {},
3764
3764
  current: {}
3765
3765
  },
3766
- setup(u) {
3767
- const e = u, t = S(() => Object.entries(e.current?.methods || {}).map(([r, i]) => ({ name: r, value: Le(i) }))), l = () => ({
3766
+ setup(i) {
3767
+ const e = i, t = S(() => Object.entries(e.current?.methods || {}).map(([r, u]) => ({ name: r, value: Le(u) }))), l = () => ({
3768
3768
  name: "",
3769
3769
  value: "() => { }"
3770
3770
  }), a = (o) => e.current?.removeFunction("methods", o.name), s = async (o, r) => {
3771
- const { name: i, value: g } = o;
3772
- if (!r && e.current?.methods[i])
3773
- return ae(`名称 ${i} 已存在,请更换!`), !1;
3771
+ const { name: u, value: g } = o;
3772
+ if (!r && e.current?.methods[u])
3773
+ return ae(`名称 ${u} 已存在,请更换!`), !1;
3774
3774
  const d = {
3775
3775
  type: "JSFunction",
3776
3776
  value: g
3777
3777
  };
3778
- return ie(d, e.context, !0) ? (e.current?.setFunction("methods", i, d), !0) : !1;
3778
+ return ie(d, e.context, !0) ? (e.current?.setFunction("methods", u, d), !0) : !1;
3779
3779
  };
3780
3780
  return (o, r) => (p(), y(Ze, {
3781
3781
  title: "组件方法",
@@ -3795,16 +3795,16 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
3795
3795
  context: {},
3796
3796
  current: {}
3797
3797
  },
3798
- setup(u) {
3799
- const e = u, t = S(() => ql.map((r) => ({
3798
+ setup(i) {
3799
+ const e = i, t = S(() => ql.map((r) => ({
3800
3800
  label: r,
3801
3801
  value: r
3802
- }))), l = S(() => Object.entries(e.current?.lifeCycles || {}).map(([i, g]) => ({ name: i, value: Le(g) }))), a = () => ({
3802
+ }))), l = S(() => Object.entries(e.current?.lifeCycles || {}).map(([u, g]) => ({ name: u, value: Le(g) }))), a = () => ({
3803
3803
  name: "",
3804
3804
  value: "() => { }"
3805
- }), s = (r) => e.current?.removeFunction("lifeCycles", r.name), o = async (r, i) => {
3805
+ }), s = (r) => e.current?.removeFunction("lifeCycles", r.name), o = async (r, u) => {
3806
3806
  const { name: g, value: d } = r;
3807
- if (!i && e.current?.lifeCycles[g])
3807
+ if (!u && e.current?.lifeCycles[g])
3808
3808
  return ae(`名称 ${g} 已存在,请更换!`), !1;
3809
3809
  const m = {
3810
3810
  type: "JSFunction",
@@ -3812,7 +3812,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
3812
3812
  };
3813
3813
  return ie(m, e.context, !0) ? (e.current?.setFunction("lifeCycles", g, m), !0) : !1;
3814
3814
  };
3815
- return (r, i) => (p(), y(Ze, {
3815
+ return (r, u) => (p(), y(Ze, {
3816
3816
  title: "生命周期",
3817
3817
  current: e.current,
3818
3818
  context: e.context,
@@ -3859,8 +3859,8 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
3859
3859
  context: {},
3860
3860
  current: {}
3861
3861
  },
3862
- setup(u) {
3863
- const e = u, t = S(() => (e.current?.watch || []).map((r) => ({
3862
+ setup(i) {
3863
+ const e = i, t = S(() => (e.current?.watch || []).map((r) => ({
3864
3864
  ...r,
3865
3865
  source: Le(r.source),
3866
3866
  handler: Le(r.handler)
@@ -3869,7 +3869,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
3869
3869
  deep: !1,
3870
3870
  immediate: !1,
3871
3871
  handler: "() => { }"
3872
- }), a = (r) => r.source, s = (r) => e.current?.removeWatch(r), o = async (r, i) => {
3872
+ }), a = (r) => r.source, s = (r) => e.current?.removeWatch(r), o = async (r, u) => {
3873
3873
  const g = {
3874
3874
  type: "JSFunction",
3875
3875
  value: r.source
@@ -3886,7 +3886,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
3886
3886
  };
3887
3887
  return e.current?.setWatch(m), !0;
3888
3888
  };
3889
- return (r, i) => (p(), y(Ze, {
3889
+ return (r, u) => (p(), y(Ze, {
3890
3890
  title: "侦听器",
3891
3891
  current: e.current,
3892
3892
  context: e.context,
@@ -3952,7 +3952,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
3952
3952
  }
3953
3953
  }), _r = /* @__PURE__ */ E({
3954
3954
  __name: "index",
3955
- setup(u) {
3955
+ setup(i) {
3956
3956
  const { current: e, context: t } = ce();
3957
3957
  return (l, a) => (p(), y(n(q), {
3958
3958
  class: "v-scripts-widget",
@@ -3995,16 +3995,16 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
3995
3995
  removable: { type: Boolean }
3996
3996
  },
3997
3997
  emits: ["change", "remove"],
3998
- setup(u, { emit: e }) {
3999
- const t = u, l = e, a = (i, g) => {
4000
- l("change", i, g);
4001
- }, s = (i) => {
4002
- l("remove", i);
4003
- }, o = (i) => i ? i.replace(/[\u0391-\uFFE5]/g, "aa").length : 0, r = S(() => {
3998
+ setup(i, { emit: e }) {
3999
+ const t = i, l = e, a = (u, g) => {
4000
+ l("change", u, g);
4001
+ }, s = (u) => {
4002
+ l("remove", u);
4003
+ }, o = (u) => u ? u.replace(/[\u0391-\uFFE5]/g, "aa").length : 0, r = S(() => {
4004
4004
  const g = (t.items || []).map((d) => o(d.label || d.name)).sort((d, m) => m - d)[0];
4005
4005
  return g ? g * 6 + 24 : 100;
4006
4006
  });
4007
- return (i, g) => (p(), y(n(H), {
4007
+ return (u, g) => (p(), y(n(H), {
4008
4008
  title: t.title,
4009
4009
  class: "v-sub-panel",
4010
4010
  size: "small",
@@ -4038,13 +4038,13 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
4038
4038
  }), wr = /* @__PURE__ */ E({
4039
4039
  name: "PropertiesWidget",
4040
4040
  __name: "index",
4041
- setup(u) {
4042
- const { current: e, context: t } = ce(), { selected: l } = Ae(), {
4041
+ setup(i) {
4042
+ const { current: e, context: t } = ce(), { selected: l } = Ve(), {
4043
4043
  node: a,
4044
4044
  commonProps: s,
4045
4045
  change: o,
4046
4046
  componentProps: r,
4047
- customProps: i,
4047
+ customProps: u,
4048
4048
  addCustom: g,
4049
4049
  removeCustom: d,
4050
4050
  isExist: m
@@ -4089,7 +4089,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
4089
4089
  current: n(e),
4090
4090
  context: n(t),
4091
4091
  node: n(a),
4092
- items: n(i),
4092
+ items: n(u),
4093
4093
  onChange: n(o),
4094
4094
  removable: "",
4095
4095
  plus: "",
@@ -4097,7 +4097,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
4097
4097
  onPlus: c,
4098
4098
  onRemove: w
4099
4099
  }, null, 8, ["current", "context", "node", "items", "onChange"])) : j("", !0),
4100
- v(n(De), {
4100
+ v(n(Ee), {
4101
4101
  modelValue: f.value,
4102
4102
  "onUpdate:modelValue": C[0] || (C[0] = (D) => f.value = D),
4103
4103
  title: "新增自定义属性",
@@ -4114,7 +4114,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
4114
4114
  required: "",
4115
4115
  rules: {
4116
4116
  message: "名称格式错误",
4117
- pattern: n(xe)
4117
+ pattern: n(De)
4118
4118
  }
4119
4119
  }, null, 8, ["rules"])
4120
4120
  ]),
@@ -4132,8 +4132,8 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
4132
4132
  current: {},
4133
4133
  value: {}
4134
4134
  },
4135
- setup(u) {
4136
- const e = u, t = k(), l = Qe({
4135
+ setup(i) {
4136
+ const e = i, t = k(), l = Qe({
4137
4137
  type: "JSExpression",
4138
4138
  value: e.value
4139
4139
  }), a = (s) => {
@@ -4179,8 +4179,8 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
4179
4179
  name: {},
4180
4180
  event: {}
4181
4181
  },
4182
- setup(u) {
4183
- const e = u, t = k(), a = Qe({
4182
+ setup(i) {
4183
+ const e = i, t = k(), a = Qe({
4184
4184
  name: e.name,
4185
4185
  ...e.event,
4186
4186
  modifiers: Object.keys(e.event?.modifiers || {}),
@@ -4194,7 +4194,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
4194
4194
  })), o = (r) => {
4195
4195
  t.value.getEditor().setValue(r), a.handler.value = r;
4196
4196
  };
4197
- return (r, i) => (p(), y(n(Jt), {
4197
+ return (r, u) => (p(), y(n(Jt), {
4198
4198
  title: "绑定事件",
4199
4199
  "unbind-enabled": "",
4200
4200
  block: e.current,
@@ -4220,7 +4220,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
4220
4220
  ref_key: "editorRef",
4221
4221
  ref: t,
4222
4222
  modelValue: a.handler.value,
4223
- "onUpdate:modelValue": i[0] || (i[0] = (g) => a.handler.value = g),
4223
+ "onUpdate:modelValue": u[0] || (u[0] = (g) => a.handler.value = g),
4224
4224
  dark: "",
4225
4225
  height: "100%"
4226
4226
  }, null, 8, ["modelValue"])
@@ -4234,12 +4234,12 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
4234
4234
  }), xr = /* @__PURE__ */ E({
4235
4235
  name: "EventsWidget",
4236
4236
  __name: "index",
4237
- setup(u) {
4238
- const { current: e, context: t } = ce(), { selected: l } = Ae(), { mouseEventList: a, keyboardEventList: s, componentEventList: o } = no(l), r = k({
4237
+ setup(i) {
4238
+ const { current: e, context: t } = ce(), { selected: l } = Ve(), { mouseEventList: a, keyboardEventList: s, componentEventList: o } = no(l), r = k({
4239
4239
  name: "",
4240
4240
  event: void 0
4241
- }), i = k(!1), g = (c) => {
4242
- r.value = rt(c), i.value = !0;
4241
+ }), u = k(!1), g = (c) => {
4242
+ r.value = rt(c), u.value = !0;
4243
4243
  }, d = async (c) => {
4244
4244
  const _ = {
4245
4245
  ...c,
@@ -4248,7 +4248,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
4248
4248
  return ie(_.handler, t.value, !0) ? ((l.value?.model).setEvent(_), !0) : !1;
4249
4249
  }, m = async (c) => {
4250
4250
  const _ = l.value?.model;
4251
- c.name && (_.removeEvent(c.name), i.value = !1);
4251
+ c.name && (_.removeEvent(c.name), u.value = !1);
4252
4252
  }, f = async () => {
4253
4253
  r.value.name && await We("确定要删除该事件吗?") && m(r.value);
4254
4254
  }, b = (c) => {
@@ -4330,10 +4330,10 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
4330
4330
  ]),
4331
4331
  _: 1
4332
4332
  }),
4333
- i.value ? (p(), y(n(Sr), {
4333
+ u.value ? (p(), y(n(Sr), {
4334
4334
  key: 0,
4335
- modelValue: i.value,
4336
- "onUpdate:modelValue": _[0] || (_[0] = (w) => i.value = w),
4335
+ modelValue: u.value,
4336
+ "onUpdate:modelValue": _[0] || (_[0] = (w) => u.value = w),
4337
4337
  context: n(t),
4338
4338
  current: n(e),
4339
4339
  name: r.value.name,
@@ -4348,7 +4348,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
4348
4348
  }), Cr = /* @__PURE__ */ E({
4349
4349
  name: "CssWidget",
4350
4350
  __name: "index",
4351
- setup(u) {
4351
+ setup(i) {
4352
4352
  const { current: e } = ce(), t = k(), l = S(() => e.value?.css || ""), a = (o) => {
4353
4353
  e.value?.setCss(o);
4354
4354
  }, s = () => {
@@ -4380,13 +4380,13 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
4380
4380
  }), Vr = /* @__PURE__ */ E({
4381
4381
  name: "DirectivesWidget",
4382
4382
  __name: "index",
4383
- setup(u) {
4384
- const { current: e, context: t } = ce(), { selected: l } = Ae(), {
4383
+ setup(i) {
4384
+ const { current: e, context: t } = ce(), { selected: l } = Ve(), {
4385
4385
  vIf: a,
4386
4386
  vShow: s,
4387
4387
  vBind: o,
4388
4388
  vFor: r,
4389
- vModels: i,
4389
+ vModels: u,
4390
4390
  onValueChange: g,
4391
4391
  onForChange: d,
4392
4392
  onModelChange: m
@@ -4505,7 +4505,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
4505
4505
  grow: ""
4506
4506
  }, {
4507
4507
  default: h(() => [
4508
- (p(!0), A(z, null, J(n(i), (_, w) => (p(), y(n(H), {
4508
+ (p(!0), A(z, null, J(n(u), (_, w) => (p(), y(n(H), {
4509
4509
  card: "",
4510
4510
  border: "",
4511
4511
  class: "v-sub-panel",
@@ -4537,7 +4537,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
4537
4537
  ]),
4538
4538
  _: 2
4539
4539
  }, 1032, ["title"]))), 256)),
4540
- n(i).length ? j("", !0) : (p(), y(n(re), {
4540
+ n(u).length ? j("", !0) : (p(), y(n(re), {
4541
4541
  key: 0,
4542
4542
  description: "当前组件没有双向绑定属性",
4543
4543
  "image-size": 50
@@ -4557,8 +4557,8 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
4557
4557
  current: {},
4558
4558
  context: {}
4559
4559
  },
4560
- setup(u) {
4561
- const e = u, t = S(() => e.item ? "编辑定义属性" : "新增定义属性"), l = k(
4560
+ setup(i) {
4561
+ const e = i, t = S(() => e.item ? "编辑定义属性" : "新增定义属性"), l = k(
4562
4562
  Object.assign(
4563
4563
  {
4564
4564
  default: {
@@ -4575,7 +4575,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
4575
4575
  const r = o.default;
4576
4576
  return r && !ie(r, e.context, !0) ? !1 : (e.current.setProp(o), !0);
4577
4577
  };
4578
- return (o, r) => (p(), y(n(De), {
4578
+ return (o, r) => (p(), y(n(Ee), {
4579
4579
  title: t.value,
4580
4580
  width: "800px",
4581
4581
  height: "500px",
@@ -4592,7 +4592,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
4592
4592
  disabled: !!e.item,
4593
4593
  rules: {
4594
4594
  message: "名称格式错误",
4595
- pattern: n(xe)
4595
+ pattern: n(De)
4596
4596
  }
4597
4597
  }, null, 8, ["disabled", "rules"]),
4598
4598
  v(n(P), {
@@ -4616,7 +4616,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
4616
4616
  default: h(() => [
4617
4617
  v(n(se), {
4618
4618
  modelValue: l.value.default.value,
4619
- "onUpdate:modelValue": r[0] || (r[0] = (i) => l.value.default.value = i),
4619
+ "onUpdate:modelValue": r[0] || (r[0] = (u) => l.value.default.value = u),
4620
4620
  height: "200px",
4621
4621
  dark: ""
4622
4622
  }, null, 8, ["modelValue"])
@@ -4635,17 +4635,15 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
4635
4635
  current: {},
4636
4636
  context: {}
4637
4637
  },
4638
- setup(u) {
4639
- const e = u, t = S(() => e.item ? "编辑定义事件" : "新增定义事件"), l = k(e.item), a = (o, r, i) => {
4640
- Array.isArray(r) ? r.every((d) => xe.test(d)) ? i() : i(new Error("参数名称格式错误")) : i(new Error("参数名称必须是数组形式"));
4641
- }, s = async (o) => (e.item && e.current.removeEmit(e.item.name, !0), e.current.setEmit(o), !0);
4642
- return (o, r) => (p(), y(n(De), {
4638
+ setup(i) {
4639
+ const e = i, t = S(() => e.item ? "编辑定义事件" : "新增定义事件"), l = k(e.item), a = async (s) => (e.item && e.current.removeEmit(e.item.name, !0), e.current.setEmit(s), !0);
4640
+ return (s, o) => (p(), y(n(Ee), {
4643
4641
  title: t.value,
4644
4642
  width: "600px",
4645
4643
  height: "200px",
4646
4644
  model: l.value,
4647
4645
  "form-props": { tooltipMessage: !1 },
4648
- "submit-method": s
4646
+ "submit-method": a
4649
4647
  }, {
4650
4648
  default: h(() => [
4651
4649
  v(n(P), {
@@ -4655,7 +4653,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
4655
4653
  disabled: !!e.item,
4656
4654
  rules: {
4657
4655
  message: "名称格式错误",
4658
- pattern: n(xe)
4656
+ pattern: n(De)
4659
4657
  }
4660
4658
  }, null, 8, ["disabled", "rules"]),
4661
4659
  v(n(P), {
@@ -4675,9 +4673,8 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
4675
4673
  filterable: !0,
4676
4674
  allowCreate: !0,
4677
4675
  defaultFirstOption: !0
4678
- },
4679
- rules: { validator: a }
4680
- }, null, 8, ["rules"])
4676
+ }
4677
+ })
4681
4678
  ]),
4682
4679
  _: 1
4683
4680
  }, 8, ["title", "model"]));
@@ -4690,17 +4687,15 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
4690
4687
  current: {},
4691
4688
  context: {}
4692
4689
  },
4693
- setup(u) {
4694
- const e = u, t = S(() => e.item ? "编辑定义插槽" : "新增定义插槽"), l = k(e.item), a = (o, r, i) => {
4695
- Array.isArray(r) ? r.every((d) => xe.test(d)) ? i() : i(new Error("参数名称格式错误")) : i(new Error("参数名称必须是数组形式"));
4696
- }, s = async (o) => (e.item && e.current.removeSlot(e.item.name, !0), e.current.setSlot(o), !0);
4697
- return (o, r) => (p(), y(n(De), {
4690
+ setup(i) {
4691
+ const e = i, t = S(() => e.item ? "编辑定义插槽" : "新增定义插槽"), l = k(e.item), a = async (s) => (e.item && e.current.removeSlot(e.item.name, !0), e.current.setSlot(s), !0);
4692
+ return (s, o) => (p(), y(n(Ee), {
4698
4693
  title: t.value,
4699
4694
  width: "600px",
4700
4695
  height: "200px",
4701
4696
  model: l.value,
4702
4697
  "form-props": { tooltipMessage: !1 },
4703
- "submit-method": s
4698
+ "submit-method": a
4704
4699
  }, {
4705
4700
  default: h(() => [
4706
4701
  v(n(P), {
@@ -4710,7 +4705,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
4710
4705
  required: "",
4711
4706
  rules: {
4712
4707
  message: "名称格式错误",
4713
- pattern: n(xe)
4708
+ pattern: n(De)
4714
4709
  }
4715
4710
  }, null, 8, ["disabled", "rules"]),
4716
4711
  v(n(P), {
@@ -4729,9 +4724,8 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
4729
4724
  filterable: !0,
4730
4725
  allowCreate: !0,
4731
4726
  defaultFirstOption: !0
4732
- },
4733
- rules: { validator: a }
4734
- }, null, 8, ["rules"])
4727
+ }
4728
+ })
4735
4729
  ]),
4736
4730
  _: 1
4737
4731
  }, 8, ["title", "model"]));
@@ -4744,8 +4738,8 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
4744
4738
  current: {},
4745
4739
  context: {}
4746
4740
  },
4747
- setup(u) {
4748
- const e = u, t = S(() => e.item ? "编辑注入" : "新增注入"), l = k(
4741
+ setup(i) {
4742
+ const e = i, t = S(() => e.item ? "编辑注入" : "新增注入"), l = k(
4749
4743
  Object.assign(
4750
4744
  {
4751
4745
  default: {
@@ -4759,7 +4753,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
4759
4753
  const o = s.default;
4760
4754
  return o && !ie(o, e.context, !0) ? !1 : (e.current.setInject(s), !0);
4761
4755
  };
4762
- return (s, o) => (p(), y(n(De), {
4756
+ return (s, o) => (p(), y(n(Ee), {
4763
4757
  title: t.value,
4764
4758
  width: "800px",
4765
4759
  height: "500px",
@@ -4776,7 +4770,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
4776
4770
  disabled: !!e.item,
4777
4771
  rules: {
4778
4772
  message: "名称格式错误",
4779
- pattern: n(xe)
4773
+ pattern: n(De)
4780
4774
  }
4781
4775
  }, null, 8, ["disabled", "rules"]),
4782
4776
  v(n(P), {
@@ -4806,14 +4800,14 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
4806
4800
  }), Pr = /* @__PURE__ */ E({
4807
4801
  name: "DefinedWidget",
4808
4802
  __name: "index",
4809
- setup(u) {
4810
- const { current: e, context: t } = ce(), l = S(() => (e.value?.props || []).map((N) => typeof N == "string" ? { name: N } : N)), a = S(() => (e.value?.emits || []).map((N) => typeof N == "string" ? { name: N, params: [] } : N)), s = S(() => (e.value?.slots || []).map((N) => typeof N == "string" ? { name: N, params: [] } : N)), o = S(() => e.value?.inject || []), r = k(!1), i = k(), g = k(!1), d = k(), m = k(!1), f = k(), b = k(!1), c = k(), _ = () => {
4811
- i.value = void 0, r.value = !0;
4803
+ setup(i) {
4804
+ const { current: e, context: t } = ce(), l = S(() => (e.value?.props || []).map((N) => typeof N == "string" ? { name: N } : N)), a = S(() => (e.value?.emits || []).map((N) => typeof N == "string" ? { name: N, params: [] } : Object.assign({ params: [] }, N))), s = S(() => (e.value?.slots || []).map((N) => typeof N == "string" ? { name: N, params: [] } : Object.assign({ params: [] }, N))), o = S(() => e.value?.inject || []), r = k(!1), u = k(), g = k(!1), d = k(), m = k(!1), f = k(), b = k(!1), c = k(), _ = () => {
4805
+ u.value = void 0, r.value = !0;
4812
4806
  }, w = (N) => {
4813
4807
  const { name: B, modelValue: $ } = N;
4814
4808
  B === "edit" && x($), B === "remove" && e.value?.removeProp($);
4815
4809
  }, x = (N) => {
4816
- i.value = N, r.value = !0;
4810
+ u.value = N, r.value = !0;
4817
4811
  }, C = () => {
4818
4812
  d.value = void 0, g.value = !0;
4819
4813
  }, D = (N) => {
@@ -4870,7 +4864,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
4870
4864
  context: n(t),
4871
4865
  modelValue: r.value,
4872
4866
  "onUpdate:modelValue": B[0] || (B[0] = ($) => r.value = $),
4873
- item: i.value
4867
+ item: u.value
4874
4868
  }, null, 8, ["current", "context", "modelValue", "item"])) : j("", !0)
4875
4869
  ]),
4876
4870
  _: 1
@@ -4984,8 +4978,8 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
4984
4978
  current: {},
4985
4979
  item: {}
4986
4980
  },
4987
- setup(u) {
4988
- const e = u, t = [
4981
+ setup(i) {
4982
+ const e = i, t = [
4989
4983
  {
4990
4984
  label: "API",
4991
4985
  value: "api",
@@ -5021,7 +5015,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
5021
5015
  })`
5022
5016
  }
5023
5017
  }, e.item)
5024
- ), r = k(!1), i = k(""), g = k(!1), d = S(() => o.value.type === "api" ? l.value.map((w) => ({
5018
+ ), r = k(!1), u = k(""), g = k(!1), d = S(() => o.value.type === "api" ? l.value.map((w) => ({
5025
5019
  label: w.label || "",
5026
5020
  value: w.id,
5027
5021
  data: w
@@ -5072,20 +5066,20 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
5072
5066
  const O = e.context?.$apis[o.value.ref];
5073
5067
  if (O)
5074
5068
  return await O.apply(O, L);
5075
- Ee.warn(`API【${o.value.ref}】不存在`);
5069
+ je.warn(`API【${o.value.ref}】不存在`);
5076
5070
  }, C = Ge(o.value.test, {
5077
5071
  runApi: x
5078
5072
  }), D = o.value.transform?.value ? Ge(o.value.transform, {}, !0) : (L) => L;
5079
5073
  r.value = !0;
5080
5074
  try {
5081
5075
  const L = await C();
5082
- i.value = JSON.stringify(await D(L), null, 2);
5076
+ u.value = JSON.stringify(await D(L), null, 2);
5083
5077
  } catch (L) {
5084
- Ee.error(L);
5078
+ je.error(L);
5085
5079
  }
5086
5080
  r.value = !1, g.value = !0;
5087
5081
  };
5088
- return (w, x) => (p(), y(n(De), {
5082
+ return (w, x) => (p(), y(n(Ee), {
5089
5083
  width: "1000px",
5090
5084
  height: "700px",
5091
5085
  title: m.value,
@@ -5140,7 +5134,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
5140
5134
  disabled: !!e.item,
5141
5135
  rules: {
5142
5136
  message: "名称格式错误",
5143
- pattern: n(xe)
5137
+ pattern: n(De)
5144
5138
  }
5145
5139
  }, null, 8, ["disabled", "rules"]),
5146
5140
  v(n(P), {
@@ -5190,7 +5184,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
5190
5184
  }, {
5191
5185
  default: h(() => [
5192
5186
  v(n(se), {
5193
- "model-value": i.value,
5187
+ "model-value": u.value,
5194
5188
  border: "",
5195
5189
  dark: "",
5196
5190
  height: "100%",
@@ -5206,7 +5200,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
5206
5200
  }), Tr = /* @__PURE__ */ E({
5207
5201
  name: "DataSourcesWidget",
5208
5202
  __name: "index",
5209
- setup(u) {
5203
+ setup(i) {
5210
5204
  const { current: e, context: t } = ce(), l = k(!1), a = k(), s = S(() => Object.values(e.value?.dataSources || {}).filter(
5211
5205
  (d) => ["meta", "api"].includes(d.type)
5212
5206
  )), o = (d) => ({
@@ -5215,11 +5209,11 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
5215
5209
  cube: "warning"
5216
5210
  })[d], r = () => {
5217
5211
  a.value = void 0, l.value = !0;
5218
- }, i = (d) => {
5212
+ }, u = (d) => {
5219
5213
  a.value = d, l.value = !0;
5220
5214
  }, g = (d) => {
5221
5215
  const { name: m, modelValue: f } = d;
5222
- m === "edit" && i(f), m === "remove" && e.value?.removeDataSource(f.name);
5216
+ m === "edit" && u(f), m === "remove" && e.value?.removeDataSource(f.name);
5223
5217
  };
5224
5218
  return (d, m) => (p(), y(n(q), {
5225
5219
  class: "v-data-sources-widget",
@@ -5244,7 +5238,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
5244
5238
  tag: f.type.toUpperCase(),
5245
5239
  "tag-type": o(f.type),
5246
5240
  onAction: g,
5247
- onClick: (b) => i(f)
5241
+ onClick: (b) => u(f)
5248
5242
  }, null, 8, ["title", "subtitle", "model-value", "tag", "tag-type", "onClick"]))), 256)),
5249
5243
  s.value.length ? j("", !0) : (p(), y(n(re), {
5250
5244
  key: 0,
@@ -5271,8 +5265,8 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
5271
5265
  styleJson: {},
5272
5266
  setStyle: { type: Function }
5273
5267
  },
5274
- setup(u) {
5275
- const e = u, t = k();
5268
+ setup(i) {
5269
+ const e = i, t = k();
5276
5270
  M(
5277
5271
  () => e.styleJson.display,
5278
5272
  (g) => {
@@ -5392,7 +5386,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
5392
5386
  value: "stretch",
5393
5387
  svg: Wa
5394
5388
  }
5395
- ], i = (g, d) => {
5389
+ ], u = (g, d) => {
5396
5390
  t.value = d === "flex", e.setStyle("display", d), t.value || (e.setStyle("flex-direction", void 0), e.setStyle("justify-content", void 0), e.setStyle("align-items", void 0), e.setStyle("flex-wrap", void 0));
5397
5391
  };
5398
5392
  return (g, d) => (p(), y(n(H), {
@@ -5415,7 +5409,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
5415
5409
  options: l,
5416
5410
  variable: !1,
5417
5411
  value: e.styleJson.display,
5418
- onChange: i
5412
+ onChange: u
5419
5413
  }, null, 8, ["value"]),
5420
5414
  t.value ? (p(), A(z, { key: 0 }, [
5421
5415
  v(n(U), {
@@ -5465,24 +5459,24 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
5465
5459
  }), Rr = /* @__PURE__ */ E({
5466
5460
  name: "StyleWidget",
5467
5461
  __name: "JsonMode",
5468
- setup(u) {
5469
- const { selected: e } = Ae(), t = k(), l = S(() => {
5462
+ setup(i) {
5463
+ const { selected: e } = Ve(), t = k(), l = S(() => {
5470
5464
  const r = e.value?.model || null;
5471
5465
  return te(r) ? null : r;
5472
5466
  }), a = S(
5473
5467
  () => JSON.stringify(l.value?.getPropValue("style") || {}, null, 2)
5474
5468
  ), s = (r) => {
5475
5469
  try {
5476
- const i = JSON.parse(r);
5477
- l.value?.setProp("style", i);
5470
+ const u = JSON.parse(r);
5471
+ l.value?.setProp("style", u);
5478
5472
  } catch {
5479
5473
  ae("JSON格式错误");
5480
5474
  }
5481
5475
  }, o = () => {
5482
- const i = (t.value?.getEditor()).getValue();
5483
- s(i), ve("保存成功");
5476
+ const u = (t.value?.getEditor()).getValue();
5477
+ s(u), ve("保存成功");
5484
5478
  };
5485
- return (r, i) => (p(), y(n(H), {
5479
+ return (r, u) => (p(), y(n(H), {
5486
5480
  class: "v-css-widget v-sub-panel",
5487
5481
  title: "JSON",
5488
5482
  size: "small",
@@ -5512,15 +5506,15 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
5512
5506
  auto: { type: Boolean }
5513
5507
  },
5514
5508
  emits: ["close", "update:modelValue", "submit"],
5515
- setup(u, { emit: e }) {
5516
- const t = [0, 10, 20, 40, 60, 100, 140, 220], l = u, a = e, s = S(() => l.auto || l.name.includes("margin")), o = k(), r = k(l.modelValue), i = k("px");
5509
+ setup(i, { emit: e }) {
5510
+ const t = [0, 10, 20, 40, 60, 100, 140, 220], l = i, a = e, s = S(() => l.auto || l.name.includes("margin")), o = k(), r = k(l.modelValue), u = k("px");
5517
5511
  Eo(o, () => {
5518
5512
  a("close");
5519
5513
  });
5520
5514
  const g = (b) => {
5521
5515
  r.value = typeof b == "number" ? `${b}px` : "auto", d(r.value);
5522
5516
  }, d = (b) => {
5523
- i.value = b === "auto" ? void 0 : "px";
5517
+ u.value = b === "auto" ? void 0 : "px";
5524
5518
  }, m = () => {
5525
5519
  r.value ? (a("update:modelValue", r.value), a("submit", l.name, r.value), a("close")) : ae("请输入有效值", "提示");
5526
5520
  }, f = () => {
@@ -5542,9 +5536,9 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
5542
5536
  modelValue: r.value,
5543
5537
  "onUpdate:modelValue": c[0] || (c[0] = (_) => r.value = _),
5544
5538
  size: "small",
5545
- "with-unit": !!i.value,
5546
- unit: i.value,
5547
- format: i.value ? "0" : void 0,
5539
+ "with-unit": !!u.value,
5540
+ unit: u.value,
5541
+ format: u.value ? "0" : void 0,
5548
5542
  onChange: d
5549
5543
  }, null, 8, ["modelValue", "with-unit", "unit", "format"])
5550
5544
  ]),
@@ -5630,11 +5624,11 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
5630
5624
  styleJson: {},
5631
5625
  setStyle: { type: Function }
5632
5626
  },
5633
- setup(u) {
5634
- const e = u, t = k(), l = k(), { width: a, height: s } = Ke(t), { width: o, height: r } = Ke(l), i = k(!1), g = k(), d = k(), m = () => {
5635
- i.value = !1, g.value = void 0, d.value = void 0;
5627
+ setup(i) {
5628
+ const e = i, t = k(), l = k(), { width: a, height: s } = Ke(t), { width: o, height: r } = Ke(l), u = k(!1), g = k(), d = k(), m = () => {
5629
+ u.value = !1, g.value = void 0, d.value = void 0;
5636
5630
  }, f = (b) => {
5637
- g.value = b, d.value = e.styleJson[b], i.value = !0;
5631
+ g.value = b, d.value = e.styleJson[b], u.value = !0;
5638
5632
  };
5639
5633
  return (b, c) => (p(), y(n(H), {
5640
5634
  title: "间距",
@@ -5969,7 +5963,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
5969
5963
  }, " margin ", -1)
5970
5964
  ])))
5971
5965
  ]),
5972
- i.value ? (p(), y(qn, {
5966
+ u.value ? (p(), y(qn, {
5973
5967
  key: 0,
5974
5968
  name: g.value,
5975
5969
  modelValue: d.value,
@@ -5988,8 +5982,8 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
5988
5982
  styleJson: {},
5989
5983
  setStyle: { type: Function }
5990
5984
  },
5991
- setup(u) {
5992
- const e = u, a = [
5985
+ setup(i) {
5986
+ const e = i, a = [
5993
5987
  {
5994
5988
  name: "width",
5995
5989
  label: "宽(W)",
@@ -6081,8 +6075,8 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
6081
6075
  styleJson: {},
6082
6076
  setStyle: { type: Function }
6083
6077
  },
6084
- setup(u) {
6085
- const e = u, t = k(), { width: l, height: a } = Ke(t), s = k(!1), o = k(), r = k(), i = [
6078
+ setup(i) {
6079
+ const e = i, t = k(), { width: l, height: a } = Ke(t), s = k(!1), o = k(), r = k(), u = [
6086
6080
  { label: "静态", value: "static" },
6087
6081
  { label: "相对", value: "relative" },
6088
6082
  { label: "绝对", value: "absolute" },
@@ -6121,7 +6115,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
6121
6115
  name: "position",
6122
6116
  label: "定位",
6123
6117
  setters: { name: "SelectSetter" },
6124
- options: i,
6118
+ options: u,
6125
6119
  variable: !1,
6126
6120
  value: e.styleJson.position,
6127
6121
  onChange: e.setStyle
@@ -6323,8 +6317,8 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
6323
6317
  styleJson: {},
6324
6318
  setStyle: { type: Function }
6325
6319
  },
6326
- setup(u) {
6327
- const e = u, t = [
6320
+ setup(i) {
6321
+ const e = i, t = [
6328
6322
  {
6329
6323
  name: "font-size",
6330
6324
  label: "字号",
@@ -6401,13 +6395,13 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
6401
6395
  inline: ""
6402
6396
  }, {
6403
6397
  default: h(() => [
6404
- (p(), A(z, null, J(t, (i) => v(n(U), {
6405
- name: i.name,
6406
- label: i.label,
6407
- setters: { name: i.setter },
6408
- options: i.options,
6398
+ (p(), A(z, null, J(t, (u) => v(n(U), {
6399
+ name: u.name,
6400
+ label: u.label,
6401
+ setters: { name: u.setter },
6402
+ options: u.options,
6409
6403
  variable: !1,
6410
- value: e.styleJson[i.name],
6404
+ value: e.styleJson[u.name],
6411
6405
  onChange: o.setStyle
6412
6406
  }, null, 8, ["name", "label", "setters", "options", "value", "onChange"])), 64))
6413
6407
  ]),
@@ -6466,12 +6460,12 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
6466
6460
  styleJson: {},
6467
6461
  setStyle: { type: Function }
6468
6462
  },
6469
- setup(u) {
6470
- const e = u, t = (i, g) => {
6463
+ setup(i) {
6464
+ const e = i, t = (u, g) => {
6471
6465
  g ? e.setStyle("background-image", `url(${g})`) : e.setStyle("background-image", void 0);
6472
- }, l = (i) => {
6466
+ }, l = (u) => {
6473
6467
  const g = /^url\(([\w\W]+)\)$/;
6474
- return i?.match(g)?.[1];
6468
+ return u?.match(g)?.[1];
6475
6469
  }, a = [
6476
6470
  { label: "重复", value: "repeat", svg: os },
6477
6471
  { label: "水平重复", value: "repeat-x", svg: rs },
@@ -6491,7 +6485,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
6491
6485
  { label: "覆盖", value: "cover" },
6492
6486
  { label: "填充", value: "contain" }
6493
6487
  ];
6494
- return (i, g) => (p(), y(n(H), {
6488
+ return (u, g) => (p(), y(n(H), {
6495
6489
  title: "背景",
6496
6490
  class: "v-sub-panel",
6497
6491
  size: "small",
@@ -6577,8 +6571,8 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
6577
6571
  styleJson: {},
6578
6572
  setStyle: { type: Function }
6579
6573
  },
6580
- setup(u) {
6581
- const e = u, t = () => {
6574
+ setup(i) {
6575
+ const e = i, t = () => {
6582
6576
  const r = Object.keys(e.styleJson || {});
6583
6577
  return r.find((f) => f.startsWith("border-left")) ? "border-left" : r.find((f) => f.startsWith("border-top")) ? "border-top" : r.find((f) => f.startsWith("border-bottom")) ? "border-bottom" : r.find((f) => f.startsWith("border-right")) ? "border-right" : "border";
6584
6578
  }, l = k("border"), a = [
@@ -6592,8 +6586,8 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
6592
6586
  { label: "实线", value: "solid", svg: gs },
6593
6587
  { label: "虚线", value: "dashed", svg: fs },
6594
6588
  { label: "点线", value: "dotted", svg: hs }
6595
- ], o = (r, i) => {
6596
- l.value = i;
6589
+ ], o = (r, u) => {
6590
+ l.value = u;
6597
6591
  };
6598
6592
  return M(
6599
6593
  () => e.styleJson,
@@ -6603,7 +6597,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
6603
6597
  {
6604
6598
  immediate: !0
6605
6599
  }
6606
- ), (r, i) => (p(), y(n(H), {
6600
+ ), (r, u) => (p(), y(n(H), {
6607
6601
  title: "边框",
6608
6602
  class: "v-sub-panel",
6609
6603
  size: "small",
@@ -6676,8 +6670,8 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
6676
6670
  styleJson: {},
6677
6671
  setStyle: { type: Function }
6678
6672
  },
6679
- setup(u) {
6680
- const e = u, t = [
6673
+ setup(i) {
6674
+ const e = i, t = [
6681
6675
  {
6682
6676
  label: "自动",
6683
6677
  value: "auto",
@@ -6775,15 +6769,15 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
6775
6769
  props: {
6776
6770
  isStyleCodeMode: { type: Boolean }
6777
6771
  },
6778
- setup(u) {
6779
- const e = u, { selected: t } = Ae(), l = S(() => {
6772
+ setup(i) {
6773
+ const e = i, { selected: t } = Ve(), l = S(() => {
6780
6774
  const o = t.value?.model || null;
6781
6775
  return te(o) ? null : o;
6782
6776
  }), a = S(
6783
6777
  () => l.value?.getPropValue("style") || {}
6784
6778
  ), s = (o, r) => {
6785
- const i = l.value?.getPropValue("style") || {};
6786
- r !== void 0 ? i[o] = r : delete i[o], l.value?.setProp("style", i);
6779
+ const u = l.value?.getPropValue("style") || {};
6780
+ r !== void 0 ? u[o] = r : delete u[o], l.value?.setProp("style", u);
6787
6781
  };
6788
6782
  return (o, r) => e.isStyleCodeMode ? (p(), y(Rr, { key: 0 })) : (p(), y(n(q), {
6789
6783
  key: `widget-style-${l.value?.id}`,
@@ -6842,8 +6836,8 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
6842
6836
  props: {
6843
6837
  path: { type: Function }
6844
6838
  },
6845
- setup(u, { expose: e }) {
6846
- const t = u, l = k(), a = k(Symbol()), { current: s, engine: o } = ce(), { width: r, height: i } = Ke(l), g = S(() => s.value && t.path ? t.path(s.value) : null), d = S(() => o.skeleton?.getWidget("Toolbar")?.widgetRef.mode ?? "pc");
6839
+ setup(i, { expose: e }) {
6840
+ const t = i, l = k(), a = k(Symbol()), { current: s, engine: o } = ce(), { width: r, height: u } = Ke(l), g = S(() => s.value && t.path ? t.path(s.value) : null), d = S(() => o.skeleton?.getWidget("Toolbar")?.widgetRef.mode ?? "pc");
6847
6841
  return e({
6848
6842
  refresh: () => {
6849
6843
  a.value = Symbol();
@@ -6857,7 +6851,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
6857
6851
  v(n(Un), {
6858
6852
  mode: d.value,
6859
6853
  width: n(r),
6860
- height: n(i)
6854
+ height: n(u)
6861
6855
  }, {
6862
6856
  default: h(() => [
6863
6857
  g.value ? (p(), A("iframe", {
@@ -6875,8 +6869,8 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
6875
6869
  name: "NodePathWidget",
6876
6870
  inheritAttrs: !1,
6877
6871
  __name: "index",
6878
- setup(u) {
6879
- const { selected: e, designer: t } = Ae(), l = S(() => (e.value?.path || []).slice(0).reverse()), a = (o) => {
6872
+ setup(i) {
6873
+ const { selected: e, designer: t } = Ve(), l = S(() => (e.value?.path || []).slice(0).reverse()), a = (o) => {
6880
6874
  t.value?.setSelected(o);
6881
6875
  }, s = (o) => {
6882
6876
  t.value?.setHover(o);
@@ -6887,12 +6881,12 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
6887
6881
  "separator-icon": n(ks)
6888
6882
  }, {
6889
6883
  default: h(() => [
6890
- (p(!0), A(z, null, J(l.value, (i) => (p(), y(n(cl), {
6891
- onClick: (g) => a(i),
6892
- onMouseover: (g) => s(i)
6884
+ (p(!0), A(z, null, J(l.value, (u) => (p(), y(n(cl), {
6885
+ onClick: (g) => a(u),
6886
+ onMouseover: (g) => s(u)
6893
6887
  }, {
6894
6888
  default: h(() => [
6895
- X(W(i.name), 1)
6889
+ X(W(u.name), 1)
6896
6890
  ]),
6897
6891
  _: 2
6898
6892
  }, 1032, ["onClick", "onMouseover"]))), 256))
@@ -6903,7 +6897,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
6903
6897
  }), Ri = /* @__PURE__ */ E({
6904
6898
  name: "SchemaWidget",
6905
6899
  __name: "index",
6906
- setup(u) {
6900
+ setup(i) {
6907
6901
  const { current: e } = ce(), t = k(), l = S(
6908
6902
  () => JSON.stringify(e.value?.toDsl() || {}, null, 2)
6909
6903
  ), a = S(() => e.value ? e.value.name : ""), s = async () => {
@@ -6943,14 +6937,14 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
6943
6937
  }), $i = /* @__PURE__ */ E({
6944
6938
  name: "SchemaWidget",
6945
6939
  __name: "index",
6946
- setup(u) {
6940
+ setup(i) {
6947
6941
  const { current: e, engine: t } = ce(), l = k(), a = k(""), s = S(() => e.value ? `$vtj/vue/${e.value.id}.vue` : ""), o = S(() => e.value ? e.value.name : "");
6948
6942
  return M(
6949
6943
  e,
6950
6944
  async (r) => {
6951
- const i = t.project.value;
6952
- i && r ? a.value = await t.service.genVueContent(
6953
- i.toDsl(),
6945
+ const u = t.project.value;
6946
+ u && r ? a.value = await t.service.genVueContent(
6947
+ u.toDsl(),
6954
6948
  r.toDsl()
6955
6949
  ) : a.value = "";
6956
6950
  },
@@ -6958,7 +6952,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
6958
6952
  immediate: !0,
6959
6953
  deep: !0
6960
6954
  }
6961
- ), (r, i) => (p(), y(n(H), {
6955
+ ), (r, u) => (p(), y(n(H), {
6962
6956
  class: "v-raw-widget",
6963
6957
  title: o.value,
6964
6958
  subtitle: s.value,
@@ -6985,8 +6979,8 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
6985
6979
  props: {
6986
6980
  url: { default: "//vtj.pro/help/index.html" }
6987
6981
  },
6988
- setup(u, { expose: e }) {
6989
- const t = u, l = k();
6982
+ setup(i, { expose: e }) {
6983
+ const t = i, l = k();
6990
6984
  let a = null;
6991
6985
  const s = k(Symbol()), o = () => {
6992
6986
  s.value = Symbol();
@@ -6999,7 +6993,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
6999
6993
  const r = () => {
7000
6994
  a?.close();
7001
6995
  };
7002
- return e({ refresh: o }), (i, g) => (p(), y(n(H), {
6996
+ return e({ refresh: o }), (u, g) => (p(), y(n(H), {
7003
6997
  class: "v-docs-widget",
7004
6998
  size: "small",
7005
6999
  fit: "",
@@ -7022,7 +7016,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
7022
7016
  }), Hn = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUAAAAEACAYAAADCyK/GAAAAAXNSR0IArs4c6QAAIABJREFUeF7tfWmgXFWZ7Vq7bgKCYCvdiGmgAbEVxREEobsDoZFBBYJQdSohARQIIi0CIhigNWmRgKiAAyBDEAO5deo6MDWgoAR4NpOtgiL6WhRlVhsHJknu2eu9UzdIxnur6oy7zj5/s/f61re+fVfqDPvbhL+8Aq4qUNdkGPwbpf1BvB3AwwAeEngdgOsR8ieupuZ556MA8wnjo3gFUlbgvdqUk3ERpL3GQf4NyeusxXV47rHv4Jopz6bMwsM5roA3QMcLWEn6db2UBrcCemuP+X+78+vQ4kaM8Kc9zvXDB1ABb4ADWNRBT8k0o9Mlzk2Y5y8oXWeN+TYmYQkW8ZmEeH66gwp4A3SwaJWm3NQWlH6VsgZR/MxQ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BQB4A3RpGTT1L5Q+DOCAstKmdLpt104pKz/PyyuwogLeAF1cD3W9BbTTCLMroGkgNihLGhLfiTZvKgsfz8MrMJ4C3gBdXx8z9XKMYjcDO03krgDeUGBKD+kJboUlHC2Qgw/tFehaAW+AXUvlyMCmtofFbhz7ZRgbYm6fzxBaZMPawY4o5Wl6BfwzwIFeA3W9DCba26A2TbEhAq/JMl+B70fIS7OM4bG9Amkq4H8Bpqlm2bECvQ2wexNmWufZIWDSpCxyS7T4YJqYHssrkKUC3gCzVLfM2PtqA6wb7W3IvQTGZrhFErqkFthW7eQkGH6uVyBvBbwB5q14WeONvVnem4wPMNfU3mjyh7KYihE+3ds8P9orUKwC3gCL1b+c0WdrfTyPvQzt3gL3BjBl7UR5k4j3o8WHypmMZ+UVGGf1enG8AhMqMENvQhT/OuReADYDsCnImyVcDYtLMMKlE2L4AV6BEirw/wBT9ySzG22TjAAAAABJRU5ErkJggg==", Fi = { class: "v-about-widget" }, Li = { class: "v-about-widget__logo" }, Wi = ["src"], Ni = { class: "v-about-widget__version" }, Ji = /* @__PURE__ */ E({
7023
7017
  name: "AboutWidget",
7024
7018
  __name: "index",
7025
- setup(u) {
7019
+ setup(i) {
7026
7020
  return (e, t) => (p(), A("div", Fi, [
7027
7021
  V("div", Li, [
7028
7022
  V("img", { src: n(Hn) }, null, 8, Wi)
@@ -7034,7 +7028,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
7034
7028
  }), Mi = /* @__PURE__ */ E({
7035
7029
  name: "ProjectConfigWidget",
7036
7030
  __name: "index",
7037
- setup(u) {
7031
+ setup(i) {
7038
7032
  const { project: e } = ze(), t = (l) => {
7039
7033
  e.value?.setConfig(l);
7040
7034
  };
@@ -7968,13 +7962,13 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
7968
7962
  ], Qi = /* @__PURE__ */ E({
7969
7963
  name: "StringSetter",
7970
7964
  __name: "string",
7971
- setup(u) {
7965
+ setup(i) {
7972
7966
  return (e, t) => (p(), y(n(ye), ue({ clearable: "" }, e.$attrs), null, 16));
7973
7967
  }
7974
7968
  }), Yi = /* @__PURE__ */ E({
7975
7969
  name: "BooleanSetter",
7976
7970
  __name: "boolean",
7977
- setup(u) {
7971
+ setup(i) {
7978
7972
  return (e, t) => (p(), y(n(yn), ue(e.$attrs, {
7979
7973
  "model-value": !!e.$attrs.modelValue
7980
7974
  }), null, 16, ["model-value"]));
@@ -7987,28 +7981,28 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
7987
7981
  context: {}
7988
7982
  },
7989
7983
  emits: ["change"],
7990
- setup(u, { emit: e }) {
7991
- const t = (i = "") => ({
7984
+ setup(i, { emit: e }) {
7985
+ const t = (u = "") => ({
7992
7986
  type: "JSExpression",
7993
- value: Xe(i) ? i.value : i
7994
- }), l = u, a = e, s = (i) => ie(i, l.context, !0), o = k(t(l.modelValue).value);
7987
+ value: Xe(u) ? u.value : u
7988
+ }), l = i, a = e, s = (u) => ie(u, l.context, !0), o = k(t(l.modelValue).value);
7995
7989
  M(
7996
7990
  () => l.modelValue,
7997
- (i) => {
7998
- o.value = t(i).value;
7991
+ (u) => {
7992
+ o.value = t(u).value;
7999
7993
  },
8000
7994
  {
8001
7995
  immediate: !0
8002
7996
  }
8003
7997
  );
8004
- const r = (i) => {
7998
+ const r = (u) => {
8005
7999
  const g = {
8006
8000
  type: "JSExpression",
8007
- value: i
8001
+ value: u
8008
8002
  };
8009
8003
  s(g) && a("change", g);
8010
8004
  };
8011
- return (i, g) => (p(), y(n(ye), {
8005
+ return (u, g) => (p(), y(n(ye), {
8012
8006
  class: "v-expression-setter",
8013
8007
  modelValue: o.value,
8014
8008
  "onUpdate:modelValue": g[0] || (g[0] = (d) => o.value = d),
@@ -8029,8 +8023,8 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
8029
8023
  props: {
8030
8024
  options: { default: () => [] }
8031
8025
  },
8032
- setup(u) {
8033
- const e = u;
8026
+ setup(i) {
8027
+ const e = i;
8034
8028
  return (t, l) => (p(), y(n(pl), ue({ clearable: "" }, t.$attrs), {
8035
8029
  default: h(() => [
8036
8030
  (p(!0), A(z, null, J(e.options, (a) => (p(), y(n(ml), ue({
@@ -8048,8 +8042,8 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
8048
8042
  modelValue: {}
8049
8043
  },
8050
8044
  emits: ["change"],
8051
- setup(u, { emit: e }) {
8052
- const t = u, l = e, a = S(() => Xe(t.modelValue) ? void 0 : Number(t.modelValue || 0)), s = (o) => {
8045
+ setup(i, { emit: e }) {
8046
+ const t = i, l = e, a = S(() => Xe(t.modelValue) ? void 0 : Number(t.modelValue || 0)), s = (o) => {
8053
8047
  l("change", o);
8054
8048
  };
8055
8049
  return (o, r) => (p(), y(n(vl), ue({
@@ -8061,7 +8055,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
8061
8055
  }), au = /* @__PURE__ */ E({
8062
8056
  name: "ColorSetter",
8063
8057
  __name: "color",
8064
- setup(u) {
8058
+ setup(i) {
8065
8059
  return (e, t) => (p(), y(n(gl), cn(dn(e.$attrs)), null, 16));
8066
8060
  }
8067
8061
  }), su = /* @__PURE__ */ E({
@@ -8072,10 +8066,10 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
8072
8066
  type: { default: "JSON" }
8073
8067
  },
8074
8068
  emits: ["change"],
8075
- setup(u, { emit: e }) {
8076
- const t = u, l = k(), a = k(
8069
+ setup(i, { emit: e }) {
8070
+ const t = i, l = k(), a = k(
8077
8071
  typeof t.modelValue == "object" ? JSON.stringify(t.modelValue, null, 2) : void 0
8078
- ), s = S(() => !!a.value), o = k(!1), r = e, i = (f) => {
8072
+ ), s = S(() => !!a.value), o = k(!1), r = e, u = (f) => {
8079
8073
  let b = !0;
8080
8074
  try {
8081
8075
  const c = JSON.parse(f);
@@ -8096,7 +8090,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
8096
8090
  const f = l.value?.getEditor();
8097
8091
  if (f) {
8098
8092
  const b = f.getValue();
8099
- i(b) && (a.value = b, r("change", JSON.parse(b)), o.value = !1);
8093
+ u(b) && (a.value = b, r("change", JSON.parse(b)), o.value = !1);
8100
8094
  }
8101
8095
  }, d = () => {
8102
8096
  a.value = "", r("change", void 0), o.value = !1;
@@ -8161,8 +8155,8 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
8161
8155
  }) }
8162
8156
  },
8163
8157
  emits: ["change"],
8164
- setup(u, { emit: e }) {
8165
- const t = u, l = k(), a = k(t.modelValue.value), s = k(!1), o = S(() => !!a.value), r = e, i = () => {
8158
+ setup(i, { emit: e }) {
8159
+ const t = i, l = k(), a = k(t.modelValue.value), s = k(!1), o = S(() => !!a.value), r = e, u = () => {
8166
8160
  const m = l.value?.getEditor();
8167
8161
  if (m) {
8168
8162
  const f = m.getValue(), b = {
@@ -8195,7 +8189,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
8195
8189
  cancel: "",
8196
8190
  submit: "",
8197
8191
  clear: "",
8198
- onSubmit: i,
8192
+ onSubmit: u,
8199
8193
  onClear: g
8200
8194
  }, {
8201
8195
  extra: h(() => [
@@ -8229,8 +8223,8 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
8229
8223
  props: {
8230
8224
  options: { default: () => [] }
8231
8225
  },
8232
- setup(u) {
8233
- const e = u;
8226
+ setup(i) {
8227
+ const e = i;
8234
8228
  return (t, l) => (p(), y(n(gn), ue({
8235
8229
  class: "v-radio-setter",
8236
8230
  size: "small"
@@ -8242,7 +8236,7 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
8242
8236
  title: a.label
8243
8237
  }, {
8244
8238
  default: h(() => [
8245
- a.svg ? (p(), y(n(Ve), {
8239
+ a.svg ? (p(), y(n(Ce), {
8246
8240
  key: 0,
8247
8241
  src: a.svg
8248
8242
  }, null, 8, ["src"])) : (p(), A(z, { key: 1 }, [
@@ -8263,8 +8257,8 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
8263
8257
  modelValue: {}
8264
8258
  },
8265
8259
  emits: ["update:modelValue", "change"],
8266
- setup(u, { emit: e }) {
8267
- const t = u, l = e, a = (s) => {
8260
+ setup(i, { emit: e }) {
8261
+ const t = i, l = e, a = (s) => {
8268
8262
  s.value === t.modelValue ? (l("update:modelValue", void 0), l("change", void 0)) : (l("update:modelValue", s.value), l("change", s.value));
8269
8263
  };
8270
8264
  return (s, o) => (p(), A("div", ue({
@@ -8277,9 +8271,9 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
8277
8271
  class: G({
8278
8272
  "is-active": t.modelValue === r.value
8279
8273
  }),
8280
- onClick: (i) => a(r)
8274
+ onClick: (u) => a(r)
8281
8275
  }, [
8282
- r.svg ? (p(), y(n(Ve), {
8276
+ r.svg ? (p(), y(n(Ce), {
8283
8277
  key: 0,
8284
8278
  src: r.svg,
8285
8279
  size: 16
@@ -8296,26 +8290,26 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
8296
8290
  modelValue: {}
8297
8291
  },
8298
8292
  emits: ["change"],
8299
- setup(u, { emit: e }) {
8300
- const t = u, l = e, a = k(!0), s = S(() => a.value ? "px" : void 0), o = k(t.modelValue), r = (i) => {
8301
- a.value = !!Number(i);
8293
+ setup(i, { emit: e }) {
8294
+ const t = i, l = e, a = k(!0), s = S(() => a.value ? "px" : void 0), o = k(t.modelValue), r = (u) => {
8295
+ a.value = !!Number(u);
8302
8296
  };
8303
- return M(o, (i) => {
8304
- l("change", i);
8297
+ return M(o, (u) => {
8298
+ l("change", u);
8305
8299
  }), M(
8306
8300
  () => t.modelValue,
8307
- (i) => {
8308
- i && (a.value = i.endsWith("px"), o.value = i);
8301
+ (u) => {
8302
+ u && (a.value = u.endsWith("px"), o.value = u);
8309
8303
  },
8310
8304
  { immediate: !0 }
8311
- ), (i, g) => (p(), y(n(kn), ue({
8305
+ ), (u, g) => (p(), y(n(kn), ue({
8312
8306
  clearable: "",
8313
8307
  unit: s.value,
8314
8308
  "with-unit": !!s.value,
8315
8309
  modelValue: o.value,
8316
8310
  "onUpdate:modelValue": g[0] || (g[0] = (d) => o.value = d),
8317
8311
  onChange: r
8318
- }, i.$attrs), null, 16, ["unit", "with-unit", "modelValue"]));
8312
+ }, u.$attrs), null, 16, ["unit", "with-unit", "modelValue"]));
8319
8313
  }
8320
8314
  }), cu = { class: "v-image-setter__plus" }, du = /* @__PURE__ */ E({
8321
8315
  name: "ImageSetter",
@@ -8325,24 +8319,24 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
8325
8319
  limit: { default: 1 }
8326
8320
  },
8327
8321
  emits: ["change", "update:modelValue"],
8328
- setup(u, { emit: e }) {
8329
- const t = u, l = e, a = k([]), s = S(() => a.value.length < t.limit), o = (i) => i.type.includes("image") ? (Al(i).then((g) => {
8330
- a.value = [{ name: i.name, url: g }];
8322
+ setup(i, { emit: e }) {
8323
+ const t = i, l = e, a = k([]), s = S(() => a.value.length < t.limit), o = (u) => u.type.includes("image") ? (Al(u).then((g) => {
8324
+ a.value = [{ name: u.name, url: g }];
8331
8325
  }), !1) : (Ye.error("只能上传图片"), !1), r = () => {
8332
8326
  a.value = [];
8333
8327
  };
8334
8328
  return M(
8335
8329
  () => t.modelValue,
8336
- (i) => {
8337
- a.value = i ? [{ name: "", url: i }] : [];
8330
+ (u) => {
8331
+ a.value = u ? [{ name: "", url: u }] : [];
8338
8332
  },
8339
8333
  {
8340
8334
  immediate: !0
8341
8335
  }
8342
8336
  ), M(a, () => {
8343
- const i = a.value[0]?.url;
8344
- l("change", i), l("update:modelValue", i);
8345
- }), (i, g) => (p(), y(n(fl), ue({
8337
+ const u = a.value[0]?.url;
8338
+ l("change", u), l("update:modelValue", u);
8339
+ }), (u, g) => (p(), y(n(fl), ue({
8346
8340
  class: ["v-image-setter", { "v-image-setter--addable": s.value }],
8347
8341
  "list-type": "picture-card",
8348
8342
  limit: 1,
@@ -8352,10 +8346,10 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
8352
8346
  "before-upload": o,
8353
8347
  "auto-upload": !0,
8354
8348
  "on-remove": r
8355
- }, i.$attrs), {
8349
+ }, u.$attrs), {
8356
8350
  default: h(() => [
8357
8351
  V("span", cu, [
8358
- v(n(Ve), { icon: n(Is) }, null, 8, ["icon"])
8352
+ v(n(Ce), { icon: n(Is) }, null, 8, ["icon"])
8359
8353
  ])
8360
8354
  ]),
8361
8355
  _: 1
@@ -8369,8 +8363,8 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
8369
8363
  sections: { default: 4 }
8370
8364
  },
8371
8365
  emits: ["change"],
8372
- setup(u, { emit: e }) {
8373
- const t = u, l = e, a = k(new Array(t.sections).fill(""));
8366
+ setup(i, { emit: e }) {
8367
+ const t = i, l = e, a = k(new Array(t.sections).fill(""));
8374
8368
  M(
8375
8369
  () => t.modelValue,
8376
8370
  (o) => {
@@ -8382,10 +8376,10 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
8382
8376
  l("change", a.value.join(" ").trim());
8383
8377
  };
8384
8378
  return (o, r) => (p(), A("div", pu, [
8385
- (p(!0), A(z, null, J(t.sections, (i) => (p(), y(Gn, {
8386
- name: i - 1,
8387
- modelValue: a.value[i - 1],
8388
- "onUpdate:modelValue": (g) => a.value[i - 1] = g,
8379
+ (p(!0), A(z, null, J(t.sections, (u) => (p(), y(Gn, {
8380
+ name: u - 1,
8381
+ modelValue: a.value[u - 1],
8382
+ "onUpdate:modelValue": (g) => a.value[u - 1] = g,
8389
8383
  onChange: s,
8390
8384
  class: "v-section-setter__item"
8391
8385
  }, null, 8, ["name", "modelValue", "onUpdate:modelValue"]))), 256))
@@ -8398,8 +8392,8 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
8398
8392
  modelValue: { default: void 0 }
8399
8393
  },
8400
8394
  emits: ["change", "update:modelValue"],
8401
- setup(u, { emit: e }) {
8402
- const t = u, l = e, a = k();
8395
+ setup(i, { emit: e }) {
8396
+ const t = i, l = e, a = k();
8403
8397
  M(
8404
8398
  () => t.modelValue,
8405
8399
  (o) => {
@@ -8415,9 +8409,9 @@ const Io = { class: "v-icon-setter" }, To = { class: "v-icon-setter__content" },
8415
8409
  return (o, r) => (p(), A("div", vu, [
8416
8410
  v(n(hl), ue({ size: "small" }, o.$attrs, {
8417
8411
  modelValue: a.value,
8418
- "onUpdate:modelValue": r[0] || (r[0] = (i) => a.value = i)
8412
+ "onUpdate:modelValue": r[0] || (r[0] = (u) => a.value = u)
8419
8413
  }), null, 16, ["modelValue"]),
8420
- v(n(Ve), {
8414
+ v(n(Ce), {
8421
8415
  onClick: s,
8422
8416
  class: "v-slider-setter__close",
8423
8417
  size: 16,
@@ -8614,7 +8608,7 @@ class bu {
8614
8608
  set(e, t) {
8615
8609
  const l = this.widgets[e];
8616
8610
  if (!l) {
8617
- Ee.warn(`widget '${e}' is not found`);
8611
+ je.warn(`widget '${e}' is not found`);
8618
8612
  return;
8619
8613
  }
8620
8614
  Ft(l, t), t.component && (l.component = t.component);
@@ -8726,7 +8720,7 @@ class wu {
8726
8720
  set(e, t) {
8727
8721
  const l = this.setters[e];
8728
8722
  if (!l) {
8729
- Ee.warn(`setter '${e}' is not found`);
8723
+ je.warn(`setter '${e}' is not found`);
8730
8724
  return;
8731
8725
  }
8732
8726
  Ft(l, t), t.component && (l.component = t.component);
@@ -8755,8 +8749,8 @@ class ku {
8755
8749
  async loadScripts(e, t) {
8756
8750
  const l = this.engine?.project.value, { __BASE_PATH__: a = "/" } = l || {}, s = "", o = Date.now(), r = `${s}${a}${Js}?t=${o}`;
8757
8751
  this.enabled === void 0 && (this.enabled = await this.checkDevtools(r)), this.enabled && this.createScript(e, r, () => {
8758
- const i = `${s}${a}${Ms}?t=${o}`;
8759
- this.isInited ? this.createScript(e, i, t) : t();
8752
+ const u = `${s}${a}${Ms}?t=${o}`;
8753
+ this.isInited ? this.createScript(e, u, t) : t();
8760
8754
  });
8761
8755
  }
8762
8756
  async load(e) {
@@ -8808,10 +8802,10 @@ class ku {
8808
8802
  return e;
8809
8803
  }
8810
8804
  }
8811
- function Su(u) {
8805
+ function Su(i) {
8812
8806
  return new Promise((e, t) => {
8813
8807
  const l = mn(qo, {
8814
- slots: u,
8808
+ slots: i,
8815
8809
  onClose: () => {
8816
8810
  l.unmount(), t(null);
8817
8811
  },
@@ -8902,9 +8896,9 @@ class xu {
8902
8896
  }
8903
8897
  async getDropSlot(e) {
8904
8898
  if (!e) return;
8905
- const { engine: t, dropping: l } = this, a = l.value ? this.getVueInstance(l.value, e.id) : null, s = a?.$vtjDynamicSlots ? a.$vtjDynamicSlots() : [], o = t.assets, r = o.componentMap, i = await o.getBlockMaterial(e.from) || r.get(e.name);
8906
- if (!i?.slots && s.length === 0) return;
8907
- const d = (i?.slots || ["default"]).concat(s).map((f) => typeof f == "string" ? {
8899
+ const { engine: t, dropping: l } = this, a = l.value ? this.getVueInstance(l.value, e.id) : null, s = a?.$vtjDynamicSlots ? a.$vtjDynamicSlots() : [], o = t.assets, r = o.componentMap, u = await o.getBlockMaterial(e.from) || r.get(e.name);
8900
+ if (!u?.slots && s.length === 0) return;
8901
+ const d = (u?.slots || ["default"]).concat(s).map((f) => typeof f == "string" ? {
8908
8902
  name: f,
8909
8903
  params: []
8910
8904
  } : {
@@ -8931,8 +8925,8 @@ class xu {
8931
8925
  e.preventDefault();
8932
8926
  const { engine: t, dragging: l, dropping: a, draggingNode: s } = this, o = t.current.value, r = this.getHelper(e);
8933
8927
  if (!o || !l || !a.value || !r) return;
8934
- const i = r.model, g = a.value.type;
8935
- if (!await this.allowDrop(i, g)) return;
8928
+ const u = r.model, g = a.value.type;
8929
+ if (!await this.allowDrop(u, g)) return;
8936
8930
  let d;
8937
8931
  if (s)
8938
8932
  d = s;
@@ -8940,15 +8934,15 @@ class xu {
8940
8934
  const m = this.createNodeDsl(l);
8941
8935
  d = new Gt(m);
8942
8936
  }
8943
- if (te(i))
8937
+ if (te(u))
8944
8938
  s ? (delete d.slot, o.move(d, void 0, "inner")) : o.addNode(d, void 0, g);
8945
8939
  else {
8946
- const m = await this.getDropSlot(g === "inner" ? i : i.parent);
8940
+ const m = await this.getDropSlot(g === "inner" ? u : u.parent);
8947
8941
  if (m === null) {
8948
8942
  this.dropping.value = null;
8949
8943
  return;
8950
8944
  }
8951
- d.slot = m, s ? o.move(d, i, g) : o.addNode(d, i, g);
8945
+ d.slot = m, s ? o.move(d, u, g) : o.addNode(d, u, g);
8952
8946
  }
8953
8947
  this.dropping.value = null, t.simulator.refresh(), t.assets.clearCaches();
8954
8948
  }
@@ -9059,7 +9053,7 @@ class xu {
9059
9053
  this.draggingNode = e;
9060
9054
  }
9061
9055
  async setHover(e) {
9062
- if (await Ce(), e) {
9056
+ if (await xe(), e) {
9063
9057
  const t = this.getElmenetByModel(e);
9064
9058
  if (!t) return;
9065
9059
  const l = t.getBoundingClientRect(), a = te(e) ? [] : this.findPathByNode(e);
@@ -9074,7 +9068,7 @@ class xu {
9074
9068
  this.hover.value = null;
9075
9069
  }
9076
9070
  async setSelected(e) {
9077
- if (await Ce(), e) {
9071
+ if (await xe(), e) {
9078
9072
  const t = this.getElmenetByModel(e) || this.document?.createElement("span");
9079
9073
  if (!t) return;
9080
9074
  const l = t.getBoundingClientRect(), a = te(e) ? [] : this.findPathByNode(e);
@@ -9089,7 +9083,7 @@ class xu {
9089
9083
  this.selected.value = null;
9090
9084
  }
9091
9085
  async setDropping(e, t = "inner") {
9092
- if (await Ce(), e) {
9086
+ if (await xe(), e) {
9093
9087
  const l = this.getElmenetByModel(e);
9094
9088
  if (!l) return;
9095
9089
  const a = l.getBoundingClientRect(), s = te(e) ? [] : this.findPathByNode(e);
@@ -9109,9 +9103,9 @@ class xu {
9109
9103
  if (te(e)) return !0;
9110
9104
  if (s && e.id === s.id || s && s.isChild(e))
9111
9105
  return !1;
9112
- const r = a.assets.componentMap, i = t !== "inner" && e.parent || e, g = await a.assets.getBlockMaterial(i.from) || r.get(i.name);
9106
+ const r = a.assets.componentMap, u = t !== "inner" && e.parent || e, g = await a.assets.getBlockMaterial(u.from) || r.get(u.name);
9113
9107
  if (!g) return !1;
9114
- const { parentIncludes: d = !0, name: m } = l, { childIncludes: f = !0 } = g, b = d === !0 || Array.isArray(d) && d.includes(i.name), c = f === !0 || Array.isArray(f) && f.includes(m);
9108
+ const { parentIncludes: d = !0, name: m } = l, { childIncludes: f = !0 } = g, b = d === !0 || Array.isArray(d) && d.includes(u.name), c = f === !0 || Array.isArray(f) && f.includes(m);
9115
9109
  return b && c;
9116
9110
  }
9117
9111
  dispose() {
@@ -9140,21 +9134,21 @@ class Cu {
9140
9134
  }
9141
9135
  e.use(this.provider);
9142
9136
  const o = Object.entries(t);
9143
- Object.assign(e.config.globalProperties, l), o.forEach(([r, i]) => {
9144
- if (!i) {
9137
+ Object.assign(e.config.globalProperties, l), o.forEach(([r, u]) => {
9138
+ if (!u) {
9145
9139
  console.warn(`plugin: ${r} is undefined`);
9146
9140
  return;
9147
9141
  }
9148
- if (typeof i == "function" || typeof i.install == "function") {
9142
+ if (typeof u == "function" || typeof u.install == "function") {
9149
9143
  let g = {};
9150
9144
  const d = s[r];
9151
- d && (g.locale = d), e?.use(i, g);
9145
+ d && (g.locale = d), e?.use(u, g);
9152
9146
  }
9153
9147
  });
9154
9148
  }
9155
9149
  render(e) {
9156
- const { window: t, container: l, library: a, Vue: s, components: o, apis: r } = this.env, i = t.document.createElement("div");
9157
- i.id = "app", l.appendChild(i), this.dsl = s.reactive(e.toDsl());
9150
+ const { window: t, container: l, library: a, Vue: s, components: o, apis: r } = this.env, u = t.document.createElement("div");
9151
+ u.id = "app", l.appendChild(u), this.dsl = s.reactive(e.toDsl());
9158
9152
  const { renderer: g, context: d } = this.provider.createDslRenderer(this.dsl, {
9159
9153
  window: t,
9160
9154
  mode: An.Design,
@@ -9169,7 +9163,7 @@ class Cu {
9169
9163
  });
9170
9164
  this.app = s.createApp(m), this.install(this.app);
9171
9165
  try {
9172
- this.app.mount(i);
9166
+ this.app.mount(u);
9173
9167
  } catch (f) {
9174
9168
  ae(f.message || "未知错误", "运行时错误"), console.error(f);
9175
9169
  }
@@ -9234,7 +9228,7 @@ class Vu extends Vn {
9234
9228
  setup(t, l) {
9235
9229
  const a = t.contentWindow;
9236
9230
  if (!a) {
9237
- Ee.warn("Simulator contentWindow is null");
9231
+ je.warn("Simulator contentWindow is null");
9238
9232
  return;
9239
9233
  }
9240
9234
  a.__simulator__ = this;
@@ -9243,7 +9237,7 @@ class Vu extends Vn {
9243
9237
  const {
9244
9238
  scripts: o,
9245
9239
  css: r,
9246
- materials: i,
9240
+ materials: u,
9247
9241
  libraryExports: g,
9248
9242
  materialExports: d,
9249
9243
  materialMapLibrary: m,
@@ -9271,7 +9265,7 @@ class Vu extends Vn {
9271
9265
  <body>
9272
9266
  </body>
9273
9267
  ${Kt(o)}
9274
- ${Kt(i)}
9268
+ ${Kt(u)}
9275
9269
  <script>
9276
9270
  __simulator__.emitReady(${JSON.stringify(g)},
9277
9271
  ${JSON.stringify(d)},
@@ -9284,7 +9278,7 @@ class Vu extends Vn {
9284
9278
  }
9285
9279
  async emitReady(t = [], l = [], a = {}, s = {}) {
9286
9280
  this.renderer?.dispose(), this.renderer = null;
9287
- const o = this.contentWindow, { assets: r, service: i, current: g, provider: d } = this.engine, m = d.materials || {}, f = [];
9281
+ const o = this.contentWindow, { assets: r, service: u, current: g, provider: d } = this.engine, m = d.materials || {}, f = [];
9288
9282
  for (const c of l) {
9289
9283
  const _ = m[c] ? (await m[c]()).default : o[c];
9290
9284
  f.push(_);
@@ -9296,10 +9290,10 @@ class Vu extends Vn {
9296
9290
  f,
9297
9291
  s
9298
9292
  );
9299
- this.devtools.init(o, this.engine), this.renderer = new Cu(b, i, d, this.designer.value), g.value && (this.renderer.render(g.value), this.rendered.value = Symbol()), this.triggerReady();
9293
+ this.devtools.init(o, this.engine), this.renderer = new Cu(b, u, d, this.designer.value), g.value && (this.renderer.render(g.value), this.rendered.value = Symbol()), this.triggerReady();
9300
9294
  }
9301
9295
  createEnv(t = [], l = {}, a = [], s = {}) {
9302
- const o = this.contentWindow, { engine: r } = this, { project: i, assets: g, provider: d } = r, m = t.reduce((D, L) => (D[L] = o[L], D), {}), f = {};
9296
+ const o = this.contentWindow, { engine: r } = this, { project: u, assets: g, provider: d } = r, m = t.reduce((D, L) => (D[L] = o[L], D), {}), f = {};
9303
9297
  Object.entries(s).forEach(([D, L]) => {
9304
9298
  f[D] = o[L];
9305
9299
  });
@@ -9320,11 +9314,11 @@ class Vu extends Vn {
9320
9314
  }
9321
9315
  }
9322
9316
  const { adapter: w, globals: x } = d, C = Kl(
9323
- i.value?.apis,
9324
- i.value?.meta,
9317
+ u.value?.apis,
9318
+ u.value?.meta,
9325
9319
  w
9326
9320
  );
9327
- return Ql(), i.value?.config?.mock && Yl(i.value?.apis), {
9321
+ return Ql(), u.value?.config?.mock && Yl(u.value?.apis), {
9328
9322
  window: o,
9329
9323
  Vue: o.Vue,
9330
9324
  VueRouter: o.VueRouter,
@@ -9369,7 +9363,7 @@ class Au {
9369
9363
  parseGroups(e) {
9370
9364
  const t = [];
9371
9365
  for (let l of e) {
9372
- const { categories: a, components: s, label: o, name: r, library: i } = l;
9366
+ const { categories: a, components: s, label: o, name: r, library: u } = l;
9373
9367
  if (!a || !s)
9374
9368
  continue;
9375
9369
  const g = s.filter((b) => !!b.package).map((b) => b.name), d = a.map(
@@ -9379,7 +9373,7 @@ class Au {
9379
9373
  label: o || r,
9380
9374
  count: m,
9381
9375
  names: g,
9382
- library: i,
9376
+ library: u,
9383
9377
  children: d
9384
9378
  };
9385
9379
  t.push(f);
@@ -9402,7 +9396,7 @@ class Au {
9402
9396
  }
9403
9397
  if (!l) return null;
9404
9398
  l.name = t || l.name;
9405
- const { id: a, name: s, slots: o, props: r, emits: i } = l, g = (m) => {
9399
+ const { id: a, name: s, slots: o, props: r, emits: u } = l, g = (m) => {
9406
9400
  const f = Array.isArray(m) ? m : [m];
9407
9401
  let b = [];
9408
9402
  for (const c of f)
@@ -9422,7 +9416,7 @@ class Au {
9422
9416
  type: m.type,
9423
9417
  setters: g(m.type)
9424
9418
  }),
9425
- events: i,
9419
+ events: u,
9426
9420
  slots: o,
9427
9421
  from: e
9428
9422
  };
@@ -9460,7 +9454,7 @@ class pc extends Vn {
9460
9454
  project: s = {},
9461
9455
  globals: o = {},
9462
9456
  dependencies: r,
9463
- materials: i,
9457
+ materials: u,
9464
9458
  materialPath: g = "./",
9465
9459
  adapter: d,
9466
9460
  install: m
@@ -9471,7 +9465,7 @@ class pc extends Vn {
9471
9465
  project: s,
9472
9466
  service: a,
9473
9467
  dependencies: r,
9474
- materials: i,
9468
+ materials: u,
9475
9469
  materialPath: g,
9476
9470
  adapter: d,
9477
9471
  install: m
@@ -9481,7 +9475,7 @@ class pc extends Vn {
9481
9475
  }), this.bindEvents(), this.init(s), st(this.render.bind(this)), pn(this.dispose.bind(this));
9482
9476
  }
9483
9477
  async init(t) {
9484
- const l = await this.service.init(t).catch((a) => (Ee.warn("VTJEngine service init fail.", a), null));
9478
+ const l = await this.service.init(t).catch((a) => (je.warn("VTJEngine service init fail.", a), null));
9485
9479
  l && (l.dependencies = _u.merge(l.dependencies || []), this.project.value = new Rl(l), this.saveMaterials(), this.triggerReady());
9486
9480
  }
9487
9481
  render() {
@@ -9490,13 +9484,13 @@ class pc extends Vn {
9490
9484
  const l = mn(ju);
9491
9485
  this.options.install && l.use(this.options.install, this), l.provide(Kn, ol(this)), l.mount(t), this.app = l;
9492
9486
  } else
9493
- Ee.warn("VTJEngine constructor param [ container ] is undefined");
9487
+ je.warn("VTJEngine constructor param [ container ] is undefined");
9494
9488
  }
9495
9489
  bindEvents() {
9496
9490
  le.on($l, (t) => this.saveProject(t)), le.on(Ol, (t) => this.saveBlockFile(t)), le.on(zl, (t) => this.saveBlockFile(t)), le.on(Fl, () => this.saveMaterials()), le.on(xt, (t) => this.activeFile(t)), le.on(Ll, () => this.publish()), le.on(Wl, () => this.publishCurrent()), le.on(Ct, (t) => this.changeFile(t)), le.on(He, () => this.changeCurrentFile()), le.on(Nl, (t) => this.saveHistory(t)), le.on(Jl, (t) => this.loadHistory(t));
9497
9491
  }
9498
9492
  async activeFile(t) {
9499
- await Ce();
9493
+ await xe();
9500
9494
  const l = t.model, a = t.model.currentFile;
9501
9495
  if (a) {
9502
9496
  if (l.isPageFile(a) && a.raw)
@@ -9512,7 +9506,7 @@ class pc extends Vn {
9512
9506
  Pe(this.project);
9513
9507
  }
9514
9508
  async changeFile(t) {
9515
- await Ce();
9509
+ await xe();
9516
9510
  const l = t.toDsl();
9517
9511
  this.service.saveFile(l), this.updateCurrent(t), this.history.value?.add(l), Pe(this.history);
9518
9512
  }
@@ -9520,7 +9514,7 @@ class pc extends Vn {
9520
9514
  this.saveCurrentFile(), this.current.value && (this.history.value?.add(this.current.value.toDsl()), Pe(this.history));
9521
9515
  }
9522
9516
  async updateCurrent(t, l = !0) {
9523
- this.current.value = t, await Ce(), this.context.value = this.simulator.renderer?.context || null, this.isEmptyCurrent.value = this.current.value?.nodes.length === 0, this.changed.value = Symbol(), l && Pe(this.context);
9517
+ this.current.value = t, await xe(), this.context.value = this.simulator.renderer?.context || null, this.isEmptyCurrent.value = this.current.value?.nodes.length === 0, this.changed.value = Symbol(), l && Pe(this.context);
9524
9518
  }
9525
9519
  async saveProject(t) {
9526
9520
  const a = t.model.toDsl();
@@ -9550,7 +9544,7 @@ class pc extends Vn {
9550
9544
  Pe(this.project);
9551
9545
  }
9552
9546
  async saveMaterials() {
9553
- await Ce(), this.simulator.ready(() => {
9547
+ await xe(), this.simulator.ready(() => {
9554
9548
  const t = this.project.value;
9555
9549
  if (t) {
9556
9550
  const l = this.assets.componentMap;
@@ -9624,8 +9618,8 @@ class pc extends Vn {
9624
9618
  }
9625
9619
  }
9626
9620
  function pe() {
9627
- const u = jt(Kn, null);
9628
- return u || Ee.error("VTJEngine is not exist"), u;
9621
+ const i = jt(Kn, null);
9622
+ return i || je.error("VTJEngine is not exist"), i;
9629
9623
  }
9630
9624
  const Ie = E({
9631
9625
  name: "RegionWrapper",
@@ -9641,8 +9635,8 @@ const Ie = E({
9641
9635
  };
9642
9636
  },
9643
9637
  render() {
9644
- const { $props: u = {}, $attrs: e = {} } = this, t = sn[this.region] || sn.EmptyRegion;
9645
- return Fe(t, { ...u, ...e, ref: "regionRef" });
9638
+ const { $props: i = {}, $attrs: e = {} } = this, t = sn[this.region] || sn.EmptyRegion;
9639
+ return Fe(t, { ...i, ...e, ref: "regionRef" });
9646
9640
  }
9647
9641
  }), Re = E({
9648
9642
  name: "WidgetWrapper",
@@ -9662,10 +9656,10 @@ const Ie = E({
9662
9656
  };
9663
9657
  },
9664
9658
  render() {
9665
- const { $props: u = {}, $attrs: e = {} } = this;
9659
+ const { $props: i = {}, $attrs: e = {} } = this;
9666
9660
  return Fe(this.widget.component, {
9667
9661
  ...this.widget.props,
9668
- ...u,
9662
+ ...i,
9669
9663
  ...e,
9670
9664
  ref: "widgetRef"
9671
9665
  });
@@ -9673,9 +9667,9 @@ const Ie = E({
9673
9667
  }), ju = E({
9674
9668
  name: "SkeletonWrapper",
9675
9669
  setup() {
9676
- const u = k(), e = pe(), t = k({});
9670
+ const i = k(), e = pe(), t = k({});
9677
9671
  return {
9678
- skeletonRef: u,
9672
+ skeletonRef: i,
9679
9673
  engine: e,
9680
9674
  widgets: t
9681
9675
  };
@@ -9684,8 +9678,8 @@ const Ie = E({
9684
9678
  this.engine.skeleton = this;
9685
9679
  },
9686
9680
  render() {
9687
- const { $props: u = {}, $attrs: e = {} } = this;
9688
- return Fe(Eu, { ...u, ...e, ref: "skeletonRef" });
9681
+ const { $props: i = {}, $attrs: e = {} } = this;
9682
+ return Fe(Eu, { ...i, ...e, ref: "skeletonRef" });
9689
9683
  },
9690
9684
  methods: {
9691
9685
  /**
@@ -9693,32 +9687,32 @@ const Ie = E({
9693
9687
  * @param region
9694
9688
  * @returns
9695
9689
  */
9696
- getRegion(u) {
9697
- return this.skeletonRef[u.toLowerCase()];
9690
+ getRegion(i) {
9691
+ return this.skeletonRef[i.toLowerCase()];
9698
9692
  },
9699
9693
  /**
9700
9694
  * 切换应用区域折叠或展开
9701
9695
  */
9702
- toggleCollapse(u) {
9696
+ toggleCollapse(i) {
9703
9697
  if (this.skeletonRef) {
9704
9698
  const e = this.skeletonRef.collapsed;
9705
- this.skeletonRef.collapsed = u ?? !e;
9699
+ this.skeletonRef.collapsed = i ?? !e;
9706
9700
  }
9707
9701
  },
9708
9702
  /**
9709
9703
  * 控制设置区域隐藏或显示
9710
9704
  * @param val
9711
9705
  */
9712
- settable(u) {
9713
- this.skeletonRef && (this.skeletonRef.settable = u);
9706
+ settable(i) {
9707
+ this.skeletonRef && (this.skeletonRef.settable = i);
9714
9708
  },
9715
9709
  /**
9716
9710
  * 获取区域内的 widget wrapper 实例数组
9717
9711
  * @param region
9718
9712
  * @returns
9719
9713
  */
9720
- getWidgets(u) {
9721
- const e = this.getRegion(u);
9714
+ getWidgets(i) {
9715
+ const e = this.getRegion(i);
9722
9716
  return e ? Dl(
9723
9717
  e.regionRef?.widgetsRef || []
9724
9718
  ) : [];
@@ -9728,15 +9722,15 @@ const Ie = E({
9728
9722
  * @param name
9729
9723
  * @returns
9730
9724
  */
9731
- getWidget(u) {
9732
- const e = Xn.get(u);
9725
+ getWidget(i) {
9726
+ const e = Xn.get(i);
9733
9727
  if (!e) {
9734
- Ee.warn(`widget [ ${u} ] is not exsit`);
9728
+ je.warn(`widget [ ${i} ] is not exsit`);
9735
9729
  return;
9736
9730
  }
9737
- return this.getWidgets(e.region).find((l) => l.widget.name === u);
9731
+ return this.getWidgets(e.region).find((l) => l.widget.name === i);
9738
9732
  },
9739
- openPreview(u) {
9733
+ openPreview(i) {
9740
9734
  this.skeletonRef && (this.skeletonRef.isPreview = !0);
9741
9735
  },
9742
9736
  closePreview() {
@@ -9812,16 +9806,16 @@ const Ie = E({
9812
9806
  } : e);
9813
9807
  },
9814
9808
  defaultSetter() {
9815
- const { value: u, computedSetters: e } = this;
9816
- let t = typeof u;
9817
- t === "Object" && (Array.isArray(u) ? t = "Array" : Xe(u) ? t = "Object" : ea(u) && (t = "Function"));
9809
+ const { value: i, computedSetters: e } = this;
9810
+ let t = typeof i;
9811
+ t === "Object" && (Array.isArray(i) ? t = "Array" : Xe(i) ? t = "Object" : ea(i) && (t = "Function"));
9818
9812
  const l = Je.getByType(t) || [];
9819
9813
  return l.length ? (e.find((a) => l.includes(a.name)) || e[0])?.name : e[0]?.name;
9820
9814
  }
9821
9815
  },
9822
9816
  render() {
9823
9817
  const {
9824
- context: u,
9818
+ context: i,
9825
9819
  current: e,
9826
9820
  name: t,
9827
9821
  label: l,
@@ -9829,21 +9823,21 @@ const Ie = E({
9829
9823
  value: s,
9830
9824
  computedSetters: o,
9831
9825
  computedOptions: r,
9832
- variable: i,
9826
+ variable: u,
9833
9827
  changeValue: g,
9834
9828
  defaultSetter: d,
9835
9829
  removable: m,
9836
9830
  onRemove: f
9837
9831
  } = this;
9838
9832
  return Fe($u, {
9839
- context: u,
9833
+ context: i,
9840
9834
  current: e,
9841
9835
  name: t,
9842
9836
  label: l,
9843
9837
  title: a,
9844
9838
  setters: o,
9845
9839
  defaultSetter: d,
9846
- variable: i,
9840
+ variable: u,
9847
9841
  value: s,
9848
9842
  removable: m,
9849
9843
  options: r,
@@ -9853,14 +9847,14 @@ const Ie = E({
9853
9847
  },
9854
9848
  emits: ["change", "remove"],
9855
9849
  methods: {
9856
- getSetter(u) {
9857
- return typeof u == "string" ? Je.get(u) || Je.defaultSetter : u;
9850
+ getSetter(i) {
9851
+ return typeof i == "string" ? Je.get(i) || Je.defaultSetter : i;
9858
9852
  },
9859
- changeValue(u) {
9860
- this.$emit("change", this.name, u);
9853
+ changeValue(i) {
9854
+ this.$emit("change", this.name, i);
9861
9855
  },
9862
- onRemove(u) {
9863
- this.$emit("remove", u);
9856
+ onRemove(i) {
9857
+ this.$emit("remove", i);
9864
9858
  }
9865
9859
  }
9866
9860
  }), Eu = /* @__PURE__ */ E({
@@ -9872,8 +9866,8 @@ const Ie = E({
9872
9866
  rightWidth: { default: "350px" },
9873
9867
  footerHeight: { default: "20px" }
9874
9868
  },
9875
- setup(u, { expose: e }) {
9876
- const t = u, l = k(!1), a = k(parseInt(t.leftWidth)), s = k(parseInt(t.rightWidth)), o = {
9869
+ setup(i, { expose: e }) {
9870
+ const t = i, l = k(!1), a = k(parseInt(t.leftWidth)), s = k(parseInt(t.rightWidth)), o = {
9877
9871
  dirs: ["e"],
9878
9872
  maxWidth: 600,
9879
9873
  minWidth: 49,
@@ -9893,9 +9887,9 @@ const Ie = E({
9893
9887
  onEnd(C, D) {
9894
9888
  s.value = D.elementWidth.value;
9895
9889
  }
9896
- }, i = k(), g = k(), d = k(), m = k(), f = k(), b = k(), c = k(), _ = k(), w = k(!1), x = k(!1);
9890
+ }, u = k(), g = k(), d = k(), m = k(), f = k(), b = k(), c = k(), _ = k(), w = k(!1), x = k(!1);
9897
9891
  return e({
9898
- brand: i,
9892
+ brand: u,
9899
9893
  toolbar: g,
9900
9894
  actions: d,
9901
9895
  apps: m,
@@ -9919,7 +9913,7 @@ const Ie = E({
9919
9913
  default: h(() => [
9920
9914
  v(n(Ie), {
9921
9915
  ref_key: "brand",
9922
- ref: i,
9916
+ ref: u,
9923
9917
  region: "Brand"
9924
9918
  }, null, 512),
9925
9919
  v(n(Ie), {
@@ -10035,10 +10029,10 @@ const Ie = E({
10035
10029
  removable: { type: Boolean }
10036
10030
  },
10037
10031
  emits: ["change", "remove"],
10038
- setup(u, { emit: e }) {
10039
- const t = u, l = e, a = k(!1), s = k(""), o = k(
10032
+ setup(i, { emit: e }) {
10033
+ const t = i, l = e, a = k(!1), s = k(""), o = k(
10040
10034
  t.setters.find((x) => x.name === t.defaultSetter) || t.setters[0]
10041
- ), r = k(t.value), i = S(() => !!Xe(r.value)), g = {
10035
+ ), r = k(t.value), u = S(() => !!Xe(r.value)), g = {
10042
10036
  [o.value.name]: r.value
10043
10037
  }, d = (x) => {
10044
10038
  g[o.value.name] = r.value, o.value = x, r.value = g[x.name] ?? void 0, m(r.value);
@@ -10090,7 +10084,7 @@ const Ie = E({
10090
10084
  default: h(() => [
10091
10085
  V("div", Pu, [
10092
10086
  o.value ? (p(), A("div", Iu, [
10093
- i.value ? j("", !0) : (p(), y(un(o.value.component), ue({
10087
+ u.value ? j("", !0) : (p(), y(un(o.value.component), ue({
10094
10088
  key: 0,
10095
10089
  current: t.current,
10096
10090
  context: t.context
@@ -10099,9 +10093,9 @@ const Ie = E({
10099
10093
  modelValue: r.value,
10100
10094
  "onUpdate:modelValue": C[0] || (C[0] = (D) => r.value = D),
10101
10095
  onChange: m,
10102
- disabled: i.value
10096
+ disabled: u.value
10103
10097
  }), null, 16, ["current", "context", "options", "modelValue", "disabled"])),
10104
- i.value ? (p(), y(n(ye), {
10098
+ u.value ? (p(), y(n(ye), {
10105
10099
  key: 1,
10106
10100
  class: "v-expression-setter",
10107
10101
  disabled: "",
@@ -10120,12 +10114,12 @@ const Ie = E({
10120
10114
  t.variable ? (p(), y(n(Bs), {
10121
10115
  key: 0,
10122
10116
  onClick: b,
10123
- class: G(["v-icon-vars", { "is-active": i.value }]),
10117
+ class: G(["v-icon-vars", { "is-active": u.value }]),
10124
10118
  title: "绑定变量"
10125
10119
  }, null, 8, ["class"])) : j("", !0),
10126
10120
  t.setters.length > 1 ? (p(), y(n(fn), {
10127
10121
  key: 1,
10128
- disabled: i.value,
10122
+ disabled: u.value,
10129
10123
  size: "small",
10130
10124
  "popper-class": "v-setter-switch",
10131
10125
  onCommand: d
@@ -10183,7 +10177,7 @@ const Ie = E({
10183
10177
  props: {
10184
10178
  region: {}
10185
10179
  },
10186
- setup(u) {
10180
+ setup(i) {
10187
10181
  return (e, t) => (p(), A("div", Ou, "找不到符合【" + W(e.region) + "】名称的区域组件", 1));
10188
10182
  }
10189
10183
  }), Fu = { class: "v-brand-region" }, Lu = /* @__PURE__ */ E({
@@ -10193,8 +10187,8 @@ const Ie = E({
10193
10187
  props: {
10194
10188
  region: {}
10195
10189
  },
10196
- setup(u, { expose: e }) {
10197
- const t = u, { widgets: l, widgetsRef: a } = Be(t.region);
10190
+ setup(i, { expose: e }) {
10191
+ const t = i, { widgets: l, widgetsRef: a } = Be(t.region);
10198
10192
  return e({
10199
10193
  widgets: l,
10200
10194
  widgetsRef: a
@@ -10215,8 +10209,8 @@ const Ie = E({
10215
10209
  region: {},
10216
10210
  preview: { type: Boolean }
10217
10211
  },
10218
- setup(u, { expose: e }) {
10219
- const t = u, { widgets: l, widgetsRef: a } = Be(t.region);
10212
+ setup(i, { expose: e }) {
10213
+ const t = i, { widgets: l, widgetsRef: a } = Be(t.region);
10220
10214
  return e({
10221
10215
  widgets: l,
10222
10216
  widgetsRef: a
@@ -10238,8 +10232,8 @@ const Ie = E({
10238
10232
  props: {
10239
10233
  region: {}
10240
10234
  },
10241
- setup(u, { expose: e }) {
10242
- const t = u, { widgets: l, widgetsRef: a } = Be(t.region);
10235
+ setup(i, { expose: e }) {
10236
+ const t = i, { widgets: l, widgetsRef: a } = Be(t.region);
10243
10237
  return e({
10244
10238
  widgets: l,
10245
10239
  widgetsRef: a
@@ -10261,8 +10255,8 @@ const Ie = E({
10261
10255
  region: {},
10262
10256
  index: { default: 0 }
10263
10257
  },
10264
- setup(u, { expose: e }) {
10265
- const t = u, l = pe(), { widgets: a, widgetsRef: s } = Be(t.region), o = S(() => a.value.filter((c) => c.openType === "panel")), r = S(() => a.value.filter((c) => c.openType !== "panel")), i = o.value[t.index], g = k(i), d = k(i), m = (c) => {
10258
+ setup(i, { expose: e }) {
10259
+ const t = i, l = pe(), { widgets: a, widgetsRef: s } = Be(t.region), o = S(() => a.value.filter((c) => c.openType === "panel")), r = S(() => a.value.filter((c) => c.openType !== "panel")), u = o.value[t.index], g = k(u), d = k(u), m = (c) => {
10266
10260
  g.value = c, d.value = d.value?.name === c.name ? null : c;
10267
10261
  }, f = (c) => {
10268
10262
  c.openType === "link" && c.url && window.open(c.url), c.openType === "dialog" && Cl({
@@ -10324,8 +10318,8 @@ const Ie = E({
10324
10318
  props: {
10325
10319
  region: {}
10326
10320
  },
10327
- setup(u, { expose: e }) {
10328
- const t = u, { widgets: l, widgetsRef: a } = Be(t.region), s = Qe(
10321
+ setup(i, { expose: e }) {
10322
+ const t = i, { widgets: l, widgetsRef: a } = Be(t.region), s = Qe(
10329
10323
  l.value.map((c) => ({
10330
10324
  name: c.name,
10331
10325
  command: c.name,
@@ -10338,15 +10332,15 @@ const Ie = E({
10338
10332
  ), o = S(() => s?.filter((c) => !c.closable || c.checked)), r = S(() => s.map((c) => ({
10339
10333
  ...c,
10340
10334
  disabled: !c.closable
10341
- }))), i = k(o.value[0]?.name), g = S(() => s.find((_) => _.name === i.value)?.props || {}), d = (c) => {
10335
+ }))), u = k(o.value[0]?.name), g = S(() => s.find((_) => _.name === u.value)?.props || {}), d = (c) => {
10342
10336
  const _ = s.find((w) => w.name === c);
10343
- _ && (_.checked = !1), i.value === c && (i.value = o.value[0]?.name);
10337
+ _ && (_.checked = !1), u.value === c && (u.value = o.value[0]?.name);
10344
10338
  }, m = (c) => {
10345
10339
  const _ = s.find((w) => w.name === c.name);
10346
- _ && _.closable && (_.checked = !_.checked, _.checked && (i.value = _.name), !_.checked && i.value === _.name && (i.value = o.value[0]?.name));
10340
+ _ && _.closable && (_.checked = !_.checked, _.checked && (u.value = _.name), !_.checked && u.value === _.name && (u.value = o.value[0]?.name));
10347
10341
  }, f = (c, _ = {}) => {
10348
10342
  const w = s.find((x) => x.name === c);
10349
- w && (w.props = Object.assign({}, w.props, _), w.checked = !0, i.value = w.name);
10343
+ w && (w.props = Object.assign({}, w.props, _), w.checked = !0, u.value = w.name);
10350
10344
  }, b = (c) => {
10351
10345
  if (a.value) {
10352
10346
  const _ = a.value[0]?.widgetRef;
@@ -10359,7 +10353,7 @@ const Ie = E({
10359
10353
  }
10360
10354
  };
10361
10355
  return e({
10362
- currentTab: i,
10356
+ currentTab: u,
10363
10357
  widgets: l,
10364
10358
  widgetsRef: a,
10365
10359
  openTab: f
@@ -10367,8 +10361,8 @@ const Ie = E({
10367
10361
  class: "v-workspace-region",
10368
10362
  items: o.value,
10369
10363
  menus: r.value,
10370
- modelValue: i.value,
10371
- "onUpdate:modelValue": _[0] || (_[0] = (w) => i.value = w),
10364
+ modelValue: u.value,
10365
+ "onUpdate:modelValue": _[0] || (_[0] = (w) => u.value = w),
10372
10366
  checkable: "",
10373
10367
  onRemove: d,
10374
10368
  onCommand: m,
@@ -10378,7 +10372,7 @@ const Ie = E({
10378
10372
  (p(!0), A(z, null, J(n(l), (w) => (p(), A(z, {
10379
10373
  key: w.name
10380
10374
  }, [
10381
- i.value === w.name ? (p(), y(n(Re), {
10375
+ u.value === w.name ? (p(), y(n(Re), {
10382
10376
  key: 0,
10383
10377
  ref_for: !0,
10384
10378
  ref_key: "widgetsRef",
@@ -10397,10 +10391,10 @@ const Ie = E({
10397
10391
  props: {
10398
10392
  region: {}
10399
10393
  },
10400
- setup(u, { expose: e }) {
10401
- const t = u, l = pe(), { current: a } = ce(), { selected: s, isSelectBlock: o } = Ae(), r = S(
10394
+ setup(i, { expose: e }) {
10395
+ const t = i, l = pe(), { current: a } = ce(), { selected: s, isSelectBlock: o } = Ve(), r = S(
10402
10396
  () => o.value ? we.Block : we.Node
10403
- ), { widgets: i, widgetsRef: g } = Be(t.region, r), d = k(), m = k(!1), f = S(() => i.value.map((w) => ({
10397
+ ), { widgets: u, widgetsRef: g } = Be(t.region, r), d = k(), m = k(!1), f = S(() => u.value.map((w) => ({
10404
10398
  name: w.name,
10405
10399
  label: w.label,
10406
10400
  actions: w.name === "Style" ? [
@@ -10436,7 +10430,7 @@ const Ie = E({
10436
10430
  w.name === "switch" && (m.value = !m.value);
10437
10431
  };
10438
10432
  return e({
10439
- widgets: i,
10433
+ widgets: u,
10440
10434
  widgetsRef: g
10441
10435
  }), (w, x) => n(a) ? (p(), y(n(q), {
10442
10436
  key: 0,
@@ -10492,7 +10486,7 @@ const Ie = E({
10492
10486
  onActionClick: _
10493
10487
  }, {
10494
10488
  default: h(() => [
10495
- (p(!0), A(z, null, J(n(i), (C) => (p(), A(z, {
10489
+ (p(!0), A(z, null, J(n(u), (C) => (p(), A(z, {
10496
10490
  key: C.name
10497
10491
  }, [
10498
10492
  d.value === C.name ? (p(), y(n(Re), {
@@ -10530,8 +10524,8 @@ const Ie = E({
10530
10524
  props: {
10531
10525
  region: {}
10532
10526
  },
10533
- setup(u, { expose: e }) {
10534
- const t = u, { widgets: l, widgetsRef: a } = Be(t.region);
10527
+ setup(i, { expose: e }) {
10528
+ const t = i, { widgets: l, widgetsRef: a } = Be(t.region);
10535
10529
  return e({
10536
10530
  widgets: l,
10537
10531
  widgetsRef: a
@@ -10551,21 +10545,21 @@ const Ie = E({
10551
10545
  props: {
10552
10546
  region: {}
10553
10547
  },
10554
- setup(u, { expose: e }) {
10555
- const t = u, { widgets: l, widgetsRef: a } = Be(t.region), s = Qe(
10556
- l.value.map((i) => ({
10557
- name: i.name,
10558
- command: i.name,
10559
- label: i.label,
10560
- closable: !!i.closable,
10548
+ setup(i, { expose: e }) {
10549
+ const t = i, { widgets: l, widgetsRef: a } = Be(t.region), s = Qe(
10550
+ l.value.map((u) => ({
10551
+ name: u.name,
10552
+ command: u.name,
10553
+ label: u.label,
10554
+ closable: !!u.closable,
10561
10555
  checked: !1
10562
10556
  }))
10563
- ), o = S(() => s.filter((i) => !i.closable || i.checked)), r = k(o.value[0]?.name);
10557
+ ), o = S(() => s.filter((u) => !u.closable || u.checked)), r = k(o.value[0]?.name);
10564
10558
  return e({
10565
10559
  currentTab: r,
10566
10560
  widgets: l,
10567
10561
  widgetsRef: a
10568
- }), (i, g) => (p(), y(n(pt), {
10562
+ }), (u, g) => (p(), y(n(pt), {
10569
10563
  class: "v-workspace-region",
10570
10564
  items: o.value,
10571
10565
  modelValue: r.value,
@@ -10580,7 +10574,7 @@ const Ie = E({
10580
10574
  ref_for: !0,
10581
10575
  ref_key: "widgetsRef",
10582
10576
  ref: a,
10583
- region: i.region,
10577
+ region: u.region,
10584
10578
  widget: d
10585
10579
  }, null, 8, ["region", "widget"])) : j("", !0)
10586
10580
  ], 1024))), 128))
@@ -10615,7 +10609,7 @@ export {
10615
10609
  Ls as KEYBOARD_EVENT_LIST,
10616
10610
  Yt as MOBILE_SIZE,
10617
10611
  Fs as MOUSE_EVENT_LIST,
10618
- xe as NAME_REGEX,
10612
+ De as NAME_REGEX,
10619
10613
  Zt as PAD_SIZE,
10620
10614
  H as Panel,
10621
10615
  Us as RegionType,