@vtj/designer 0.8.141 → 0.8.143

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,23 +1,23 @@
1
1
  var qn = Object.defineProperty;
2
2
  var Hn = (u, e, t) => e in u ? qn(u, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : u[e] = t;
3
3
  var $ = (u, e, t) => Hn(u, typeof e != "symbol" ? e + "" : e, t);
4
- import { computed as S, unref as n, ref as k, reactive as Xe, watchEffect as Gn, watch as J, toValue as vt, defineComponent as E, openBlock as p, createElementBlock as j, toDisplayString as F, createVNode as v, withCtx as h, createElementVNode as V, createBlock as y, createCommentVNode as A, createTextVNode as K, readonly as Xn, getCurrentScope as Kn, onScopeDispose as Qn, onMounted as st, nextTick as ke, getCurrentInstance as nn, shallowRef as Me, toRaw as ln, Fragment as O, renderList as L, normalizeClass as X, resolveDynamicComponent as sn, createSlots as Yn, withDirectives as Pe, vShow as Be, renderSlot as Ce, withModifiers as Ne, isRef as gt, mergeProps as ie, normalizeStyle as et, defineAsyncComponent as Zn, h as Oe, inject as Ct, provide as el, normalizeProps as an, guardReactiveProps as on, withKeys as tt, onUnmounted as rn, markRaw as ft, createApp as un, shallowReactive as tl, triggerRef as je, KeepAlive as cn } from "vue";
5
- import { ElNotification as Vt, ElMessageBox as At, ElMessage as Ke, ElButton as ae, ElDivider as jt, ElRadioGroup as dn, ElRadioButton as nt, ElButtonGroup as nl, ElDropdown as pn, ElDropdownMenu as mn, ElDropdownItem as ht, ElInput as _e, ElEmpty as oe, ElAlert as Et, ElTooltip as vn, ElTag as ll, ElSwitch as gn, ElTree as Pt, ElRow as bt, ElCol as yt, ElCollapse as sl, ElCollapseItem as al, ElDrawer as fn, ElForm as fe, ElFormItem as hn, ElBreadcrumb as ol, ElBreadcrumbItem as rl, ElLoading as il, ElSelect as ul, ElOption as cl, ElInputNumber as dl, ElColorPicker as pl, ElUpload as ml, ElSlider as vl, ElConfigProvider as gl, ElContainer as Lt, ElHeader as fl, ElAside as Nt, ElMain as hl, ElFooter as bl } from "element-plus";
4
+ import { computed as S, unref as n, ref as k, reactive as Ke, watchEffect as Gn, watch as J, toValue as vt, defineComponent as E, openBlock as p, createElementBlock as j, toDisplayString as F, createVNode as v, withCtx as b, createElementVNode as V, createBlock as y, createCommentVNode as A, createTextVNode as K, readonly as Xn, getCurrentScope as Kn, onScopeDispose as Qn, onMounted as st, nextTick as ke, getCurrentInstance as nn, shallowRef as Ue, toRaw as ln, Fragment as O, renderList as L, normalizeClass as X, resolveDynamicComponent as sn, createSlots as Yn, withDirectives as Pe, vShow as Te, renderSlot as Ce, withModifiers as Je, isRef as gt, mergeProps as ie, normalizeStyle as et, defineAsyncComponent as Zn, h as Oe, inject as Ct, provide as el, normalizeProps as an, guardReactiveProps as on, withKeys as tt, onUnmounted as rn, markRaw as ft, createApp as un, shallowReactive as tl, triggerRef as je, KeepAlive as cn } from "vue";
5
+ import { ElNotification as Vt, ElMessageBox as At, ElMessage as Qe, ElButton as ae, ElDivider as jt, ElRadioGroup as dn, ElRadioButton as nt, ElButtonGroup as nl, ElDropdown as pn, ElDropdownMenu as mn, ElDropdownItem as ht, ElInput as _e, ElEmpty as oe, ElAlert as Et, ElTooltip as vn, ElTag as ll, ElSwitch as gn, ElTree as Pt, ElRow as bt, ElCol as yt, ElCollapse as sl, ElCollapseItem as al, ElDrawer as fn, ElForm as fe, ElFormItem as hn, ElBreadcrumb as ol, ElBreadcrumbItem as rl, ElLoading as il, ElSelect as ul, ElOption as cl, ElInputNumber as dl, ElColorPicker as pl, ElUpload as ml, ElSlider as vl, ElConfigProvider as gl, ElContainer as Lt, ElHeader as fl, ElAside as Nt, ElMain as hl, ElFooter as bl } from "element-plus";
6
6
  import yl from "element-plus/es/locale/lang/zh-cn";
7
- import { XIcon as Se, XDialog as Te, XDialogForm as Ae, XField as B, XPanel as at, XAction as be, XTabs as Dt, XContainer as U, XForm as It, XAttachment as _l, XActionBar as wl, XInputUnit as bn, vResizable as Jt, createDialog as kl } from "@vtj/ui";
8
- import { delay as Bt, upperFirstCamelCase as yn, toRawType as dt, cloneDeep as ot, logger as Ve, isPlainObject as Sl, fileToBase64 as xl, merge as Tt, debounce as Cl, arrayToMap as Vl, toArray as Al } from "@vtj/utils";
9
- import { isBlock as te, DirectiveModel as _n, createNodeFrom as jl, BUILT_IN_VUE as El, BUILT_IN_VUE_ROUTER as Pl, BUILT_IN_NAME as _t, emitter as ne, EVENT_PROJECT_ACTIVED as wt, EVENT_NODE_CHANGE as Ue, NodeModel as Mt, EVENT_BLOCK_CHANGE as kt, Base as wn, BUILT_IN_LIBRARAY_MAP as Dl, ProjectModel as Il, EVENT_PROJECT_CHANGE as Bl, EVENT_PROJECT_BLOCKS_CHANGE as Tl, EVENT_PROJECT_PAGES_CHANGE as Rl, EVENT_PROJECT_DEPS_CHANGE as $l, EVENT_PROJECT_PUBLISH as Ol, EVENT_PROJECT_FILE_PUBLISH as zl, EVENT_HISTORY_CHANGE as Fl, EVENT_HISTORY_LOAD as Wl, BlockModel as Ut, HistoryModel as Ll } from "@vtj/core";
10
- import { parseExpression as qe, parseFunction as Nl, JSCodeToString as ze, LIFE_CYCLES_LIST as Jl, DATA_TYPES as Ml, isJSExpression as He, ContextMode as kn, parseDeps as Ul, createAssetsCss as ql, createAssetScripts as qt, getRawComponent as Ht, createSchemaApis as Hl, mockCleanup as Gl, mockApis as Xl, Provider as Kl, isJSFunction as Ql } from "@vtj/renderer";
11
- import { VtjIconBack as Yl, VtjIconPc as Zl, VtjIconPhone as es, VtjIconPad as ts, VtjIconUndo as ns, VtjIconRedo as ls, VtjIconPreview as ss, VtjIconRefresh as as, VtjIconSetting as Sn, icons as St, ArrowDown as xn, Search as Rt, CopyDocument as os, Back as rs, VtjIconPlus as Cn, EditPen as is, Delete as us, VtjIconSave as cs, ArrowUp as ds, MoreFilled as $t, VtjIconCheck as Vn, VtjIconCopy as An, VtjIconEdit as jn, VtjIconRemove as rt, VtjIconLock as En, VtjIconUnlock as ps, VtjIconInvisible as Pn, VtjIconVisible as ms, VtjIconHome as vs, Files as gs, VtjIconSearch as fs, VtjIconHelp as Dn, VtjIconLayers as In, Rank as hs, VtjIconArrowUp as bs, VtjIconArrowDown as ys, IconDisplayBlock as _s, IconDisplayFlex as ws, IconDisplayInlineBlock as ks, IconDisplayInline as Ss, IconEyeInvisible as xs, IconFlexDirectionrow as Cs, IconFlexDirectionrowReverse as Vs, IconFlexDirectioncolumn as As, IconFlexDirectioncolumnReverse as js, IconFlexJustifyflexStartrow as Es, IconFlexJustifyflexEndrow as Ps, IconFlexJustifycenterrow as Ds, IconFlexJustifyspaceBetweenrow as Is, IconFlexJustifyspaceAroundrow as Bs, IconFlexAlignflexStartrow as Ts, IconFlexAlignflexEndrow as Rs, IconFlexAligncenterrow as $s, IconFlexAlignbaselinerow as Os, IconFlexAlignstretchrow as zs, IconPositionTopLeft as Fs, IconPositionTopRight as Ws, IconPositionBottomLeft as Ls, IconPositionBottomRight as Ns, IconPositionLeft as Js, IconPositionRight as Ms, IconPositionTop as Us, IconPositionBottom as qs, IconPositionAll as Hs, IconTextAlignLeft as Gs, IconTextAlignCenter as Xs, IconTextAlignRight as Ks, IconTextAlignJustify as Qs, IconFontStyleNone as Ys, IconFontStyleItalic as Zs, IconCross as Bn, IconTextDecorationUnderline as ea, IconTextDecorationStrike as ta, IconTextDecorationOverline as na, IconTileXy as la, IconTileX as sa, IconTileY as aa, IconClose as oa, IconBorderAll as ra, IconBorderLeft as ia, IconBorderTop as ua, IconBorderBottom as ca, IconBorderRight as da, IconBorderStyleSolid as pa, IconBorderStyleDashed as ma, IconBorderStyleDotted as va, IconCursorAuto as ga, IconCursorPointer as fa, IconCursorNotAllowed as ha, IconCursorNone as ba, ArrowRight as ya, VtjIconDocument as _a, VtjIconComponents as wa, VtjIconBlock as ka, VtjIconOutline as Sa, VtjIconHistory as xa, VtjIconApi as Ca, VtjIconCategory as Va, VtjIconInfo as Aa, HomeFilled as ja, Plus as Ea, Close as Pa, VtjIconVars as Da, VtjIconSwitch as Ia, Switch as Ba } from "@vtj/icons";
12
- import Ta from "mockjs";
7
+ import { XIcon as Se, XDialog as Be, XDialogForm as Ae, XField as T, XPanel as at, XAction as be, XTabs as Dt, XContainer as U, XForm as It, XAttachment as _l, XActionBar as wl, XInputUnit as bn, vResizable as Jt, createDialog as kl } from "@vtj/ui";
8
+ import { delay as Tt, upperFirstCamelCase as yn, toRawType as dt, cloneDeep as ot, logger as Ve, isPlainObject as Sl, fileToBase64 as xl, merge as Bt, debounce as Cl, arrayToMap as Vl, toArray as Al } from "@vtj/utils";
9
+ import { isBlock as te, DirectiveModel as _n, createNodeFrom as jl, BUILT_IN_VUE as El, BUILT_IN_VUE_ROUTER as Pl, BUILT_IN_NAME as _t, emitter as ne, EVENT_PROJECT_ACTIVED as wt, EVENT_NODE_CHANGE as qe, NodeModel as Mt, EVENT_BLOCK_CHANGE as kt, Base as wn, BUILT_IN_LIBRARAY_MAP as Dl, ProjectModel as Il, EVENT_PROJECT_CHANGE as Tl, EVENT_PROJECT_BLOCKS_CHANGE as Bl, EVENT_PROJECT_PAGES_CHANGE as Rl, EVENT_PROJECT_DEPS_CHANGE as $l, EVENT_PROJECT_PUBLISH as Ol, EVENT_PROJECT_FILE_PUBLISH as zl, EVENT_HISTORY_CHANGE as Fl, EVENT_HISTORY_LOAD as Wl, BlockModel as Ut, HistoryModel as Ll } from "@vtj/core";
10
+ import { parseExpression as He, parseFunction as Nl, JSCodeToString as ze, LIFE_CYCLES_LIST as Jl, DATA_TYPES as Ml, isJSExpression as Ge, ContextMode as kn, parseDeps as Ul, createAssetsCss as ql, createAssetScripts as qt, getRawComponent as Ht, createSchemaApis as Hl, mockCleanup as Gl, mockApis as Xl, Provider as Kl, isJSFunction as Ql } from "@vtj/renderer";
11
+ import { VtjIconBack as Yl, VtjIconPc as Zl, VtjIconPhone as es, VtjIconPad as ts, VtjIconUndo as ns, VtjIconRedo as ls, VtjIconPreview as ss, VtjIconRefresh as as, VtjIconSetting as Sn, icons as St, ArrowDown as xn, Search as Rt, CopyDocument as os, Back as rs, VtjIconPlus as Cn, EditPen as is, Delete as us, VtjIconSave as cs, ArrowUp as ds, MoreFilled as $t, VtjIconCheck as Vn, VtjIconCopy as An, VtjIconEdit as jn, VtjIconRemove as rt, VtjIconLock as En, VtjIconUnlock as ps, VtjIconInvisible as Pn, VtjIconVisible as ms, VtjIconHome as vs, Files as gs, VtjIconSearch as fs, VtjIconHelp as Dn, VtjIconLayers as In, Rank as hs, VtjIconArrowUp as bs, VtjIconArrowDown as ys, IconDisplayBlock as _s, IconDisplayFlex as ws, IconDisplayInlineBlock as ks, IconDisplayInline as Ss, IconEyeInvisible as xs, IconFlexDirectionrow as Cs, IconFlexDirectionrowReverse as Vs, IconFlexDirectioncolumn as As, IconFlexDirectioncolumnReverse as js, IconFlexJustifyflexStartrow as Es, IconFlexJustifyflexEndrow as Ps, IconFlexJustifycenterrow as Ds, IconFlexJustifyspaceBetweenrow as Is, IconFlexJustifyspaceAroundrow as Ts, IconFlexAlignflexStartrow as Bs, IconFlexAlignflexEndrow as Rs, IconFlexAligncenterrow as $s, IconFlexAlignbaselinerow as Os, IconFlexAlignstretchrow as zs, IconPositionTopLeft as Fs, IconPositionTopRight as Ws, IconPositionBottomLeft as Ls, IconPositionBottomRight as Ns, IconPositionLeft as Js, IconPositionRight as Ms, IconPositionTop as Us, IconPositionBottom as qs, IconPositionAll as Hs, IconTextAlignLeft as Gs, IconTextAlignCenter as Xs, IconTextAlignRight as Ks, IconTextAlignJustify as Qs, IconFontStyleNone as Ys, IconFontStyleItalic as Zs, IconCross as Tn, IconTextDecorationUnderline as ea, IconTextDecorationStrike as ta, IconTextDecorationOverline as na, IconTileXy as la, IconTileX as sa, IconTileY as aa, IconClose as oa, IconBorderAll as ra, IconBorderLeft as ia, IconBorderTop as ua, IconBorderBottom as ca, IconBorderRight as da, IconBorderStyleSolid as pa, IconBorderStyleDashed as ma, IconBorderStyleDotted as va, IconCursorAuto as ga, IconCursorPointer as fa, IconCursorNotAllowed as ha, IconCursorNone as ba, ArrowRight as ya, VtjIconDocument as _a, VtjIconComponents as wa, VtjIconBlock as ka, VtjIconOutline as Sa, VtjIconHistory as xa, VtjIconApi as Ca, VtjIconCategory as Va, VtjIconInfo as Aa, HomeFilled as ja, Plus as Ea, Close as Pa, VtjIconVars as Da, VtjIconSwitch as Ia, Switch as Ta } from "@vtj/icons";
12
+ import Ba from "mockjs";
13
13
  /**!
14
14
  * Copyright (c) 2024, VTJ.PRO All rights reserved.
15
15
  * @name @vtj/designer
16
16
  * @author CHC chenhuachun1549@dingtalk.com
17
- * @version 0.8.141
17
+ * @version 0.8.143
18
18
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
19
19
  */
20
- const Ra = "0.8.141", Gt = {
20
+ const Ra = "0.8.143", Gt = {
21
21
  width: 390,
22
22
  height: 844
23
23
  }, Xt = {
@@ -48,7 +48,7 @@ const Ra = "0.8.141", Gt = {
48
48
  "passive"
49
49
  ], Kt = "__vue-devtools-frame-state__", Wa = "@id/virtual:vue-devtools-path:overlay.js", La = "@id/virtual:vue-devtools-path:overlay/devtools-overlay.mjs";
50
50
  var he = /* @__PURE__ */ ((u) => (u.Block = "block", u.Node = "node", u))(he || {}), Na = /* @__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))(Na || {});
51
- function Tn() {
51
+ function Bn() {
52
52
  const u = de(), e = S(() => u.project.value?.dependencies ?? []), t = S(() => u.project.value?.apis ?? []), l = S(() => u.project.value?.meta ?? []);
53
53
  return {
54
54
  engine: u,
@@ -83,7 +83,7 @@ function Ja() {
83
83
  }
84
84
  const Ma = (u = []) => u.map((e) => e.name);
85
85
  function Ua() {
86
- const u = de(), { components: e, groups: t, componentMap: l } = u.assets, s = Xe({}), a = S(() => {
86
+ const u = de(), { components: e, groups: t, componentMap: l } = u.assets, s = Ke({}), a = S(() => {
87
87
  const m = {};
88
88
  return t.value && t.value.forEach((f) => {
89
89
  m[f.name] = f;
@@ -95,8 +95,8 @@ function Ua() {
95
95
  })) : []), r = k(o.value[0]?.name), i = k(""), g = S(() => a.value[r.value]);
96
96
  Gn(() => {
97
97
  const m = o.value.reduce(
98
- (f, b) => (f[b.name] = Ma(
99
- a.value[b.name].children
98
+ (f, h) => (f[h.name] = Ma(
99
+ a.value[h.name].children
100
100
  ), f),
101
101
  {}
102
102
  );
@@ -208,16 +208,16 @@ function Xa(u, e) {
208
208
  const t = k(""), { selected: l, isSelectBlock: s } = xe(), a = S(() => l.value?.model.id), o = S(() => {
209
209
  const i = vt(u), g = vt(e), d = [];
210
210
  if (!i) return d;
211
- const m = g?.__contextRefs[a.value || ""], b = g === m || s.value ? [] : Object.keys(m?.context || {}).filter((R) => !["context", "ref"].includes(R)).map((R) => `this.context.${R}`);
212
- b.length && d.push({ title: "上下文", items: b });
211
+ const m = g?.__contextRefs[a.value || ""], h = g === m || s.value ? [] : Object.keys(m?.context || {}).filter((R) => !["context", "ref"].includes(R)).map((R) => `this.context.${R}`);
212
+ h.length && d.push({ title: "上下文", items: h });
213
213
  const c = i.inject.map((R) => `this.${R.name}`);
214
214
  c.length && d.push({ title: "注入", items: c });
215
- const w = i.props.map(
215
+ const _ = i.props.map(
216
216
  (R) => typeof R == "string" ? `this.props.${R}` : `this.props.${R.name}`
217
217
  );
218
- w.length && d.push({ title: "属性", items: w });
219
- const _ = Object.keys(i.state).map((R) => `this.state.${R}`);
220
- _.length && d.push({ title: "状态", items: _ });
218
+ _.length && d.push({ title: "属性", items: _ });
219
+ const w = Object.keys(i.state).map((R) => `this.state.${R}`);
220
+ w.length && d.push({ title: "状态", items: w });
221
221
  const x = Object.keys(i.computed).map(
222
222
  (R) => `this.${R}.value`
223
223
  );
@@ -300,9 +300,9 @@ function Ka(u) {
300
300
  ] : []), a = S(() => {
301
301
  if (!t.value) return [];
302
302
  const m = l.value || e.assets.componentMap.get(t.value.name);
303
- return m ? (m.props || []).map((b) => ({
304
- ...b,
305
- value: t.value?.getPropValue(b.name) ?? b.defaultValue
303
+ return m ? (m.props || []).map((h) => ({
304
+ ...h,
305
+ value: t.value?.getPropValue(h.name) ?? h.defaultValue
306
306
  })) : [];
307
307
  }), o = (m) => s.value.some((f) => f.name === m) || a.value.some((f) => f.name === m) || m === "style", r = S(() => t.value ? Object.keys(t.value.props).filter((m) => !o(m)).map((m) => ({
308
308
  name: m,
@@ -338,7 +338,7 @@ async function Fe(u) {
338
338
  );
339
339
  }
340
340
  function pe(u, e = "success") {
341
- return Ke({
341
+ return Qe({
342
342
  message: u,
343
343
  type: e
344
344
  });
@@ -359,7 +359,7 @@ function re(u, e, t = !1) {
359
359
  let l = !0;
360
360
  const s = Qa(e);
361
361
  try {
362
- u.type === "JSExpression" ? qe(u, s, t, !0) : Nl(u, s, t, !0);
362
+ u.type === "JSExpression" ? He(u, s, t, !0) : Nl(u, s, t, !0);
363
363
  } catch (a) {
364
364
  l = !1, Vt.error({
365
365
  title: "代码错误",
@@ -468,12 +468,12 @@ function no(u) {
468
468
  const e = de(), t = S(() => {
469
469
  const c = u.value?.model || null;
470
470
  return te(c) ? null : c;
471
- }), l = (c) => S(() => t.value && (t.value.directives || []).find((w) => w.name === c) || Qt(c)), s = () => S(() => {
471
+ }), l = (c) => S(() => t.value && (t.value.directives || []).find((_) => _.name === c) || Qt(c)), s = () => S(() => {
472
472
  if (!t.value) return [];
473
473
  const c = e.assets.componentMap.get(t.value.name || "");
474
- return (c ? to(c) : []).map((_) => (t.value?.directives || []).find(
475
- (x) => x.name === "vModel" && x.arg == _.name
476
- ) || eo(_.name));
474
+ return (c ? to(c) : []).map((w) => (t.value?.directives || []).find(
475
+ (x) => x.name === "vModel" && x.arg == w.name
476
+ ) || eo(w.name));
477
477
  }), a = l("vIf"), o = l("vShow"), r = l("vBind"), i = l("vFor"), g = s(), d = {
478
478
  vIf: a,
479
479
  vShow: o,
@@ -488,26 +488,26 @@ function no(u) {
488
488
  vBind: r,
489
489
  vFor: i,
490
490
  vModels: g,
491
- onValueChange: (c, w) => {
492
- const _ = d[c];
493
- t.value && (w ? (_.value.value = w, t.value.setDirective(_.value)) : (_.value.value = void 0, t.value.removeDirective(_.value)));
491
+ onValueChange: (c, _) => {
492
+ const w = d[c];
493
+ t.value && (_ ? (w.value.value = _, t.value.setDirective(w.value)) : (w.value.value = void 0, t.value.removeDirective(w.value)));
494
494
  },
495
- onForChange: (c, w) => {
495
+ onForChange: (c, _) => {
496
496
  if (t.value) {
497
497
  if (c === "value") {
498
- w ? (i.value.value = w, t.value.setDirective(i.value)) : t.value.removeDirective(i.value);
498
+ _ ? (i.value.value = _, t.value.setDirective(i.value)) : t.value.removeDirective(i.value);
499
499
  return;
500
500
  }
501
501
  (c === "item" || c === "index") && (i.value.iterator = {
502
502
  ...i.value.iterator,
503
- [c]: w || void 0
503
+ [c]: _ || void 0
504
504
  }, t.value.setDirective(i.value));
505
505
  }
506
506
  },
507
- onModelChange: (c, w) => {
507
+ onModelChange: (c, _) => {
508
508
  if (!t.value) return;
509
- const _ = parseInt(c), x = g.value[_];
510
- x && (w ? (x.value = w, t.value.setDirective(x)) : (x.value = void 0, t.value.removeDirective(x)));
509
+ const w = parseInt(c), x = g.value[w];
510
+ x && (_ ? (x.value = _, t.value.setDirective(x)) : (x.value = void 0, t.value.removeDirective(x)));
511
511
  }
512
512
  };
513
513
  }
@@ -566,7 +566,7 @@ const so = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
566
566
  round: "",
567
567
  onClick: o
568
568
  }, {
569
- default: h(() => [
569
+ default: b(() => [
570
570
  v(n(Yl), { class: "v-switcher-widget__back" }),
571
571
  V("span", null, F(s.value), 1),
572
572
  a.value ? (p(), y(n(jt), {
@@ -596,12 +596,12 @@ const so = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
596
596
  modelValue: r.value,
597
597
  "onUpdate:modelValue": g[0] || (g[0] = (d) => r.value = d)
598
598
  }, {
599
- default: h(() => [
599
+ default: b(() => [
600
600
  v(n(nt), {
601
601
  label: "pc",
602
602
  value: "pc"
603
603
  }, {
604
- default: h(() => [
604
+ default: b(() => [
605
605
  v(n(Zl))
606
606
  ]),
607
607
  _: 1
@@ -610,7 +610,7 @@ const so = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
610
610
  label: "mobile",
611
611
  value: "mobile"
612
612
  }, {
613
- default: h(() => [
613
+ default: b(() => [
614
614
  v(n(es))
615
615
  ]),
616
616
  _: 1
@@ -619,7 +619,7 @@ const so = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
619
619
  label: "pad",
620
620
  value: "pad"
621
621
  }, {
622
- default: h(() => [
622
+ default: b(() => [
623
623
  v(n(ts))
624
624
  ]),
625
625
  _: 1
@@ -629,14 +629,14 @@ const so = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
629
629
  }, 8, ["modelValue"]),
630
630
  A("", !0),
631
631
  v(n(nl), null, {
632
- default: h(() => [
632
+ default: b(() => [
633
633
  v(n(ae), {
634
634
  type: "default",
635
635
  size: "small",
636
636
  onClick: n(s),
637
637
  disabled: n(o) || !!t.preview
638
638
  }, {
639
- default: h(() => [
639
+ default: b(() => [
640
640
  v(n(ns))
641
641
  ]),
642
642
  _: 1
@@ -647,7 +647,7 @@ const so = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
647
647
  onClick: n(l),
648
648
  disabled: n(a) || !!t.preview
649
649
  }, {
650
- default: h(() => [
650
+ default: b(() => [
651
651
  v(n(ls))
652
652
  ]),
653
653
  _: 1
@@ -668,7 +668,7 @@ const so = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
668
668
  const { engine: e, designer: t } = xe(), l = k(!1), s = () => {
669
669
  e.current.value ? (l.value ? e.skeleton?.getWidget("Previewer")?.widgetRef.refresh() : (t.value?.setSelected(null), e.simulator.refresh()), pe("刷新完成", "success")) : pe("请先打开文件", "warning");
670
670
  }, a = async () => {
671
- e.current.value ? (l.value && (e.skeleton?.closePreview(), l.value = !1, await Bt(1e3)), t.value?.setSelected(e.current.value)) : pe("请先打开文件", "warning");
671
+ e.current.value ? (l.value && (e.skeleton?.closePreview(), l.value = !1, await Tt(1e3)), t.value?.setSelected(e.current.value)) : pe("请先打开文件", "warning");
672
672
  }, o = () => {
673
673
  if (e.project.value)
674
674
  if (e.current.value) {
@@ -695,7 +695,7 @@ const so = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
695
695
  size: "small",
696
696
  title: "预览"
697
697
  }, {
698
- default: h(() => [
698
+ default: b(() => [
699
699
  v(n(ss))
700
700
  ]),
701
701
  _: 1
@@ -706,7 +706,7 @@ const so = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
706
706
  size: "small",
707
707
  title: "刷新"
708
708
  }, {
709
- default: h(() => [
709
+ default: b(() => [
710
710
  v(n(as))
711
711
  ]),
712
712
  _: 1
@@ -717,7 +717,7 @@ const so = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
717
717
  title: "页面设置",
718
718
  onClick: a
719
719
  }, {
720
- default: h(() => [
720
+ default: b(() => [
721
721
  v(n(Sn))
722
722
  ]),
723
723
  _: 1
@@ -730,17 +730,17 @@ const so = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
730
730
  onClick: r,
731
731
  onCommand: i
732
732
  }, {
733
- dropdown: h(() => [
733
+ dropdown: b(() => [
734
734
  v(n(mn), null, {
735
- default: h(() => [
735
+ default: b(() => [
736
736
  v(n(ht), { command: "current" }, {
737
- default: h(() => d[0] || (d[0] = [
737
+ default: b(() => d[0] || (d[0] = [
738
738
  K("发布页面")
739
739
  ])),
740
740
  _: 1
741
741
  }),
742
742
  v(n(ht), { command: "project" }, {
743
- default: h(() => d[1] || (d[1] = [
743
+ default: b(() => d[1] || (d[1] = [
744
744
  K("整站发布")
745
745
  ])),
746
746
  _: 1
@@ -749,7 +749,7 @@ const so = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
749
749
  _: 1
750
750
  })
751
751
  ]),
752
- default: h(() => [
752
+ default: b(() => [
753
753
  d[2] || (d[2] = V("span", null, "发布", -1))
754
754
  ]),
755
755
  _: 1
@@ -760,7 +760,7 @@ const so = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
760
760
  function Ot(u) {
761
761
  return Kn() ? (Qn(u), !0) : !1;
762
762
  }
763
- function Qe(u) {
763
+ function We(u) {
764
764
  return typeof u == "function" ? u() : n(u);
765
765
  }
766
766
  const it = typeof window < "u" && typeof document < "u";
@@ -801,7 +801,7 @@ function Co(u, e, t = {}) {
801
801
  function i(...g) {
802
802
  o(), s.value = !0, a = setTimeout(() => {
803
803
  s.value = !1, a = null, u(...g);
804
- }, Qe(e));
804
+ }, We(e));
805
805
  }
806
806
  return l && (s.value = !0, it && i()), Ot(r), {
807
807
  isPending: Xn(s),
@@ -809,27 +809,27 @@ function Co(u, e, t = {}) {
809
809
  stop: r
810
810
  };
811
811
  }
812
+ const ut = it ? window : void 0, On = it ? window.navigator : void 0;
812
813
  function ye(u) {
813
814
  var e;
814
- const t = Qe(u);
815
+ const t = We(u);
815
816
  return (e = t?.$el) != null ? e : t;
816
817
  }
817
- const ut = it ? window : void 0, On = it ? window.navigator : void 0;
818
- function Je(...u) {
818
+ function Me(...u) {
819
819
  let e, t, l, s;
820
820
  if (typeof u[0] == "string" || Array.isArray(u[0]) ? ([t, l, s] = u, e = ut) : [e, t, l, s] = u, !e)
821
821
  return lt;
822
822
  Array.isArray(t) || (t = [t]), Array.isArray(l) || (l = [l]);
823
823
  const a = [], o = () => {
824
824
  a.forEach((d) => d()), a.length = 0;
825
- }, r = (d, m, f, b) => (d.addEventListener(m, f, b), () => d.removeEventListener(m, f, b)), i = J(
826
- () => [ye(e), Qe(s)],
825
+ }, r = (d, m, f, h) => (d.addEventListener(m, f, h), () => d.removeEventListener(m, f, h)), i = J(
826
+ () => [ye(e), We(s)],
827
827
  ([d, m]) => {
828
828
  if (o(), !d)
829
829
  return;
830
830
  const f = yo(m) ? { ...m } : m;
831
831
  a.push(
832
- ...t.flatMap((b) => l.map((c) => r(d, b, c, f)))
832
+ ...t.flatMap((h) => l.map((c) => r(d, h, c, f)))
833
833
  );
834
834
  },
835
835
  { immediate: !0, flush: "post" }
@@ -843,39 +843,45 @@ function Vo(u, e, t = {}) {
843
843
  const { window: l = ut, ignore: s = [], capture: a = !0, detectIframe: o = !1 } = t;
844
844
  if (!l)
845
845
  return lt;
846
- _o && !Yt && (Yt = !0, Array.from(l.document.body.children).forEach((f) => f.addEventListener("click", lt)), l.document.documentElement.addEventListener("click", lt));
846
+ _o && !Yt && (Yt = !0, Array.from(l.document.body.children).forEach((h) => h.addEventListener("click", lt)), l.document.documentElement.addEventListener("click", lt));
847
847
  let r = !0;
848
- const i = (f) => s.some((b) => {
849
- if (typeof b == "string")
850
- return Array.from(l.document.querySelectorAll(b)).some((c) => c === f.target || f.composedPath().includes(c));
848
+ const i = (h) => We(s).some((c) => {
849
+ if (typeof c == "string")
850
+ return Array.from(l.document.querySelectorAll(c)).some((_) => _ === h.target || h.composedPath().includes(_));
851
851
  {
852
- const c = ye(b);
853
- return c && (f.target === c || f.composedPath().includes(c));
852
+ const _ = ye(c);
853
+ return _ && (h.target === _ || h.composedPath().includes(_));
854
854
  }
855
- }), d = [
856
- Je(l, "click", (f) => {
857
- const b = ye(u);
858
- if (!(!b || b === f.target || f.composedPath().includes(b))) {
859
- if (f.detail === 0 && (r = !i(f)), !r) {
860
- r = !0;
861
- return;
862
- }
863
- e(f);
855
+ }), g = (h) => {
856
+ const c = ye(u);
857
+ if (!(!c || c === h.target || h.composedPath().includes(c))) {
858
+ if (h.detail === 0 && (r = !i(h)), !r) {
859
+ r = !0;
860
+ return;
864
861
  }
862
+ e(h);
863
+ }
864
+ };
865
+ let d = !1;
866
+ const m = [
867
+ Me(l, "click", (h) => {
868
+ d || (d = !0, setTimeout(() => {
869
+ d = !1;
870
+ }, 0), g(h));
865
871
  }, { passive: !0, capture: a }),
866
- Je(l, "pointerdown", (f) => {
867
- const b = ye(u);
868
- r = !i(f) && !!(b && !f.composedPath().includes(b));
872
+ Me(l, "pointerdown", (h) => {
873
+ const c = ye(u);
874
+ r = !i(h) && !!(c && !h.composedPath().includes(c));
869
875
  }, { passive: !0 }),
870
- o && Je(l, "blur", (f) => {
876
+ o && Me(l, "blur", (h) => {
871
877
  setTimeout(() => {
872
- var b;
873
- const c = ye(u);
874
- ((b = l.document.activeElement) == null ? void 0 : b.tagName) === "IFRAME" && !c?.contains(l.document.activeElement) && e(f);
878
+ var c;
879
+ const _ = ye(u);
880
+ ((c = l.document.activeElement) == null ? void 0 : c.tagName) === "IFRAME" && !_?.contains(l.document.activeElement) && e(h);
875
881
  }, 0);
876
882
  })
877
883
  ].filter(Boolean);
878
- return () => d.forEach((f) => f());
884
+ return () => m.forEach((h) => h());
879
885
  }
880
886
  function Ao() {
881
887
  const u = k(!1), e = nn();
@@ -891,11 +897,11 @@ function Zt(u, e = {}) {
891
897
  const {
892
898
  controls: t = !1,
893
899
  navigator: l = On
894
- } = e, s = zt(() => l && "permissions" in l), a = Me(), o = typeof u == "string" ? { name: u } : u, r = Me(), i = () => {
900
+ } = e, s = zt(() => l && "permissions" in l), a = Ue(), o = typeof u == "string" ? { name: u } : u, r = Ue(), i = () => {
895
901
  var d, m;
896
902
  r.value = (m = (d = a.value) == null ? void 0 : d.state) != null ? m : "prompt";
897
903
  };
898
- Je(a, "change", i);
904
+ Me(a, "change", i);
899
905
  const g = ko(async () => {
900
906
  if (s.value) {
901
907
  if (!a.value)
@@ -924,20 +930,20 @@ function zn(u = {}) {
924
930
  copiedDuring: s = 1500,
925
931
  legacy: a = !1
926
932
  } = u, o = zt(() => e && "clipboard" in e), r = Zt("clipboard-read"), i = Zt("clipboard-write"), g = S(() => o.value || a), d = k(""), m = k(!1), f = Co(() => m.value = !1, s);
927
- function b() {
933
+ function h() {
928
934
  o.value && x(r.value) ? e.clipboard.readText().then((C) => {
929
935
  d.value = C;
930
- }) : d.value = _();
936
+ }) : d.value = w();
931
937
  }
932
- g.value && t && Je(["copy", "cut"], b);
933
- async function c(C = Qe(l)) {
934
- g.value && C != null && (o.value && x(i.value) ? await e.clipboard.writeText(C) : w(C), d.value = C, m.value = !0, f.start());
938
+ g.value && t && Me(["copy", "cut"], h);
939
+ async function c(C = We(l)) {
940
+ g.value && C != null && (o.value && x(i.value) ? await e.clipboard.writeText(C) : _(C), d.value = C, m.value = !0, f.start());
935
941
  }
936
- function w(C) {
942
+ function _(C) {
937
943
  const I = document.createElement("textarea");
938
944
  I.value = C ?? "", I.style.position = "absolute", I.style.opacity = "0", document.body.appendChild(I), I.select(), document.execCommand("copy"), I.remove();
939
945
  }
940
- function _() {
946
+ function w() {
941
947
  var C, I, z;
942
948
  return (z = (I = (C = document?.getSelection) == null ? void 0 : C.call(document)) == null ? void 0 : I.toString()) != null ? z : "";
943
949
  }
@@ -957,7 +963,7 @@ function jo(u, e, t = {}) {
957
963
  const o = zt(() => l && "ResizeObserver" in l), r = () => {
958
964
  a && (a.disconnect(), a = void 0);
959
965
  }, i = S(() => {
960
- const m = Qe(u);
966
+ const m = We(u);
961
967
  return Array.isArray(m) ? m.map((f) => ye(f)) : [ye(m)];
962
968
  }), g = J(
963
969
  i,
@@ -977,7 +983,7 @@ function jo(u, e, t = {}) {
977
983
  stop: d
978
984
  };
979
985
  }
980
- function Ge(u, e = { width: 0, height: 0 }, t = {}) {
986
+ function Xe(u, e = { width: 0, height: 0 }, t = {}) {
981
987
  const { window: l = ut, box: s = "content-box" } = t, a = S(() => {
982
988
  var m, f;
983
989
  return (f = (m = ye(u)) == null ? void 0 : m.namespaceURI) == null ? void 0 : f.includes("svg");
@@ -986,14 +992,14 @@ function Ge(u, e = { width: 0, height: 0 }, t = {}) {
986
992
  ([m]) => {
987
993
  const f = s === "border-box" ? m.borderBoxSize : s === "content-box" ? m.contentBoxSize : m.devicePixelContentBoxSize;
988
994
  if (l && a.value) {
989
- const b = ye(u);
990
- if (b) {
991
- const c = b.getBoundingClientRect();
995
+ const h = ye(u);
996
+ if (h) {
997
+ const c = h.getBoundingClientRect();
992
998
  o.value = c.width, r.value = c.height;
993
999
  }
994
1000
  } else if (f) {
995
- const b = Array.isArray(f) ? f : [f];
996
- o.value = b.reduce((c, { inlineSize: w }) => c + w, 0), r.value = b.reduce((c, { blockSize: w }) => c + w, 0);
1001
+ const h = Array.isArray(f) ? f : [f];
1002
+ o.value = h.reduce((c, { inlineSize: _ }) => c + _, 0), r.value = h.reduce((c, { blockSize: _ }) => c + _, 0);
997
1003
  } else
998
1004
  o.value = m.contentRect.width, r.value = m.contentRect.height;
999
1005
  },
@@ -1030,10 +1036,10 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1030
1036
  const t = u, l = e, s = k(!1), a = k(t.modelValue), o = k(""), r = S(
1031
1037
  () => St[t.modelValue] || t.modelValue
1032
1038
  ), i = S(() => {
1033
- const b = Object.entries(St);
1034
- return o.value ? b.filter((c) => c[0].toLowerCase().includes(o.value)) : b;
1035
- }), g = (b) => {
1036
- a.value = b;
1039
+ const h = Object.entries(St);
1040
+ return o.value ? h.filter((c) => c[0].toLowerCase().includes(o.value)) : h;
1041
+ }), g = (h) => {
1042
+ a.value = h;
1037
1043
  }, d = () => {
1038
1044
  l("change", a.value), l("update:modelValue", a.value), s.value = !1;
1039
1045
  }, m = () => {
@@ -1041,7 +1047,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1041
1047
  }, f = () => {
1042
1048
  s.value = !0;
1043
1049
  };
1044
- return (b, c) => (p(), j("div", Eo, [
1050
+ return (h, c) => (p(), j("div", Eo, [
1045
1051
  v(n(_e), {
1046
1052
  size: t.size,
1047
1053
  readonly: "",
@@ -1050,12 +1056,12 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1050
1056
  "suffix-icon": n(xn),
1051
1057
  onFocus: f
1052
1058
  }, {
1053
- prepend: h(() => [
1059
+ prepend: b(() => [
1054
1060
  v(n(Se), { icon: r.value }, null, 8, ["icon"])
1055
1061
  ]),
1056
1062
  _: 1
1057
1063
  }, 8, ["size", "model-value", "suffix-icon"]),
1058
- s.value ? (p(), y(n(Te), {
1064
+ s.value ? (p(), y(n(Be), {
1059
1065
  key: 0,
1060
1066
  title: "图标选择器",
1061
1067
  width: "1000px",
@@ -1064,36 +1070,36 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1064
1070
  submit: "",
1065
1071
  clear: "",
1066
1072
  modelValue: s.value,
1067
- "onUpdate:modelValue": c[1] || (c[1] = (w) => s.value = w),
1073
+ "onUpdate:modelValue": c[1] || (c[1] = (_) => s.value = _),
1068
1074
  onSubmit: d
1069
1075
  }, {
1070
- extra: h(() => [
1076
+ extra: b(() => [
1071
1077
  v(n(ae), {
1072
1078
  size: "default",
1073
1079
  type: "warning",
1074
1080
  onClick: m
1075
1081
  }, {
1076
- default: h(() => c[2] || (c[2] = [
1082
+ default: b(() => c[2] || (c[2] = [
1077
1083
  K(" 清除绑定 ")
1078
1084
  ])),
1079
1085
  _: 1
1080
1086
  })
1081
1087
  ]),
1082
- default: h(() => [
1088
+ default: b(() => [
1083
1089
  V("div", Po, [
1084
1090
  v(n(_e), {
1085
1091
  size: t.size,
1086
1092
  "prefix-icon": n(Rt),
1087
1093
  clearable: "",
1088
1094
  modelValue: o.value,
1089
- "onUpdate:modelValue": c[0] || (c[0] = (w) => o.value = w),
1095
+ "onUpdate:modelValue": c[0] || (c[0] = (_) => o.value = _),
1090
1096
  placeholder: "请输入查询关键字"
1091
1097
  }, null, 8, ["size", "prefix-icon", "modelValue"]),
1092
1098
  V("div", Do, [
1093
- (p(!0), j(O, null, L(i.value, (w) => (p(), y(n(Se), {
1094
- icon: w[1],
1095
- onClick: (_) => g(w[0]),
1096
- class: X({ "is-active": a.value === w[0] })
1099
+ (p(!0), j(O, null, L(i.value, (_) => (p(), y(n(Se), {
1100
+ icon: _[1],
1101
+ onClick: (w) => g(_[0]),
1102
+ class: X({ "is-active": a.value === _[0] })
1097
1103
  }, null, 8, ["icon", "onClick", "class"]))), 256)),
1098
1104
  i.value.length === 0 ? (p(), y(n(oe), { key: 0 })) : A("", !0)
1099
1105
  ])
@@ -1125,7 +1131,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1125
1131
  ], r = (m) => {
1126
1132
  a.value && (a.value.name = yn(m));
1127
1133
  }, i = async (m) => t.value?.existPageName(m.name, [m.id]) ? (le("页面名称已存在,请更换"), !1) : (e.item ? t.value?.updatePage(m) : t.value?.createPage(m, e.parentId), !0), { copy: g } = zn({}), d = (m) => {
1128
- g(m), Ke.success({
1134
+ g(m), Qe.success({
1129
1135
  message: "已经复制到粘贴板"
1130
1136
  });
1131
1137
  };
@@ -1137,8 +1143,8 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1137
1143
  model: a.value,
1138
1144
  "submit-method": i
1139
1145
  }, {
1140
- default: h(() => [
1141
- v(n(B), {
1146
+ default: b(() => [
1147
+ v(n(T), {
1142
1148
  name: "dir",
1143
1149
  label: "类型",
1144
1150
  editor: "radio",
@@ -1147,18 +1153,18 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1147
1153
  disabled: !!e.item,
1148
1154
  required: ""
1149
1155
  }, null, 8, ["disabled"]),
1150
- !a.value.dir && e.item ? (p(), y(n(B), {
1156
+ !a.value.dir && e.item ? (p(), y(n(T), {
1151
1157
  key: 0,
1152
1158
  label: "路由",
1153
1159
  disabled: ""
1154
1160
  }, {
1155
- editor: h(() => [
1161
+ editor: b(() => [
1156
1162
  v(n(Et), { closable: !1 }, {
1157
- default: h(() => [
1163
+ default: b(() => [
1158
1164
  K(F(`/page/${a.value.id}`) + " ", 1),
1159
1165
  v(n(Se), {
1160
1166
  icon: n(os),
1161
- onClick: f[0] || (f[0] = (b) => d(`/page/${a.value.id}`))
1167
+ onClick: f[0] || (f[0] = (h) => d(`/page/${a.value.id}`))
1162
1168
  }, null, 8, ["icon"])
1163
1169
  ]),
1164
1170
  _: 1
@@ -1166,44 +1172,44 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1166
1172
  ]),
1167
1173
  _: 1
1168
1174
  })) : A("", !0),
1169
- v(n(B), {
1175
+ v(n(T), {
1170
1176
  name: "name",
1171
1177
  label: "名称",
1172
1178
  required: "",
1173
1179
  onChange: r,
1174
1180
  rules: { pattern: n(we), message: "名称格式不正确" }
1175
1181
  }, null, 8, ["rules"]),
1176
- v(n(B), {
1182
+ v(n(T), {
1177
1183
  name: "title",
1178
1184
  label: "标题",
1179
1185
  required: ""
1180
1186
  }),
1181
- v(n(B), {
1187
+ v(n(T), {
1182
1188
  name: "icon",
1183
1189
  label: "菜单图标",
1184
1190
  editor: "none"
1185
1191
  }, {
1186
- editor: h(() => [
1192
+ editor: b(() => [
1187
1193
  v(Fn, {
1188
1194
  modelValue: a.value.icon,
1189
- "onUpdate:modelValue": f[1] || (f[1] = (b) => a.value.icon = b),
1195
+ "onUpdate:modelValue": f[1] || (f[1] = (h) => a.value.icon = h),
1190
1196
  size: "default"
1191
1197
  }, null, 8, ["modelValue"])
1192
1198
  ]),
1193
1199
  _: 1
1194
1200
  }),
1195
- v(n(B), {
1201
+ v(n(T), {
1196
1202
  visible: { dir: !1 },
1197
1203
  name: "mask",
1198
1204
  label: "包含母版",
1199
1205
  editor: "switch"
1200
1206
  }),
1201
- v(n(B), {
1207
+ v(n(T), {
1202
1208
  name: "hidden",
1203
1209
  label: "隐藏菜单",
1204
1210
  editor: "switch"
1205
1211
  }),
1206
- v(n(B), {
1212
+ v(n(T), {
1207
1213
  visible: { dir: !1 },
1208
1214
  disabled: !!e.item,
1209
1215
  inline: "",
@@ -1239,7 +1245,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1239
1245
  content: o.label,
1240
1246
  "show-after": 600
1241
1247
  }, {
1242
- default: h(() => [
1248
+ default: b(() => [
1243
1249
  V("div", {
1244
1250
  class: X(["v-apps-region__icon", s.value]),
1245
1251
  onClick: a
@@ -1286,19 +1292,19 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1286
1292
  onClick: t.collapsable ? () => {
1287
1293
  s.value = !s.value;
1288
1294
  } : void 0
1289
- } : null), f = (b) => {
1290
- s.value = b;
1295
+ } : null), f = (h) => {
1296
+ s.value = h;
1291
1297
  };
1292
- return (b, c) => (p(), y(n(at), {
1298
+ return (h, c) => (p(), y(n(at), {
1293
1299
  class: X(["v-panel", a.value]),
1294
1300
  border: !1,
1295
1301
  header: m.value,
1296
1302
  fit: ""
1297
1303
  }, Yn({
1298
- actions: h(() => [
1304
+ actions: b(() => [
1299
1305
  t.plus ? (p(), y(n(be), {
1300
1306
  key: 0,
1301
- size: b.$attrs.size,
1307
+ size: h.$attrs.size,
1302
1308
  mode: "icon",
1303
1309
  icon: n(Cn),
1304
1310
  background: "hover",
@@ -1307,7 +1313,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1307
1313
  }, null, 8, ["size", "icon"])) : A("", !0),
1308
1314
  t.edit ? (p(), y(n(be), {
1309
1315
  key: 1,
1310
- size: b.$attrs.size,
1316
+ size: h.$attrs.size,
1311
1317
  mode: "icon",
1312
1318
  icon: n(is),
1313
1319
  background: "hover",
@@ -1316,7 +1322,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1316
1322
  }, null, 8, ["size", "icon"])) : A("", !0),
1317
1323
  t.remove ? (p(), y(n(be), {
1318
1324
  key: 2,
1319
- size: b.$attrs.size,
1325
+ size: h.$attrs.size,
1320
1326
  mode: "icon",
1321
1327
  icon: n(us),
1322
1328
  background: "hover",
@@ -1325,7 +1331,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1325
1331
  }, null, 8, ["size", "icon"])) : A("", !0),
1326
1332
  t.save ? (p(), y(n(be), {
1327
1333
  key: 3,
1328
- size: b.$attrs.size,
1334
+ size: h.$attrs.size,
1329
1335
  mode: "icon",
1330
1336
  icon: n(cs),
1331
1337
  background: "hover",
@@ -1334,43 +1340,43 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1334
1340
  }, null, 8, ["size", "icon"])) : A("", !0),
1335
1341
  t.collapsable ? Pe((p(), y(n(be), {
1336
1342
  key: 4,
1337
- size: b.$attrs.size,
1343
+ size: h.$attrs.size,
1338
1344
  mode: "icon",
1339
1345
  icon: n(xn),
1340
1346
  background: "hover",
1341
1347
  title: "展开",
1342
- onClick: c[0] || (c[0] = (w) => f(!1))
1348
+ onClick: c[0] || (c[0] = (_) => f(!1))
1343
1349
  }, null, 8, ["size", "icon"])), [
1344
- [Be, s.value]
1350
+ [Te, s.value]
1345
1351
  ]) : A("", !0),
1346
1352
  t.collapsable ? Pe((p(), y(n(be), {
1347
1353
  key: 5,
1348
- size: b.$attrs.size,
1354
+ size: h.$attrs.size,
1349
1355
  mode: "icon",
1350
1356
  icon: n(ds),
1351
1357
  background: "hover",
1352
1358
  title: "收起",
1353
- onClick: c[1] || (c[1] = (w) => f(!0))
1359
+ onClick: c[1] || (c[1] = (_) => f(!0))
1354
1360
  }, null, 8, ["size", "icon"])), [
1355
- [Be, !s.value]
1361
+ [Te, !s.value]
1356
1362
  ]) : A("", !0),
1357
- Ce(b.$slots, "actions")
1363
+ Ce(h.$slots, "actions")
1358
1364
  ]),
1359
- default: h(() => [
1360
- Ce(b.$slots, "default")
1365
+ default: b(() => [
1366
+ Ce(h.$slots, "default")
1361
1367
  ]),
1362
1368
  _: 2
1363
1369
  }, [
1364
- b.$slots.footer ? {
1370
+ h.$slots.footer ? {
1365
1371
  name: "footer",
1366
- fn: h(() => [
1367
- Ce(b.$slots, "footer")
1372
+ fn: b(() => [
1373
+ Ce(h.$slots, "footer")
1368
1374
  ]),
1369
1375
  key: "0"
1370
1376
  } : void 0
1371
1377
  ]), 1032, ["class", "header"]));
1372
1378
  }
1373
- }), Bo = { class: "v-tabs__header" }, To = {
1379
+ }), To = { class: "v-tabs__header" }, Bo = {
1374
1380
  key: 0,
1375
1381
  class: "v-tabs__actions"
1376
1382
  }, ct = /* @__PURE__ */ E({
@@ -1413,8 +1419,8 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1413
1419
  fit: "",
1414
1420
  radius: !1
1415
1421
  }, {
1416
- header: h(() => [
1417
- V("div", Bo, [
1422
+ header: b(() => [
1423
+ V("div", To, [
1418
1424
  v(n(Dt), {
1419
1425
  class: "v-tabs__tabs",
1420
1426
  items: t.items,
@@ -1425,7 +1431,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1425
1431
  onActionClick: r,
1426
1432
  stretch: t.stretch
1427
1433
  }, null, 8, ["items", "modelValue", "stretch"]),
1428
- t.menus && t.menus.length ? (p(), j("div", To, [
1434
+ t.menus && t.menus.length ? (p(), j("div", Bo, [
1429
1435
  t.menus && t.menus.length ? (p(), y(n(be), {
1430
1436
  key: 0,
1431
1437
  mode: "icon",
@@ -1439,7 +1445,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1439
1445
  menus: t.menus,
1440
1446
  onCommand: a
1441
1447
  }, {
1442
- item: h(({ item: d }) => [
1448
+ item: b(({ item: d }) => [
1443
1449
  V("span", null, [
1444
1450
  t.checkable ? (p(), y(n(Vn), {
1445
1451
  key: 0,
@@ -1456,7 +1462,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1456
1462
  ])) : A("", !0)
1457
1463
  ])
1458
1464
  ]),
1459
- default: h(() => [
1465
+ default: b(() => [
1460
1466
  Ce(i.$slots, "default")
1461
1467
  ]),
1462
1468
  _: 3
@@ -1562,12 +1568,12 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1562
1568
  align: "center",
1563
1569
  onClick: i
1564
1570
  }, {
1565
- default: h(() => [
1571
+ default: b(() => [
1566
1572
  v(n(U), {
1567
1573
  class: "v-item__title",
1568
1574
  align: "center"
1569
1575
  }, {
1570
- default: h(() => [
1576
+ default: b(() => [
1571
1577
  Ce(d.$slots, "default", {}, () => [
1572
1578
  d.icon ? (p(), y(n(Se), {
1573
1579
  key: 0,
@@ -1579,7 +1585,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1579
1585
  size: "small",
1580
1586
  type: l.tagType
1581
1587
  }, {
1582
- default: h(() => [
1588
+ default: b(() => [
1583
1589
  K(F(l.tag), 1)
1584
1590
  ]),
1585
1591
  _: 1
@@ -1596,10 +1602,10 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1596
1602
  }),
1597
1603
  v(n(U), {
1598
1604
  class: "v-item__actions",
1599
- onClick: m[1] || (m[1] = Ne(() => {
1605
+ onClick: m[1] || (m[1] = Je(() => {
1600
1606
  }, ["stop"]))
1601
1607
  }, {
1602
- default: h(() => [
1608
+ default: b(() => [
1603
1609
  (p(!0), j(O, null, L(o.value, (f) => (p(), y(n(be), {
1604
1610
  name: f.name,
1605
1611
  title: f.label,
@@ -1608,7 +1614,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1608
1614
  background: "none",
1609
1615
  type: "info",
1610
1616
  icon: f.icon,
1611
- onClick: (b) => g(f.name)
1617
+ onClick: (h) => g(f.name)
1612
1618
  }, null, 8, ["name", "title", "icon", "onClick"]))), 256)),
1613
1619
  l.switch ? (p(), y(n(gn), {
1614
1620
  key: 0,
@@ -1664,7 +1670,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1664
1670
  justify: "center",
1665
1671
  align: "center"
1666
1672
  }, {
1667
- default: h(() => [
1673
+ default: b(() => [
1668
1674
  V("span", zo, F(t.name), 1),
1669
1675
  V("span", Fo, F(t.title), 1)
1670
1676
  ]),
@@ -1676,7 +1682,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1676
1682
  justify: "flex-end",
1677
1683
  align: "center"
1678
1684
  }, {
1679
- default: h(() => [
1685
+ default: b(() => [
1680
1686
  v(n(Se), {
1681
1687
  icon: n(jn),
1682
1688
  onClick: s
@@ -1704,24 +1710,24 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1704
1710
  const t = u, l = e, s = ["$provider", "$apis", "$components", "context"], a = (d) => {
1705
1711
  const m = d.value, f = dt(m);
1706
1712
  return f === "Object" || f === "Module" ? Object.keys(m || {}).length === 0 : f === "Array" ? m.length === 0 : !0;
1707
- }, o = (d, m = "this") => typeof d == "object" ? Array.isArray(d) ? d.map((b, c) => {
1708
- const w = `[${c}]`;
1713
+ }, o = (d, m = "this") => typeof d == "object" ? Array.isArray(d) ? d.map((h, c) => {
1714
+ const _ = `[${c}]`;
1709
1715
  return {
1710
- label: w,
1711
- value: b,
1712
- type: dt(b),
1713
- path: `${m}${w}`
1716
+ label: _,
1717
+ value: h,
1718
+ type: dt(h),
1719
+ path: `${m}${_}`
1714
1720
  };
1715
- }) : Ya(d).map((b) => {
1716
- const c = d[b];
1721
+ }) : Ya(d).map((h) => {
1722
+ const c = d[h];
1717
1723
  return {
1718
- label: b,
1724
+ label: h,
1719
1725
  value: c,
1720
1726
  type: dt(c),
1721
- path: `${m}.${b}`
1727
+ path: `${m}.${h}`
1722
1728
  };
1723
1729
  }).filter(
1724
- (b) => !b.label.startsWith("__") && !s.includes(b.label)
1730
+ (h) => !h.label.startsWith("__") && !s.includes(h.label)
1725
1731
  ) : [], r = (d, m) => {
1726
1732
  if (d.level === 0)
1727
1733
  m(o(t.context));
@@ -1742,16 +1748,16 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1742
1748
  "expand-on-click-node": !1,
1743
1749
  props: { isLeaf: a }
1744
1750
  }, {
1745
- default: h(({ data: f }) => [
1751
+ default: b(({ data: f }) => [
1746
1752
  v(ce, {
1747
1753
  title: f.label,
1748
1754
  subtitle: f.type,
1749
1755
  "subtitle-cls": f.type,
1750
1756
  clickable: "",
1751
- onClick: (b) => g(f),
1757
+ onClick: (h) => g(f),
1752
1758
  background: "",
1753
1759
  actions: ["copy"],
1754
- onAction: (b) => i(f),
1760
+ onAction: (h) => i(f),
1755
1761
  grow: "",
1756
1762
  small: ""
1757
1763
  }, null, 8, ["title", "subtitle", "subtitle-cls", "onClick", "onAction"])
@@ -1796,18 +1802,18 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1796
1802
  l("update:modelValue", !1), l("close");
1797
1803
  }, f = () => {
1798
1804
  l("unbind");
1799
- }, b = () => {
1805
+ }, h = () => {
1800
1806
  m();
1801
1807
  }, c = async () => {
1802
1808
  g.value?.submit();
1803
- }, w = (x) => {
1804
- l("pick", x);
1805
1809
  }, _ = (x) => {
1806
- o(x), Ke.success({
1810
+ l("pick", x);
1811
+ }, w = (x) => {
1812
+ o(x), Qe.success({
1807
1813
  message: "已经复制到粘贴板"
1808
1814
  });
1809
1815
  };
1810
- return (x, C) => (p(), y(n(Te), {
1816
+ return (x, C) => (p(), y(n(Be), {
1811
1817
  "model-value": t.modelValue,
1812
1818
  class: "v-binder",
1813
1819
  title: x.title,
@@ -1819,32 +1825,32 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1819
1825
  minimizable: !1,
1820
1826
  onClose: m
1821
1827
  }, {
1822
- default: h(() => [
1828
+ default: b(() => [
1823
1829
  v(n(U), {
1824
1830
  fit: "",
1825
1831
  direction: "row",
1826
1832
  overflow: "hidden"
1827
1833
  }, {
1828
- default: h(() => [
1834
+ default: b(() => [
1829
1835
  v(n(U), {
1830
1836
  width: "30%",
1831
1837
  height: "100%"
1832
1838
  }, {
1833
- default: h(() => [
1839
+ default: b(() => [
1834
1840
  v(ct, {
1835
1841
  class: "v-binder__tabs",
1836
1842
  items: r,
1837
1843
  modelValue: i.value,
1838
1844
  "onUpdate:modelValue": C[1] || (C[1] = (I) => i.value = I)
1839
1845
  }, {
1840
- default: h(() => [
1846
+ default: b(() => [
1841
1847
  v(n(U), {
1842
1848
  class: "v-binder__tab-content",
1843
1849
  fit: "",
1844
1850
  padding: "",
1845
1851
  flex: !1
1846
1852
  }, {
1847
- default: h(() => [
1853
+ default: b(() => [
1848
1854
  Pe(V("div", null, [
1849
1855
  v(n(_e), {
1850
1856
  modelValue: n(a),
@@ -1856,7 +1862,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1856
1862
  }, null, 8, ["modelValue", "prefix-icon"]),
1857
1863
  (p(!0), j(O, null, L(n(s), (I) => (p(), j("div", null, [
1858
1864
  v(n(jt), { "border-style": "dotted" }, {
1859
- default: h(() => [
1865
+ default: b(() => [
1860
1866
  K(F(I.title), 1)
1861
1867
  ]),
1862
1868
  _: 2
@@ -1866,20 +1872,20 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1866
1872
  background: "",
1867
1873
  actions: ["copy"],
1868
1874
  small: "",
1869
- onClick: (R) => w(z),
1870
- onAction: (R) => _(z)
1875
+ onClick: (R) => _(z),
1876
+ onAction: (R) => w(z)
1871
1877
  }, null, 8, ["title", "onClick", "onAction"]))), 256))
1872
1878
  ]))), 256)),
1873
1879
  n(s).length ? A("", !0) : (p(), y(n(oe), { key: 0 }))
1874
1880
  ], 512), [
1875
- [Be, i.value === "normal"]
1881
+ [Te, i.value === "normal"]
1876
1882
  ]),
1877
1883
  Pe(v(Lo, {
1878
1884
  context: t.context,
1879
- onCopy: _,
1880
- onPick: w
1885
+ onCopy: w,
1886
+ onPick: _
1881
1887
  }, null, 8, ["context"]), [
1882
- [Be, i.value === "viewer"]
1888
+ [Te, i.value === "viewer"]
1883
1889
  ])
1884
1890
  ]),
1885
1891
  _: 1
@@ -1895,18 +1901,18 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1895
1901
  header: null,
1896
1902
  border: !1
1897
1903
  }, {
1898
- footer: h(() => [
1904
+ footer: b(() => [
1899
1905
  v(n(U), { justify: "space-between" }, {
1900
- default: h(() => [
1906
+ default: b(() => [
1901
1907
  v(n(U), null, {
1902
- default: h(() => [
1908
+ default: b(() => [
1903
1909
  x.unbindEnabled ? (p(), y(n(ae), {
1904
1910
  key: 0,
1905
1911
  type: "warning",
1906
1912
  size: "default",
1907
1913
  onClick: f
1908
1914
  }, {
1909
- default: h(() => C[2] || (C[2] = [
1915
+ default: b(() => C[2] || (C[2] = [
1910
1916
  K(" 移除绑定 ")
1911
1917
  ])),
1912
1918
  _: 1
@@ -1915,13 +1921,13 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1915
1921
  _: 1
1916
1922
  }),
1917
1923
  v(n(U), null, {
1918
- default: h(() => [
1924
+ default: b(() => [
1919
1925
  v(n(ae), {
1920
1926
  type: "default",
1921
1927
  size: "default",
1922
- onClick: b
1928
+ onClick: h
1923
1929
  }, {
1924
- default: h(() => C[3] || (C[3] = [
1930
+ default: b(() => C[3] || (C[3] = [
1925
1931
  K(" 取消 ")
1926
1932
  ])),
1927
1933
  _: 1
@@ -1931,7 +1937,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1931
1937
  size: "default",
1932
1938
  onClick: c
1933
1939
  }, {
1934
- default: h(() => C[4] || (C[4] = [
1940
+ default: b(() => C[4] || (C[4] = [
1935
1941
  K(" 确定 ")
1936
1942
  ])),
1937
1943
  _: 1
@@ -1943,7 +1949,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1943
1949
  _: 1
1944
1950
  })
1945
1951
  ]),
1946
- default: h(() => [
1952
+ default: b(() => [
1947
1953
  v(n(It), {
1948
1954
  ref_key: "formRef",
1949
1955
  ref: g,
@@ -1955,7 +1961,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1955
1961
  rules: t.rules,
1956
1962
  "submit-method": d
1957
1963
  }, {
1958
- default: h(() => [
1964
+ default: b(() => [
1959
1965
  Ce(x.$slots, "default")
1960
1966
  ]),
1961
1967
  _: 3
@@ -1982,7 +1988,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1982
1988
  }, r = () => {
1983
1989
  s.value ? (l("submit", s.value), l("update:modelValue", !1)) : le("请选择插槽");
1984
1990
  };
1985
- return (i, g) => (p(), y(n(Te), ie({
1991
+ return (i, g) => (p(), y(n(Be), ie({
1986
1992
  class: "v-slots-picker",
1987
1993
  title: "选择插槽",
1988
1994
  width: "600px",
@@ -1991,7 +1997,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
1991
1997
  cancel: "",
1992
1998
  onSubmit: r
1993
1999
  }, i.$attrs), {
1994
- default: h(() => [
2000
+ default: b(() => [
1995
2001
  v(n(Et), {
1996
2002
  title: "该组件支持多个插槽,请选择放置到其中一个",
1997
2003
  type: "warning",
@@ -2004,14 +2010,14 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2004
2010
  gap: "",
2005
2011
  wrap: "wrap"
2006
2012
  }, {
2007
- default: h(() => [
2013
+ default: b(() => [
2008
2014
  (p(!0), j(O, null, L(t.slots, (d, m) => (p(), y(n(U), {
2009
2015
  class: X(["v-slots-picker__item", { "is-active": d.name === s.value?.name }]),
2010
2016
  grow: "",
2011
2017
  flex: !1,
2012
2018
  onClick: (f) => o(d)
2013
2019
  }, {
2014
- default: h(() => [
2020
+ default: b(() => [
2015
2021
  V("span", No, "#" + F(m + 1), 1),
2016
2022
  K(" " + F(d.name), 1)
2017
2023
  ]),
@@ -2061,38 +2067,38 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2061
2067
  setup(u) {
2062
2068
  const { project: e, engine: t } = Re(), l = S(() => e.value?.pages || []), { current: s } = ue(), a = k(!1), o = k(), r = k(), i = () => {
2063
2069
  r.value = void 0, o.value = void 0, a.value = !0;
2064
- }, g = async (b) => {
2065
- const { name: c, modelValue: w } = b, { data: _, node: x } = w;
2066
- if (c === "add" && (o.value = void 0, r.value = _.id, a.value = !0), c === "edit" && (o.value = ot(_), r.value = void 0, a.value = !0), c === "remove") {
2067
- if (_.dir) {
2068
- const C = e.value?.getPage(_.id);
2070
+ }, g = async (h) => {
2071
+ const { name: c, modelValue: _ } = h, { data: w, node: x } = _;
2072
+ if (c === "add" && (o.value = void 0, r.value = w.id, a.value = !0), c === "edit" && (o.value = ot(w), r.value = void 0, a.value = !0), c === "remove") {
2073
+ if (w.dir) {
2074
+ const C = e.value?.getPage(w.id);
2069
2075
  if (C && C.children?.length) {
2070
2076
  le("请先删除子页面");
2071
2077
  return;
2072
2078
  }
2073
2079
  }
2074
- e.value?.removePage(_.id);
2080
+ e.value?.removePage(w.id);
2075
2081
  }
2076
2082
  if (c === "copy") {
2077
2083
  const C = x.parent?.data.id;
2078
- e.value?.clonePage(_, C);
2084
+ e.value?.clonePage(w, C);
2079
2085
  }
2080
- c === "home" && (e.value?.setHomepage(_.id), pe("设置主页成功", "success"));
2081
- }, d = async (b) => {
2082
- b.raw && pe("这是源码模式页面,不能低代码设计", "warning"), b.dir || b.raw ? t.project.value?.deactivate() : t.project.value?.active(b);
2083
- }, m = (b, c, w) => w === "inner" ? !!c.data.dir : !0, f = () => {
2086
+ c === "home" && (e.value?.setHomepage(w.id), pe("设置主页成功", "success"));
2087
+ }, d = async (h) => {
2088
+ h.raw && pe("这是源码模式页面,不能低代码设计", "warning"), h.dir || h.raw ? t.project.value?.deactivate() : t.project.value?.active(h);
2089
+ }, m = (h, c, _) => _ === "inner" ? !!c.data.dir : !0, f = () => {
2084
2090
  e.value?.update({
2085
2091
  pages: vt(l)
2086
2092
  });
2087
2093
  };
2088
- return (b, c) => (p(), y(n(H), {
2094
+ return (h, c) => (p(), y(n(H), {
2089
2095
  class: "v-pages-widget",
2090
2096
  title: "页面管理",
2091
2097
  plus: "",
2092
2098
  subtitle: "(共 0 条)",
2093
2099
  onPlus: i
2094
2100
  }, {
2095
- default: h(() => [
2101
+ default: b(() => [
2096
2102
  v(n(Pt), {
2097
2103
  data: l.value,
2098
2104
  "node-key": "id",
@@ -2101,18 +2107,18 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2101
2107
  "allow-drop": m,
2102
2108
  onNodeDrop: f
2103
2109
  }, {
2104
- default: h(({ data: w, node: _ }) => [
2110
+ default: b(({ data: _, node: w }) => [
2105
2111
  v(n(ce), {
2106
2112
  class: "v-pages-widget__item",
2107
- icon: n(St)[w.icon],
2108
- title: w.title,
2109
- subtitle: w.name,
2110
- "model-value": { data: w, node: _ },
2111
- actions: w.dir ? ["add", "edit", "remove"] : w.raw ? ["home", "edit", "remove"] : ["home", "copy", "edit", "remove"],
2113
+ icon: n(St)[_.icon],
2114
+ title: _.title,
2115
+ subtitle: _.name,
2116
+ "model-value": { data: _, node: w },
2117
+ actions: _.dir ? ["add", "edit", "remove"] : _.raw ? ["home", "edit", "remove"] : ["home", "copy", "edit", "remove"],
2112
2118
  onAction: g,
2113
- onClick: (x) => d(w),
2114
- active: n(s)?.id === w.id,
2115
- tag: n(e)?.homepage === w.id ? "主页" : void 0,
2119
+ onClick: (x) => d(_),
2120
+ active: n(s)?.id === _.id,
2121
+ tag: n(e)?.homepage === _.id ? "主页" : void 0,
2116
2122
  "tag-type": "success",
2117
2123
  grow: "",
2118
2124
  small: "",
@@ -2125,7 +2131,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2125
2131
  a.value ? (p(), y(Io, {
2126
2132
  key: 0,
2127
2133
  modelValue: a.value,
2128
- "onUpdate:modelValue": c[0] || (c[0] = (w) => a.value = w),
2134
+ "onUpdate:modelValue": c[0] || (c[0] = (_) => a.value = _),
2129
2135
  item: o.value,
2130
2136
  "parent-id": r.value
2131
2137
  }, null, 8, ["modelValue", "item", "parent-id"])) : A("", !0)
@@ -2165,19 +2171,19 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2165
2171
  o.value = i(I);
2166
2172
  }
2167
2173
  });
2168
- const b = () => {
2174
+ const h = () => {
2169
2175
  if (!m.value || Array.isArray(m.value) && m.value.length === 0)
2170
2176
  return le("请选择文件"), !1;
2171
2177
  const C = (t.attachment?.accept || "").toLowerCase().split(",");
2172
2178
  return C.length > 0 ? [].concat(m.value).every((R) => {
2173
- const D = R.name || R.url.split("?")[0], T = D.substring(D.lastIndexOf(".")).toLowerCase();
2174
- return C.includes(T);
2179
+ const D = R.name || R.url.split("?")[0], B = D.substring(D.lastIndexOf(".")).toLowerCase();
2180
+ return C.includes(B);
2175
2181
  }) ? !0 : (le(`只支持 ${C.join(",")} 文件`), !1) : !0;
2176
2182
  }, c = () => {
2177
- b() && (l("change", f.value), l("update:modelValue", f.value), r.value = !1);
2178
- }, w = () => {
2179
- m.value = [], l("change", void 0), l("update:modelValue", void 0), r.value = !1;
2183
+ h() && (l("change", f.value), l("update:modelValue", f.value), r.value = !1);
2180
2184
  }, _ = () => {
2185
+ m.value = [], l("change", void 0), l("update:modelValue", void 0), r.value = !1;
2186
+ }, w = () => {
2181
2187
  r.value = !0;
2182
2188
  }, x = (C) => {
2183
2189
  C.name && a.value?.id && s.service.removeStaticFile(C.name, a.value?.id);
@@ -2185,11 +2191,11 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2185
2191
  return (C, I) => (p(), j("div", Uo, [
2186
2192
  v(n(_e), ie({
2187
2193
  readonly: "",
2188
- onFocus: _,
2194
+ onFocus: w,
2189
2195
  "model-value": t.modelValue,
2190
2196
  "suffix-icon": n(gs)
2191
2197
  }, C.$attrs), null, 16, ["model-value", "suffix-icon"]),
2192
- r.value ? (p(), y(n(Te), {
2198
+ r.value ? (p(), y(n(Be), {
2193
2199
  key: 0,
2194
2200
  modelValue: r.value,
2195
2201
  "onUpdate:modelValue": I[2] || (I[2] = (z) => r.value = z),
@@ -2200,19 +2206,19 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2200
2206
  submit: "",
2201
2207
  onSubmit: c
2202
2208
  }, {
2203
- extra: h(() => [
2209
+ extra: b(() => [
2204
2210
  v(n(ae), {
2205
2211
  type: "warning",
2206
2212
  size: "default",
2207
- onClick: w
2213
+ onClick: _
2208
2214
  }, {
2209
- default: h(() => I[3] || (I[3] = [
2215
+ default: b(() => I[3] || (I[3] = [
2210
2216
  K(" 清除 ")
2211
2217
  ])),
2212
2218
  _: 1
2213
2219
  })
2214
2220
  ]),
2215
- default: h(() => [
2221
+ default: b(() => [
2216
2222
  v(n(_l), ie({
2217
2223
  size: "small",
2218
2224
  "list-type": "list",
@@ -2273,22 +2279,22 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2273
2279
  return ".json";
2274
2280
  if (o.value?.fromType === "Plugin")
2275
2281
  return ".js,.css,.json";
2276
- }), b = S(() => o.value?.fromType === "Plugin"), c = async (D) => {
2277
- const T = D, P = l.project.value;
2282
+ }), h = S(() => o.value?.fromType === "Plugin"), c = async (D) => {
2283
+ const B = D, P = l.project.value;
2278
2284
  if (!P) return !1;
2279
2285
  if (D.id)
2280
- if (!P.existBlockName(T.name, [T.id]))
2281
- P.updateBlock(T);
2286
+ if (!P.existBlockName(B.name, [B.id]))
2287
+ P.updateBlock(B);
2282
2288
  else
2283
- return le(`名称【${T.name}】已经存在,请更换名称`), !1;
2284
- else if (!P.existBlockName(T.name))
2285
- P.createBlock(T);
2289
+ return le(`名称【${B.name}】已经存在,请更换名称`), !1;
2290
+ else if (!P.existBlockName(B.name))
2291
+ P.createBlock(B);
2286
2292
  else
2287
- return le(`名称【${T.name}】已经存在,请更换名称`), !1;
2293
+ return le(`名称【${B.name}】已经存在,请更换名称`), !1;
2288
2294
  return !0;
2289
- }, w = () => {
2295
+ }, _ = () => {
2290
2296
  o.value = m(), i.value = !0;
2291
- }, _ = (D) => {
2297
+ }, w = (D) => {
2292
2298
  o.value = ot(D), i.value = !0;
2293
2299
  }, x = (D) => {
2294
2300
  l.project.value?.removeBlock(D.id);
@@ -2297,30 +2303,30 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2297
2303
  }, I = async (D) => {
2298
2304
  (!D.fromType || D.fromType === "Schema") && l.project.value?.active(D);
2299
2305
  }, z = async (D) => {
2300
- const T = jl(D), P = await l.assets.getBlockMaterial(T, D.name), G = l.skeleton?.getWidget("Designer")?.widgetRef?.designer;
2306
+ const B = jl(D), P = await l.assets.getBlockMaterial(B, D.name), G = l.skeleton?.getWidget("Designer")?.widgetRef?.designer;
2301
2307
  G && P && G.setDragging(P);
2302
2308
  }, R = () => {
2303
2309
  const D = l.skeleton?.getWidget("Designer")?.widgetRef?.designer;
2304
2310
  D && D.setDragging(null);
2305
2311
  };
2306
- return (D, T) => (p(), y(n(H), {
2312
+ return (D, B) => (p(), y(n(H), {
2307
2313
  class: "v-blocks-widget",
2308
2314
  title: "区块管理",
2309
2315
  subtitle: d.value,
2310
2316
  plus: "",
2311
- onPlus: w
2317
+ onPlus: _
2312
2318
  }, {
2313
- default: h(() => [
2319
+ default: b(() => [
2314
2320
  v(n(bt), {
2315
2321
  wrap: "wrap",
2316
2322
  gutter: 5
2317
2323
  }, {
2318
- default: h(() => [
2324
+ default: b(() => [
2319
2325
  (p(!0), j(O, null, L(n(t), (P) => (p(), y(n(yt), {
2320
2326
  key: P.id,
2321
2327
  span: n(e)
2322
2328
  }, {
2323
- default: h(() => [
2329
+ default: b(() => [
2324
2330
  v(n(xt), {
2325
2331
  name: P.name,
2326
2332
  title: P.title,
@@ -2328,7 +2334,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2328
2334
  editable: !P.preset,
2329
2335
  tag: a[P.fromType || "Schema"]?.label,
2330
2336
  tagType: a[P.fromType || "Schema"]?.type,
2331
- onEdit: (G) => _(P),
2337
+ onEdit: (G) => w(P),
2332
2338
  onRemove: (G) => x(P),
2333
2339
  onClick: (G) => I(P),
2334
2340
  draggable: n(r)?.id !== P.id,
@@ -2344,7 +2350,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2344
2350
  n(t).length ? A("", !0) : (p(), y(n(oe), { key: 0 })),
2345
2351
  v(n(Ae), {
2346
2352
  modelValue: i.value,
2347
- "onUpdate:modelValue": T[0] || (T[0] = (P) => i.value = P),
2353
+ "onUpdate:modelValue": B[0] || (B[0] = (P) => i.value = P),
2348
2354
  title: g.value,
2349
2355
  model: o.value,
2350
2356
  width: "600px",
@@ -2352,8 +2358,8 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2352
2358
  "form-props": { tooltipMessage: !1 },
2353
2359
  "submit-method": c
2354
2360
  }, {
2355
- default: h(() => [
2356
- v(n(B), {
2361
+ default: b(() => [
2362
+ v(n(T), {
2357
2363
  name: "fromType",
2358
2364
  label: "类型",
2359
2365
  required: "",
@@ -2361,7 +2367,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2361
2367
  disabled: !!o.value?.id,
2362
2368
  options: s
2363
2369
  }, null, 8, ["disabled"]),
2364
- v(n(B), {
2370
+ v(n(T), {
2365
2371
  name: "name",
2366
2372
  label: "名称",
2367
2373
  required: "",
@@ -2372,24 +2378,24 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2372
2378
  },
2373
2379
  onChange: C
2374
2380
  }, null, 8, ["rules"]),
2375
- v(n(B), {
2381
+ v(n(T), {
2376
2382
  name: "title",
2377
2383
  label: "标题",
2378
2384
  required: ""
2379
2385
  }),
2380
- o.value?.fromType === "Plugin" ? (p(), y(n(B), {
2386
+ o.value?.fromType === "Plugin" ? (p(), y(n(T), {
2381
2387
  key: 0,
2382
2388
  name: "library",
2383
2389
  label: "插件名称",
2384
2390
  required: ""
2385
2391
  })) : A("", !0),
2386
- ["Plugin", "UrlSchema"].includes(o.value?.fromType || "") ? (p(), y(n(B), {
2392
+ ["Plugin", "UrlSchema"].includes(o.value?.fromType || "") ? (p(), y(n(T), {
2387
2393
  key: 1,
2388
2394
  name: "urls",
2389
2395
  label: "资源文件",
2390
2396
  required: "",
2391
2397
  editor: Wt,
2392
- props: { attachment: { accept: f.value, multiple: b.value } }
2398
+ props: { attachment: { accept: f.value, multiple: h.value } }
2393
2399
  }, null, 8, ["props"])) : A("", !0)
2394
2400
  ]),
2395
2401
  _: 1
@@ -2417,16 +2423,16 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2417
2423
  title: "组件库",
2418
2424
  body: { flex: !0, direction: "column" }
2419
2425
  }, {
2420
- default: h(() => [
2426
+ default: b(() => [
2421
2427
  V("div", Ho, [
2422
2428
  v(n(_e), {
2423
2429
  modelValue: n(r),
2424
- "onUpdate:modelValue": f[0] || (f[0] = (b) => gt(r) ? r.value = b : null),
2430
+ "onUpdate:modelValue": f[0] || (f[0] = (h) => gt(r) ? r.value = h : null),
2425
2431
  placeholder: "搜索组件",
2426
2432
  clearable: "",
2427
2433
  size: "small"
2428
2434
  }, {
2429
- prefix: h(() => [
2435
+ prefix: b(() => [
2430
2436
  v(n(fs))
2431
2437
  ]),
2432
2438
  _: 1
@@ -2437,17 +2443,17 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2437
2443
  wrap: "wrap",
2438
2444
  gutter: 5
2439
2445
  }, {
2440
- default: h(() => [
2441
- (p(!0), j(O, null, L(n(i), (b) => (p(), y(n(yt), {
2446
+ default: b(() => [
2447
+ (p(!0), j(O, null, L(n(i), (h) => (p(), y(n(yt), {
2442
2448
  span: n(e),
2443
- key: b.name
2449
+ key: h.name
2444
2450
  }, {
2445
- default: h(() => [
2451
+ default: b(() => [
2446
2452
  v(n(xt), {
2447
- name: b.name,
2448
- title: b.label || b.name,
2453
+ name: h.name,
2454
+ title: h.label || h.name,
2449
2455
  draggable: "",
2450
- onDragstart: (c) => g(b),
2456
+ onDragstart: (c) => g(h),
2451
2457
  onDragend: d
2452
2458
  }, null, 8, ["name", "title", "onDragstart"])
2453
2459
  ]),
@@ -2461,38 +2467,38 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2461
2467
  key: 1,
2462
2468
  items: n(l),
2463
2469
  modelValue: n(s),
2464
- "onUpdate:modelValue": f[2] || (f[2] = (b) => gt(s) ? s.value = b : null)
2470
+ "onUpdate:modelValue": f[2] || (f[2] = (h) => gt(s) ? s.value = h : null)
2465
2471
  }, {
2466
- default: h(() => [
2472
+ default: b(() => [
2467
2473
  V("div", Xo, [
2468
2474
  n(a) ? (p(), y(n(sl), {
2469
2475
  key: 0,
2470
2476
  modelValue: n(o)[n(s)],
2471
- "onUpdate:modelValue": f[1] || (f[1] = (b) => n(o)[n(s)] = b)
2477
+ "onUpdate:modelValue": f[1] || (f[1] = (h) => n(o)[n(s)] = h)
2472
2478
  }, {
2473
- default: h(() => [
2474
- (p(!0), j(O, null, L(n(a).children, (b) => (p(), y(n(al), {
2475
- key: b.name,
2476
- name: b.name,
2477
- title: `${b.label} (${b.count})`
2479
+ default: b(() => [
2480
+ (p(!0), j(O, null, L(n(a).children, (h) => (p(), y(n(al), {
2481
+ key: h.name,
2482
+ name: h.name,
2483
+ title: `${h.label} (${h.count})`
2478
2484
  }, {
2479
- default: h(() => [
2480
- b.components ? (p(), y(n(bt), {
2485
+ default: b(() => [
2486
+ h.components ? (p(), y(n(bt), {
2481
2487
  key: 0,
2482
2488
  wrap: "wrap",
2483
2489
  gutter: 5
2484
2490
  }, {
2485
- default: h(() => [
2486
- (p(!0), j(O, null, L(b.components, (c) => (p(), y(n(yt), {
2491
+ default: b(() => [
2492
+ (p(!0), j(O, null, L(h.components, (c) => (p(), y(n(yt), {
2487
2493
  span: n(e),
2488
2494
  key: c.name
2489
2495
  }, {
2490
- default: h(() => [
2496
+ default: b(() => [
2491
2497
  v(n(xt), {
2492
2498
  name: c.name,
2493
2499
  title: c.label || c.name,
2494
2500
  draggable: "",
2495
- onDragstart: (w) => g(c),
2501
+ onDragstart: (_) => g(c),
2496
2502
  onDragend: d
2497
2503
  }, null, 8, ["name", "title", "onDragstart"])
2498
2504
  ]),
@@ -2519,13 +2525,13 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2519
2525
  name: "OutlineWidget",
2520
2526
  __name: "index",
2521
2527
  setup(u) {
2522
- const { engine: e, designer: t, selected: l } = xe(), { current: s } = ue(), a = k([]), o = (D, T) => {
2523
- if (T === "slot") return [];
2528
+ const { engine: e, designer: t, selected: l } = xe(), { current: s } = ue(), a = k([]), o = (D, B) => {
2529
+ if (B === "slot") return [];
2524
2530
  if (te(D))
2525
2531
  return D.locked ? ["unlock"] : ["lock"];
2526
2532
  const P = D.parent;
2527
2533
  return P && (P.locked || P.invisible) ? [] : s.value?.locked ? [] : D.locked ? ["unlock"] : D.invisible ? ["visible"] : ["lock", "invisible", "copy", "remove"];
2528
- }, r = (D, T) => {
2534
+ }, r = (D, B) => {
2529
2535
  const P = {};
2530
2536
  if (!D.some((W) => W.slot)) return i(D);
2531
2537
  for (const W of D) {
@@ -2535,16 +2541,16 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2535
2541
  const me = [];
2536
2542
  for (const [W, q] of Object.entries(P))
2537
2543
  me.push({
2538
- id: `${T.id}-${W}`,
2544
+ id: `${B.id}-${W}`,
2539
2545
  label: `#${W}`,
2540
2546
  type: "slot",
2541
- model: T,
2547
+ model: B,
2542
2548
  disabled: !0,
2543
2549
  children: i(q)
2544
2550
  });
2545
2551
  return me;
2546
2552
  }, i = (D) => {
2547
- const T = [];
2553
+ const B = [];
2548
2554
  return D.forEach((P) => {
2549
2555
  const G = {
2550
2556
  id: P.id,
@@ -2553,15 +2559,15 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2553
2559
  //getNodeType(model),
2554
2560
  model: P
2555
2561
  };
2556
- Array.isArray(P.children) && (G.children = r(P.children, P)), T.push(G);
2557
- }), T;
2562
+ Array.isArray(P.children) && (G.children = r(P.children, P)), B.push(G);
2563
+ }), B;
2558
2564
  }, g = () => {
2559
2565
  if (!s.value) return [];
2560
- const { id: D, name: T, nodes: P } = s.value;
2566
+ const { id: D, name: B, nodes: P } = s.value;
2561
2567
  return [
2562
2568
  {
2563
2569
  id: D,
2564
- label: T,
2570
+ label: B,
2565
2571
  type: D,
2566
2572
  model: s.value,
2567
2573
  children: i(P)
@@ -2570,13 +2576,13 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2570
2576
  }, d = async () => {
2571
2577
  a.value = g(), l.value?.model && (await ke(), t.value?.setSelected(l.value.model));
2572
2578
  }, m = S(() => l.value?.model.id), f = (D) => {
2573
- const T = D.data;
2574
- if (T.type === "slot" || te(T.model) || T.model.locked || T.model.name === "template")
2579
+ const B = D.data;
2580
+ if (B.type === "slot" || te(B.model) || B.model.locked || B.model.name === "template")
2575
2581
  return !1;
2576
- const P = e.assets.componentMap.get(T.model.name);
2582
+ const P = e.assets.componentMap.get(B.model.name);
2577
2583
  return P ? (t.value?.setDragging(P), !0) : !1;
2578
- }, b = async (D, T, P) => {
2579
- const G = T.data, W = {
2584
+ }, h = async (D, B, P) => {
2585
+ const G = B.data, W = {
2580
2586
  prev: "top",
2581
2587
  next: "bottom",
2582
2588
  inner: "inner"
@@ -2590,17 +2596,17 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2590
2596
  }
2591
2597
  return q;
2592
2598
  }, c = (D) => {
2593
- const T = D?.model;
2594
- if (!T || T.invisible || D.type === "slot") {
2599
+ const B = D?.model;
2600
+ if (!B || B.invisible || D.type === "slot") {
2595
2601
  t.value?.setSelected(null), t.value?.setHover(null);
2596
2602
  return;
2597
2603
  }
2598
- t.value?.setSelected(T), t.value?.setHover(null);
2599
- }, w = async (D, T, P) => {
2600
- const G = D.data, me = T.data;
2604
+ t.value?.setSelected(B), t.value?.setHover(null);
2605
+ }, _ = async (D, B, P) => {
2606
+ const G = D.data, me = B.data;
2601
2607
  if (te(me.model)) {
2602
- const We = G.model;
2603
- delete We.slot, s.value?.move(We, void 0, "inner"), t.value?.setDropping(null), t.value?.setDragging(null);
2608
+ const Le = G.model;
2609
+ delete Le.slot, s.value?.move(Le, void 0, "inner"), t.value?.setDropping(null), t.value?.setDragging(null);
2604
2610
  return;
2605
2611
  }
2606
2612
  const W = me.model, q = { before: "left", after: "right" }[P] || "inner";
@@ -2608,7 +2614,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2608
2614
  W,
2609
2615
  q
2610
2616
  )) {
2611
- t.value?.setDropping(null), d(), Ke.warning({
2617
+ t.value?.setDropping(null), d(), Qe.warning({
2612
2618
  message: `${G.model.name}不能放置到该位置`
2613
2619
  }), t.value?.setDragging(null);
2614
2620
  return;
@@ -2617,12 +2623,12 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2617
2623
  P === "inner" ? W : W.parent
2618
2624
  );
2619
2625
  if ($e !== null) {
2620
- const We = G.model;
2621
- We.slot = $e, s.value?.move(We, W, q);
2626
+ const Le = G.model;
2627
+ Le.slot = $e, s.value?.move(Le, W, q);
2622
2628
  } else
2623
2629
  d();
2624
2630
  t.value?.setDropping(null), t.value?.setDragging(null), e.simulator.refresh();
2625
- }, _ = (D) => {
2631
+ }, w = (D) => {
2626
2632
  if (D.type === "slot") {
2627
2633
  t.value?.setHover(null);
2628
2634
  return;
@@ -2631,18 +2637,18 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2631
2637
  }, x = () => {
2632
2638
  t.value?.setHover(null);
2633
2639
  }, C = (D) => {
2634
- const T = D.data;
2635
- T.dragging = !0;
2636
- const P = e.assets.componentMap.get(T.model.name);
2640
+ const B = D.data;
2641
+ B.dragging = !0;
2642
+ const P = e.assets.componentMap.get(B.model.name);
2637
2643
  P && t.value?.setDragging(P);
2638
2644
  }, I = async (D) => {
2639
- const T = D.data;
2640
- T.dragging = !1;
2641
- }, z = (D, T) => {
2642
- D && ((D.id === T.id || !te(D) && T.isChild(D)) && t.value?.setSelected(null), t.value?.setHover(null));
2645
+ const B = D.data;
2646
+ B.dragging = !1;
2647
+ }, z = (D, B) => {
2648
+ D && ((D.id === B.id || !te(D) && B.isChild(D)) && t.value?.setSelected(null), t.value?.setHover(null));
2643
2649
  }, R = (D) => {
2644
- const { name: T, modelValue: P } = D, G = l.value?.model;
2645
- switch (T) {
2650
+ const { name: B, modelValue: P } = D, G = l.value?.model;
2651
+ switch (B) {
2646
2652
  case "lock":
2647
2653
  z(G, P), P.lock();
2648
2654
  break;
@@ -2664,11 +2670,11 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2664
2670
  break;
2665
2671
  }
2666
2672
  };
2667
- return J(e.changed, d, { immediate: !0 }), (D, T) => (p(), y(n(H), {
2673
+ return J(e.changed, d, { immediate: !0 }), (D, B) => (p(), y(n(H), {
2668
2674
  class: "v-outline-widget",
2669
2675
  title: "大纲树"
2670
2676
  }, {
2671
- default: h(() => [
2677
+ default: b(() => [
2672
2678
  (p(), y(n(Pt), {
2673
2679
  key: n(e).changed.value,
2674
2680
  data: a.value,
@@ -2679,14 +2685,14 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2679
2685
  "current-node-key": m.value,
2680
2686
  "highlight-current": !0,
2681
2687
  "expand-on-click-node": !1,
2682
- "allow-drop": b,
2688
+ "allow-drop": h,
2683
2689
  "allow-drag": f,
2684
2690
  onCurrentChange: c,
2685
- onNodeDrop: w,
2691
+ onNodeDrop: _,
2686
2692
  onNodeDragStart: C,
2687
2693
  onNodeDragEnd: I
2688
2694
  }, {
2689
- default: h(({ data: P, node: G }) => [
2695
+ default: b(({ data: P, node: G }) => [
2690
2696
  v(n(ce), {
2691
2697
  class: X(["v-outline-widget__item", {
2692
2698
  "is-locked": P.model.locked,
@@ -2705,7 +2711,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2705
2711
  subtitle: P.type,
2706
2712
  actions: o(P.model, P.type),
2707
2713
  onAction: R,
2708
- onMouseenter: (me) => _(P),
2714
+ onMouseenter: (me) => w(P),
2709
2715
  onMouseleave: x
2710
2716
  }, null, 8, ["class", "active", "model-value", "icon", "title", "subtitle", "actions", "onMouseenter"])
2711
2717
  ]),
@@ -2731,7 +2737,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2731
2737
  remove: !!n(l),
2732
2738
  onRemove: o
2733
2739
  }, {
2734
- default: h(() => [
2740
+ default: b(() => [
2735
2741
  n(l) === 0 ? (p(), y(n(oe), {
2736
2742
  key: 0,
2737
2743
  "image-size": 50
@@ -2759,25 +2765,25 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2759
2765
  value: t.toLowerCase()
2760
2766
  }));
2761
2767
  return (t, l) => (p(), j("div", null, [
2762
- v(n(B), {
2768
+ v(n(T), {
2763
2769
  name: "method",
2764
2770
  label: "请求类型",
2765
2771
  required: "",
2766
2772
  editor: "radio",
2767
2773
  options: n(e)
2768
2774
  }, null, 8, ["options"]),
2769
- v(n(B), {
2775
+ v(n(T), {
2770
2776
  name: "name",
2771
2777
  label: "接口名称",
2772
2778
  required: "",
2773
2779
  rules: { pattern: n(we), message: "名称格式不正确" }
2774
2780
  }, null, 8, ["rules"]),
2775
- v(n(B), {
2781
+ v(n(T), {
2776
2782
  name: "label",
2777
2783
  label: "备注说明",
2778
2784
  required: ""
2779
2785
  }),
2780
- v(n(B), {
2786
+ v(n(T), {
2781
2787
  name: "url",
2782
2788
  label: "接口URL",
2783
2789
  required: ""
@@ -2815,32 +2821,32 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2815
2821
  ], t = Ct("currentModel", null);
2816
2822
  return (l, s) => (p(), j("div", null, [
2817
2823
  v(n(U), { justify: "space-between" }, {
2818
- default: h(() => [
2819
- v(n(B), {
2824
+ default: b(() => [
2825
+ v(n(T), {
2820
2826
  name: "settings.loading",
2821
2827
  size: "small",
2822
2828
  label: "加载提示",
2823
2829
  editor: "switch"
2824
2830
  }),
2825
- v(n(B), {
2831
+ v(n(T), {
2826
2832
  size: "small",
2827
2833
  name: "settings.failMessage",
2828
2834
  label: "失败提示",
2829
2835
  editor: "switch"
2830
2836
  }),
2831
- v(n(B), {
2837
+ v(n(T), {
2832
2838
  size: "small",
2833
2839
  name: "settings.validSuccess",
2834
2840
  label: "校验成功",
2835
2841
  editor: "switch"
2836
2842
  }),
2837
- v(n(B), {
2843
+ v(n(T), {
2838
2844
  size: "small",
2839
2845
  name: "settings.originResponse",
2840
2846
  label: "原始响应",
2841
2847
  editor: "switch"
2842
2848
  }),
2843
- v(n(B), {
2849
+ v(n(T), {
2844
2850
  size: "small",
2845
2851
  name: "settings.injectHeaders",
2846
2852
  label: "注入请求头",
@@ -2849,7 +2855,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2849
2855
  ]),
2850
2856
  _: 1
2851
2857
  }),
2852
- v(n(B), {
2858
+ v(n(T), {
2853
2859
  size: "small",
2854
2860
  name: "settings.type",
2855
2861
  label: "发送数据类型",
@@ -2857,13 +2863,13 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2857
2863
  options: e,
2858
2864
  props: { button: !0 }
2859
2865
  }),
2860
- v(n(B), {
2866
+ v(n(T), {
2861
2867
  size: "small",
2862
2868
  name: "headers.value",
2863
2869
  label: "请求头配置",
2864
2870
  tip: "支持 JSExpression 或 JSFunction"
2865
2871
  }, {
2866
- editor: h(() => [
2872
+ editor: b(() => [
2867
2873
  v(n(se), {
2868
2874
  dark: "",
2869
2875
  height: "260px",
@@ -2879,23 +2885,23 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2879
2885
  __name: "jsonp-options",
2880
2886
  setup(u) {
2881
2887
  return (e, t) => (p(), j("div", null, [
2882
- v(n(B), {
2888
+ v(n(T), {
2883
2889
  name: "jsonpOptions.jsonpCallback",
2884
2890
  size: "small",
2885
2891
  label: "jsonpCallback"
2886
2892
  }),
2887
- v(n(B), {
2893
+ v(n(T), {
2888
2894
  name: "jsonpOptions.jsonpCallbackFunction",
2889
2895
  size: "small",
2890
2896
  label: "jsonpCallbackFunction"
2891
2897
  }),
2892
- v(n(B), {
2898
+ v(n(T), {
2893
2899
  name: "jsonpOptions.timeout",
2894
2900
  size: "small",
2895
2901
  label: "timeout",
2896
2902
  editor: "number"
2897
2903
  }),
2898
- v(n(B), {
2904
+ v(n(T), {
2899
2905
  name: "jsonpOptions.crossorigin",
2900
2906
  size: "small",
2901
2907
  label: "crossorigin",
@@ -2917,7 +2923,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2917
2923
  closable: !1,
2918
2924
  style: { "margin-bottom": "20px" }
2919
2925
  })),
2920
- v(n(B), {
2926
+ v(n(T), {
2921
2927
  size: "small",
2922
2928
  name: "mock",
2923
2929
  label: "开启模拟数据",
@@ -2925,7 +2931,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2925
2931
  editor: "switch"
2926
2932
  }, null, 8, ["disabled"]),
2927
2933
  v(n(U), { justify: "space-between" }, {
2928
- default: h(() => [
2934
+ default: b(() => [
2929
2935
  o[1] || (o[1] = V("span", null, "模拟数据模板", -1)),
2930
2936
  v(n(be), {
2931
2937
  icon: n(Dn),
@@ -2936,12 +2942,12 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2936
2942
  ]),
2937
2943
  _: 1
2938
2944
  }),
2939
- v(n(B), {
2945
+ v(n(T), {
2940
2946
  size: "small",
2941
2947
  name: "mockTemplate.value",
2942
2948
  label: " "
2943
2949
  }, {
2944
- editor: h(() => [
2950
+ editor: b(() => [
2945
2951
  v(n(se), {
2946
2952
  dark: "",
2947
2953
  height: l.value.mock ? "330px" : "280px",
@@ -2981,57 +2987,57 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
2981
2987
  const d = S(() => o.value?.method === "jsonp");
2982
2988
  J(
2983
2989
  () => e.model,
2984
- (w) => {
2985
- o.value = Object.assign({}, w || {}), l.value = "base";
2990
+ (_) => {
2991
+ o.value = Object.assign({}, _ || {}), l.value = "base";
2986
2992
  },
2987
2993
  {
2988
2994
  immediate: !0
2989
2995
  }
2990
2996
  ), J(l, async () => {
2991
- a.value?.formRef.validate(async (w) => {
2992
- w || (await ke(), l.value = "base");
2997
+ a.value?.formRef.validate(async (_) => {
2998
+ _ || (await ke(), l.value = "base");
2993
2999
  });
2994
3000
  });
2995
3001
  const m = () => {
2996
3002
  s.value?.cancel();
2997
3003
  }, f = () => {
2998
3004
  a.value?.submit();
2999
- }, b = async (w) => e.project?.existApiName(
3005
+ }, h = async (_) => e.project?.existApiName(
3000
3006
  o.value.name,
3001
3007
  e.model ? [o.value.id] : []
3002
3008
  ) ? (le(`API名称 [ ${o.value.name} ] 已存在`), !1) : o.value.headers && !re(o.value.headers, window) || o.value.mockTemplate && !re(o.value.mockTemplate, window) ? !1 : (e.project?.setApi(o.value), s.value?.close(), !0), c = () => {
3003
3009
  if (o.value.mockTemplate) {
3004
- const w = qe(
3010
+ const _ = He(
3005
3011
  o.value.mockTemplate,
3006
3012
  {},
3007
3013
  !0
3008
- ), { url: _, method: x } = o.value, C = Ta.mock(
3009
- w({
3010
- url: _,
3014
+ ), { url: w, method: x } = o.value, C = Ba.mock(
3015
+ _({
3016
+ url: w,
3011
3017
  type: x
3012
3018
  })
3013
3019
  );
3014
3020
  i.value = JSON.stringify(C, null, 2), r.value = !0;
3015
3021
  }
3016
3022
  };
3017
- return (w, _) => (p(), y(n(Te), {
3023
+ return (_, w) => (p(), y(n(Be), {
3018
3024
  ref_key: "dialogRef",
3019
3025
  ref: s,
3020
3026
  title: t.value,
3021
3027
  width: "1000px",
3022
3028
  height: "600px"
3023
3029
  }, {
3024
- default: h(() => [
3030
+ default: b(() => [
3025
3031
  v(n(U), { fit: "" }, {
3026
- default: h(() => [
3032
+ default: b(() => [
3027
3033
  v(n(U), {
3028
3034
  width: "100px",
3029
3035
  shrink: !1
3030
3036
  }, {
3031
- default: h(() => [
3037
+ default: b(() => [
3032
3038
  v(n(Dt), {
3033
3039
  modelValue: l.value,
3034
- "onUpdate:modelValue": _[0] || (_[0] = (x) => l.value = x),
3040
+ "onUpdate:modelValue": w[0] || (w[0] = (x) => l.value = x),
3035
3041
  items: g,
3036
3042
  "tab-position": "left",
3037
3043
  border: "",
@@ -3048,9 +3054,9 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3048
3054
  shrink: !0,
3049
3055
  fit: ""
3050
3056
  }, {
3051
- footer: h(() => [
3057
+ footer: b(() => [
3052
3058
  v(n(U), { justify: "space-between" }, {
3053
- default: h(() => [
3059
+ default: b(() => [
3054
3060
  V("div", null, [
3055
3061
  l.value === "mock" ? (p(), y(n(ae), {
3056
3062
  key: 0,
@@ -3058,7 +3064,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3058
3064
  type: "warning",
3059
3065
  onClick: c
3060
3066
  }, {
3061
- default: h(() => _[2] || (_[2] = [
3067
+ default: b(() => w[2] || (w[2] = [
3062
3068
  K(" 预览 ")
3063
3069
  ])),
3064
3070
  _: 1
@@ -3066,7 +3072,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3066
3072
  ]),
3067
3073
  V("div", null, [
3068
3074
  v(n(ae), { onClick: m }, {
3069
- default: h(() => _[3] || (_[3] = [
3075
+ default: b(() => w[3] || (w[3] = [
3070
3076
  K("取消")
3071
3077
  ])),
3072
3078
  _: 1
@@ -3075,7 +3081,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3075
3081
  type: "primary",
3076
3082
  onClick: f
3077
3083
  }, {
3078
- default: h(() => _[4] || (_[4] = [
3084
+ default: b(() => w[4] || (w[4] = [
3079
3085
  K("保存")
3080
3086
  ])),
3081
3087
  _: 1
@@ -3085,7 +3091,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3085
3091
  _: 1
3086
3092
  })
3087
3093
  ]),
3088
- default: h(() => [
3094
+ default: b(() => [
3089
3095
  v(n(It), {
3090
3096
  ref_key: "formRef",
3091
3097
  ref: a,
@@ -3093,11 +3099,11 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3093
3099
  labelPosition: "top",
3094
3100
  tooltipMessage: !1,
3095
3101
  model: o.value,
3096
- submitMethod: b
3102
+ submitMethod: h
3097
3103
  }, {
3098
- default: h(() => [
3104
+ default: b(() => [
3099
3105
  Pe(v(Zo, null, null, 512), [
3100
- [Be, l.value === "base"]
3106
+ [Te, l.value === "base"]
3101
3107
  ]),
3102
3108
  l.value === "settings" ? (p(), j("div", lr, [
3103
3109
  d.value ? (p(), y(tr, { key: 0 })) : (p(), y(er, { key: 1 }))
@@ -3116,13 +3122,13 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3116
3122
  key: 0,
3117
3123
  class: "v-drawer",
3118
3124
  modelValue: r.value,
3119
- "onUpdate:modelValue": _[1] || (_[1] = (x) => r.value = x),
3125
+ "onUpdate:modelValue": w[1] || (w[1] = (x) => r.value = x),
3120
3126
  title: "模拟数据结果",
3121
3127
  direction: "btt",
3122
3128
  "append-to-body": "",
3123
3129
  size: "80%"
3124
3130
  }, {
3125
- default: h(() => [
3131
+ default: b(() => [
3126
3132
  v(n(se), {
3127
3133
  "model-value": i.value,
3128
3134
  border: "",
@@ -3143,7 +3149,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3143
3149
  setup(u) {
3144
3150
  const e = k(!1), t = k(null), l = k(""), s = k(!1), a = S(() => {
3145
3151
  const f = o.value?.apis || [];
3146
- return l.value ? f.filter((b) => b.name.includes(l.value) || b.label?.includes(l.value) || b.url.includes(l.value)) : f;
3152
+ return l.value ? f.filter((h) => h.name.includes(l.value) || h.label?.includes(l.value) || h.url.includes(l.value)) : f;
3147
3153
  }), { project: o } = Re(), r = () => ({
3148
3154
  id: "",
3149
3155
  method: "get",
@@ -3187,18 +3193,18 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3187
3193
  }, m = (f) => {
3188
3194
  s.value = !0, t.value = ot(f), e.value = !0;
3189
3195
  };
3190
- return (f, b) => (p(), y(n(H), {
3196
+ return (f, h) => (p(), y(n(H), {
3191
3197
  class: "v-apis-widget",
3192
3198
  title: "API管理",
3193
3199
  plus: "",
3194
3200
  onPlus: i
3195
3201
  }, {
3196
- default: h(() => [
3202
+ default: b(() => [
3197
3203
  V("div", ar, [
3198
3204
  v(n(_e), {
3199
3205
  size: "small",
3200
3206
  modelValue: l.value,
3201
- "onUpdate:modelValue": b[0] || (b[0] = (c) => l.value = c),
3207
+ "onUpdate:modelValue": h[0] || (h[0] = (c) => l.value = c),
3202
3208
  "prefix-icon": n(Rt),
3203
3209
  placeholder: "搜索API",
3204
3210
  clearable: ""
@@ -3214,7 +3220,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3214
3220
  "tag-type": g[c.method || "get"],
3215
3221
  background: "",
3216
3222
  actions: ["edit", "remove"],
3217
- onClick: (w) => m(c),
3223
+ onClick: (_) => m(c),
3218
3224
  onAction: d
3219
3225
  }, null, 8, ["title", "subtitle", "model-value", "tag", "tag-type", "onClick"]))), 128)),
3220
3226
  a.value.length === 0 ? (p(), y(n(oe), {
@@ -3223,7 +3229,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3223
3229
  })) : A("", !0),
3224
3230
  v(sr, {
3225
3231
  modelValue: e.value,
3226
- "onUpdate:modelValue": b[1] || (b[1] = (c) => e.value = c),
3232
+ "onUpdate:modelValue": h[1] || (h[1] = (c) => e.value = c),
3227
3233
  model: t.value,
3228
3234
  project: n(o)
3229
3235
  }, null, 8, ["modelValue", "model", "project"])
@@ -3235,7 +3241,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3235
3241
  name: "DepsWidget",
3236
3242
  __name: "index",
3237
3243
  setup(u) {
3238
- const { dependencies: e, engine: t } = Tn(), l = k(!1), s = k(!1), a = k({}), o = S(() => s.value ? "查看依赖" : a.value ? "编辑依赖" : "新增依赖"), r = (c) => c.required || c.official ? [] : ["edit", "remove"], i = (c) => c.official && !c.required, g = async (c) => (c.urls = c.urls.split(`
3244
+ const { dependencies: e, engine: t } = Bn(), l = k(!1), s = k(!1), a = k({}), o = S(() => s.value ? "查看依赖" : a.value ? "编辑依赖" : "新增依赖"), r = (c) => c.required || c.official ? [] : ["edit", "remove"], i = (c) => c.official && !c.required, g = async (c) => (c.urls = c.urls.split(`
3239
3245
  `), c.enabled = !0, c.official = !1, t.project.value?.setDeps(c), !0), d = (c) => {
3240
3246
  t.project.value?.setDeps(c);
3241
3247
  }, m = () => {
@@ -3246,38 +3252,38 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3246
3252
  urls: c.urls.join(`
3247
3253
  `)
3248
3254
  }, l.value = !0;
3249
- }, b = (c, w) => {
3250
- w.name === "edit" && (a.value = {
3255
+ }, h = (c, _) => {
3256
+ _.name === "edit" && (a.value = {
3251
3257
  ...c,
3252
3258
  enabled: !0,
3253
3259
  official: !1,
3254
3260
  urls: c.urls.join(`
3255
3261
  `)
3256
- }, s.value = !1, l.value = !0), w.name === "remove" && t.project.value?.removeDeps(c);
3262
+ }, s.value = !1, l.value = !0), _.name === "remove" && t.project.value?.removeDeps(c);
3257
3263
  };
3258
- return (c, w) => (p(), y(n(H), {
3264
+ return (c, _) => (p(), y(n(H), {
3259
3265
  class: "v-deps-widget",
3260
3266
  title: "依赖管理",
3261
3267
  plus: "",
3262
3268
  onPlus: m
3263
3269
  }, {
3264
- default: h(() => [
3265
- (p(!0), j(O, null, L(n(e), (_) => (p(), y(n(ce), {
3266
- key: _.package,
3267
- title: _.package,
3268
- subtitle: _.version,
3269
- actions: r(_),
3270
+ default: b(() => [
3271
+ (p(!0), j(O, null, L(n(e), (w) => (p(), y(n(ce), {
3272
+ key: w.package,
3273
+ title: w.package,
3274
+ subtitle: w.version,
3275
+ actions: r(w),
3270
3276
  background: "",
3271
- switch: i(_),
3272
- modelValue: _.enabled,
3273
- "onUpdate:modelValue": (x) => _.enabled = x,
3274
- onSwitch: (x) => d(_),
3275
- onClick: (x) => f(_),
3276
- onAction: (x) => b(_, x)
3277
+ switch: i(w),
3278
+ modelValue: w.enabled,
3279
+ "onUpdate:modelValue": (x) => w.enabled = x,
3280
+ onSwitch: (x) => d(w),
3281
+ onClick: (x) => f(w),
3282
+ onAction: (x) => h(w, x)
3277
3283
  }, null, 8, ["title", "subtitle", "actions", "switch", "modelValue", "onUpdate:modelValue", "onSwitch", "onClick", "onAction"]))), 128)),
3278
3284
  v(n(Ae), {
3279
3285
  modelValue: l.value,
3280
- "onUpdate:modelValue": w[0] || (w[0] = (_) => l.value = _),
3286
+ "onUpdate:modelValue": _[0] || (_[0] = (w) => l.value = w),
3281
3287
  width: "600px",
3282
3288
  height: "500px",
3283
3289
  title: o.value,
@@ -3288,24 +3294,24 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3288
3294
  tooltipMessage: !1
3289
3295
  }
3290
3296
  }, {
3291
- default: h(() => [
3292
- v(n(B), {
3297
+ default: b(() => [
3298
+ v(n(T), {
3293
3299
  name: "package",
3294
3300
  label: "包名",
3295
3301
  required: "",
3296
3302
  disabled: !!a.value
3297
3303
  }, null, 8, ["disabled"]),
3298
- v(n(B), {
3304
+ v(n(T), {
3299
3305
  name: "version",
3300
3306
  label: "版本",
3301
3307
  required: ""
3302
3308
  }),
3303
- v(n(B), {
3309
+ v(n(T), {
3304
3310
  name: "library",
3305
3311
  label: "导出名称",
3306
3312
  required: ""
3307
3313
  }),
3308
- v(n(B), {
3314
+ v(n(T), {
3309
3315
  name: "urls",
3310
3316
  label: "资源文件",
3311
3317
  editor: "textarea",
@@ -3313,11 +3319,11 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3313
3319
  tip: "多个资源可以换行输入",
3314
3320
  required: ""
3315
3321
  }),
3316
- v(n(B), {
3322
+ v(n(T), {
3317
3323
  name: "assetsUrl",
3318
3324
  label: "物料URL"
3319
3325
  }),
3320
- v(n(B), {
3326
+ v(n(T), {
3321
3327
  name: "assetsLibrary",
3322
3328
  label: "物料名称"
3323
3329
  })
@@ -3411,34 +3417,34 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3411
3417
  inheritAttrs: !1,
3412
3418
  __name: "index",
3413
3419
  setup(u, { expose: e }) {
3414
- const t = k(), l = k(), { width: s, height: a } = Ge(t), { dependencies: o, engine: r, apis: i, meta: g } = Tn(), { current: d, isEmpty: m } = ue(), f = S(() => r.skeleton?.getWidget("Toolbar")?.widgetRef.mode ?? "pc"), b = S(() => r.project.value?.config || {}), { designer: c, hover: w, dropping: _, selected: x } = qa(
3420
+ const t = k(), l = k(), { width: s, height: a } = Xe(t), { dependencies: o, engine: r, apis: i, meta: g } = Bn(), { current: d, isEmpty: m } = ue(), f = S(() => r.skeleton?.getWidget("Toolbar")?.widgetRef.mode ?? "pc"), h = S(() => r.project.value?.config || {}), { designer: c, hover: _, dropping: w, selected: x } = qa(
3415
3421
  l,
3416
3422
  o,
3417
3423
  i,
3418
3424
  g,
3419
- b
3425
+ h
3420
3426
  ), C = (R) => {
3421
- const D = R.type, T = R.model;
3427
+ const D = R.type, B = R.model;
3422
3428
  if (d.value)
3423
3429
  switch (D) {
3424
3430
  case "remove":
3425
- d.value.removeNode(T), c.value?.setSelected(null);
3431
+ d.value.removeNode(B), c.value?.setSelected(null);
3426
3432
  break;
3427
3433
  case "copy":
3428
- const P = d.value.cloneNode(T);
3434
+ const P = d.value.cloneNode(B);
3429
3435
  c.value?.setSelected(P);
3430
3436
  break;
3431
3437
  case "prev":
3432
- d.value.movePrev(T), c.value?.setSelected(T);
3438
+ d.value.movePrev(B), c.value?.setSelected(B);
3433
3439
  break;
3434
3440
  case "next":
3435
- d.value.moveNext(T), c.value?.setSelected(T);
3441
+ d.value.moveNext(B), c.value?.setSelected(B);
3436
3442
  break;
3437
3443
  case "hover":
3438
- c.value?.setHover(T);
3444
+ c.value?.setHover(B);
3439
3445
  break;
3440
3446
  case "selected":
3441
- c.value?.setSelected(T);
3447
+ c.value?.setSelected(B);
3442
3448
  break;
3443
3449
  }
3444
3450
  }, I = (R) => {
@@ -3462,27 +3468,27 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3462
3468
  width: n(s),
3463
3469
  height: n(a)
3464
3470
  }, {
3465
- default: h(() => [
3471
+ default: b(() => [
3466
3472
  V("iframe", {
3467
3473
  ref_key: "iframe",
3468
3474
  ref: l,
3469
3475
  frameborder: "0"
3470
3476
  }, null, 512),
3471
- n(_) ? (p(), j("div", {
3477
+ n(w) ? (p(), j("div", {
3472
3478
  key: 0,
3473
3479
  class: X(["v-designer__dropping", "is-inner"]),
3474
- style: et(n(_).style)
3480
+ style: et(n(w).style)
3475
3481
  }, null, 4)) : A("", !0),
3476
- n(w) ? (p(), j("div", {
3482
+ n(_) ? (p(), j("div", {
3477
3483
  key: 1,
3478
3484
  class: "v-designer__hover",
3479
- style: et(n(w).style)
3485
+ style: et(n(_).style)
3480
3486
  }, [
3481
3487
  V("span", {
3482
- class: X(`is-${n(w).position}`)
3488
+ class: X(`is-${n(_).position}`)
3483
3489
  }, [
3484
- K(F(n(w).model.name) + ": ", 1),
3485
- V("i", null, F(n(w).model.id), 1)
3490
+ K(F(n(_).model.name) + ": ", 1),
3491
+ V("i", null, F(n(_).model.id), 1)
3486
3492
  ], 2)
3487
3493
  ], 4)) : A("", !0),
3488
3494
  n(x) ? (p(), j("div", {
@@ -3528,8 +3534,8 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3528
3534
  () => o.value ? `编辑${e.title}` : `新增${e.title}`
3529
3535
  ), i = () => {
3530
3536
  o.value = !1, a.value = e.createEmpty(), s.value = !0;
3531
- }, g = (c, w) => {
3532
- switch (w.name) {
3537
+ }, g = (c, _) => {
3538
+ switch (_.name) {
3533
3539
  case "edit":
3534
3540
  m(c);
3535
3541
  break;
@@ -3543,10 +3549,10 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3543
3549
  o.value = !0, a.value = {
3544
3550
  ...c
3545
3551
  }, s.value = !0;
3546
- }, f = async (c) => e.submit(c, o.value), b = () => {
3552
+ }, f = async (c) => e.submit(c, o.value), h = () => {
3547
3553
  l.value?.itemRef.validate();
3548
3554
  };
3549
- return (c, w) => (p(), y(n(H), {
3555
+ return (c, _) => (p(), y(n(H), {
3550
3556
  title: e.title,
3551
3557
  class: "v-sub-panel",
3552
3558
  size: "small",
@@ -3554,13 +3560,13 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3554
3560
  plus: "",
3555
3561
  onPlus: i
3556
3562
  }, {
3557
- default: h(() => [
3558
- (p(!0), j(O, null, L(c.list, (_) => (p(), y(n(ce), {
3559
- title: e.itemTitle(_),
3563
+ default: b(() => [
3564
+ (p(!0), j(O, null, L(c.list, (w) => (p(), y(n(ce), {
3565
+ title: e.itemTitle(w),
3560
3566
  border: "",
3561
3567
  actions: ["edit", "remove"],
3562
- onAction: (x) => g(_, x),
3563
- onClick: (x) => m(_)
3568
+ onAction: (x) => g(w, x),
3569
+ onClick: (x) => m(w)
3564
3570
  }, null, 8, ["title", "onAction", "onClick"]))), 256)),
3565
3571
  c.list.length ? A("", !0) : (p(), y(n(oe), {
3566
3572
  key: 0,
@@ -3568,7 +3574,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3568
3574
  })),
3569
3575
  v(n(Ft), {
3570
3576
  modelValue: s.value,
3571
- "onUpdate:modelValue": w[1] || (w[1] = (_) => s.value = _),
3577
+ "onUpdate:modelValue": _[1] || (_[1] = (w) => s.value = w),
3572
3578
  title: r.value,
3573
3579
  "submit-method": f,
3574
3580
  model: a.value,
@@ -3576,15 +3582,15 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3576
3582
  context: c.context,
3577
3583
  onPick: d
3578
3584
  }, {
3579
- default: h(() => [
3585
+ default: b(() => [
3580
3586
  Ce(c.$slots, "fields", an(on({ model: a.value, isEdit: o.value, nameLabel: c.nameLabel, valueLabel: c.valueLabel })), () => [
3581
- v(n(B), {
3587
+ v(n(T), {
3582
3588
  name: "name",
3583
3589
  label: c.nameLabel,
3584
3590
  required: "",
3585
3591
  disabled: o.value
3586
3592
  }, null, 8, ["label", "disabled"]),
3587
- v(n(B), {
3593
+ v(n(T), {
3588
3594
  class: "v-binder__editor",
3589
3595
  ref_key: "codeFieldRef",
3590
3596
  ref: l,
@@ -3592,15 +3598,15 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3592
3598
  label: c.valueLabel,
3593
3599
  required: ""
3594
3600
  }, {
3595
- editor: h(() => [
3601
+ editor: b(() => [
3596
3602
  v(n(se), {
3597
3603
  ref_key: "editorRef",
3598
3604
  ref: t,
3599
3605
  dark: "",
3600
3606
  height: "100%",
3601
3607
  modelValue: a.value.value,
3602
- "onUpdate:modelValue": w[0] || (w[0] = (_) => a.value.value = _),
3603
- onBlur: b
3608
+ "onUpdate:modelValue": _[0] || (_[0] = (w) => a.value.value = w),
3609
+ onBlur: h
3604
3610
  }, null, 8, ["modelValue"])
3605
3611
  ]),
3606
3612
  _: 1
@@ -3743,8 +3749,8 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3743
3749
  remove: a,
3744
3750
  submit: o
3745
3751
  }, {
3746
- fields: h(({ model: g, nameLabel: d, isEdit: m, valueLabel: f }) => [
3747
- v(n(B), {
3752
+ fields: b(({ model: g, nameLabel: d, isEdit: m, valueLabel: f }) => [
3753
+ v(n(T), {
3748
3754
  name: "name",
3749
3755
  label: d,
3750
3756
  editor: "select",
@@ -3752,19 +3758,19 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3752
3758
  required: "",
3753
3759
  disabled: m
3754
3760
  }, null, 8, ["label", "options", "disabled"]),
3755
- v(n(B), {
3761
+ v(n(T), {
3756
3762
  class: "v-binder__editor",
3757
3763
  name: "value",
3758
3764
  label: f,
3759
3765
  required: ""
3760
3766
  }, {
3761
- editor: h(() => [
3767
+ editor: b(() => [
3762
3768
  v(n(se), {
3763
3769
  ref: "editorRef",
3764
3770
  dark: "",
3765
3771
  height: "100%",
3766
3772
  modelValue: g.value,
3767
- "onUpdate:modelValue": (b) => g.value = b
3773
+ "onUpdate:modelValue": (h) => g.value = h
3768
3774
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
3769
3775
  ]),
3770
3776
  _: 2
@@ -3819,14 +3825,14 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3819
3825
  itemTitle: s,
3820
3826
  grow: ""
3821
3827
  }, {
3822
- fields: h(({ model: g, nameLabel: d, valueLabel: m }) => [
3823
- v(n(B), {
3828
+ fields: b(({ model: g, nameLabel: d, valueLabel: m }) => [
3829
+ v(n(T), {
3824
3830
  class: "v-binder__editor",
3825
3831
  name: "source",
3826
3832
  label: d,
3827
3833
  required: ""
3828
3834
  }, {
3829
- editor: h(() => [
3835
+ editor: b(() => [
3830
3836
  v(n(se), {
3831
3837
  dark: "",
3832
3838
  height: "100%",
@@ -3836,13 +3842,13 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3836
3842
  ]),
3837
3843
  _: 2
3838
3844
  }, 1032, ["label"]),
3839
- v(n(B), {
3845
+ v(n(T), {
3840
3846
  class: "v-binder__editor",
3841
3847
  name: "handler",
3842
3848
  label: m,
3843
3849
  required: ""
3844
3850
  }, {
3845
- editor: h(() => [
3851
+ editor: b(() => [
3846
3852
  v(n(se), {
3847
3853
  dark: "",
3848
3854
  height: "100%",
@@ -3852,14 +3858,14 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3852
3858
  ]),
3853
3859
  _: 2
3854
3860
  }, 1032, ["label"]),
3855
- v(n(B), {
3861
+ v(n(T), {
3856
3862
  name: "deep",
3857
3863
  modelValue: g.deep,
3858
3864
  "onUpdate:modelValue": (f) => g.deep = f,
3859
3865
  label: "深度监听",
3860
3866
  editor: "switch"
3861
3867
  }, null, 8, ["modelValue", "onUpdate:modelValue"]),
3862
- v(n(B), {
3868
+ v(n(T), {
3863
3869
  name: "immediate",
3864
3870
  modelValue: g.immediate,
3865
3871
  "onUpdate:modelValue": (f) => g.immediate = f,
@@ -3879,7 +3885,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3879
3885
  direction: "column",
3880
3886
  fit: ""
3881
3887
  }, {
3882
- default: h(() => [
3888
+ default: b(() => [
3883
3889
  v(dr, {
3884
3890
  current: n(e),
3885
3891
  context: n(t)
@@ -3930,16 +3936,16 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3930
3936
  size: "small",
3931
3937
  fit: !1
3932
3938
  }, {
3933
- default: h(() => [
3939
+ default: b(() => [
3934
3940
  v(n(fe), {
3935
3941
  class: "v-properties-widget__form",
3936
3942
  size: "small",
3937
3943
  "label-position": "right",
3938
3944
  "label-width": r.value,
3939
- onKeydown: g[0] || (g[0] = tt(Ne(() => {
3945
+ onKeydown: g[0] || (g[0] = tt(Je(() => {
3940
3946
  }, ["prevent", "stop"]), ["enter"]))
3941
3947
  }, {
3942
- default: h(() => [
3948
+ default: b(() => [
3943
3949
  (p(!0), j(O, null, L(t.items, (d) => (p(), y(n(M), ie({ ref_for: !0 }, d, {
3944
3950
  key: `${d.name}_${t.node.id}`,
3945
3951
  current: t.current,
@@ -3968,14 +3974,14 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3968
3974
  addCustom: g,
3969
3975
  removeCustom: d,
3970
3976
  isExist: m
3971
- } = Ka(l), f = k(!1), b = k(), c = () => {
3972
- f.value = !0, b.value = {
3977
+ } = Ka(l), f = k(!1), h = k(), c = () => {
3978
+ f.value = !0, h.value = {
3973
3979
  name: ""
3974
3980
  };
3975
- }, w = async (x) => {
3981
+ }, _ = async (x) => {
3976
3982
  const C = Object.keys(s.value?.props || {});
3977
3983
  return !m(x.name) && !C.includes(x.name) ? (g(x.name), !0) : (le("已存在该属性名称"), !1);
3978
- }, _ = async (x) => {
3984
+ }, w = async (x) => {
3979
3985
  await Fe("确定删除?") && d(x);
3980
3986
  };
3981
3987
  return (x, C) => n(e) ? (p(), y(n(U), {
@@ -3984,7 +3990,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
3984
3990
  direction: "column",
3985
3991
  fit: ""
3986
3992
  }, {
3987
- default: h(() => [
3993
+ default: b(() => [
3988
3994
  n(s) ? (p(), y(mt, {
3989
3995
  key: 0,
3990
3996
  title: "通用属性",
@@ -4015,7 +4021,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4015
4021
  plus: "",
4016
4022
  grow: "",
4017
4023
  onPlus: c,
4018
- onRemove: _
4024
+ onRemove: w
4019
4025
  }, null, 8, ["current", "context", "node", "items", "onChange"])) : A("", !0),
4020
4026
  v(n(Ae), {
4021
4027
  modelValue: f.value,
@@ -4023,12 +4029,12 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4023
4029
  title: "新增自定义属性",
4024
4030
  width: "400px",
4025
4031
  height: "150px",
4026
- "submit-method": w,
4032
+ "submit-method": _,
4027
4033
  formProps: { tooltipMessage: !1 },
4028
- model: b.value
4034
+ model: h.value
4029
4035
  }, {
4030
- default: h(() => [
4031
- v(n(B), {
4036
+ default: b(() => [
4037
+ v(n(T), {
4032
4038
  name: "name",
4033
4039
  label: "属性名称",
4034
4040
  required: "",
@@ -4053,7 +4059,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4053
4059
  value: {}
4054
4060
  },
4055
4061
  setup(u) {
4056
- const e = u, t = k(), l = Xe({
4062
+ const e = u, t = k(), l = Ke({
4057
4063
  type: "JSExpression",
4058
4064
  value: e.value
4059
4065
  }), s = (a) => {
@@ -4067,14 +4073,14 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4067
4073
  model: l,
4068
4074
  onPick: s
4069
4075
  }, {
4070
- default: h(() => [
4071
- v(n(B), {
4076
+ default: b(() => [
4077
+ v(n(T), {
4072
4078
  class: "v-binder__editor",
4073
4079
  name: "value",
4074
4080
  label: "绑定内容 [ JSExpression ]",
4075
4081
  required: ""
4076
4082
  }, {
4077
- editor: h(() => [
4083
+ editor: b(() => [
4078
4084
  v(n(se), {
4079
4085
  ref_key: "editorRef",
4080
4086
  ref: t,
@@ -4100,7 +4106,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4100
4106
  event: {}
4101
4107
  },
4102
4108
  setup(u) {
4103
- const e = u, t = k(), s = Xe({
4109
+ const e = u, t = k(), s = Ke({
4104
4110
  name: e.name,
4105
4111
  ...e.event,
4106
4112
  modifiers: Object.keys(e.event?.modifiers || {}),
@@ -4122,20 +4128,20 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4122
4128
  model: s,
4123
4129
  onPick: o
4124
4130
  }, {
4125
- default: h(() => [
4126
- v(n(B), {
4131
+ default: b(() => [
4132
+ v(n(T), {
4127
4133
  name: "modifiers",
4128
4134
  label: "事件修饰符",
4129
4135
  editor: "checkbox",
4130
4136
  options: n(a)
4131
4137
  }, null, 8, ["options"]),
4132
- v(n(B), {
4138
+ v(n(T), {
4133
4139
  class: "v-binder__editor",
4134
4140
  name: "handler.value",
4135
4141
  label: "事件处理函数 [ JSFunction ]",
4136
4142
  required: ""
4137
4143
  }, {
4138
- editor: h(() => [
4144
+ editor: b(() => [
4139
4145
  v(n(se), {
4140
4146
  ref_key: "editorRef",
4141
4147
  ref: t,
@@ -4161,48 +4167,48 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4161
4167
  }), i = k(!1), g = (c) => {
4162
4168
  r.value = ot(c), i.value = !0;
4163
4169
  }, d = async (c) => {
4164
- const w = {
4170
+ const _ = {
4165
4171
  ...c,
4166
4172
  modifiers: c.modifiers.reduce((x, C) => (x[C] = !0, x), {})
4167
4173
  };
4168
- return re(w.handler, t.value, !0) ? ((l.value?.model).setEvent(w), !0) : !1;
4174
+ return re(_.handler, t.value, !0) ? ((l.value?.model).setEvent(_), !0) : !1;
4169
4175
  }, m = async (c) => {
4170
- const w = l.value?.model;
4171
- c.name && (w.removeEvent(c.name), i.value = !1);
4176
+ const _ = l.value?.model;
4177
+ c.name && (_.removeEvent(c.name), i.value = !1);
4172
4178
  }, f = async () => {
4173
4179
  r.value.name && await Fe("确定要删除该事件吗?") && m(r.value);
4174
- }, b = (c) => {
4175
- const { name: w, modelValue: _ } = c;
4176
- w === "edit" && g(_), w === "remove" && m(_);
4180
+ }, h = (c) => {
4181
+ const { name: _, modelValue: w } = c;
4182
+ _ === "edit" && g(w), _ === "remove" && m(w);
4177
4183
  };
4178
- return (c, w) => (p(), y(n(U), {
4184
+ return (c, _) => (p(), y(n(U), {
4179
4185
  class: "v-events-widget",
4180
4186
  direction: "column",
4181
4187
  fit: ""
4182
4188
  }, {
4183
- default: h(() => [
4189
+ default: b(() => [
4184
4190
  v(n(H), {
4185
4191
  title: "组件事件",
4186
4192
  class: "v-sub-panel",
4187
4193
  size: "small",
4188
4194
  fit: !1
4189
4195
  }, {
4190
- default: h(() => [
4196
+ default: b(() => [
4191
4197
  n(o).length ? A("", !0) : (p(), y(n(oe), {
4192
4198
  key: 0,
4193
4199
  "image-size": 50,
4194
4200
  description: "该组件无自带事件"
4195
4201
  })),
4196
- (p(!0), j(O, null, L(n(o), (_) => (p(), y(n(ce), {
4197
- key: `component_${_.name}`,
4198
- title: _.name,
4199
- "model-value": _,
4202
+ (p(!0), j(O, null, L(n(o), (w) => (p(), y(n(ce), {
4203
+ key: `component_${w.name}`,
4204
+ title: w.name,
4205
+ "model-value": w,
4200
4206
  border: "",
4201
4207
  small: "",
4202
- actions: _.event ? ["edit", "remove"] : ["edit"],
4203
- active: !!_.event,
4204
- onClick: (x) => g(_),
4205
- onAction: b
4208
+ actions: w.event ? ["edit", "remove"] : ["edit"],
4209
+ active: !!w.event,
4210
+ onClick: (x) => g(w),
4211
+ onAction: h
4206
4212
  }, null, 8, ["title", "model-value", "actions", "active", "onClick"]))), 128))
4207
4213
  ]),
4208
4214
  _: 1
@@ -4213,17 +4219,17 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4213
4219
  size: "small",
4214
4220
  fit: !1
4215
4221
  }, {
4216
- default: h(() => [
4217
- (p(!0), j(O, null, L(n(s), (_) => (p(), y(n(ce), {
4218
- key: `mouse_${_.name}`,
4219
- title: _.name,
4220
- "model-value": _,
4222
+ default: b(() => [
4223
+ (p(!0), j(O, null, L(n(s), (w) => (p(), y(n(ce), {
4224
+ key: `mouse_${w.name}`,
4225
+ title: w.name,
4226
+ "model-value": w,
4221
4227
  border: "",
4222
4228
  small: "",
4223
- actions: _.event ? ["edit", "remove"] : ["edit"],
4224
- active: !!_.event,
4225
- onClick: (x) => g(_),
4226
- onAction: b
4229
+ actions: w.event ? ["edit", "remove"] : ["edit"],
4230
+ active: !!w.event,
4231
+ onClick: (x) => g(w),
4232
+ onAction: h
4227
4233
  }, null, 8, ["title", "model-value", "actions", "active", "onClick"]))), 128))
4228
4234
  ]),
4229
4235
  _: 1
@@ -4235,17 +4241,17 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4235
4241
  grow: "",
4236
4242
  fit: !1
4237
4243
  }, {
4238
- default: h(() => [
4239
- (p(!0), j(O, null, L(n(a), (_) => (p(), y(n(ce), {
4240
- key: `keyboard_${_.name}`,
4241
- title: _.name,
4242
- "model-value": _,
4244
+ default: b(() => [
4245
+ (p(!0), j(O, null, L(n(a), (w) => (p(), y(n(ce), {
4246
+ key: `keyboard_${w.name}`,
4247
+ title: w.name,
4248
+ "model-value": w,
4243
4249
  border: "",
4244
4250
  small: "",
4245
- actions: _.event ? ["edit", "remove"] : ["edit"],
4246
- active: !!_.event,
4247
- onClick: (x) => g(_),
4248
- onAction: b
4251
+ actions: w.event ? ["edit", "remove"] : ["edit"],
4252
+ active: !!w.event,
4253
+ onClick: (x) => g(w),
4254
+ onAction: h
4249
4255
  }, null, 8, ["title", "model-value", "actions", "active", "onClick"]))), 128))
4250
4256
  ]),
4251
4257
  _: 1
@@ -4253,7 +4259,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4253
4259
  i.value ? (p(), y(n(yr), {
4254
4260
  key: 0,
4255
4261
  modelValue: i.value,
4256
- "onUpdate:modelValue": w[0] || (w[0] = (_) => i.value = _),
4262
+ "onUpdate:modelValue": _[0] || (_[0] = (w) => i.value = w),
4257
4263
  context: n(t),
4258
4264
  current: n(e),
4259
4265
  name: r.value.name,
@@ -4283,7 +4289,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4283
4289
  save: "",
4284
4290
  onSave: a
4285
4291
  }, {
4286
- default: h(() => [
4292
+ default: b(() => [
4287
4293
  v(n(se), {
4288
4294
  ref_key: "editorRef",
4289
4295
  ref: t,
@@ -4310,27 +4316,27 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4310
4316
  onValueChange: g,
4311
4317
  onForChange: d,
4312
4318
  onModelChange: m
4313
- } = no(l), f = (b) => b.arg ? typeof b.arg == "string" ? b.arg : qe(b.arg, {}) : "modelValue";
4314
- return (b, c) => (p(), y(n(U), {
4319
+ } = no(l), f = (h) => h.arg ? typeof h.arg == "string" ? h.arg : He(h.arg, {}) : "modelValue";
4320
+ return (h, c) => (p(), y(n(U), {
4315
4321
  class: "v-directives-widget",
4316
4322
  direction: "column",
4317
4323
  fit: ""
4318
4324
  }, {
4319
- default: h(() => [
4325
+ default: b(() => [
4320
4326
  v(n(H), {
4321
4327
  class: "v-sub-panel",
4322
4328
  title: "内置指令",
4323
4329
  size: "small",
4324
4330
  fit: !1
4325
4331
  }, {
4326
- default: h(() => [
4332
+ default: b(() => [
4327
4333
  v(n(fe), {
4328
4334
  size: "small",
4329
4335
  "label-width": "80px",
4330
- onKeydown: c[0] || (c[0] = tt(Ne(() => {
4336
+ onKeydown: c[0] || (c[0] = tt(Je(() => {
4331
4337
  }, ["prevent", "stop"]), ["enter"]))
4332
4338
  }, {
4333
- default: h(() => [
4339
+ default: b(() => [
4334
4340
  v(n(M), {
4335
4341
  name: "vIf",
4336
4342
  label: "v-if",
@@ -4370,14 +4376,14 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4370
4376
  size: "small",
4371
4377
  fit: !1
4372
4378
  }, {
4373
- default: h(() => [
4379
+ default: b(() => [
4374
4380
  v(n(fe), {
4375
4381
  size: "small",
4376
4382
  "label-width": "80px",
4377
- onKeydown: c[1] || (c[1] = tt(Ne(() => {
4383
+ onKeydown: c[1] || (c[1] = tt(Je(() => {
4378
4384
  }, ["prevent", "stop"]), ["enter"]))
4379
4385
  }, {
4380
- default: h(() => [
4386
+ default: b(() => [
4381
4387
  v(n(M), {
4382
4388
  name: "value",
4383
4389
  label: "循环数据",
@@ -4424,31 +4430,31 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4424
4430
  fit: !1,
4425
4431
  grow: ""
4426
4432
  }, {
4427
- default: h(() => [
4428
- (p(!0), j(O, null, L(n(i), (w, _) => (p(), y(n(H), {
4433
+ default: b(() => [
4434
+ (p(!0), j(O, null, L(n(i), (_, w) => (p(), y(n(H), {
4429
4435
  card: "",
4430
4436
  border: "",
4431
4437
  class: "v-sub-panel",
4432
4438
  size: "small",
4433
- title: `v-model: ${f(w)}`,
4439
+ title: `v-model: ${f(_)}`,
4434
4440
  body: { grow: !1 },
4435
4441
  fit: !1
4436
4442
  }, {
4437
- default: h(() => [
4443
+ default: b(() => [
4438
4444
  v(n(fe), {
4439
4445
  size: "small",
4440
4446
  "label-width": "60px",
4441
- onKeydown: c[2] || (c[2] = tt(Ne(() => {
4447
+ onKeydown: c[2] || (c[2] = tt(Je(() => {
4442
4448
  }, ["prevent", "stop"]), ["enter"]))
4443
4449
  }, {
4444
- default: h(() => [
4450
+ default: b(() => [
4445
4451
  v(n(M), {
4446
- name: _.toString(),
4452
+ name: w.toString(),
4447
4453
  label: "绑定变量",
4448
4454
  setters: "ExpressionSetter",
4449
4455
  current: n(e),
4450
4456
  context: n(t),
4451
- value: w.value,
4457
+ value: _.value,
4452
4458
  onChange: n(m)
4453
4459
  }, null, 8, ["name", "current", "context", "value", "onChange"])
4454
4460
  ]),
@@ -4503,8 +4509,8 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4503
4509
  "form-props": { tooltipMessage: !1 },
4504
4510
  "submit-method": a
4505
4511
  }, {
4506
- default: h(() => [
4507
- v(n(B), {
4512
+ default: b(() => [
4513
+ v(n(T), {
4508
4514
  name: "name",
4509
4515
  label: "属性名称",
4510
4516
  required: "",
@@ -4515,7 +4521,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4515
4521
  pattern: n(we)
4516
4522
  }
4517
4523
  }, null, 8, ["disabled", "rules"]),
4518
- v(n(B), {
4524
+ v(n(T), {
4519
4525
  name: "type",
4520
4526
  label: "数据类型",
4521
4527
  editor: "checkbox",
@@ -4523,17 +4529,17 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4523
4529
  options: n(s),
4524
4530
  required: ""
4525
4531
  }, null, 8, ["options"]),
4526
- v(n(B), {
4532
+ v(n(T), {
4527
4533
  name: "required",
4528
4534
  label: "必须",
4529
4535
  editor: "switch"
4530
4536
  }),
4531
- v(n(B), {
4537
+ v(n(T), {
4532
4538
  name: "default.value",
4533
4539
  label: "默认值",
4534
4540
  editor: "none"
4535
4541
  }, {
4536
- default: h(() => [
4542
+ default: b(() => [
4537
4543
  v(n(se), {
4538
4544
  modelValue: l.value.default.value,
4539
4545
  "onUpdate:modelValue": r[0] || (r[0] = (i) => l.value.default.value = i),
@@ -4567,8 +4573,8 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4567
4573
  "form-props": { tooltipMessage: !1 },
4568
4574
  "submit-method": a
4569
4575
  }, {
4570
- default: h(() => [
4571
- v(n(B), {
4576
+ default: b(() => [
4577
+ v(n(T), {
4572
4578
  name: "name",
4573
4579
  label: "事件名称",
4574
4580
  required: "",
@@ -4578,7 +4584,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4578
4584
  pattern: n(we)
4579
4585
  }
4580
4586
  }, null, 8, ["disabled", "rules"]),
4581
- v(n(B), {
4587
+ v(n(T), {
4582
4588
  name: "params",
4583
4589
  label: "参数",
4584
4590
  editor: "select",
@@ -4622,8 +4628,8 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4622
4628
  "form-props": { tooltipMessage: !1 },
4623
4629
  "submit-method": a
4624
4630
  }, {
4625
- default: h(() => [
4626
- v(n(B), {
4631
+ default: b(() => [
4632
+ v(n(T), {
4627
4633
  name: "name",
4628
4634
  label: "插槽名称",
4629
4635
  disabled: !!e.item,
@@ -4633,7 +4639,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4633
4639
  pattern: n(we)
4634
4640
  }
4635
4641
  }, null, 8, ["disabled", "rules"]),
4636
- v(n(B), {
4642
+ v(n(T), {
4637
4643
  name: "params",
4638
4644
  label: "参数",
4639
4645
  editor: "select",
@@ -4687,8 +4693,8 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4687
4693
  "form-props": { tooltipMessage: !1 },
4688
4694
  "submit-method": s
4689
4695
  }, {
4690
- default: h(() => [
4691
- v(n(B), {
4696
+ default: b(() => [
4697
+ v(n(T), {
4692
4698
  name: "name",
4693
4699
  label: "注入名称",
4694
4700
  required: "",
@@ -4699,17 +4705,17 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4699
4705
  pattern: n(we)
4700
4706
  }
4701
4707
  }, null, 8, ["disabled", "rules"]),
4702
- v(n(B), {
4708
+ v(n(T), {
4703
4709
  name: "from",
4704
4710
  label: "来源名称",
4705
4711
  tip: "默认和注入名称一致"
4706
4712
  }),
4707
- v(n(B), {
4713
+ v(n(T), {
4708
4714
  name: "default.value",
4709
4715
  label: "默认值",
4710
4716
  editor: "none"
4711
4717
  }, {
4712
- default: h(() => [
4718
+ default: b(() => [
4713
4719
  v(n(se), {
4714
4720
  modelValue: l.value.default.value,
4715
4721
  "onUpdate:modelValue": o[0] || (o[0] = (r) => l.value.default.value = r),
@@ -4727,9 +4733,9 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4727
4733
  name: "DefinedWidget",
4728
4734
  __name: "index",
4729
4735
  setup(u) {
4730
- const { current: e, context: t } = ue(), l = S(() => (e.value?.props || []).map((W) => typeof W == "string" ? { name: W } : W)), s = S(() => (e.value?.emits || []).map((W) => typeof W == "string" ? { name: W, params: [] } : W)), a = S(() => (e.value?.slots || []).map((W) => typeof W == "string" ? { name: W, params: [] } : W)), 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(), w = () => {
4736
+ const { current: e, context: t } = ue(), l = S(() => (e.value?.props || []).map((W) => typeof W == "string" ? { name: W } : W)), s = S(() => (e.value?.emits || []).map((W) => typeof W == "string" ? { name: W, params: [] } : W)), a = S(() => (e.value?.slots || []).map((W) => typeof W == "string" ? { name: W, params: [] } : W)), o = S(() => e.value?.inject || []), r = k(!1), i = k(), g = k(!1), d = k(), m = k(!1), f = k(), h = k(!1), c = k(), _ = () => {
4731
4737
  i.value = void 0, r.value = !0;
4732
- }, _ = (W) => {
4738
+ }, w = (W) => {
4733
4739
  const { name: q, modelValue: N } = W;
4734
4740
  q === "edit" && x(N), q === "remove" && e.value?.removeProp(N);
4735
4741
  }, x = (W) => {
@@ -4745,13 +4751,13 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4745
4751
  f.value = void 0, m.value = !0;
4746
4752
  }, D = (W) => {
4747
4753
  f.value = { ...W }, m.value = !0;
4748
- }, T = (W) => {
4754
+ }, B = (W) => {
4749
4755
  const { name: q, modelValue: N } = W;
4750
4756
  q === "edit" && D(N), q === "remove" && e.value?.removeSlot(N.name);
4751
4757
  }, P = () => {
4752
- c.value = void 0, b.value = !0;
4758
+ c.value = void 0, h.value = !0;
4753
4759
  }, G = (W) => {
4754
- c.value = W, b.value = !0;
4760
+ c.value = W, h.value = !0;
4755
4761
  }, me = (W) => {
4756
4762
  const { name: q, modelValue: N } = W;
4757
4763
  q === "edit" && G(N), q === "remove" && e.value?.removeInject(N);
@@ -4762,23 +4768,23 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4762
4768
  direction: "column",
4763
4769
  fit: ""
4764
4770
  }, {
4765
- default: h(() => [
4771
+ default: b(() => [
4766
4772
  v(n(H), {
4767
4773
  class: "v-sub-panel",
4768
4774
  title: "定义属性",
4769
4775
  size: "small",
4770
4776
  plus: "",
4771
4777
  fit: !1,
4772
- onPlus: w
4778
+ onPlus: _
4773
4779
  }, {
4774
- default: h(() => [
4780
+ default: b(() => [
4775
4781
  (p(!0), j(O, null, L(l.value, (N) => (p(), y(n(ce), {
4776
4782
  "model-value": N,
4777
4783
  title: N.name,
4778
4784
  border: "",
4779
4785
  actions: ["edit", "remove"],
4780
4786
  onClick: ($e) => x(N),
4781
- onAction: _
4787
+ onAction: w
4782
4788
  }, null, 8, ["model-value", "title", "onClick"]))), 256)),
4783
4789
  l.value.length ? A("", !0) : (p(), y(n(oe), {
4784
4790
  key: 0,
@@ -4803,7 +4809,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4803
4809
  fit: !1,
4804
4810
  onPlus: C
4805
4811
  }, {
4806
- default: h(() => [
4812
+ default: b(() => [
4807
4813
  (p(!0), j(O, null, L(s.value, (N) => (p(), y(n(ce), {
4808
4814
  "model-value": N,
4809
4815
  title: N.name,
@@ -4835,14 +4841,14 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4835
4841
  fit: !1,
4836
4842
  onPlus: R
4837
4843
  }, {
4838
- default: h(() => [
4844
+ default: b(() => [
4839
4845
  (p(!0), j(O, null, L(a.value, (N) => (p(), y(n(ce), {
4840
4846
  "model-value": N,
4841
4847
  title: N.name,
4842
4848
  border: "",
4843
4849
  actions: ["remove"],
4844
4850
  onClick: ($e) => D(N),
4845
- onAction: T
4851
+ onAction: B
4846
4852
  }, null, 8, ["model-value", "title", "onClick"]))), 256)),
4847
4853
  a.value.length ? A("", !0) : (p(), y(n(oe), {
4848
4854
  key: 0,
@@ -4868,7 +4874,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4868
4874
  grow: "",
4869
4875
  onPlus: P
4870
4876
  }, {
4871
- default: h(() => [
4877
+ default: b(() => [
4872
4878
  (p(!0), j(O, null, L(o.value, (N) => (p(), y(n(ce), {
4873
4879
  "model-value": N,
4874
4880
  title: N.name,
@@ -4881,10 +4887,10 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4881
4887
  key: 0,
4882
4888
  "image-size": 50
4883
4889
  })),
4884
- b.value ? (p(), y(Vr, {
4890
+ h.value ? (p(), y(Vr, {
4885
4891
  key: 1,
4886
- modelValue: b.value,
4887
- "onUpdate:modelValue": q[3] || (q[3] = (N) => b.value = N),
4892
+ modelValue: h.value,
4893
+ "onUpdate:modelValue": q[3] || (q[3] = (N) => h.value = N),
4888
4894
  current: n(e),
4889
4895
  context: n(t),
4890
4896
  item: c.value
@@ -4941,27 +4947,27 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4941
4947
  })`
4942
4948
  }
4943
4949
  }, e.item)
4944
- ), r = k(!1), i = k(""), g = k(!1), d = S(() => o.value.type === "api" ? l.value.map((_) => ({
4945
- label: _.label || "",
4946
- value: _.id,
4947
- data: _
4948
- })) : o.value.type === "meta" ? s.value.map((_) => ({
4949
- label: _.title || "",
4950
- value: _.id,
4951
- data: _
4952
- })) : []), m = S(() => e.item ? "编辑数据源" : "新增数据源"), f = (_) => {
4950
+ ), r = k(!1), i = k(""), g = k(!1), d = S(() => o.value.type === "api" ? l.value.map((w) => ({
4951
+ label: w.label || "",
4952
+ value: w.id,
4953
+ data: w
4954
+ })) : o.value.type === "meta" ? s.value.map((w) => ({
4955
+ label: w.title || "",
4956
+ value: w.id,
4957
+ data: w
4958
+ })) : []), m = S(() => e.item ? "编辑数据源" : "新增数据源"), f = (w) => {
4953
4959
  o.value.ref = "", o.value.name = "", o.value.label = "";
4954
- }, b = (_) => {
4960
+ }, h = (w) => {
4955
4961
  if (o.value.type === "api") {
4956
- const x = l.value.find((C) => C.id === _);
4962
+ const x = l.value.find((C) => C.id === w);
4957
4963
  x && (o.value.name = x.name, o.value.label = x.label || "");
4958
4964
  }
4959
4965
  if (o.value.type === "meta") {
4960
- const x = s.value.find((C) => C.id === _);
4966
+ const x = s.value.find((C) => C.id === w);
4961
4967
  x && (o.value.name = x.code, o.value.label = x.title || "");
4962
4968
  }
4963
- }, c = async (_) => {
4964
- const { transform: x, test: C, name: I } = _;
4969
+ }, c = async (w) => {
4970
+ const { transform: x, test: C, name: I } = w;
4965
4971
  if (!e.current) return !1;
4966
4972
  if (!e.item && e.current.dataSources[I])
4967
4973
  return le(`名称【${I}】已经存在,请更换名称`), !1;
@@ -4969,14 +4975,14 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4969
4975
  if (!re(x, e.context, !0))
4970
4976
  return !1;
4971
4977
  } else
4972
- _.transform = void 0;
4978
+ w.transform = void 0;
4973
4979
  if (C?.value) {
4974
4980
  if (!re(C, e.context, !0))
4975
4981
  return !1;
4976
4982
  } else
4977
- _.test = void 0;
4978
- return e.current?.setDataSource(_), !0;
4979
- }, w = async () => {
4983
+ w.test = void 0;
4984
+ return e.current?.setDataSource(w), !0;
4985
+ }, _ = async () => {
4980
4986
  if (!e.context) return;
4981
4987
  if (!o.value.ref) {
4982
4988
  le("请先选择API");
@@ -4993,9 +4999,9 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
4993
4999
  if (R)
4994
5000
  return await R.apply(R, z);
4995
5001
  Ve.warn(`API【${o.value.ref}】不存在`);
4996
- }, C = qe(o.value.test, {
5002
+ }, C = He(o.value.test, {
4997
5003
  runApi: x
4998
- }), I = o.value.transform?.value ? qe(o.value.transform, {}, !0) : (z) => z;
5004
+ }), I = o.value.transform?.value ? He(o.value.transform, {}, !0) : (z) => z;
4999
5005
  r.value = !0;
5000
5006
  try {
5001
5007
  const z = await C();
@@ -5005,7 +5011,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5005
5011
  }
5006
5012
  r.value = !1, g.value = !0;
5007
5013
  };
5008
- return (_, x) => (p(), y(n(Ae), {
5014
+ return (w, x) => (p(), y(n(Ae), {
5009
5015
  width: "1000px",
5010
5016
  height: "700px",
5011
5017
  title: m.value,
@@ -5013,20 +5019,20 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5013
5019
  "form-props": { tooltipMessage: !1 },
5014
5020
  "submit-method": c
5015
5021
  }, {
5016
- extra: h(() => [
5022
+ extra: b(() => [
5017
5023
  v(n(ae), {
5018
5024
  loading: r.value,
5019
5025
  type: "warning",
5020
- onClick: w
5026
+ onClick: _
5021
5027
  }, {
5022
- default: h(() => x[3] || (x[3] = [
5028
+ default: b(() => x[3] || (x[3] = [
5023
5029
  K(" 运行测试用例 ")
5024
5030
  ])),
5025
5031
  _: 1
5026
5032
  }, 8, ["loading"])
5027
5033
  ]),
5028
- default: h(() => [
5029
- v(n(B), {
5034
+ default: b(() => [
5035
+ v(n(T), {
5030
5036
  name: "type",
5031
5037
  label: "数据类型",
5032
5038
  editor: "radio",
@@ -5035,7 +5041,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5035
5041
  disabled: !!e.item,
5036
5042
  onChange: f
5037
5043
  }, null, 8, ["disabled"]),
5038
- (p(), y(n(B), {
5044
+ (p(), y(n(T), {
5039
5045
  name: "ref",
5040
5046
  label: "引用",
5041
5047
  editor: "select",
@@ -5044,15 +5050,15 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5044
5050
  disabled: !!e.item,
5045
5051
  options: d.value,
5046
5052
  props: { filterable: !0 },
5047
- onChange: b
5053
+ onChange: h
5048
5054
  }, {
5049
- option: h(({ option: C }) => [
5055
+ option: b(({ option: C }) => [
5050
5056
  K(F(C.label) + " ", 1),
5051
5057
  V("i", null, "[ " + F(C.data.name || C.data.code) + " ]", 1)
5052
5058
  ]),
5053
5059
  _: 1
5054
5060
  }, 8, ["disabled", "options"])),
5055
- v(n(B), {
5061
+ v(n(T), {
5056
5062
  name: "name",
5057
5063
  label: "调用名称",
5058
5064
  required: "",
@@ -5063,17 +5069,17 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5063
5069
  pattern: n(we)
5064
5070
  }
5065
5071
  }, null, 8, ["disabled", "rules"]),
5066
- v(n(B), {
5072
+ v(n(T), {
5067
5073
  name: "label",
5068
5074
  label: "备注说明",
5069
5075
  required: ""
5070
5076
  }),
5071
- v(n(B), {
5077
+ v(n(T), {
5072
5078
  name: "transform.value",
5073
5079
  label: "转换函数",
5074
5080
  editor: "none"
5075
5081
  }, {
5076
- default: h(() => [
5082
+ default: b(() => [
5077
5083
  v(n(se), {
5078
5084
  modelValue: o.value.transform.value,
5079
5085
  "onUpdate:modelValue": x[0] || (x[0] = (C) => o.value.transform.value = C),
@@ -5083,12 +5089,12 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5083
5089
  ]),
5084
5090
  _: 1
5085
5091
  }),
5086
- v(n(B), {
5092
+ v(n(T), {
5087
5093
  name: "test.value",
5088
5094
  label: "测试用例",
5089
5095
  editor: "none"
5090
5096
  }, {
5091
- default: h(() => [
5097
+ default: b(() => [
5092
5098
  v(n(se), {
5093
5099
  modelValue: o.value.test.value,
5094
5100
  "onUpdate:modelValue": x[1] || (x[1] = (C) => o.value.test.value = C),
@@ -5108,7 +5114,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5108
5114
  "append-to-body": "",
5109
5115
  size: "80%"
5110
5116
  }, {
5111
- default: h(() => [
5117
+ default: b(() => [
5112
5118
  v(n(se), {
5113
5119
  "model-value": i.value,
5114
5120
  border: "",
@@ -5146,7 +5152,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5146
5152
  direction: "column",
5147
5153
  fit: ""
5148
5154
  }, {
5149
- default: h(() => [
5155
+ default: b(() => [
5150
5156
  v(n(H), {
5151
5157
  title: "请求方法",
5152
5158
  class: "v-sub-panel",
@@ -5154,7 +5160,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5154
5160
  plus: "",
5155
5161
  onPlus: r
5156
5162
  }, {
5157
- default: h(() => [
5163
+ default: b(() => [
5158
5164
  (p(!0), j(O, null, L(a.value, (f) => (p(), y(n(ce), {
5159
5165
  border: "",
5160
5166
  title: f.name,
@@ -5164,7 +5170,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5164
5170
  tag: f.type.toUpperCase(),
5165
5171
  "tag-type": o(f.type),
5166
5172
  onAction: g,
5167
- onClick: (b) => i(f)
5173
+ onClick: (h) => i(f)
5168
5174
  }, null, 8, ["title", "subtitle", "model-value", "tag", "tag-type", "onClick"]))), 256)),
5169
5175
  a.value.length ? A("", !0) : (p(), y(n(oe), {
5170
5176
  key: 0,
@@ -5271,7 +5277,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5271
5277
  {
5272
5278
  label: "space-around",
5273
5279
  value: "space-around",
5274
- svg: Bs
5280
+ svg: Ts
5275
5281
  }
5276
5282
  ], o = [
5277
5283
  {
@@ -5290,7 +5296,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5290
5296
  {
5291
5297
  label: "flex-start",
5292
5298
  value: "flex-start",
5293
- svg: Ts
5299
+ svg: Bs
5294
5300
  },
5295
5301
  {
5296
5302
  label: "flex-end",
@@ -5322,12 +5328,12 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5322
5328
  fit: !1,
5323
5329
  collapsable: ""
5324
5330
  }, {
5325
- default: h(() => [
5331
+ default: b(() => [
5326
5332
  v(n(fe), {
5327
5333
  size: "small",
5328
5334
  "label-width": "80px"
5329
5335
  }, {
5330
- default: h(() => [
5336
+ default: b(() => [
5331
5337
  v(n(M), {
5332
5338
  name: "display",
5333
5339
  label: "排布",
@@ -5410,7 +5416,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5410
5416
  save: "",
5411
5417
  onSave: o
5412
5418
  }, {
5413
- default: h(() => [
5419
+ default: b(() => [
5414
5420
  v(n(se), {
5415
5421
  ref_key: "editorRef",
5416
5422
  ref: t,
@@ -5424,7 +5430,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5424
5430
  _: 1
5425
5431
  }));
5426
5432
  }
5427
- }), Ir = { class: "v-spacing-input" }, Br = { class: "v-spacing-input__content" }, Tr = ["onClick"], Ln = /* @__PURE__ */ E({
5433
+ }), Ir = { class: "v-spacing-input" }, Tr = { class: "v-spacing-input__content" }, Br = ["onClick"], Ln = /* @__PURE__ */ E({
5428
5434
  __name: "spacing-input",
5429
5435
  props: {
5430
5436
  name: {},
@@ -5437,30 +5443,30 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5437
5443
  Vo(o, () => {
5438
5444
  s("close");
5439
5445
  });
5440
- const g = (b) => {
5441
- r.value = typeof b == "number" ? `${b}px` : "auto", d(r.value);
5442
- }, d = (b) => {
5443
- i.value = b === "auto" ? void 0 : "px";
5446
+ const g = (h) => {
5447
+ r.value = typeof h == "number" ? `${h}px` : "auto", d(r.value);
5448
+ }, d = (h) => {
5449
+ i.value = h === "auto" ? void 0 : "px";
5444
5450
  }, m = () => {
5445
5451
  r.value ? (s("update:modelValue", r.value), s("submit", l.name, r.value), s("close")) : le("请输入有效值", "提示");
5446
5452
  }, f = () => {
5447
5453
  r.value = void 0, s("update:modelValue", r.value), s("submit", l.name, void 0), s("close");
5448
5454
  };
5449
- return (b, c) => (p(), j("div", Ir, [
5455
+ return (h, c) => (p(), j("div", Ir, [
5450
5456
  c[4] || (c[4] = V("div", { class: "v-spacing-input__modal" }, null, -1)),
5451
- V("div", Br, [
5457
+ V("div", Tr, [
5452
5458
  v(n(U), {
5453
5459
  class: "v-spacing-input__body",
5454
5460
  ref_key: "bodyRef",
5455
5461
  ref: o,
5456
5462
  direction: "column"
5457
5463
  }, {
5458
- default: h(() => [
5464
+ default: b(() => [
5459
5465
  v(n(U), null, {
5460
- default: h(() => [
5466
+ default: b(() => [
5461
5467
  v(n(bn), {
5462
5468
  modelValue: r.value,
5463
- "onUpdate:modelValue": c[0] || (c[0] = (w) => r.value = w),
5469
+ "onUpdate:modelValue": c[0] || (c[0] = (_) => r.value = _),
5464
5470
  size: "small",
5465
5471
  "with-unit": !!i.value,
5466
5472
  unit: i.value,
@@ -5471,15 +5477,15 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5471
5477
  _: 1
5472
5478
  }),
5473
5479
  v(n(U), null, {
5474
- default: h(() => [
5480
+ default: b(() => [
5475
5481
  a.value ? (p(), y(n(U), {
5476
5482
  key: 0,
5477
5483
  class: "v-spacing-input__auto",
5478
5484
  width: "20%"
5479
5485
  }, {
5480
- default: h(() => [
5486
+ default: b(() => [
5481
5487
  V("span", {
5482
- onClick: c[1] || (c[1] = (w) => g("auto"))
5488
+ onClick: c[1] || (c[1] = (_) => g("auto"))
5483
5489
  }, "auto")
5484
5490
  ]),
5485
5491
  _: 1
@@ -5490,10 +5496,10 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5490
5496
  align: "center",
5491
5497
  wrap: "wrap"
5492
5498
  }, {
5493
- default: h(() => [
5494
- (p(), j(O, null, L(t, (w) => V("span", {
5495
- onClick: (_) => g(w)
5496
- }, F(w), 9, Tr)), 64))
5499
+ default: b(() => [
5500
+ (p(), j(O, null, L(t, (_) => V("span", {
5501
+ onClick: (w) => g(_)
5502
+ }, F(_), 9, Br)), 64))
5497
5503
  ]),
5498
5504
  _: 1
5499
5505
  })
@@ -5501,7 +5507,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5501
5507
  _: 1
5502
5508
  }),
5503
5509
  v(n(U), null, {
5504
- default: h(() => [
5510
+ default: b(() => [
5505
5511
  v(n(ae), {
5506
5512
  size: "small",
5507
5513
  type: "primary",
@@ -5509,7 +5515,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5509
5515
  style: { width: "100%" },
5510
5516
  onClick: m
5511
5517
  }, {
5512
- default: h(() => c[2] || (c[2] = [
5518
+ default: b(() => c[2] || (c[2] = [
5513
5519
  K(" 确定 ")
5514
5520
  ])),
5515
5521
  _: 1
@@ -5520,7 +5526,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5520
5526
  style: { width: "100%" },
5521
5527
  onClick: f
5522
5528
  }, {
5523
- default: h(() => c[3] || (c[3] = [
5529
+ default: b(() => c[3] || (c[3] = [
5524
5530
  K(" 重置 ")
5525
5531
  ])),
5526
5532
  _: 1
@@ -5551,19 +5557,19 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5551
5557
  setStyle: { type: Function }
5552
5558
  },
5553
5559
  setup(u) {
5554
- const e = u, t = k(), l = k(), { width: s, height: a } = Ge(t), { width: o, height: r } = Ge(l), i = k(!1), g = k(), d = k(), m = () => {
5560
+ const e = u, t = k(), l = k(), { width: s, height: a } = Xe(t), { width: o, height: r } = Xe(l), i = k(!1), g = k(), d = k(), m = () => {
5555
5561
  i.value = !1, g.value = void 0, d.value = void 0;
5556
- }, f = (b) => {
5557
- g.value = b, d.value = e.styleJson[b], i.value = !0;
5562
+ }, f = (h) => {
5563
+ g.value = h, d.value = e.styleJson[h], i.value = !0;
5558
5564
  };
5559
- return (b, c) => (p(), y(n(H), {
5565
+ return (h, c) => (p(), y(n(H), {
5560
5566
  title: "间距",
5561
5567
  class: "v-sub-panel",
5562
5568
  size: "small",
5563
5569
  fit: !1,
5564
5570
  collapsable: ""
5565
5571
  }, {
5566
- default: h(() => [
5572
+ default: b(() => [
5567
5573
  V("div", {
5568
5574
  class: "v-style-widget__spacing",
5569
5575
  ref_key: "container",
@@ -5592,7 +5598,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5592
5598
  "data-automation-id": "margin-top-button",
5593
5599
  "aria-label": "Margin top button",
5594
5600
  class: "tb-path-color",
5595
- onClick: c[0] || (c[0] = (w) => f("margin-top"))
5601
+ onClick: c[0] || (c[0] = (_) => f("margin-top"))
5596
5602
  }, null, 8, zr)
5597
5603
  ])
5598
5604
  ]),
@@ -5610,7 +5616,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5610
5616
  "data-automation-id": "margin-right-button",
5611
5617
  "aria-label": "Margin right button",
5612
5618
  class: "lr-path-color",
5613
- onClick: c[1] || (c[1] = (w) => f("margin-right"))
5619
+ onClick: c[1] || (c[1] = (_) => f("margin-right"))
5614
5620
  }, null, 8, Fr)
5615
5621
  ])
5616
5622
  ]),
@@ -5628,7 +5634,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5628
5634
  "data-automation-id": "margin-bottom-button",
5629
5635
  "aria-label": "Margin bottom button",
5630
5636
  class: "tb-path-color",
5631
- onClick: c[2] || (c[2] = (w) => f("margin-bottom"))
5637
+ onClick: c[2] || (c[2] = (_) => f("margin-bottom"))
5632
5638
  }, null, 8, Wr)
5633
5639
  ])
5634
5640
  ]),
@@ -5646,7 +5652,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5646
5652
  "data-automation-id": "margin-left-button",
5647
5653
  "aria-label": "Margin left button",
5648
5654
  class: "lr-path-color",
5649
- onClick: c[3] || (c[3] = (w) => f("margin-left"))
5655
+ onClick: c[3] || (c[3] = (_) => f("margin-left"))
5650
5656
  }, null, 8, Lr)
5651
5657
  ])
5652
5658
  ]),
@@ -5701,19 +5707,19 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5701
5707
  ], 8, Or)) : A("", !0),
5702
5708
  V("div", {
5703
5709
  class: X(["spacing-edit margin-top", { "is-setting": e.styleJson["margin-top"] }]),
5704
- onClick: c[4] || (c[4] = (w) => f("margin-top"))
5710
+ onClick: c[4] || (c[4] = (_) => f("margin-top"))
5705
5711
  }, F(e.styleJson["margin-top"] || "-"), 3),
5706
5712
  V("div", {
5707
5713
  class: X(["spacing-edit margin-right", { "is-setting": e.styleJson["margin-right"] }]),
5708
- onClick: c[5] || (c[5] = (w) => f("margin-right"))
5714
+ onClick: c[5] || (c[5] = (_) => f("margin-right"))
5709
5715
  }, F(e.styleJson["margin-right"] || "-"), 3),
5710
5716
  V("div", {
5711
5717
  class: X(["spacing-edit margin-bottom", { "is-setting": e.styleJson["margin-bottom"] }]),
5712
- onClick: c[6] || (c[6] = (w) => f("margin-bottom"))
5718
+ onClick: c[6] || (c[6] = (_) => f("margin-bottom"))
5713
5719
  }, F(e.styleJson["margin-bottom"] || "-"), 3),
5714
5720
  V("div", {
5715
5721
  class: X(["spacing-edit margin-left", { "is-setting": e.styleJson["margin-left"] }]),
5716
- onClick: c[7] || (c[7] = (w) => f("margin-left"))
5722
+ onClick: c[7] || (c[7] = (_) => f("margin-left"))
5717
5723
  }, F(e.styleJson["margin-left"] || "-"), 3)
5718
5724
  ]),
5719
5725
  V("div", {
@@ -5742,7 +5748,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5742
5748
  "data-automation-id": "padding-top-button",
5743
5749
  "aria-label": "Padding top button",
5744
5750
  class: "tb-path-color",
5745
- onClick: c[8] || (c[8] = (w) => f("padding-top"))
5751
+ onClick: c[8] || (c[8] = (_) => f("padding-top"))
5746
5752
  }, null, 8, Xr)
5747
5753
  ])
5748
5754
  ]),
@@ -5760,7 +5766,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5760
5766
  "data-automation-id": "padding-right-button",
5761
5767
  "aria-label": "Padding right button",
5762
5768
  class: "lr-path-color",
5763
- onClick: c[9] || (c[9] = (w) => f("padding-right"))
5769
+ onClick: c[9] || (c[9] = (_) => f("padding-right"))
5764
5770
  }, null, 8, Kr)
5765
5771
  ])
5766
5772
  ]),
@@ -5778,7 +5784,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5778
5784
  "data-automation-id": "padding-bottom-button",
5779
5785
  "aria-label": "Padding bottom button",
5780
5786
  class: "tb-path-color",
5781
- onClick: c[10] || (c[10] = (w) => f("padding-bottom"))
5787
+ onClick: c[10] || (c[10] = (_) => f("padding-bottom"))
5782
5788
  }, null, 8, Qr)
5783
5789
  ])
5784
5790
  ]),
@@ -5796,7 +5802,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5796
5802
  "data-automation-id": "padding-left-button",
5797
5803
  "aria-label": "Padding left button",
5798
5804
  class: "lr-path-color",
5799
- onClick: c[11] || (c[11] = (w) => f("padding-left"))
5805
+ onClick: c[11] || (c[11] = (_) => f("padding-left"))
5800
5806
  }, null, 8, Yr)
5801
5807
  ])
5802
5808
  ]),
@@ -5851,19 +5857,19 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5851
5857
  ], 8, Gr)) : A("", !0),
5852
5858
  V("div", {
5853
5859
  class: X(["spacing-edit padding-top", { "is-setting": e.styleJson["padding-top"] }]),
5854
- onClick: c[12] || (c[12] = (w) => f("padding-top"))
5860
+ onClick: c[12] || (c[12] = (_) => f("padding-top"))
5855
5861
  }, F(e.styleJson["padding-top"] || "-"), 3),
5856
5862
  V("div", {
5857
5863
  class: X(["spacing-edit padding-right", { "is-setting": e.styleJson["padding-right"] }]),
5858
- onClick: c[13] || (c[13] = (w) => f("padding-right"))
5864
+ onClick: c[13] || (c[13] = (_) => f("padding-right"))
5859
5865
  }, F(e.styleJson["padding-right"] || "-"), 3),
5860
5866
  V("div", {
5861
5867
  class: X(["spacing-edit padding-bottom", { "is-setting": e.styleJson["padding-bottom"] }]),
5862
- onClick: c[14] || (c[14] = (w) => f("padding-bottom"))
5868
+ onClick: c[14] || (c[14] = (_) => f("padding-bottom"))
5863
5869
  }, F(e.styleJson["padding-bottom"] || "-"), 3),
5864
5870
  V("div", {
5865
5871
  class: X(["spacing-edit padding-left", { "is-setting": e.styleJson["padding-left"] }]),
5866
- onClick: c[15] || (c[15] = (w) => f("padding-left"))
5872
+ onClick: c[15] || (c[15] = (_) => f("padding-left"))
5867
5873
  }, F(e.styleJson["padding-left"] || "-"), 3)
5868
5874
  ], 512),
5869
5875
  (p(), j("svg", ai, c[17] || (c[17] = [
@@ -5893,7 +5899,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5893
5899
  key: 0,
5894
5900
  name: g.value,
5895
5901
  modelValue: d.value,
5896
- "onUpdate:modelValue": c[16] || (c[16] = (w) => d.value = w),
5902
+ "onUpdate:modelValue": c[16] || (c[16] = (_) => d.value = _),
5897
5903
  onClose: m,
5898
5904
  onSubmit: e.setStyle
5899
5905
  }, null, 8, ["name", "modelValue", "onSubmit"])) : A("", !0)
@@ -5971,14 +5977,14 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
5971
5977
  fit: !1,
5972
5978
  collapsable: ""
5973
5979
  }, {
5974
- default: h(() => [
5980
+ default: b(() => [
5975
5981
  v(n(fe), {
5976
5982
  class: "v-style-widget__sizing",
5977
5983
  size: "small",
5978
5984
  "label-width": "60px",
5979
5985
  inline: ""
5980
5986
  }, {
5981
- default: h(() => [
5987
+ default: b(() => [
5982
5988
  (p(), j(O, null, L(s, (r) => v(n(M), {
5983
5989
  name: r.name,
5984
5990
  label: r.label,
@@ -6002,7 +6008,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
6002
6008
  setStyle: { type: Function }
6003
6009
  },
6004
6010
  setup(u) {
6005
- const e = u, t = k(), { width: l, height: s } = Ge(t), a = k(!1), o = k(), r = k(), i = [
6011
+ const e = u, t = k(), { width: l, height: s } = Xe(t), a = k(!1), o = k(), r = k(), i = [
6006
6012
  { label: "静态", value: "static" },
6007
6013
  { label: "相对", value: "relative" },
6008
6014
  { label: "绝对", value: "absolute" },
@@ -6018,25 +6024,25 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
6018
6024
  { label: "上", svg: Us, value: "auto 0% 0% 0%" },
6019
6025
  { label: "下", svg: qs, value: "0% 0% auto 0%" },
6020
6026
  { label: "填充", svg: Hs, value: "0% 0% 0% 0%" }
6021
- ], d = S(() => (e.styleJson.inset || "").split(" ")), m = (b) => {
6022
- o.value = b, r.value = e.styleJson[b], a.value = !0;
6027
+ ], d = S(() => (e.styleJson.inset || "").split(" ")), m = (h) => {
6028
+ o.value = h, r.value = e.styleJson[h], a.value = !0;
6023
6029
  }, f = () => {
6024
6030
  a.value = !1, o.value = void 0, r.value = void 0;
6025
6031
  };
6026
- return (b, c) => (p(), y(n(H), {
6032
+ return (h, c) => (p(), y(n(H), {
6027
6033
  title: "定位",
6028
6034
  class: "v-sub-panel",
6029
6035
  size: "small",
6030
6036
  fit: !1,
6031
6037
  collapsable: ""
6032
6038
  }, {
6033
- default: h(() => [
6039
+ default: b(() => [
6034
6040
  V("div", ui, [
6035
6041
  v(n(fe), {
6036
6042
  "label-width": "60px",
6037
6043
  size: "small"
6038
6044
  }, {
6039
- default: h(() => [
6045
+ default: b(() => [
6040
6046
  v(n(M), {
6041
6047
  name: "position",
6042
6048
  label: "定位",
@@ -6056,7 +6062,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
6056
6062
  onChange: e.setStyle
6057
6063
  }, null, 8, ["value", "onChange"]),
6058
6064
  v(n(hn), { label: " " }, {
6059
- default: h(() => [
6065
+ default: b(() => [
6060
6066
  V("div", ci, [
6061
6067
  V("div", {
6062
6068
  ref_key: "inner",
@@ -6084,7 +6090,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
6084
6090
  "data-automation-id": "padding-top-button",
6085
6091
  "aria-label": "Padding top button",
6086
6092
  class: "tb-path-color",
6087
- onClick: c[0] || (c[0] = (w) => m("top"))
6093
+ onClick: c[0] || (c[0] = (_) => m("top"))
6088
6094
  }, null, 8, pi)
6089
6095
  ])
6090
6096
  ]),
@@ -6102,7 +6108,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
6102
6108
  "data-automation-id": "padding-right-button",
6103
6109
  "aria-label": "Padding right button",
6104
6110
  class: "lr-path-color",
6105
- onClick: c[1] || (c[1] = (w) => m("right"))
6111
+ onClick: c[1] || (c[1] = (_) => m("right"))
6106
6112
  }, null, 8, mi)
6107
6113
  ])
6108
6114
  ]),
@@ -6120,7 +6126,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
6120
6126
  "data-automation-id": "padding-bottom-button",
6121
6127
  "aria-label": "Padding bottom button",
6122
6128
  class: "tb-path-color",
6123
- onClick: c[2] || (c[2] = (w) => m("bottom"))
6129
+ onClick: c[2] || (c[2] = (_) => m("bottom"))
6124
6130
  }, null, 8, vi)
6125
6131
  ])
6126
6132
  ]),
@@ -6138,7 +6144,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
6138
6144
  "data-automation-id": "padding-left-button",
6139
6145
  "aria-label": "Padding left button",
6140
6146
  class: "lr-path-color",
6141
- onClick: c[3] || (c[3] = (w) => m("left"))
6147
+ onClick: c[3] || (c[3] = (_) => m("left"))
6142
6148
  }, null, 8, gi)
6143
6149
  ])
6144
6150
  ]),
@@ -6193,19 +6199,19 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
6193
6199
  ], 8, di)) : A("", !0),
6194
6200
  V("div", {
6195
6201
  class: X(["spacing-edit padding-top", { "is-setting": e.styleJson.top }]),
6196
- onClick: c[4] || (c[4] = (w) => m("top"))
6202
+ onClick: c[4] || (c[4] = (_) => m("top"))
6197
6203
  }, F(e.styleJson.top || d.value[0] || "-"), 3),
6198
6204
  V("div", {
6199
6205
  class: X(["spacing-edit padding-right", { "is-setting": e.styleJson.right }]),
6200
- onClick: c[5] || (c[5] = (w) => m("right"))
6206
+ onClick: c[5] || (c[5] = (_) => m("right"))
6201
6207
  }, F(e.styleJson.right || d.value[1] || "-"), 3),
6202
6208
  V("div", {
6203
6209
  class: X(["spacing-edit padding-bottom", { "is-setting": e.styleJson.bottom }]),
6204
- onClick: c[6] || (c[6] = (w) => m("bottom"))
6210
+ onClick: c[6] || (c[6] = (_) => m("bottom"))
6205
6211
  }, F(e.styleJson.bottom || d.value[2] || "-"), 3),
6206
6212
  V("div", {
6207
6213
  class: X(["spacing-edit padding-left", { "is-setting": e.styleJson.left }]),
6208
- onClick: c[7] || (c[7] = (w) => m("left"))
6214
+ onClick: c[7] || (c[7] = (_) => m("left"))
6209
6215
  }, F(e.styleJson.left || d.value[3] || "-"), 3)
6210
6216
  ], 512),
6211
6217
  a.value ? (p(), y(Ln, {
@@ -6213,7 +6219,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
6213
6219
  auto: "",
6214
6220
  name: o.value,
6215
6221
  modelValue: r.value,
6216
- "onUpdate:modelValue": c[8] || (c[8] = (w) => r.value = w),
6222
+ "onUpdate:modelValue": c[8] || (c[8] = (_) => r.value = _),
6217
6223
  onClose: f,
6218
6224
  onSubmit: e.setStyle
6219
6225
  }, null, 8, ["name", "modelValue", "onSubmit"])) : A("", !0)
@@ -6301,7 +6307,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
6301
6307
  { label: "正常", value: "normal", svg: Ys },
6302
6308
  { label: "斜体", value: "italic", svg: Zs }
6303
6309
  ], a = [
6304
- { label: "无", value: "none", svg: Bn },
6310
+ { label: "无", value: "none", svg: Tn },
6305
6311
  { label: "下划线", value: "underline", svg: ea },
6306
6312
  { label: "删除线", value: "line-through", svg: ta },
6307
6313
  { label: "上划线", value: "overline", svg: na }
@@ -6313,14 +6319,14 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
6313
6319
  fit: !1,
6314
6320
  collapsable: ""
6315
6321
  }, {
6316
- default: h(() => [
6322
+ default: b(() => [
6317
6323
  v(n(fe), {
6318
6324
  class: "v-style-widget__texting",
6319
6325
  size: "small",
6320
6326
  "label-width": "60px",
6321
6327
  inline: ""
6322
6328
  }, {
6323
- default: h(() => [
6329
+ default: b(() => [
6324
6330
  (p(), j(O, null, L(t, (i) => v(n(M), {
6325
6331
  name: i.name,
6326
6332
  label: i.label,
@@ -6337,7 +6343,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
6337
6343
  size: "small",
6338
6344
  "label-width": "60px"
6339
6345
  }, {
6340
- default: h(() => [
6346
+ default: b(() => [
6341
6347
  v(n(M), {
6342
6348
  name: "color",
6343
6349
  label: "颜色",
@@ -6418,12 +6424,12 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
6418
6424
  fit: !1,
6419
6425
  collapsable: ""
6420
6426
  }, {
6421
- default: h(() => [
6427
+ default: b(() => [
6422
6428
  v(n(fe), {
6423
6429
  "label-width": "60px",
6424
6430
  size: "small"
6425
6431
  }, {
6426
- default: h(() => [
6432
+ default: b(() => [
6427
6433
  v(n(M), {
6428
6434
  name: "background-image",
6429
6435
  label: "图片",
@@ -6508,7 +6514,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
6508
6514
  { label: "下边框", svg: ca, value: "border-bottom" },
6509
6515
  { label: "右边框", svg: da, value: "border-right" }
6510
6516
  ], a = [
6511
- { label: "无", value: "none", svg: Bn },
6517
+ { label: "无", value: "none", svg: Tn },
6512
6518
  { label: "实线", value: "solid", svg: pa },
6513
6519
  { label: "虚线", value: "dashed", svg: ma },
6514
6520
  { label: "点线", value: "dotted", svg: va }
@@ -6530,12 +6536,12 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
6530
6536
  fit: !1,
6531
6537
  collapsable: ""
6532
6538
  }, {
6533
- default: h(() => [
6539
+ default: b(() => [
6534
6540
  v(n(fe), {
6535
6541
  "label-width": "60px",
6536
6542
  size: "small"
6537
6543
  }, {
6538
- default: h(() => [
6544
+ default: b(() => [
6539
6545
  v(n(M), {
6540
6546
  name: "border-radius",
6541
6547
  label: "圆角",
@@ -6648,12 +6654,12 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
6648
6654
  fit: !1,
6649
6655
  collapsable: ""
6650
6656
  }, {
6651
- default: h(() => [
6657
+ default: b(() => [
6652
6658
  v(n(fe), {
6653
6659
  "label-width": "60px",
6654
6660
  size: "small"
6655
6661
  }, {
6656
- default: h(() => [
6662
+ default: b(() => [
6657
6663
  v(n(M), {
6658
6664
  name: "opacity",
6659
6665
  label: "透明度",
@@ -6711,7 +6717,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
6711
6717
  direction: "column",
6712
6718
  fit: ""
6713
6719
  }, {
6714
- default: h(() => [
6720
+ default: b(() => [
6715
6721
  (p(), y(Pr, {
6716
6722
  key: `Layout${l.value?.id}`,
6717
6723
  "style-json": s.value,
@@ -6763,12 +6769,12 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
6763
6769
  path: { type: Function }
6764
6770
  },
6765
6771
  setup(u, { expose: e }) {
6766
- const t = u, l = k(), s = k(Symbol()), { current: a, engine: o } = ue(), { width: r, height: i } = Ge(l), g = S(() => a.value && t.path ? t.path(a.value) : null), d = S(() => o.skeleton?.getWidget("Toolbar")?.widgetRef.mode ?? "pc");
6772
+ const t = u, l = k(), s = k(Symbol()), { current: a, engine: o } = ue(), { width: r, height: i } = Xe(l), g = S(() => a.value && t.path ? t.path(a.value) : null), d = S(() => o.skeleton?.getWidget("Toolbar")?.widgetRef.mode ?? "pc");
6767
6773
  return e({
6768
6774
  refresh: () => {
6769
6775
  s.value = Symbol();
6770
6776
  }
6771
- }), (f, b) => (p(), j("div", {
6777
+ }), (f, h) => (p(), j("div", {
6772
6778
  ref_key: "container",
6773
6779
  ref: l,
6774
6780
  class: "v-previewer",
@@ -6779,7 +6785,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
6779
6785
  width: n(r),
6780
6786
  height: n(i)
6781
6787
  }, {
6782
- default: h(() => [
6788
+ default: b(() => [
6783
6789
  g.value ? (p(), j("iframe", {
6784
6790
  key: 0,
6785
6791
  ref: "iframe",
@@ -6806,12 +6812,12 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
6806
6812
  class: "v-nodepath-widget",
6807
6813
  "separator-icon": n(ya)
6808
6814
  }, {
6809
- default: h(() => [
6815
+ default: b(() => [
6810
6816
  (p(!0), j(O, null, L(l.value, (i) => (p(), y(n(rl), {
6811
6817
  onClick: (g) => s(i),
6812
6818
  onMouseover: (g) => a(i)
6813
6819
  }, {
6814
- default: h(() => [
6820
+ default: b(() => [
6815
6821
  K(F(i.name), 1)
6816
6822
  ]),
6817
6823
  _: 2
@@ -6847,7 +6853,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
6847
6853
  save: "",
6848
6854
  onSave: a
6849
6855
  }, {
6850
- default: h(() => [
6856
+ default: b(() => [
6851
6857
  v(n(se), {
6852
6858
  ref_key: "editorRef",
6853
6859
  ref: t,
@@ -6885,7 +6891,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
6885
6891
  size: "small",
6886
6892
  fit: ""
6887
6893
  }, {
6888
- default: h(() => [
6894
+ default: b(() => [
6889
6895
  v(n(se), {
6890
6896
  ref_key: "editorRef",
6891
6897
  ref: l,
@@ -6899,7 +6905,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
6899
6905
  _: 1
6900
6906
  }, 8, ["title", "subtitle"]));
6901
6907
  }
6902
- }), Bi = ["src"], Ti = /* @__PURE__ */ E({
6908
+ }), Ti = ["src"], Bi = /* @__PURE__ */ E({
6903
6909
  name: "DocsWidget",
6904
6910
  __name: "index",
6905
6911
  props: {
@@ -6928,13 +6934,13 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
6928
6934
  ref_key: "panel",
6929
6935
  ref: l
6930
6936
  }, {
6931
- default: h(() => [
6937
+ default: b(() => [
6932
6938
  (p(), j("iframe", {
6933
6939
  key: a.value,
6934
6940
  ref: "frame",
6935
6941
  src: t.url,
6936
6942
  onLoad: r
6937
- }, null, 40, Bi))
6943
+ }, null, 40, Ti))
6938
6944
  ]),
6939
6945
  _: 1
6940
6946
  }, 512));
@@ -6962,7 +6968,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
6962
6968
  class: "v-project-config-widget",
6963
6969
  title: "项目配置"
6964
6970
  }, {
6965
- default: h(() => [
6971
+ default: b(() => [
6966
6972
  n(e) ? (p(), y(n(It), {
6967
6973
  key: 0,
6968
6974
  footer: !1,
@@ -6971,23 +6977,23 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
6971
6977
  model: n(e).config,
6972
6978
  onChange: t
6973
6979
  }, {
6974
- default: h(() => [
6975
- v(n(B), {
6980
+ default: b(() => [
6981
+ v(n(T), {
6976
6982
  label: "站点名称",
6977
6983
  name: "title"
6978
6984
  }),
6979
- v(n(B), {
6985
+ v(n(T), {
6980
6986
  label: "Logo",
6981
6987
  name: "logo",
6982
6988
  editor: Wt,
6983
6989
  props: { attachment: { accept: ".png,.jpg,.jpeg" } }
6984
6990
  }),
6985
- v(n(B), {
6991
+ v(n(T), {
6986
6992
  label: "主题切换",
6987
6993
  name: "themeSwitchable",
6988
6994
  editor: "switch"
6989
6995
  }),
6990
- v(n(B), {
6996
+ v(n(T), {
6991
6997
  label: "模拟数据",
6992
6998
  name: "mock",
6993
6999
  editor: "switch"
@@ -7025,7 +7031,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
7025
7031
  NodePath: Pi,
7026
7032
  Schema: Di,
7027
7033
  Raw: Ii,
7028
- Docs: Ti,
7034
+ Docs: Bi,
7029
7035
  About: Fi,
7030
7036
  ProjectConfig: Wi
7031
7037
  }, Li = [
@@ -7896,7 +7902,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
7896
7902
  setup(u, { emit: e }) {
7897
7903
  const t = (i = "") => ({
7898
7904
  type: "JSExpression",
7899
- value: He(i) ? i.value : i
7905
+ value: Ge(i) ? i.value : i
7900
7906
  }), l = u, s = e, a = (i) => re(i, l.context, !0), o = k(t(l.modelValue).value);
7901
7907
  J(
7902
7908
  () => l.modelValue,
@@ -7920,10 +7926,10 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
7920
7926
  "onUpdate:modelValue": g[0] || (g[0] = (d) => o.value = d),
7921
7927
  onChange: r
7922
7928
  }, {
7923
- prefix: h(() => [
7929
+ prefix: b(() => [
7924
7930
  K(F(Xi))
7925
7931
  ]),
7926
- suffix: h(() => [
7932
+ suffix: b(() => [
7927
7933
  K(F(Ki))
7928
7934
  ]),
7929
7935
  _: 1
@@ -7938,7 +7944,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
7938
7944
  setup(u) {
7939
7945
  const e = u;
7940
7946
  return (t, l) => (p(), y(n(ul), ie({ clearable: "" }, t.$attrs), {
7941
- default: h(() => [
7947
+ default: b(() => [
7942
7948
  (p(!0), j(O, null, L(e.options, (s) => (p(), y(n(cl), ie({
7943
7949
  key: s.label,
7944
7950
  ref_for: !0
@@ -7955,7 +7961,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
7955
7961
  },
7956
7962
  emits: ["change"],
7957
7963
  setup(u, { emit: e }) {
7958
- const t = u, l = e, s = S(() => He(t.modelValue) ? void 0 : Number(t.modelValue || 0)), a = (o) => {
7964
+ const t = u, l = e, s = S(() => Ge(t.modelValue) ? void 0 : Number(t.modelValue || 0)), a = (o) => {
7959
7965
  l("change", o);
7960
7966
  };
7961
7967
  return (o, r) => (p(), y(n(dl), ie({
@@ -7982,7 +7988,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
7982
7988
  const t = u, l = k(), s = k(
7983
7989
  typeof t.modelValue == "object" ? JSON.stringify(t.modelValue, null, 2) : void 0
7984
7990
  ), a = S(() => !!s.value), o = k(!1), r = e, i = (f) => {
7985
- let b = !0;
7991
+ let h = !0;
7986
7992
  try {
7987
7993
  const c = JSON.parse(f);
7988
7994
  if (t.type === "Array" && !Array.isArray(c))
@@ -7992,24 +7998,24 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
7992
7998
  if (typeof c != "object")
7993
7999
  throw new Error(`"${f}" is not a ${t.type}`);
7994
8000
  } catch (c) {
7995
- b = !1, Vt.error({
8001
+ h = !1, Vt.error({
7996
8002
  title: "代码错误",
7997
8003
  message: c?.message || c
7998
8004
  });
7999
8005
  }
8000
- return b;
8006
+ return h;
8001
8007
  }, g = () => {
8002
8008
  const f = l.value?.getEditor();
8003
8009
  if (f) {
8004
- const b = f.getValue();
8005
- i(b) && (s.value = b, r("change", JSON.parse(b)), o.value = !1);
8010
+ const h = f.getValue();
8011
+ i(h) && (s.value = h, r("change", JSON.parse(h)), o.value = !1);
8006
8012
  }
8007
8013
  }, d = () => {
8008
8014
  s.value = "", r("change", void 0), o.value = !1;
8009
8015
  }, m = () => {
8010
8016
  o.value = !0;
8011
8017
  };
8012
- return (f, b) => (p(), j("div", {
8018
+ return (f, h) => (p(), j("div", {
8013
8019
  class: X(["v-json-setter", { "is-active": a.value }])
8014
8020
  }, [
8015
8021
  v(n(_e), ie({
@@ -8018,10 +8024,10 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
8018
8024
  "model-value": t.type,
8019
8025
  "suffix-icon": n($t)
8020
8026
  }, f.$attrs), null, 16, ["model-value", "suffix-icon"]),
8021
- o.value ? (p(), y(n(Te), {
8027
+ o.value ? (p(), y(n(Be), {
8022
8028
  key: 0,
8023
8029
  modelValue: o.value,
8024
- "onUpdate:modelValue": b[0] || (b[0] = (c) => o.value = c),
8030
+ "onUpdate:modelValue": h[0] || (h[0] = (c) => o.value = c),
8025
8031
  title: t.type,
8026
8032
  width: "1000px",
8027
8033
  height: "600px",
@@ -8031,19 +8037,19 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
8031
8037
  onSubmit: g,
8032
8038
  onClear: d
8033
8039
  }, {
8034
- extra: h(() => [
8040
+ extra: b(() => [
8035
8041
  v(n(ae), {
8036
8042
  type: "warning",
8037
8043
  onClick: d,
8038
8044
  size: "default"
8039
8045
  }, {
8040
- default: h(() => b[1] || (b[1] = [
8046
+ default: b(() => h[1] || (h[1] = [
8041
8047
  K(" 清除 ")
8042
8048
  ])),
8043
8049
  _: 1
8044
8050
  })
8045
8051
  ]),
8046
- default: h(() => [
8052
+ default: b(() => [
8047
8053
  v(n(se), {
8048
8054
  ref_key: "codeEditor",
8049
8055
  ref: l,
@@ -8071,11 +8077,11 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
8071
8077
  const t = u, l = k(), s = k(t.modelValue.value), a = k(!1), o = S(() => !!s.value), r = e, i = () => {
8072
8078
  const m = l.value?.getEditor();
8073
8079
  if (m) {
8074
- const f = m.getValue(), b = {
8080
+ const f = m.getValue(), h = {
8075
8081
  type: "JSFunction",
8076
8082
  value: f
8077
8083
  };
8078
- re(b, {}) && (s.value = f, r("change", b), a.value = !1);
8084
+ re(h, {}) && (s.value = f, r("change", h), a.value = !1);
8079
8085
  }
8080
8086
  }, g = () => {
8081
8087
  s.value = "", r("change", void 0), a.value = !1;
@@ -8091,10 +8097,10 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
8091
8097
  "model-value": "JSFunction",
8092
8098
  "suffix-icon": n($t)
8093
8099
  }, m.$attrs), null, 16, ["suffix-icon"]),
8094
- a.value ? (p(), y(n(Te), {
8100
+ a.value ? (p(), y(n(Be), {
8095
8101
  key: 0,
8096
8102
  modelValue: a.value,
8097
- "onUpdate:modelValue": f[0] || (f[0] = (b) => a.value = b),
8103
+ "onUpdate:modelValue": f[0] || (f[0] = (h) => a.value = h),
8098
8104
  title: "JSFunction",
8099
8105
  width: "1000px",
8100
8106
  height: "600px",
@@ -8104,19 +8110,19 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
8104
8110
  onSubmit: i,
8105
8111
  onClear: g
8106
8112
  }, {
8107
- extra: h(() => [
8113
+ extra: b(() => [
8108
8114
  v(n(ae), {
8109
8115
  type: "warning",
8110
8116
  onClick: g,
8111
8117
  size: "default"
8112
8118
  }, {
8113
- default: h(() => f[1] || (f[1] = [
8119
+ default: b(() => f[1] || (f[1] = [
8114
8120
  K(" 清除 ")
8115
8121
  ])),
8116
8122
  _: 1
8117
8123
  })
8118
8124
  ]),
8119
- default: h(() => [
8125
+ default: b(() => [
8120
8126
  v(n(se), {
8121
8127
  ref_key: "codeEditor",
8122
8128
  ref: l,
@@ -8141,13 +8147,13 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
8141
8147
  class: "v-radio-setter",
8142
8148
  size: "small"
8143
8149
  }, t.$attrs), {
8144
- default: h(() => [
8150
+ default: b(() => [
8145
8151
  (p(!0), j(O, null, L(e.options, (s) => (p(), y(n(nt), {
8146
8152
  label: s.label,
8147
8153
  value: s.value,
8148
8154
  title: s.label
8149
8155
  }, {
8150
- default: h(() => [
8156
+ default: b(() => [
8151
8157
  s.svg ? (p(), y(n(Se), {
8152
8158
  key: 0,
8153
8159
  src: s.svg
@@ -8234,7 +8240,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
8234
8240
  setup(u, { emit: e }) {
8235
8241
  const t = u, l = e, s = k([]), a = S(() => s.value.length < t.limit), o = (i) => i.type.includes("image") ? (xl(i).then((g) => {
8236
8242
  s.value = [{ name: i.name, url: g }];
8237
- }), !1) : (Ke.error("只能上传图片"), !1), r = () => {
8243
+ }), !1) : (Qe.error("只能上传图片"), !1), r = () => {
8238
8244
  s.value = [];
8239
8245
  };
8240
8246
  return J(
@@ -8259,7 +8265,7 @@ const Eo = { class: "v-icon-setter" }, Po = { class: "v-icon-setter__content" },
8259
8265
  "auto-upload": !0,
8260
8266
  "on-remove": r
8261
8267
  }, i.$attrs), {
8262
- default: h(() => [
8268
+ default: b(() => [
8263
8269
  V("span", ou, [
8264
8270
  v(n(Se), { icon: n(Ea) }, null, 8, ["icon"])
8265
8271
  ])
@@ -8523,7 +8529,7 @@ class vu {
8523
8529
  Ve.warn(`widget '${e}' is not found`);
8524
8530
  return;
8525
8531
  }
8526
- Tt(l, t), t.component && (l.component = t.component);
8532
+ Bt(l, t), t.component && (l.component = t.component);
8527
8533
  }
8528
8534
  /**
8529
8535
  * 根据区域名称获取区域内的器件配置
@@ -8635,13 +8641,13 @@ class hu {
8635
8641
  Ve.warn(`setter '${e}' is not found`);
8636
8642
  return;
8637
8643
  }
8638
- Tt(l, t), t.component && (l.component = t.component);
8644
+ Bt(l, t), t.component && (l.component = t.component);
8639
8645
  }
8640
8646
  getByType(e) {
8641
8647
  return Object.values(this.setters).filter((l) => l.type === e).map((l) => l.name);
8642
8648
  }
8643
8649
  }
8644
- const Le = new hu();
8650
+ const Ne = new hu();
8645
8651
  class bu {
8646
8652
  constructor() {
8647
8653
  $(this, "window");
@@ -8666,7 +8672,7 @@ class bu {
8666
8672
  });
8667
8673
  }
8668
8674
  async load(e) {
8669
- this.enabled && (await Bt(200), this.window && this.appUnmount(this.window), e && this.appInit(e), this.isInited = !0);
8675
+ this.enabled && (await Tt(200), this.window && this.appUnmount(this.window), e && this.appInit(e), this.isInited = !0);
8670
8676
  }
8671
8677
  updateState(e) {
8672
8678
  e.key === Kt && (this.isOpen.value = !!this.getState().open);
@@ -8674,13 +8680,14 @@ class bu {
8674
8680
  init(e, t) {
8675
8681
  if (!this.engine) {
8676
8682
  this.engine = t;
8677
- const { simulator: l, changed: s, current: a } = this.engine;
8678
- J(l.rendered, () => this.proxyLoad(this.window)), J(
8683
+ const { simulator: l, changed: s } = this.engine;
8684
+ J(l.rendered, () => {
8685
+ this.proxyLoad(this.window);
8686
+ }), J(
8679
8687
  () => s?.value,
8680
- () => this.proxyLoad(this.window)
8681
- ), J(
8682
- () => a?.value,
8683
- () => this.proxyLoad(this.window)
8688
+ () => {
8689
+ this.proxyLoad(this.window);
8690
+ }
8684
8691
  );
8685
8692
  }
8686
8693
  this.window && (this.appUnmount(this.window), this.window = void 0), this.isOpen.value = !!this.getState().open, e.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__ = {}, this.loadScripts(e, () => {
@@ -8695,7 +8702,7 @@ class bu {
8695
8702
  if (t && l) {
8696
8703
  const s = t.renderer?.app;
8697
8704
  if (!s) return;
8698
- s._uid === 1 && l.emit("app:unmount", s), l.emit("app:init", s, s.version, {}), this.app = s;
8705
+ e.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__ || (e.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__ = {}), s._uid === 1 && l.emit("app:unmount", s), l.emit("app:init", s, s.version, {}), this.app = s;
8699
8706
  }
8700
8707
  }
8701
8708
  appUnmount(e) {
@@ -8731,8 +8738,8 @@ class _u {
8731
8738
  constructor(e, t, l, s) {
8732
8739
  $(this, "proxied", {});
8733
8740
  $(this, "document", null);
8734
- $(this, "hover", Me(null));
8735
- $(this, "dropping", Me(null));
8741
+ $(this, "hover", Ue(null));
8742
+ $(this, "dropping", Ue(null));
8736
8743
  $(this, "selected", k(null));
8737
8744
  $(this, "dragging", null);
8738
8745
  $(this, "draggingNode", null);
@@ -8756,7 +8763,7 @@ class _u {
8756
8763
  ), ne.on(
8757
8764
  wt,
8758
8765
  this.bind(this.onActiveChange, "onActiveChange")
8759
- ), ne.on(Ue, this.bind(this.onViewChange, "onViewChange")), J(
8766
+ ), ne.on(qe, this.bind(this.onViewChange, "onViewChange")), J(
8760
8767
  this.devtools.isOpen,
8761
8768
  (l) => {
8762
8769
  l && this.cleanHelper();
@@ -8781,7 +8788,7 @@ class _u {
8781
8788
  wt,
8782
8789
  this.bind(this.onActiveChange, "onActiveChange")
8783
8790
  ), ne.off(
8784
- Ue,
8791
+ qe,
8785
8792
  this.bind(this.onViewChange, "onViewChange")
8786
8793
  );
8787
8794
  }
@@ -8923,7 +8930,7 @@ class _u {
8923
8930
  this.setSelected(null), this.setHover(null), this.setDragging(null), this.setDropping(null);
8924
8931
  }
8925
8932
  async updateRect() {
8926
- await Bt(100);
8933
+ await Tt(100);
8927
8934
  const e = n(this.selected), t = n(this.hover);
8928
8935
  if (e) {
8929
8936
  const l = e.el.getBoundingClientRect();
@@ -8999,8 +9006,8 @@ class _u {
8999
9006
  return !1;
9000
9007
  const r = s.assets.componentMap, i = t !== "inner" && e.parent || e, g = await s.assets.getBlockMaterial(i.from) || r.get(i.name);
9001
9008
  if (!g) return !1;
9002
- 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);
9003
- return b && c;
9009
+ const { parentIncludes: d = !0, name: m } = l, { childIncludes: f = !0 } = g, h = d === !0 || Array.isArray(d) && d.includes(i.name), c = f === !0 || Array.isArray(f) && f.includes(m);
9010
+ return h && c;
9004
9011
  }
9005
9012
  dispose() {
9006
9013
  const { contentWindow: e, document: t } = this;
@@ -9061,7 +9068,7 @@ class wu {
9061
9068
  } catch (f) {
9062
9069
  le(f.message || "未知错误", "运行时错误"), console.error(f);
9063
9070
  }
9064
- this.context = d, ne.on(Ue, this.nodeChange), ne.on(kt, this.blockChange);
9071
+ this.context = d, ne.on(qe, this.nodeChange), ne.on(kt, this.blockChange);
9065
9072
  }
9066
9073
  dispose() {
9067
9074
  if (this.app) {
@@ -9069,7 +9076,7 @@ class wu {
9069
9076
  const e = this.app._container;
9070
9077
  e && e.parentNode && (e.parentNode.removeChild(e), this.app._container = null), this.app = null;
9071
9078
  }
9072
- this.dsl = null, this.context = null, ne.off(Ue, this.nodeChange), ne.off(kt, this.blockChange);
9079
+ this.dsl = null, this.context = null, ne.off(qe, this.nodeChange), ne.off(kt, this.blockChange);
9073
9080
  }
9074
9081
  updateChild(e, t) {
9075
9082
  const l = t.children || t.nodes || [];
@@ -9095,7 +9102,7 @@ class ku extends wn {
9095
9102
  super();
9096
9103
  $(this, "contentWindow", null);
9097
9104
  $(this, "renderer", null);
9098
- $(this, "designer", Me(null));
9105
+ $(this, "designer", Ue(null));
9099
9106
  $(this, "engine");
9100
9107
  $(this, "materialPath");
9101
9108
  $(this, "rendered", k(Symbol()));
@@ -9174,43 +9181,43 @@ class ku extends wn {
9174
9181
  this.renderer?.dispose(), this.renderer = null;
9175
9182
  const o = this.contentWindow, { assets: r, service: i, current: g, provider: d } = this.engine, m = d.materials || {}, f = [];
9176
9183
  for (const c of l) {
9177
- const w = m[c] ? (await m[c]()).default : o[c];
9178
- f.push(w);
9184
+ const _ = m[c] ? (await m[c]()).default : o[c];
9185
+ f.push(_);
9179
9186
  }
9180
9187
  r.load(f);
9181
- const b = this.createEnv(
9188
+ const h = this.createEnv(
9182
9189
  t,
9183
9190
  s,
9184
9191
  f,
9185
9192
  a
9186
9193
  );
9187
- this.devtools.init(o, this.engine), this.renderer = new wu(b, i, d, this.designer.value), g.value && (this.renderer.render(g.value), this.rendered.value = Symbol()), this.triggerReady();
9194
+ this.devtools.init(o, this.engine), this.renderer = new wu(h, i, d, this.designer.value), g.value && (this.renderer.render(g.value), this.rendered.value = Symbol()), this.triggerReady();
9188
9195
  }
9189
9196
  createEnv(t = [], l = {}, s = [], a = {}) {
9190
9197
  const o = this.contentWindow, { engine: r } = this, { project: i, assets: g, provider: d } = r, m = t.reduce((I, z) => (I[z] = o[z], I), {}), f = {};
9191
9198
  Object.entries(a).forEach(([I, z]) => {
9192
9199
  f[I] = o[z];
9193
9200
  });
9194
- const b = {}, { groups: c, componentMap: w } = g;
9201
+ const h = {}, { groups: c, componentMap: _ } = g;
9195
9202
  for (const I of c.value) {
9196
9203
  const z = I.names || [];
9197
9204
  if (I.name === _t)
9198
9205
  z.forEach((R) => {
9199
- const D = w.get(R), T = D?.package || "", P = Dl[T], G = m[P];
9200
- G && D && (b[R] = Ht(D, G));
9206
+ const D = _.get(R), B = D?.package || "", P = Dl[B], G = m[P];
9207
+ G && D && (h[R] = Ht(D, G));
9201
9208
  });
9202
9209
  else {
9203
9210
  const R = m[l[I.library || ""]];
9204
9211
  R && z.forEach((D) => {
9205
- const T = w.get(D);
9206
- T ? b[D] = Ht(T, R) : b[D] = R[D];
9212
+ const B = _.get(D);
9213
+ B ? h[D] = Ht(B, R) : h[D] = R[D];
9207
9214
  });
9208
9215
  }
9209
9216
  }
9210
- const { adapter: _, globals: x } = d, C = Hl(
9217
+ const { adapter: w, globals: x } = d, C = Hl(
9211
9218
  i.value?.apis,
9212
9219
  i.value?.meta,
9213
- _
9220
+ w
9214
9221
  );
9215
9222
  return Gl(), i.value?.config?.mock && Xl(i.value?.apis), {
9216
9223
  window: o,
@@ -9218,7 +9225,7 @@ class ku extends wn {
9218
9225
  VueRouter: o.VueRouter,
9219
9226
  library: m,
9220
9227
  materials: s,
9221
- components: b,
9228
+ components: h,
9222
9229
  container: o.document.body,
9223
9230
  apis: C,
9224
9231
  globals: x,
@@ -9260,9 +9267,9 @@ class Su {
9260
9267
  const { categories: s, components: a, label: o, name: r, library: i } = l;
9261
9268
  if (!s || !a)
9262
9269
  continue;
9263
- const g = a.filter((b) => !!b.package).map((b) => b.name), d = s.map(
9264
- (b) => this.getCateoryComponents(b, a)
9265
- ), m = d.reduce((b, c) => c.count + b, 0), f = {
9270
+ const g = a.filter((h) => !!h.package).map((h) => h.name), d = s.map(
9271
+ (h) => this.getCateoryComponents(h, a)
9272
+ ), m = d.reduce((h, c) => c.count + h, 0), f = {
9266
9273
  name: l.name,
9267
9274
  label: o || r,
9268
9275
  count: m,
@@ -9292,12 +9299,12 @@ class Su {
9292
9299
  l.name = t || l.name;
9293
9300
  const { id: s, name: a, slots: o, props: r, emits: i } = l, g = (m) => {
9294
9301
  const f = Array.isArray(m) ? m : [m];
9295
- let b = [];
9302
+ let h = [];
9296
9303
  for (const c of f)
9297
- b = b.concat(
9298
- Le.getByType(c)
9304
+ h = h.concat(
9305
+ Ne.getByType(c)
9299
9306
  );
9300
- return b;
9307
+ return h;
9301
9308
  }, d = {
9302
9309
  id: s,
9303
9310
  name: a,
@@ -9381,7 +9388,7 @@ class ic extends wn {
9381
9388
  Ve.warn("VTJEngine constructor param [ container ] is undefined");
9382
9389
  }
9383
9390
  bindEvents() {
9384
- ne.on(Bl, (t) => this.saveProject(t)), ne.on(Tl, (t) => this.saveBlockFile(t)), ne.on(Rl, (t) => this.saveBlockFile(t)), ne.on($l, () => this.saveMaterials()), ne.on(wt, (t) => this.activeFile(t)), ne.on(Ol, () => this.publish()), ne.on(zl, () => this.publishCurrent()), ne.on(kt, (t) => this.changeFile(t)), ne.on(Ue, () => this.changeCurrentFile()), ne.on(Fl, (t) => this.saveHistory(t)), ne.on(Wl, (t) => this.loadHistory(t));
9391
+ ne.on(Tl, (t) => this.saveProject(t)), ne.on(Bl, (t) => this.saveBlockFile(t)), ne.on(Rl, (t) => this.saveBlockFile(t)), ne.on($l, () => this.saveMaterials()), ne.on(wt, (t) => this.activeFile(t)), ne.on(Ol, () => this.publish()), ne.on(zl, () => this.publishCurrent()), ne.on(kt, (t) => this.changeFile(t)), ne.on(qe, () => this.changeCurrentFile()), ne.on(Fl, (t) => this.saveHistory(t)), ne.on(Wl, (t) => this.loadHistory(t));
9385
9392
  }
9386
9393
  async activeFile(t) {
9387
9394
  await ke();
@@ -9653,7 +9660,7 @@ const Ee = E({
9653
9660
  type: [String, Object, Array],
9654
9661
  required: !0,
9655
9662
  default() {
9656
- return [Le.defaultSetter];
9663
+ return [Ne.defaultSetter];
9657
9664
  }
9658
9665
  },
9659
9666
  options: {
@@ -9702,8 +9709,8 @@ const Ee = E({
9702
9709
  defaultSetter() {
9703
9710
  const { value: u, computedSetters: e } = this;
9704
9711
  let t = typeof u;
9705
- t === "Object" && (Array.isArray(u) ? t = "Array" : He(u) ? t = "Object" : Ql(u) && (t = "Function"));
9706
- const l = Le.getByType(t) || [];
9712
+ t === "Object" && (Array.isArray(u) ? t = "Array" : Ge(u) ? t = "Object" : Ql(u) && (t = "Function"));
9713
+ const l = Ne.getByType(t) || [];
9707
9714
  return l.length ? (e.find((s) => l.includes(s.name)) || e[0])?.name : e[0]?.name;
9708
9715
  }
9709
9716
  },
@@ -9742,7 +9749,7 @@ const Ee = E({
9742
9749
  emits: ["change", "remove"],
9743
9750
  methods: {
9744
9751
  getSetter(u) {
9745
- return typeof u == "string" ? Le.get(u) || Le.defaultSetter : u;
9752
+ return typeof u == "string" ? Ne.get(u) || Ne.defaultSetter : u;
9746
9753
  },
9747
9754
  changeValue(u) {
9748
9755
  this.$emit("change", this.name, u);
@@ -9781,30 +9788,30 @@ const Ee = E({
9781
9788
  onEnd(C, I) {
9782
9789
  a.value = I.elementWidth.value;
9783
9790
  }
9784
- }, i = k(), g = k(), d = k(), m = k(), f = k(), b = k(), c = k(), w = k(), _ = k(!1), x = k(!1);
9791
+ }, i = k(), g = k(), d = k(), m = k(), f = k(), h = k(), c = k(), _ = k(), w = k(!1), x = k(!1);
9785
9792
  return e({
9786
9793
  brand: i,
9787
9794
  toolbar: g,
9788
9795
  actions: d,
9789
9796
  apps: m,
9790
9797
  workspace: f,
9791
- settings: b,
9798
+ settings: h,
9792
9799
  status: c,
9793
- collapsed: _,
9800
+ collapsed: w,
9794
9801
  settable: x,
9795
9802
  leftWidth: s,
9796
9803
  rightWidth: a,
9797
- preview: w,
9804
+ preview: _,
9798
9805
  isPreview: l
9799
9806
  }), (C, I) => (p(), y(n(gl), { locale: n(yl) }, {
9800
- default: h(() => [
9807
+ default: b(() => [
9801
9808
  v(n(Lt), { class: "v-skeleton" }, {
9802
- default: h(() => [
9809
+ default: b(() => [
9803
9810
  v(n(fl), {
9804
9811
  class: "v-skeleton__header",
9805
9812
  height: C.headerHeight
9806
9813
  }, {
9807
- default: h(() => [
9814
+ default: b(() => [
9808
9815
  v(n(Ee), {
9809
9816
  ref_key: "brand",
9810
9817
  ref: i,
@@ -9825,15 +9832,15 @@ const Ee = E({
9825
9832
  _: 1
9826
9833
  }, 8, ["height"]),
9827
9834
  v(n(Lt), { class: "v-skeleton__wrapper" }, {
9828
- default: h(() => [
9835
+ default: b(() => [
9829
9836
  l.value ? A("", !0) : Pe((p(), y(n(Nt), {
9830
9837
  key: 0,
9831
9838
  width: t.leftWidth,
9832
9839
  class: X(["v-skeleton__left", {
9833
- "is-collapsed": _.value
9840
+ "is-collapsed": w.value
9834
9841
  }])
9835
9842
  }, {
9836
- default: h(() => [
9843
+ default: b(() => [
9837
9844
  v(n(Ee), {
9838
9845
  ref_key: "apps",
9839
9846
  ref: m,
@@ -9845,11 +9852,11 @@ const Ee = E({
9845
9852
  [n(Jt), o]
9846
9853
  ]),
9847
9854
  v(n(hl), { class: "v-skeleton__main" }, {
9848
- default: h(() => [
9855
+ default: b(() => [
9849
9856
  l.value ? (p(), y(n(Ee), {
9850
9857
  key: 0,
9851
9858
  ref_key: "preview",
9852
- ref: w,
9859
+ ref: _,
9853
9860
  region: "Preview",
9854
9861
  preview: l.value
9855
9862
  }, null, 8, ["preview"])) : A("", !0),
@@ -9858,7 +9865,7 @@ const Ee = E({
9858
9865
  ref: f,
9859
9866
  region: "Workspace"
9860
9867
  }, null, 512), [
9861
- [Be, !l.value]
9868
+ [Te, !l.value]
9862
9869
  ])
9863
9870
  ]),
9864
9871
  _: 1
@@ -9868,16 +9875,16 @@ const Ee = E({
9868
9875
  width: t.rightWidth,
9869
9876
  class: "v-skeleton__right"
9870
9877
  }, {
9871
- default: h(() => [
9878
+ default: b(() => [
9872
9879
  v(n(Ee), {
9873
9880
  ref_key: "settings",
9874
- ref: b,
9881
+ ref: h,
9875
9882
  region: "Settings"
9876
9883
  }, null, 512)
9877
9884
  ]),
9878
9885
  _: 1
9879
9886
  }, 8, ["width"])), [
9880
- [Be, x.value],
9887
+ [Te, x.value],
9881
9888
  [n(Jt), r]
9882
9889
  ])
9883
9890
  ]),
@@ -9888,7 +9895,7 @@ const Ee = E({
9888
9895
  class: "v-skeleton__footer",
9889
9896
  height: C.footerHeight
9890
9897
  }, {
9891
- default: h(() => [
9898
+ default: b(() => [
9892
9899
  v(n(Ee), {
9893
9900
  ref_key: "status",
9894
9901
  ref: c,
@@ -9926,7 +9933,7 @@ const Ee = E({
9926
9933
  setup(u, { emit: e }) {
9927
9934
  const t = u, l = e, s = k(!1), a = k(""), o = k(
9928
9935
  t.setters.find((x) => x.name === t.defaultSetter) || t.setters[0]
9929
- ), r = k(t.value), i = S(() => !!He(r.value)), g = {
9936
+ ), r = k(t.value), i = S(() => !!Ge(r.value)), g = {
9930
9937
  [o.value.name]: r.value
9931
9938
  }, d = (x) => {
9932
9939
  g[o.value.name] = r.value, o.value = x, r.value = g[x.name] ?? void 0, m(r.value);
@@ -9948,11 +9955,11 @@ const Ee = E({
9948
9955
  l("change", x);
9949
9956
  }, f = () => {
9950
9957
  l("remove", t.name);
9951
- }, b = () => {
9952
- s.value = !0, a.value = He(r.value) ? r.value.value : "";
9958
+ }, h = () => {
9959
+ s.value = !0, a.value = Ge(r.value) ? r.value.value : "";
9953
9960
  }, c = () => {
9954
9961
  s.value = !1, a.value = "";
9955
- }, w = async (x) => re(x, t.context, !0) ? (g[o.value.name] = r.value, r.value = x, l("change", x), !0) : !1, _ = async () => {
9962
+ }, _ = async (x) => re(x, t.context, !0) ? (g[o.value.name] = r.value, r.value = x, l("change", x), !0) : !1, w = async () => {
9956
9963
  await Fe("确定要解除绑定吗?") && (c(), r.value = void 0, l("change", void 0));
9957
9964
  };
9958
9965
  return (x, C) => (p(), y(n(hn), {
@@ -9960,13 +9967,13 @@ const Ee = E({
9960
9967
  size: "small",
9961
9968
  "label-positon": "left"
9962
9969
  }, {
9963
- label: h(() => [
9970
+ label: b(() => [
9964
9971
  t.title ? (p(), y(n(vn), {
9965
9972
  key: 0,
9966
9973
  placement: "top-start",
9967
9974
  content: t.title
9968
9975
  }, {
9969
- default: h(() => [
9976
+ default: b(() => [
9970
9977
  K(F(t.label || t.name), 1)
9971
9978
  ]),
9972
9979
  _: 1
@@ -9975,7 +9982,7 @@ const Ee = E({
9975
9982
  title: t.name
9976
9983
  }, F(t.label || t.name), 9, Vu))
9977
9984
  ]),
9978
- default: h(() => [
9985
+ default: b(() => [
9979
9986
  V("div", Au, [
9980
9987
  o.value ? (p(), j("div", ju, [
9981
9988
  i.value ? A("", !0) : (p(), y(sn(o.value.component), ie({
@@ -9995,10 +10002,10 @@ const Ee = E({
9995
10002
  disabled: "",
9996
10003
  "model-value": "JSExpression"
9997
10004
  }, {
9998
- prefix: h(() => [
10005
+ prefix: b(() => [
9999
10006
  K(F(Pu))
10000
10007
  ]),
10001
- suffix: h(() => [
10008
+ suffix: b(() => [
10002
10009
  K(F(Du))
10003
10010
  ]),
10004
10011
  _: 1
@@ -10007,7 +10014,7 @@ const Ee = E({
10007
10014
  V("div", Eu, [
10008
10015
  t.variable ? (p(), y(n(Da), {
10009
10016
  key: 0,
10010
- onClick: b,
10017
+ onClick: h,
10011
10018
  class: X(["v-icon-vars", { "is-active": i.value }]),
10012
10019
  title: "绑定变量"
10013
10020
  }, null, 8, ["class"])) : A("", !0),
@@ -10018,14 +10025,14 @@ const Ee = E({
10018
10025
  "popper-class": "v-setter-switch",
10019
10026
  onCommand: d
10020
10027
  }, {
10021
- dropdown: h(() => [
10028
+ dropdown: b(() => [
10022
10029
  v(n(mn), null, {
10023
- default: h(() => [
10030
+ default: b(() => [
10024
10031
  (p(!0), j(O, null, L(t.setters, (I) => (p(), y(n(ht), {
10025
10032
  command: I,
10026
10033
  key: I.name
10027
10034
  }, {
10028
- default: h(() => [
10035
+ default: b(() => [
10029
10036
  v(n(Vn), {
10030
10037
  class: X({
10031
10038
  "is-placeholder": I.name !== o.value.name
@@ -10039,7 +10046,7 @@ const Ee = E({
10039
10046
  _: 1
10040
10047
  })
10041
10048
  ]),
10042
- default: h(() => [
10049
+ default: b(() => [
10043
10050
  v(n(Ia), { title: "切换设置器" })
10044
10051
  ]),
10045
10052
  _: 1
@@ -10058,21 +10065,21 @@ const Ee = E({
10058
10065
  value: a.value,
10059
10066
  modelValue: s.value,
10060
10067
  "onUpdate:modelValue": C[1] || (C[1] = (I) => s.value = I),
10061
- submitMethod: w,
10062
- onUnbind: _
10068
+ submitMethod: _,
10069
+ onUnbind: w
10063
10070
  }, null, 8, ["current", "context", "value", "modelValue"])) : A("", !0)
10064
10071
  ]),
10065
10072
  _: 1
10066
10073
  }));
10067
10074
  }
10068
- }), Bu = { class: "v-empty-region" }, Tu = /* @__PURE__ */ E({
10075
+ }), Tu = { class: "v-empty-region" }, Bu = /* @__PURE__ */ E({
10069
10076
  name: "EmptyRegion",
10070
10077
  __name: "empty",
10071
10078
  props: {
10072
10079
  region: {}
10073
10080
  },
10074
10081
  setup(u) {
10075
- return (e, t) => (p(), j("div", Bu, "找不到符合【" + F(e.region) + "】名称的区域组件", 1));
10082
+ return (e, t) => (p(), j("div", Tu, "找不到符合【" + F(e.region) + "】名称的区域组件", 1));
10076
10083
  }
10077
10084
  }), Ru = { class: "v-brand-region" }, $u = /* @__PURE__ */ E({
10078
10085
  name: "BrandRegion",
@@ -10166,41 +10173,41 @@ const Ee = E({
10166
10173
  widgets: s,
10167
10174
  widgetsRef: a,
10168
10175
  setActive: (c) => {
10169
- const w = o.value.find((_) => _.name === c);
10170
- g.value = w, d.value = w;
10176
+ const _ = o.value.find((w) => w.name === c);
10177
+ g.value = _, d.value = _;
10171
10178
  }
10172
- }), (c, w) => (p(), j("div", Lu, [
10179
+ }), (c, _) => (p(), j("div", Lu, [
10173
10180
  V("div", Nu, [
10174
10181
  V("div", Ju, [
10175
- (p(!0), j(O, null, L(o.value, (_) => (p(), y(n(en), {
10176
- key: `icon-${_.name}`,
10177
- icon: _.icon,
10178
- label: _.label,
10179
- active: g.value?.name === _.name,
10180
- open: d.value?.name === _.name,
10181
- onClick: (x) => m(_)
10182
+ (p(!0), j(O, null, L(o.value, (w) => (p(), y(n(en), {
10183
+ key: `icon-${w.name}`,
10184
+ icon: w.icon,
10185
+ label: w.label,
10186
+ active: g.value?.name === w.name,
10187
+ open: d.value?.name === w.name,
10188
+ onClick: (x) => m(w)
10182
10189
  }, null, 8, ["icon", "label", "active", "open", "onClick"]))), 128))
10183
10190
  ]),
10184
10191
  V("div", Mu, [
10185
- (p(!0), j(O, null, L(r.value, (_) => (p(), y(n(en), {
10186
- key: `icon-${_.name}`,
10187
- icon: _.icon,
10188
- label: _.label,
10189
- onClick: (x) => f(_)
10192
+ (p(!0), j(O, null, L(r.value, (w) => (p(), y(n(en), {
10193
+ key: `icon-${w.name}`,
10194
+ icon: w.icon,
10195
+ label: w.label,
10196
+ onClick: (x) => f(w)
10190
10197
  }, null, 8, ["icon", "label", "onClick"]))), 128))
10191
10198
  ])
10192
10199
  ]),
10193
10200
  V("div", Uu, [
10194
- (p(!0), j(O, null, L(o.value, (_) => (p(), y(cn, {
10195
- key: _.name
10201
+ (p(!0), j(O, null, L(o.value, (w) => (p(), y(cn, {
10202
+ key: w.name
10196
10203
  }, [
10197
- g.value?.name === _.name ? (p(), y(n(Ie), {
10204
+ g.value?.name === w.name ? (p(), y(n(Ie), {
10198
10205
  key: 0,
10199
10206
  ref_for: !0,
10200
10207
  ref_key: "widgetsRef",
10201
10208
  ref: a,
10202
10209
  region: c.region,
10203
- widget: _
10210
+ widget: w
10204
10211
  }, null, 8, ["region", "widget"])) : A("", !0)
10205
10212
  ], 1024))), 128))
10206
10213
  ])
@@ -10213,7 +10220,7 @@ const Ee = E({
10213
10220
  region: {}
10214
10221
  },
10215
10222
  setup(u, { expose: e }) {
10216
- const t = u, { widgets: l, widgetsRef: s } = De(t.region), a = Xe(
10223
+ const t = u, { widgets: l, widgetsRef: s } = De(t.region), a = Ke(
10217
10224
  l.value.map((c) => ({
10218
10225
  name: c.name,
10219
10226
  command: c.name,
@@ -10226,22 +10233,22 @@ const Ee = E({
10226
10233
  ), o = S(() => a?.filter((c) => !c.closable || c.checked)), r = S(() => a.map((c) => ({
10227
10234
  ...c,
10228
10235
  disabled: !c.closable
10229
- }))), i = k(o.value[0]?.name), g = S(() => a.find((w) => w.name === i.value)?.props || {}), d = (c) => {
10230
- const w = a.find((_) => _.name === c);
10231
- w && (w.checked = !1), i.value === c && (i.value = o.value[0]?.name);
10236
+ }))), i = k(o.value[0]?.name), g = S(() => a.find((_) => _.name === i.value)?.props || {}), d = (c) => {
10237
+ const _ = a.find((w) => w.name === c);
10238
+ _ && (_.checked = !1), i.value === c && (i.value = o.value[0]?.name);
10232
10239
  }, m = (c) => {
10233
- const w = a.find((_) => _.name === c.name);
10234
- w && w.closable && (w.checked = !w.checked, w.checked && (i.value = w.name), !w.checked && i.value === w.name && (i.value = o.value[0]?.name));
10235
- }, f = (c, w = {}) => {
10236
- const _ = a.find((x) => x.name === c);
10237
- _ && (_.props = Object.assign({}, _.props, w), _.checked = !0, i.value = _.name);
10238
- }, b = (c) => {
10240
+ const _ = a.find((w) => w.name === c.name);
10241
+ _ && _.closable && (_.checked = !_.checked, _.checked && (i.value = _.name), !_.checked && i.value === _.name && (i.value = o.value[0]?.name));
10242
+ }, f = (c, _ = {}) => {
10243
+ const w = a.find((x) => x.name === c);
10244
+ w && (w.props = Object.assign({}, w.props, _), w.checked = !0, i.value = w.name);
10245
+ }, h = (c) => {
10239
10246
  if (s.value) {
10240
- const w = s.value[0]?.widgetRef;
10241
- if (!w) return;
10247
+ const _ = s.value[0]?.widgetRef;
10248
+ if (!_) return;
10242
10249
  switch (c.name) {
10243
10250
  case "home":
10244
- w.refresh();
10251
+ _.refresh();
10245
10252
  break;
10246
10253
  }
10247
10254
  }
@@ -10251,28 +10258,28 @@ const Ee = E({
10251
10258
  widgets: l,
10252
10259
  widgetsRef: s,
10253
10260
  openTab: f
10254
- }), (c, w) => (p(), y(n(ct), {
10261
+ }), (c, _) => (p(), y(n(ct), {
10255
10262
  class: "v-workspace-region",
10256
10263
  items: o.value,
10257
10264
  menus: r.value,
10258
10265
  modelValue: i.value,
10259
- "onUpdate:modelValue": w[0] || (w[0] = (_) => i.value = _),
10266
+ "onUpdate:modelValue": _[0] || (_[0] = (w) => i.value = w),
10260
10267
  checkable: "",
10261
10268
  onRemove: d,
10262
10269
  onCommand: m,
10263
- onActionClick: b
10270
+ onActionClick: h
10264
10271
  }, {
10265
- default: h(() => [
10266
- (p(!0), j(O, null, L(n(l), (_) => (p(), j(O, {
10267
- key: _.name
10272
+ default: b(() => [
10273
+ (p(!0), j(O, null, L(n(l), (w) => (p(), j(O, {
10274
+ key: w.name
10268
10275
  }, [
10269
- i.value === _.name ? (p(), y(n(Ie), {
10276
+ i.value === w.name ? (p(), y(n(Ie), {
10270
10277
  key: 0,
10271
10278
  ref_for: !0,
10272
10279
  ref_key: "widgetsRef",
10273
10280
  ref: s,
10274
10281
  region: c.region,
10275
- widget: { ..._, props: g.value }
10282
+ widget: { ...w, props: g.value }
10276
10283
  }, null, 8, ["region", "widget"])) : A("", !0)
10277
10284
  ], 64))), 128))
10278
10285
  ]),
@@ -10288,22 +10295,22 @@ const Ee = E({
10288
10295
  setup(u, { expose: e }) {
10289
10296
  const t = u, l = de(), { current: s } = ue(), { selected: a, isSelectBlock: o } = xe(), r = S(
10290
10297
  () => o.value ? he.Block : he.Node
10291
- ), { widgets: i, widgetsRef: g } = De(t.region, r), d = k(), m = k(!1), f = S(() => i.value.map((_) => ({
10292
- name: _.name,
10293
- label: _.label,
10294
- actions: _.name === "Style" ? [
10298
+ ), { widgets: i, widgetsRef: g } = De(t.region, r), d = k(), m = k(!1), f = S(() => i.value.map((w) => ({
10299
+ name: w.name,
10300
+ label: w.label,
10301
+ actions: w.name === "Style" ? [
10295
10302
  {
10296
10303
  name: "switch",
10297
- icon: Ba,
10304
+ icon: Ta,
10298
10305
  background: "hover"
10299
10306
  }
10300
10307
  ] : void 0
10301
- }))), b = S(() => {
10302
- const _ = a.value?.model;
10303
- return _ ? l.assets.componentMap.get(_.name)?.doc : null;
10308
+ }))), h = S(() => {
10309
+ const w = a.value?.model;
10310
+ return w ? l.assets.componentMap.get(w.name)?.doc : null;
10304
10311
  });
10305
- J(s, (_) => {
10306
- l.skeleton?.settable(!!_);
10312
+ J(s, (w) => {
10313
+ l.skeleton?.settable(!!w);
10307
10314
  }), J(
10308
10315
  r,
10309
10316
  () => {
@@ -10314,25 +10321,25 @@ const Ee = E({
10314
10321
  m.value = !1;
10315
10322
  });
10316
10323
  const c = () => {
10317
- if (b.value) {
10318
- const _ = l.skeleton?.getRegion("Workspace");
10319
- _ && _.regionRef.openTab("Docs", {
10320
- url: b.value
10324
+ if (h.value) {
10325
+ const w = l.skeleton?.getRegion("Workspace");
10326
+ w && w.regionRef.openTab("Docs", {
10327
+ url: h.value
10321
10328
  });
10322
10329
  }
10323
- }, w = (_) => {
10324
- _.name === "switch" && (m.value = !m.value);
10330
+ }, _ = (w) => {
10331
+ w.name === "switch" && (m.value = !m.value);
10325
10332
  };
10326
10333
  return e({
10327
10334
  widgets: i,
10328
10335
  widgetsRef: g
10329
- }), (_, x) => n(s) ? (p(), y(n(U), {
10336
+ }), (w, x) => n(s) ? (p(), y(n(U), {
10330
10337
  key: 0,
10331
10338
  class: "v-settings-region",
10332
10339
  fit: "",
10333
10340
  direction: "column"
10334
10341
  }, {
10335
- default: h(() => [
10342
+ default: b(() => [
10336
10343
  n(a) ? (p(), y(n(U), {
10337
10344
  key: 0,
10338
10345
  flex: "",
@@ -10340,9 +10347,9 @@ const Ee = E({
10340
10347
  align: "center",
10341
10348
  class: "v-settings-region__header"
10342
10349
  }, {
10343
- default: h(() => [
10350
+ default: b(() => [
10344
10351
  v(n(U), { class: "v-settings-region__title" }, {
10345
- default: h(() => [
10352
+ default: b(() => [
10346
10353
  v(n(In)),
10347
10354
  V("span", null, [
10348
10355
  K(F(n(a)?.model.name) + ": ", 1),
@@ -10351,8 +10358,8 @@ const Ee = E({
10351
10358
  ]),
10352
10359
  _: 1
10353
10360
  }),
10354
- b.value ? (p(), y(n(U), { key: 0 }, {
10355
- default: h(() => [
10361
+ h.value ? (p(), y(n(U), { key: 0 }, {
10362
+ default: b(() => [
10356
10363
  v(n(be), {
10357
10364
  onClick: c,
10358
10365
  icon: n(Dn),
@@ -10370,16 +10377,16 @@ const Ee = E({
10370
10377
  grow: "",
10371
10378
  padding: !1
10372
10379
  }, {
10373
- default: h(() => [
10380
+ default: b(() => [
10374
10381
  v(n(ct), {
10375
10382
  items: f.value,
10376
10383
  modelValue: d.value,
10377
10384
  "onUpdate:modelValue": x[0] || (x[0] = (C) => d.value = C),
10378
10385
  stretch: "",
10379
10386
  body: { padding: !1 },
10380
- onActionClick: w
10387
+ onActionClick: _
10381
10388
  }, {
10382
- default: h(() => [
10389
+ default: b(() => [
10383
10390
  (p(!0), j(O, null, L(n(i), (C) => (p(), j(O, {
10384
10391
  key: C.name
10385
10392
  }, [
@@ -10388,8 +10395,8 @@ const Ee = E({
10388
10395
  ref_for: !0,
10389
10396
  ref_key: "widgetsRef",
10390
10397
  ref: g,
10391
- region: _.region,
10392
- widget: n(Tt)({ props: { isStyleCodeMode: m.value } }, C)
10398
+ region: w.region,
10399
+ widget: n(Bt)({ props: { isStyleCodeMode: m.value } }, C)
10393
10400
  }, null, 8, ["region", "widget"])) : A("", !0)
10394
10401
  ], 64))), 128))
10395
10402
  ]),
@@ -10440,7 +10447,7 @@ const Ee = E({
10440
10447
  region: {}
10441
10448
  },
10442
10449
  setup(u, { expose: e }) {
10443
- const t = u, { widgets: l, widgetsRef: s } = De(t.region), a = Xe(
10450
+ const t = u, { widgets: l, widgetsRef: s } = De(t.region), a = Ke(
10444
10451
  l.value.map((i) => ({
10445
10452
  name: i.name,
10446
10453
  command: i.name,
@@ -10459,7 +10466,7 @@ const Ee = E({
10459
10466
  modelValue: r.value,
10460
10467
  "onUpdate:modelValue": g[0] || (g[0] = (d) => r.value = d)
10461
10468
  }, {
10462
- default: h(() => [
10469
+ default: b(() => [
10463
10470
  (p(!0), j(O, null, L(n(l), (d) => (p(), y(cn, {
10464
10471
  key: d.name
10465
10472
  }, [
@@ -10477,7 +10484,7 @@ const Ee = E({
10477
10484
  }, 8, ["items", "modelValue"]));
10478
10485
  }
10479
10486
  }), tn = {
10480
- EmptyRegion: Tu,
10487
+ EmptyRegion: Bu,
10481
10488
  Brand: $u,
10482
10489
  Toolbar: zu,
10483
10490
  Actions: Wu,
@@ -10540,7 +10547,7 @@ export {
10540
10547
  le as notify,
10541
10548
  Qa as proxyContext,
10542
10549
  tn as regions,
10543
- Le as setterManager,
10550
+ Ne as setterManager,
10544
10551
  ee as setters,
10545
10552
  de as useEngine,
10546
10553
  Mn as widgetManager,