@vtj/designer 0.8.28 → 0.8.30

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,4 +1,4 @@
1
- import { computed as S, unref as t, ref as k, reactive as Le, watchEffect as Dn, watch as G, toValue as ot, defineComponent as E, openBlock as u, createElementBlock as j, toDisplayString as z, createVNode as p, withCtx as f, createElementVNode as C, createBlock as b, createCommentVNode as A, createTextVNode as H, Fragment as T, renderList as F, normalizeClass as q, resolveDynamicComponent as Nt, createSlots as Pn, withDirectives as je, vShow as Pe, renderSlot as we, withModifiers as Oe, toRaw as In, isRef as rt, mergeProps as re, normalizeStyle as He, nextTick as _e, defineAsyncComponent as Bn, h as Re, inject as ht, provide as $n, normalizeProps as Jt, guardReactiveProps as Wt, withKeys as Ge, onMounted as Mt, onUnmounted as Lt, createApp as Ut, shallowRef as it, shallowReactive as Rn, triggerRef as Ve, markRaw as At, KeepAlive as qt } from "vue";
1
+ import { computed as S, unref as t, ref as k, reactive as Le, watchEffect as Dn, watch as G, toValue as ot, defineComponent as E, openBlock as u, createElementBlock as j, toDisplayString as z, createVNode as m, withCtx as f, createElementVNode as C, createBlock as b, createCommentVNode as A, createTextVNode as H, Fragment as T, renderList as F, normalizeClass as q, resolveDynamicComponent as Nt, createSlots as Pn, withDirectives as je, vShow as Pe, renderSlot as we, withModifiers as Oe, toRaw as In, isRef as rt, mergeProps as re, normalizeStyle as He, nextTick as _e, defineAsyncComponent as Bn, h as Re, inject as ht, provide as $n, normalizeProps as Jt, guardReactiveProps as Wt, withKeys as Ge, onMounted as Mt, onUnmounted as Lt, createApp as Ut, shallowRef as it, shallowReactive as Rn, triggerRef as Ve, markRaw as At, KeepAlive as qt } from "vue";
2
2
  import { ElNotification as Ke, ElMessageBox as bt, ElMessage as Ye, ElButton as ae, ElDivider as yt, ElRadioGroup as Ht, ElRadioButton as Xe, ElButtonGroup as Tn, ElDropdown as Gt, ElDropdownMenu as Xt, ElDropdownItem as ut, ElInput as be, ElEmpty as se, ElTooltip as Qt, ElTag as zn, ElSwitch as Kt, ElTree as _t, ElAlert as Yt, ElRow as ct, ElCol as dt, ElCollapse as Fn, ElCollapseItem as On, ElDrawer as Zt, ElForm as ge, ElFormItem as en, ElBreadcrumb as Nn, ElBreadcrumbItem as Jn, ElLoading as Wn, ElSelect as Mn, ElOption as Ln, ElInputNumber as Un, ElColorPicker as qn, ElUpload as Hn, ElSlider as Gn, ElConfigProvider as Xn, ElContainer as jt, ElHeader as Qn, ElAside as Et, ElMain as Kn, ElFooter as Yn } from "element-plus";
3
3
  import Zn from "element-plus/es/locale/lang/zh-cn";
4
4
  import { XIcon as ke, XDialog as Ie, XDialogForm as xe, XField as I, XPanel as Ze, XAction as he, XTabs as wt, XContainer as W, XForm as kt, XAttachment as el, XActionBar as tl, XInputUnit as tn, vResizable as Dt, createDialog as nl } from "@vtj/ui";
@@ -12,10 +12,10 @@ import ms from "mockjs";
12
12
  * Copyright (c) 2024, VTJ.PRO All rights reserved.
13
13
  * @name @vtj/designer
14
14
  * @author CHC chenhuachun1549@dingtalk.com
15
- * @version 0.8.28
15
+ * @version 0.8.30
16
16
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
17
17
  */
18
- const vs = "0.8.28", Rt = {
18
+ const vs = "0.8.30", Rt = {
19
19
  width: 390,
20
20
  height: 844
21
21
  }, Tt = {
@@ -106,7 +106,7 @@ function ks() {
106
106
  },
107
107
  { immediate: !0 }
108
108
  );
109
- const m = S(() => {
109
+ const p = S(() => {
110
110
  const g = i.value.toLowerCase();
111
111
  return !g || !e ? [] : e.filter((y) => y.name.toLowerCase().includes(g) || y.label?.toLowerCase().includes(g));
112
112
  });
@@ -120,7 +120,7 @@ function ks() {
120
120
  currentTab: r,
121
121
  currentGroup: v,
122
122
  searchKey: i,
123
- searchResult: m
123
+ searchResult: p
124
124
  };
125
125
  }
126
126
  function ie() {
@@ -205,43 +205,43 @@ function ye() {
205
205
  }
206
206
  function Vs(c, e) {
207
207
  const n = k(""), { selected: l, isSelectBlock: a } = ye(), o = S(() => l.value?.model.id), s = S(() => {
208
- const i = ot(c), v = ot(e), m = [];
208
+ const i = ot(c), v = ot(e), p = [];
209
209
  if (!i)
210
- return m;
210
+ return p;
211
211
  const g = v?.__contextRefs[o.value || ""], h = v === g || a.value ? [] : Object.keys(g?.context || {}).filter((R) => !["context", "ref"].includes(R)).map((R) => `this.context.${R}`);
212
- h.length && m.push({ title: "上下文", items: h });
212
+ h.length && p.push({ title: "上下文", items: h });
213
213
  const d = i.inject.map((R) => `this.${R.name}`);
214
- d.length && m.push({ title: "注入", items: d });
214
+ d.length && p.push({ title: "注入", items: d });
215
215
  const _ = i.props.map(
216
216
  (R) => typeof R == "string" ? `this.props.${R}` : `this.props.${R.name}`
217
217
  );
218
- _.length && m.push({ title: "属性", items: _ });
218
+ _.length && p.push({ title: "属性", items: _ });
219
219
  const w = Object.keys(i.state).map((R) => `this.state.${R}`);
220
- w.length && m.push({ title: "状态", items: w });
220
+ w.length && p.push({ title: "状态", items: w });
221
221
  const x = Object.keys(i.computed).map(
222
222
  (R) => `this.${R}.value`
223
223
  );
224
- x.length && m.push({ title: "计算属性", items: x });
224
+ x.length && p.push({ title: "计算属性", items: x });
225
225
  const V = Object.keys(i.methods).map((R) => `this.${R}`);
226
- V.length && m.push({ title: "方法", items: V });
226
+ V.length && p.push({ title: "方法", items: V });
227
227
  const B = Object.keys(i.dataSources).map(
228
228
  (R) => `this.${R}`
229
229
  );
230
- B.length && m.push({ title: "数据源", items: B });
230
+ B.length && p.push({ title: "数据源", items: B });
231
231
  const O = Object.keys(v?.$refs || {}).map(
232
232
  (R) => `this.$refs.${R}`
233
233
  );
234
- return O.length && m.push({ title: "refs", items: O }), m;
234
+ return O.length && p.push({ title: "refs", items: O }), p;
235
235
  }), r = S(() => {
236
236
  if (!n.value)
237
237
  return s.value;
238
238
  const i = n.value.toLowerCase(), v = [];
239
- return s.value.forEach((m) => {
240
- const g = m.items.filter(
239
+ return s.value.forEach((p) => {
240
+ const g = p.items.filter(
241
241
  (y) => y.toLowerCase().includes(i)
242
242
  );
243
243
  g.length && v.push({
244
- title: m.title,
244
+ title: p.title,
245
245
  items: g
246
246
  });
247
247
  }), v;
@@ -357,6 +357,9 @@ function oe(c, e, n = !1) {
357
357
  }
358
358
  return l;
359
359
  }
360
+ function js(c) {
361
+ return Object.keys(c).concat(Object.getOwnPropertyNames(Object.getPrototypeOf(c))).filter((e) => !["constructor"].includes(e));
362
+ }
360
363
  function kn() {
361
364
  const c = ce(), e = S(
362
365
  () => c.simulator.designer.value
@@ -387,7 +390,7 @@ function Be() {
387
390
  project: e
388
391
  };
389
392
  }
390
- function js(c) {
393
+ function Es(c) {
391
394
  const e = ce(), n = S(() => {
392
395
  const r = c.value?.model || null;
393
396
  return !r || ee(r) ? null : r;
@@ -422,10 +425,10 @@ function js(c) {
422
425
  return [];
423
426
  const r = n.value.events || {};
424
427
  return (l.value?.events || e.assets.componentMap.get(n.value.name)?.events || []).map((v) => {
425
- const m = typeof v == "string" ? v : v.name;
428
+ const p = typeof v == "string" ? v : v.name;
426
429
  return {
427
- name: m,
428
- event: r[m]
430
+ name: p,
431
+ event: r[p]
429
432
  };
430
433
  });
431
434
  });
@@ -439,12 +442,12 @@ const zt = (c, e) => new an({
439
442
  name: c,
440
443
  value: void 0,
441
444
  iterator: e
442
- }), Es = (c = "modelValue") => new an({
445
+ }), Ds = (c = "modelValue") => new an({
443
446
  name: "vModel",
444
447
  value: void 0,
445
448
  arg: c
446
449
  });
447
- function Ds(c) {
450
+ function Ps(c) {
448
451
  if (!c)
449
452
  return [];
450
453
  const { props: e = [], events: n = [] } = c;
@@ -454,7 +457,7 @@ function Ds(c) {
454
457
  }
455
458
  return [];
456
459
  }
457
- function Ps(c) {
460
+ function Is(c) {
458
461
  const e = ce(), n = S(() => {
459
462
  const d = c.value?.model || null;
460
463
  return ee(d) ? null : d;
@@ -462,10 +465,10 @@ function Ps(c) {
462
465
  if (!n.value)
463
466
  return [];
464
467
  const d = e.assets.componentMap.get(n.value.name || "");
465
- return (d ? Ds(d) : []).map((w) => (n.value?.directives || []).find(
468
+ return (d ? Ps(d) : []).map((w) => (n.value?.directives || []).find(
466
469
  (x) => x.name === "vModel" && x.arg == w.name
467
- ) || Es(w.name));
468
- }), o = l("vIf"), s = l("vShow"), r = l("vBind"), i = l("vFor"), v = a(), m = {
470
+ ) || Ds(w.name));
471
+ }), o = l("vIf"), s = l("vShow"), r = l("vBind"), i = l("vFor"), v = a(), p = {
469
472
  vIf: o,
470
473
  vShow: s,
471
474
  vBind: r,
@@ -480,7 +483,7 @@ function Ps(c) {
480
483
  vFor: i,
481
484
  vModels: v,
482
485
  onValueChange: (d, _) => {
483
- const w = m[d];
486
+ const w = p[d];
484
487
  n.value && (_ ? (w.value.value = _, n.value.setDirective(w.value)) : (w.value.value = void 0, n.value.removeDirective(w.value)));
485
488
  },
486
489
  onForChange: (d, _) => {
@@ -503,7 +506,7 @@ function Ps(c) {
503
506
  }
504
507
  };
505
508
  }
506
- function Is() {
509
+ function Bs() {
507
510
  const { engine: c, project: e } = Be(), n = S(() => e.value?.apis || []), l = S(() => e.value?.meta || []);
508
511
  return {
509
512
  engine: c,
@@ -512,7 +515,7 @@ function Is() {
512
515
  meta: l
513
516
  };
514
517
  }
515
- const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1711803009570'%20class='icon'%20viewBox='0%200%201280%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1500'%20width='320'%20height='256'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cpath%20d='M557.85%201023l-122-35.4c-12.8-3.6-20-17-16.4-29.8L692.45%2017.4c3.6-12.8%2017-20%2029.8-16.4l122%2035.4c12.8%203.6%2020%2017%2016.4%2029.8L587.65%201006.6c-3.8%2012.8-17%2020.2-29.8%2016.4z%20m-228-224.4l87-92.8c9.2-9.8%208.6-25.4-1.6-34.4L234.05%20512l181.2-159.4c10.2-9%2011-24.6%201.6-34.4l-87-92.8c-9-9.6-24.2-10.2-34-1L7.65%20494.4c-10.2%209.4-10.2%2025.6%200%2035l288.2%20270.2c9.8%209.2%2025%208.8%2034-1z%20m654.4%201.2l288.2-270.2c10.2-9.4%2010.2-25.6%200-35L984.25%20224.2c-9.6-9-24.8-8.6-34%201L863.25%20318c-9.2%209.8-8.6%2025.4%201.6%2034.4L1046.05%20512l-181.2%20159.4c-10.2%209-11%2024.6-1.6%2034.4l87%2092.8c9%209.8%2024.2%2010.2%2034%201.2z'%20fill='%230157fe'%20p-id='1501'%3e%3c/path%3e%3c/svg%3e", $s = ["title", "src"], Rs = { key: 1 }, Ts = /* @__PURE__ */ E({
518
+ const $s = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1711803009570'%20class='icon'%20viewBox='0%200%201280%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1500'%20width='320'%20height='256'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cpath%20d='M557.85%201023l-122-35.4c-12.8-3.6-20-17-16.4-29.8L692.45%2017.4c3.6-12.8%2017-20%2029.8-16.4l122%2035.4c12.8%203.6%2020%2017%2016.4%2029.8L587.65%201006.6c-3.8%2012.8-17%2020.2-29.8%2016.4z%20m-228-224.4l87-92.8c9.2-9.8%208.6-25.4-1.6-34.4L234.05%20512l181.2-159.4c10.2-9%2011-24.6%201.6-34.4l-87-92.8c-9-9.6-24.2-10.2-34-1L7.65%20494.4c-10.2%209.4-10.2%2025.6%200%2035l288.2%20270.2c9.8%209.2%2025%208.8%2034-1z%20m654.4%201.2l288.2-270.2c10.2-9.4%2010.2-25.6%200-35L984.25%20224.2c-9.6-9-24.8-8.6-34%201L863.25%20318c-9.2%209.8-8.6%2025.4%201.6%2034.4L1046.05%20512l-181.2%20159.4c-10.2%209-11%2024.6-1.6%2034.4l87%2092.8c9%209.8%2024.2%2010.2%2034%201.2z'%20fill='%230157fe'%20p-id='1501'%3e%3c/path%3e%3c/svg%3e", Rs = ["title", "src"], Ts = { key: 1 }, zs = /* @__PURE__ */ E({
516
519
  name: "LogoWidget",
517
520
  inheritAttrs: !1,
518
521
  __name: "index",
@@ -522,7 +525,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
522
525
  link: {}
523
526
  },
524
527
  setup(c) {
525
- const { engine: e } = ie(), n = c, l = S(() => n.icon || e.project.value?.config?.logo || Bs), a = () => {
528
+ const { engine: e } = ie(), n = c, l = S(() => n.icon || e.project.value?.config?.logo || $s), a = () => {
526
529
  n.link && (location.href = n.link);
527
530
  };
528
531
  return (o, s) => (u(), j("div", {
@@ -534,16 +537,16 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
534
537
  title: n.text,
535
538
  class: "v-logo-widget__icon",
536
539
  src: l.value
537
- }, null, 8, $s)) : (u(), j("span", Rs, z(n.text), 1))
540
+ }, null, 8, Rs)) : (u(), j("span", Ts, z(n.text), 1))
538
541
  ]));
539
542
  }
540
- }), zs = { class: "v-empty-widget" }, Fs = /* @__PURE__ */ E({
543
+ }), Fs = { class: "v-empty-widget" }, Os = /* @__PURE__ */ E({
541
544
  name: "EmptyWidget",
542
545
  __name: "index",
543
546
  setup(c) {
544
- return (e, n) => (u(), j("div", zs, "EmptyWidget"));
547
+ return (e, n) => (u(), j("div", Fs, "EmptyWidget"));
545
548
  }
546
- }), Os = { class: "v-switcher-widget" }, Ns = { key: 1 }, Js = /* @__PURE__ */ E({
549
+ }), Ns = { class: "v-switcher-widget" }, Js = { key: 1 }, Ws = /* @__PURE__ */ E({
547
550
  name: "SwitcherWidget",
548
551
  inheritAttrs: !1,
549
552
  __name: "index",
@@ -552,26 +555,26 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
552
555
  const n = e, { engine: l } = ie(), a = S(() => l.project.value?.config?.title || l.project.value?.name), o = S(() => l.project.value?.currentFile?.title), s = () => {
553
556
  n("click", l.project.value);
554
557
  };
555
- return (r, i) => (u(), j("div", Os, [
556
- p(t(ae), {
558
+ return (r, i) => (u(), j("div", Ns, [
559
+ m(t(ae), {
557
560
  size: "small",
558
561
  round: "",
559
562
  onClick: s
560
563
  }, {
561
564
  default: f(() => [
562
- p(t(Pl), { class: "v-switcher-widget__back" }),
565
+ m(t(Pl), { class: "v-switcher-widget__back" }),
563
566
  C("span", null, z(a.value), 1),
564
567
  o.value ? (u(), b(t(yt), {
565
568
  key: 0,
566
569
  direction: "vertical"
567
570
  })) : A("", !0),
568
- o.value ? (u(), j("span", Ns, z(o.value), 1)) : A("", !0)
571
+ o.value ? (u(), j("span", Js, z(o.value), 1)) : A("", !0)
569
572
  ]),
570
573
  _: 1
571
574
  })
572
575
  ]));
573
576
  }
574
- }), Ws = { class: "v-toolbar-widget" }, Ms = /* @__PURE__ */ E({
577
+ }), Ms = { class: "v-toolbar-widget" }, Ls = /* @__PURE__ */ E({
575
578
  name: "ToolbarWidget",
576
579
  inheritAttrs: !1,
577
580
  __name: "index",
@@ -582,37 +585,37 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
582
585
  const n = c, { forward: l, backward: a, forwardDisabled: o, backwardDisabled: s } = kn(), r = k("pc");
583
586
  return e({
584
587
  mode: r
585
- }), (i, v) => (u(), j("div", Ws, [
586
- p(t(Ht), {
588
+ }), (i, v) => (u(), j("div", Ms, [
589
+ m(t(Ht), {
587
590
  size: "small",
588
591
  modelValue: r.value,
589
- "onUpdate:modelValue": v[0] || (v[0] = (m) => r.value = m)
592
+ "onUpdate:modelValue": v[0] || (v[0] = (p) => r.value = p)
590
593
  }, {
591
594
  default: f(() => [
592
- p(t(Xe), {
595
+ m(t(Xe), {
593
596
  label: "pc",
594
597
  value: "pc"
595
598
  }, {
596
599
  default: f(() => [
597
- p(t(Il))
600
+ m(t(Il))
598
601
  ]),
599
602
  _: 1
600
603
  }),
601
- p(t(Xe), {
604
+ m(t(Xe), {
602
605
  label: "mobile",
603
606
  value: "mobile"
604
607
  }, {
605
608
  default: f(() => [
606
- p(t(Bl))
609
+ m(t(Bl))
607
610
  ]),
608
611
  _: 1
609
612
  }),
610
- p(t(Xe), {
613
+ m(t(Xe), {
611
614
  label: "pad",
612
615
  value: "pad"
613
616
  }, {
614
617
  default: f(() => [
615
- p(t($l))
618
+ m(t($l))
616
619
  ]),
617
620
  _: 1
618
621
  })
@@ -620,27 +623,27 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
620
623
  _: 1
621
624
  }, 8, ["modelValue"]),
622
625
  A("", !0),
623
- p(t(Tn), null, {
626
+ m(t(Tn), null, {
624
627
  default: f(() => [
625
- p(t(ae), {
628
+ m(t(ae), {
626
629
  type: "default",
627
630
  size: "small",
628
631
  onClick: t(a),
629
632
  disabled: t(s) || !!n.preview
630
633
  }, {
631
634
  default: f(() => [
632
- p(t(Rl))
635
+ m(t(Rl))
633
636
  ]),
634
637
  _: 1
635
638
  }, 8, ["onClick", "disabled"]),
636
- p(t(ae), {
639
+ m(t(ae), {
637
640
  type: "default",
638
641
  size: "small",
639
642
  onClick: t(l),
640
643
  disabled: t(o) || !!n.preview
641
644
  }, {
642
645
  default: f(() => [
643
- p(t(Tl))
646
+ m(t(Tl))
644
647
  ]),
645
648
  _: 1
646
649
  }, 8, ["onClick", "disabled"])
@@ -649,7 +652,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
649
652
  })
650
653
  ]));
651
654
  }
652
- }), Ls = { class: "v-actions-widget" }, Us = /* @__PURE__ */ C("span", null, "发布", -1), qs = /* @__PURE__ */ E({
655
+ }), Us = { class: "v-actions-widget" }, qs = /* @__PURE__ */ C("span", null, "发布", -1), Hs = /* @__PURE__ */ E({
653
656
  name: "ActionsWidget",
654
657
  inheritAttrs: !1,
655
658
  __name: "index",
@@ -675,47 +678,47 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
675
678
  const v = e.project.value;
676
679
  v && (v.currentFile ? v.publish(v.currentFile) : de("请先打开文件", "warning"));
677
680
  }, i = (v) => {
678
- const m = e.project.value;
679
- m && (v === "current" ? r() : m.publish());
681
+ const p = e.project.value;
682
+ p && (v === "current" ? r() : p.publish());
680
683
  };
681
- return (v, m) => (u(), j("div", Ls, [
684
+ return (v, p) => (u(), j("div", Us, [
682
685
  A("", !0),
683
686
  A("", !0),
684
- p(t(ae), {
687
+ m(t(ae), {
685
688
  onClick: s,
686
689
  type: l.value ? "warning" : "default",
687
690
  size: "small",
688
691
  title: "预览"
689
692
  }, {
690
693
  default: f(() => [
691
- p(t(zl))
694
+ m(t(zl))
692
695
  ]),
693
696
  _: 1
694
697
  }, 8, ["type"]),
695
- p(t(ae), {
698
+ m(t(ae), {
696
699
  onClick: a,
697
700
  type: "default",
698
701
  size: "small",
699
702
  title: "刷新"
700
703
  }, {
701
704
  default: f(() => [
702
- p(t(Fl))
705
+ m(t(Fl))
703
706
  ]),
704
707
  _: 1
705
708
  }),
706
- p(t(ae), {
709
+ m(t(ae), {
707
710
  type: "default",
708
711
  size: "small",
709
712
  title: "页面设置",
710
713
  onClick: o
711
714
  }, {
712
715
  default: f(() => [
713
- p(t(rn))
716
+ m(t(rn))
714
717
  ]),
715
718
  _: 1
716
719
  }),
717
- p(t(yt), { direction: "vertical" }),
718
- p(t(Gt), {
720
+ m(t(yt), { direction: "vertical" }),
721
+ m(t(Gt), {
719
722
  "split-button": "",
720
723
  type: "primary",
721
724
  size: "small",
@@ -723,15 +726,15 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
723
726
  onCommand: i
724
727
  }, {
725
728
  dropdown: f(() => [
726
- p(t(Xt), null, {
729
+ m(t(Xt), null, {
727
730
  default: f(() => [
728
- p(t(ut), { command: "current" }, {
731
+ m(t(ut), { command: "current" }, {
729
732
  default: f(() => [
730
733
  H("发布页面")
731
734
  ]),
732
735
  _: 1
733
736
  }),
734
- p(t(ut), { command: "project" }, {
737
+ m(t(ut), { command: "project" }, {
735
738
  default: f(() => [
736
739
  H("整站发布")
737
740
  ]),
@@ -742,13 +745,13 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
742
745
  })
743
746
  ]),
744
747
  default: f(() => [
745
- Us
748
+ qs
746
749
  ]),
747
750
  _: 1
748
751
  })
749
752
  ]));
750
753
  }
751
- }), Hs = { class: "v-icon-setter" }, Gs = { class: "v-icon-setter__content" }, Xs = { class: "v-icon-setter__list" }, Sn = /* @__PURE__ */ E({
754
+ }), Gs = { class: "v-icon-setter" }, Xs = { class: "v-icon-setter__content" }, Qs = { class: "v-icon-setter__list" }, Sn = /* @__PURE__ */ E({
752
755
  name: "IconSetter",
753
756
  __name: "icon",
754
757
  props: {
@@ -764,15 +767,15 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
764
767
  return s.value ? h.filter((d) => d[0].toLowerCase().includes(s.value)) : h;
765
768
  }), v = (h) => {
766
769
  o.value = h;
767
- }, m = () => {
770
+ }, p = () => {
768
771
  l("change", o.value), l("update:modelValue", o.value), a.value = !1;
769
772
  }, g = () => {
770
773
  o.value = "", l("change", ""), l("update:modelValue", ""), a.value = !1;
771
774
  }, y = () => {
772
775
  a.value = !0;
773
776
  };
774
- return (h, d) => (u(), j("div", Hs, [
775
- p(t(be), {
777
+ return (h, d) => (u(), j("div", Gs, [
778
+ m(t(be), {
776
779
  size: n.size,
777
780
  readonly: "",
778
781
  placeholder: "请选择图标",
@@ -781,7 +784,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
781
784
  onFocus: y
782
785
  }, {
783
786
  prepend: f(() => [
784
- p(t(ke), { icon: r.value }, null, 8, ["icon"])
787
+ m(t(ke), { icon: r.value }, null, 8, ["icon"])
785
788
  ]),
786
789
  _: 1
787
790
  }, 8, ["size", "model-value", "suffix-icon"]),
@@ -795,10 +798,10 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
795
798
  clear: "",
796
799
  modelValue: a.value,
797
800
  "onUpdate:modelValue": d[1] || (d[1] = (_) => a.value = _),
798
- onSubmit: m
801
+ onSubmit: p
799
802
  }, {
800
803
  extra: f(() => [
801
- p(t(ae), {
804
+ m(t(ae), {
802
805
  size: "default",
803
806
  type: "warning",
804
807
  onClick: g
@@ -810,8 +813,8 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
810
813
  })
811
814
  ]),
812
815
  default: f(() => [
813
- C("div", Gs, [
814
- p(t(be), {
816
+ C("div", Xs, [
817
+ m(t(be), {
815
818
  size: n.size,
816
819
  "prefix-icon": t(cn),
817
820
  clearable: "",
@@ -819,7 +822,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
819
822
  "onUpdate:modelValue": d[0] || (d[0] = (_) => s.value = _),
820
823
  placeholder: "请输入查询关键字"
821
824
  }, null, 8, ["size", "prefix-icon", "modelValue"]),
822
- C("div", Xs, [
825
+ C("div", Qs, [
823
826
  (u(!0), j(T, null, F(i.value, (_) => (u(), b(t(ke), {
824
827
  icon: _[1],
825
828
  onClick: (w) => v(_[0]),
@@ -833,7 +836,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
833
836
  }, 8, ["modelValue"])) : A("", !0)
834
837
  ]));
835
838
  }
836
- }), Qs = /* @__PURE__ */ E({
839
+ }), Ks = /* @__PURE__ */ E({
837
840
  name: "PageForm",
838
841
  __name: "form",
839
842
  props: {
@@ -855,7 +858,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
855
858
  ], r = (v) => {
856
859
  o.value && (o.value.name = ln(v));
857
860
  }, i = async (v) => n.value?.existPageName(v.name, [v.id]) ? (ne("页面名称已存在,请更换"), !1) : (e.item ? n.value?.updatePage(v) : n.value?.createPage(v, e.parentId), !0);
858
- return (v, m) => (u(), b(t(xe), {
861
+ return (v, p) => (u(), b(t(xe), {
859
862
  title: l.value,
860
863
  width: "800px",
861
864
  height: "500px",
@@ -864,7 +867,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
864
867
  "submit-method": i
865
868
  }, {
866
869
  default: f(() => [
867
- p(t(I), {
870
+ m(t(I), {
868
871
  name: "dir",
869
872
  label: "类型",
870
873
  editor: "radio",
@@ -873,44 +876,44 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
873
876
  disabled: !!e.item,
874
877
  required: ""
875
878
  }, null, 8, ["disabled"]),
876
- p(t(I), {
879
+ m(t(I), {
877
880
  name: "name",
878
881
  label: "名称",
879
882
  required: "",
880
883
  onChange: r,
881
884
  rules: { pattern: t(Ce), message: "名称格式不正确" }
882
885
  }, null, 8, ["rules"]),
883
- p(t(I), {
886
+ m(t(I), {
884
887
  name: "title",
885
888
  label: "标题",
886
889
  required: ""
887
890
  }),
888
- p(t(I), {
891
+ m(t(I), {
889
892
  name: "icon",
890
893
  label: "菜单图标",
891
894
  editor: "none"
892
895
  }, {
893
896
  editor: f(() => [
894
- p(Sn, {
897
+ m(Sn, {
895
898
  modelValue: o.value.icon,
896
- "onUpdate:modelValue": m[0] || (m[0] = (g) => o.value.icon = g),
899
+ "onUpdate:modelValue": p[0] || (p[0] = (g) => o.value.icon = g),
897
900
  size: "default"
898
901
  }, null, 8, ["modelValue"])
899
902
  ]),
900
903
  _: 1
901
904
  }),
902
- p(t(I), {
905
+ m(t(I), {
903
906
  visible: { dir: !1 },
904
907
  name: "mask",
905
908
  label: "包含母版",
906
909
  editor: "switch"
907
910
  }),
908
- p(t(I), {
911
+ m(t(I), {
909
912
  name: "hidden",
910
913
  label: "隐藏菜单",
911
914
  editor: "switch"
912
915
  }),
913
- p(t(I), {
916
+ m(t(I), {
914
917
  visible: { dir: !1 },
915
918
  disabled: !!e.item,
916
919
  inline: "",
@@ -983,7 +986,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
983
986
  l("back");
984
987
  }, v = () => {
985
988
  l("remove");
986
- }, m = () => {
989
+ }, p = () => {
987
990
  l("save");
988
991
  }, g = S(() => n.header ? {
989
992
  content: n.title,
@@ -1037,7 +1040,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1037
1040
  icon: t(Wl),
1038
1041
  background: "hover",
1039
1042
  title: "保存",
1040
- onClick: m
1043
+ onClick: p
1041
1044
  }, null, 8, ["size", "icon"])) : A("", !0),
1042
1045
  n.collapsable ? je((u(), b(t(he), {
1043
1046
  key: 4,
@@ -1077,7 +1080,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1077
1080
  } : void 0
1078
1081
  ]), 1032, ["class", "header"]));
1079
1082
  }
1080
- }), Ks = { class: "v-tabs__header" }, Ys = {
1083
+ }), Ys = { class: "v-tabs__header" }, Zs = {
1081
1084
  key: 0,
1082
1085
  class: "v-tabs__actions"
1083
1086
  }, nt = /* @__PURE__ */ E({
@@ -1121,18 +1124,18 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1121
1124
  radius: !1
1122
1125
  }, {
1123
1126
  header: f(() => [
1124
- C("div", Ks, [
1125
- p(t(wt), {
1127
+ C("div", Ys, [
1128
+ m(t(wt), {
1126
1129
  class: "v-tabs__tabs",
1127
1130
  items: n.items,
1128
1131
  type: "card",
1129
1132
  modelValue: a.value,
1130
- "onUpdate:modelValue": v[0] || (v[0] = (m) => a.value = m),
1133
+ "onUpdate:modelValue": v[0] || (v[0] = (p) => a.value = p),
1131
1134
  onTabRemove: s,
1132
1135
  onActionClick: r,
1133
1136
  stretch: n.stretch
1134
1137
  }, null, 8, ["items", "modelValue", "stretch"]),
1135
- n.menus && n.menus.length ? (u(), j("div", Ys, [
1138
+ n.menus && n.menus.length ? (u(), j("div", Zs, [
1136
1139
  n.menus && n.menus.length ? (u(), b(t(he), {
1137
1140
  key: 0,
1138
1141
  mode: "icon",
@@ -1146,16 +1149,16 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1146
1149
  menus: n.menus,
1147
1150
  onCommand: o
1148
1151
  }, {
1149
- item: f(({ item: m }) => [
1152
+ item: f(({ item: p }) => [
1150
1153
  C("span", null, [
1151
1154
  n.checkable ? (u(), b(t(pn), {
1152
1155
  key: 0,
1153
1156
  class: q({
1154
1157
  "v-tabs__checked": !0,
1155
- "is-checked": m.checked
1158
+ "is-checked": p.checked
1156
1159
  })
1157
1160
  }, null, 8, ["class"])) : A("", !0),
1158
- H(" " + z(m.label), 1)
1161
+ H(" " + z(p.label), 1)
1159
1162
  ])
1160
1163
  ]),
1161
1164
  _: 1
@@ -1169,13 +1172,10 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1169
1172
  _: 3
1170
1173
  }));
1171
1174
  }
1172
- }), Zs = {
1175
+ }), eo = {
1173
1176
  key: 2,
1174
1177
  class: "v-item__index"
1175
- }, eo = { class: "v-item__content" }, to = {
1176
- key: 3,
1177
- class: "v-item__subtitle"
1178
- }, ue = /* @__PURE__ */ E({
1178
+ }, to = { class: "v-item__content" }, ue = /* @__PURE__ */ E({
1179
1179
  name: "VItem",
1180
1180
  __name: "item",
1181
1181
  props: {
@@ -1185,6 +1185,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1185
1185
  tagType: {},
1186
1186
  title: {},
1187
1187
  subtitle: {},
1188
+ subtitleCls: {},
1188
1189
  actions: { default: () => [] },
1189
1190
  background: { type: Boolean },
1190
1191
  border: { type: Boolean },
@@ -1233,10 +1234,10 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1233
1234
  label: "主页",
1234
1235
  icon: ql
1235
1236
  }
1236
- }, l = c, a = e, o = k(!!l.modelValue), s = S(() => l.actions.map((m) => {
1237
- const g = n[m];
1237
+ }, l = c, a = e, o = k(!!l.modelValue), s = S(() => l.actions.map((p) => {
1238
+ const g = n[p];
1238
1239
  return {
1239
- name: m,
1240
+ name: p,
1240
1241
  ...g
1241
1242
  };
1242
1243
  })), r = S(() => ({
@@ -1247,40 +1248,40 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1247
1248
  "is-small": l.small
1248
1249
  })), i = () => {
1249
1250
  a("click", l.modelValue);
1250
- }, v = async (m) => {
1251
- m === "remove" ? await bt.confirm("确定删除吗?", "提示", {
1251
+ }, v = async (p) => {
1252
+ p === "remove" ? await bt.confirm("确定删除吗?", "提示", {
1252
1253
  type: "warning"
1253
1254
  }).catch(() => !1) && a("action", {
1254
- name: m,
1255
+ name: p,
1255
1256
  modelValue: l.modelValue
1256
1257
  }) : a("action", {
1257
- name: m,
1258
+ name: p,
1258
1259
  modelValue: l.modelValue
1259
1260
  });
1260
1261
  };
1261
- return G(o, (m) => {
1262
- a("update:modelValue", m), a("switch", m);
1262
+ return G(o, (p) => {
1263
+ a("update:modelValue", p), a("switch", p);
1263
1264
  }), G(
1264
1265
  () => l.modelValue,
1265
- (m) => {
1266
- o.value = !!m;
1266
+ (p) => {
1267
+ o.value = !!p;
1267
1268
  }
1268
- ), (m, g) => (u(), b(t(W), {
1269
+ ), (p, g) => (u(), b(t(W), {
1269
1270
  class: q(["v-item", r.value]),
1270
1271
  justify: "space-between",
1271
1272
  align: "center",
1272
1273
  onClick: i
1273
1274
  }, {
1274
1275
  default: f(() => [
1275
- p(t(W), {
1276
+ m(t(W), {
1276
1277
  class: "v-item__title",
1277
1278
  align: "center"
1278
1279
  }, {
1279
1280
  default: f(() => [
1280
- we(m.$slots, "default", {}, () => [
1281
- m.icon ? (u(), b(t(ke), {
1281
+ we(p.$slots, "default", {}, () => [
1282
+ p.icon ? (u(), b(t(ke), {
1282
1283
  key: 0,
1283
- icon: m.icon
1284
+ icon: p.icon
1284
1285
  }, null, 8, ["icon"])) : A("", !0),
1285
1286
  l.tag ? (u(), b(t(zn), {
1286
1287
  key: 1,
@@ -1293,14 +1294,17 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1293
1294
  ]),
1294
1295
  _: 1
1295
1296
  }, 8, ["type"])) : A("", !0),
1296
- m.index !== void 0 ? (u(), j("span", Zs, " # " + z(m.index), 1)) : A("", !0),
1297
- C("span", eo, z(m.title), 1),
1298
- m.subtitle ? (u(), j("span", to, z(m.subtitle), 1)) : A("", !0)
1297
+ p.index !== void 0 ? (u(), j("span", eo, " # " + z(p.index), 1)) : A("", !0),
1298
+ C("span", to, z(p.title), 1),
1299
+ p.subtitle ? (u(), j("span", {
1300
+ key: 3,
1301
+ class: q(["v-item__subtitle", l.subtitleCls])
1302
+ }, z(p.subtitle), 3)) : A("", !0)
1299
1303
  ])
1300
1304
  ]),
1301
1305
  _: 3
1302
1306
  }),
1303
- p(t(W), {
1307
+ m(t(W), {
1304
1308
  class: "v-item__actions",
1305
1309
  onClick: g[1] || (g[1] = Oe(() => {
1306
1310
  }, ["stop"]))
@@ -1323,7 +1327,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1323
1327
  class: "v-item__switch",
1324
1328
  size: "small"
1325
1329
  }, null, 8, ["modelValue"])) : A("", !0),
1326
- we(m.$slots, "status")
1330
+ we(p.$slots, "status")
1327
1331
  ]),
1328
1332
  _: 3
1329
1333
  })
@@ -1359,13 +1363,13 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1359
1363
  }, i = () => {
1360
1364
  l("dragend", n);
1361
1365
  };
1362
- return (v, m) => (u(), j("div", {
1366
+ return (v, p) => (u(), j("div", {
1363
1367
  class: q(["v-box", s.value]),
1364
1368
  draggable: v.draggable,
1365
1369
  onDragstart: r,
1366
1370
  onDragend: i
1367
1371
  }, [
1368
- p(t(W), {
1372
+ m(t(W), {
1369
1373
  direction: "column",
1370
1374
  justify: "center",
1371
1375
  align: "center"
@@ -1383,11 +1387,11 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1383
1387
  align: "center"
1384
1388
  }, {
1385
1389
  default: f(() => [
1386
- p(t(ke), {
1390
+ m(t(ke), {
1387
1391
  icon: t(vn),
1388
1392
  onClick: a
1389
1393
  }, null, 8, ["icon"]),
1390
- p(t(ke), {
1394
+ m(t(ke), {
1391
1395
  icon: t(tt),
1392
1396
  onClick: o
1393
1397
  }, null, 8, ["icon"])
@@ -1407,38 +1411,41 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1407
1411
  },
1408
1412
  emits: ["pick", "copy"],
1409
1413
  setup(c, { emit: e }) {
1410
- const n = c, l = e, a = ["$provider", "$apis", "$components", "context"], o = (m) => {
1411
- const g = m.value, y = lt(g);
1414
+ const n = c, l = e, a = ["$provider", "$apis", "$components", "context"], o = (p) => {
1415
+ const g = p.value, y = lt(g);
1412
1416
  return y === "Object" || y === "Module" ? Object.keys(g || {}).length === 0 : y === "Array" ? g.length === 0 : !0;
1413
- }, s = (m, g = "this") => typeof m == "object" ? Array.isArray(m) ? m.map((y, h) => {
1414
- const d = `[${h}]`;
1417
+ }, s = (p, g = "this") => typeof p == "object" ? Array.isArray(p) ? p.map((h, d) => {
1418
+ const _ = `[${d}]`;
1419
+ return {
1420
+ label: _,
1421
+ value: h,
1422
+ type: lt(h),
1423
+ path: `${g}${_}`
1424
+ };
1425
+ }) : js(p).map((h) => {
1426
+ const d = p[h];
1415
1427
  return {
1416
- label: d,
1417
- value: y,
1418
- type: lt(y),
1419
- path: `${g}${d}`
1428
+ label: h,
1429
+ value: d,
1430
+ type: lt(d),
1431
+ path: `${g}.${h}`
1420
1432
  };
1421
- }) : Object.entries(m).map(([y, h]) => ({
1422
- label: y,
1423
- value: h,
1424
- type: lt(h),
1425
- path: `${g}.${y}`
1426
- })).filter(
1427
- (y) => !y.label.startsWith("__") && !a.includes(y.label)
1428
- ) : [], r = (m, g) => {
1429
- if (m.level === 0)
1433
+ }).filter(
1434
+ (h) => !h.label.startsWith("__") && !a.includes(h.label)
1435
+ ) : [], r = (p, g) => {
1436
+ if (p.level === 0)
1430
1437
  g(s(n.context));
1431
1438
  else {
1432
- const y = In(m.data.value);
1433
- g(s(y, m.data.path));
1439
+ const y = In(p.data.value);
1440
+ g(s(y, p.data.path));
1434
1441
  }
1435
- }, i = (m) => {
1436
- l("copy", m.path);
1437
- }, v = (m) => {
1438
- l("pick", m.path);
1442
+ }, i = (p) => {
1443
+ l("copy", p.path);
1444
+ }, v = (p) => {
1445
+ l("pick", p.path);
1439
1446
  };
1440
- return (m, g) => (u(), j("div", so, [
1441
- m.context ? (u(), b(t(_t), {
1447
+ return (p, g) => (u(), j("div", so, [
1448
+ p.context ? (u(), b(t(_t), {
1442
1449
  key: 0,
1443
1450
  lazy: "",
1444
1451
  load: r,
@@ -1446,8 +1453,10 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1446
1453
  props: { isLeaf: o }
1447
1454
  }, {
1448
1455
  default: f(({ data: y }) => [
1449
- p(ue, {
1456
+ m(ue, {
1450
1457
  title: y.label,
1458
+ subtitle: y.type,
1459
+ "subtitle-cls": y.type,
1451
1460
  clickable: "",
1452
1461
  onClick: (h) => v(y),
1453
1462
  background: "",
@@ -1455,7 +1464,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1455
1464
  onAction: (h) => i(y),
1456
1465
  grow: "",
1457
1466
  small: ""
1458
- }, null, 8, ["title", "onClick", "onAction"])
1467
+ }, null, 8, ["title", "subtitle", "subtitle-cls", "onClick", "onAction"])
1459
1468
  ]),
1460
1469
  _: 1
1461
1470
  }, 8, ["props"])) : A("", !0)
@@ -1491,7 +1500,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1491
1500
  name: "viewer",
1492
1501
  label: "高级"
1493
1502
  }
1494
- ], i = k("normal"), v = k(), m = async (x) => {
1503
+ ], i = k("normal"), v = k(), p = async (x) => {
1495
1504
  l("submit", x), n.submitMethod ? await n.submitMethod(x) && g() : g();
1496
1505
  }, g = () => {
1497
1506
  l("update:modelValue", !1), l("close");
@@ -1520,25 +1529,25 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1520
1529
  onClose: g
1521
1530
  }, {
1522
1531
  default: f(() => [
1523
- p(t(W), {
1532
+ m(t(W), {
1524
1533
  fit: "",
1525
1534
  direction: "row",
1526
1535
  overflow: "hidden"
1527
1536
  }, {
1528
1537
  default: f(() => [
1529
- p(t(W), {
1538
+ m(t(W), {
1530
1539
  width: "30%",
1531
1540
  height: "100%"
1532
1541
  }, {
1533
1542
  default: f(() => [
1534
- p(nt, {
1543
+ m(nt, {
1535
1544
  class: "v-binder__tabs",
1536
1545
  items: r,
1537
1546
  modelValue: i.value,
1538
1547
  "onUpdate:modelValue": V[1] || (V[1] = (B) => i.value = B)
1539
1548
  }, {
1540
1549
  default: f(() => [
1541
- p(t(W), {
1550
+ m(t(W), {
1542
1551
  class: "v-binder__tab-content",
1543
1552
  fit: "",
1544
1553
  padding: "",
@@ -1546,7 +1555,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1546
1555
  }, {
1547
1556
  default: f(() => [
1548
1557
  je(C("div", null, [
1549
- p(t(be), {
1558
+ m(t(be), {
1550
1559
  modelValue: t(o),
1551
1560
  "onUpdate:modelValue": V[0] || (V[0] = (B) => rt(o) ? o.value = B : null),
1552
1561
  size: "small",
@@ -1555,7 +1564,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1555
1564
  placeholder: "筛选可用项"
1556
1565
  }, null, 8, ["modelValue", "prefix-icon"]),
1557
1566
  (u(!0), j(T, null, F(t(a), (B) => (u(), j("div", null, [
1558
- p(t(yt), { "border-style": "dotted" }, {
1567
+ m(t(yt), { "border-style": "dotted" }, {
1559
1568
  default: f(() => [
1560
1569
  H(z(B.title), 1)
1561
1570
  ]),
@@ -1574,7 +1583,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1574
1583
  ], 512), [
1575
1584
  [Pe, i.value === "normal"]
1576
1585
  ]),
1577
- je(p(oo, {
1586
+ je(m(oo, {
1578
1587
  context: n.context,
1579
1588
  onCopy: w,
1580
1589
  onPick: _
@@ -1590,15 +1599,15 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1590
1599
  ]),
1591
1600
  _: 1
1592
1601
  }),
1593
- p(t(Ze), {
1602
+ m(t(Ze), {
1594
1603
  grow: "",
1595
1604
  header: null,
1596
1605
  border: !1
1597
1606
  }, {
1598
1607
  footer: f(() => [
1599
- p(t(W), { justify: "space-between" }, {
1608
+ m(t(W), { justify: "space-between" }, {
1600
1609
  default: f(() => [
1601
- p(t(W), null, {
1610
+ m(t(W), null, {
1602
1611
  default: f(() => [
1603
1612
  x.unbindEnabled ? (u(), b(t(ae), {
1604
1613
  key: 0,
@@ -1614,9 +1623,9 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1614
1623
  ]),
1615
1624
  _: 1
1616
1625
  }),
1617
- p(t(W), null, {
1626
+ m(t(W), null, {
1618
1627
  default: f(() => [
1619
- p(t(ae), {
1628
+ m(t(ae), {
1620
1629
  type: "default",
1621
1630
  size: "default",
1622
1631
  onClick: h
@@ -1626,7 +1635,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1626
1635
  ]),
1627
1636
  _: 1
1628
1637
  }),
1629
- p(t(ae), {
1638
+ m(t(ae), {
1630
1639
  type: "primary",
1631
1640
  size: "default",
1632
1641
  onClick: d
@@ -1644,7 +1653,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1644
1653
  })
1645
1654
  ]),
1646
1655
  default: f(() => [
1647
- p(t(kt), {
1656
+ m(t(kt), {
1648
1657
  ref_key: "formRef",
1649
1658
  ref: v,
1650
1659
  class: "v-binder__form",
@@ -1653,7 +1662,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1653
1662
  "tooltip-message": !1,
1654
1663
  model: n.model,
1655
1664
  rules: n.rules,
1656
- "submit-method": m
1665
+ "submit-method": p
1657
1666
  }, {
1658
1667
  default: f(() => [
1659
1668
  we(x.$slots, "default")
@@ -1692,12 +1701,12 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1692
1701
  onSubmit: r
1693
1702
  }, i.$attrs), {
1694
1703
  default: f(() => [
1695
- p(t(Yt), {
1704
+ m(t(Yt), {
1696
1705
  title: "该组件支持多个插槽,请选择放置到其中一个",
1697
1706
  type: "warning",
1698
1707
  closable: !1
1699
1708
  }),
1700
- p(t(W), {
1709
+ m(t(W), {
1701
1710
  class: "v-slots-picker__content",
1702
1711
  justify: "space-around",
1703
1712
  alignContent: "flex-start",
@@ -1705,15 +1714,15 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1705
1714
  wrap: "wrap"
1706
1715
  }, {
1707
1716
  default: f(() => [
1708
- (u(!0), j(T, null, F(n.slots, (m, g) => (u(), b(t(W), {
1709
- class: q(["v-slots-picker__item", { "is-active": m.name === a.value?.name }]),
1717
+ (u(!0), j(T, null, F(n.slots, (p, g) => (u(), b(t(W), {
1718
+ class: q(["v-slots-picker__item", { "is-active": p.name === a.value?.name }]),
1710
1719
  grow: "",
1711
1720
  flex: !1,
1712
- onClick: (y) => s(m)
1721
+ onClick: (y) => s(p)
1713
1722
  }, {
1714
1723
  default: f(() => [
1715
1724
  C("span", ro, "#" + z(g + 1), 1),
1716
- H(" " + z(m.name), 1)
1725
+ H(" " + z(p.name), 1)
1717
1726
  ]),
1718
1727
  _: 2
1719
1728
  }, 1032, ["class", "onClick"]))), 256))
@@ -1780,7 +1789,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1780
1789
  e.value?.clonePage(w, V);
1781
1790
  }
1782
1791
  d === "home" && (e.value?.setHomepage(w.id), de("设置主页成功", "success"));
1783
- }, m = async (h) => {
1792
+ }, p = async (h) => {
1784
1793
  h.raw && de("这是源码模式页面,不能低代码设计", "warning"), h.dir || h.raw ? n.project.value?.deactivate() : n.project.value?.active(h);
1785
1794
  }, g = (h, d, _) => _ === "inner" ? !!d.data.dir : !0, y = () => {
1786
1795
  e.value?.update({
@@ -1795,7 +1804,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1795
1804
  onPlus: i
1796
1805
  }, {
1797
1806
  default: f(() => [
1798
- p(t(_t), {
1807
+ m(t(_t), {
1799
1808
  data: l.value,
1800
1809
  "node-key": "id",
1801
1810
  "default-expand-all": "",
@@ -1804,7 +1813,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1804
1813
  onNodeDrop: y
1805
1814
  }, {
1806
1815
  default: f(({ data: _, node: w }) => [
1807
- p(t(ue), {
1816
+ m(t(ue), {
1808
1817
  class: "v-pages-widget__item",
1809
1818
  icon: t(gt)[_.icon],
1810
1819
  title: _.title,
@@ -1812,7 +1821,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1812
1821
  "model-value": { data: _, node: w },
1813
1822
  actions: _.dir ? ["add", "edit", "remove"] : _.raw ? ["home", "edit", "remove"] : ["home", "copy", "edit", "remove"],
1814
1823
  onAction: v,
1815
- onClick: (x) => m(_),
1824
+ onClick: (x) => p(_),
1816
1825
  active: t(a)?.id === _.id,
1817
1826
  tag: t(e)?.homepage === _.id ? "主页" : void 0,
1818
1827
  "tag-type": "success",
@@ -1824,7 +1833,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1824
1833
  ]),
1825
1834
  _: 1
1826
1835
  }, 8, ["data"]),
1827
- o.value ? (u(), b(Qs, {
1836
+ o.value ? (u(), b(Ks, {
1828
1837
  key: 0,
1829
1838
  modelValue: o.value,
1830
1839
  "onUpdate:modelValue": d[0] || (d[0] = (_) => o.value = _),
@@ -1853,13 +1862,13 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1853
1862
  return i(B);
1854
1863
  }
1855
1864
  return null;
1856
- }, m = (V) => V ? (V || "").split(",").map((O) => ({ url: O })) : [], g = k(
1857
- m(n.modelValue)
1865
+ }, p = (V) => V ? (V || "").split(",").map((O) => ({ url: O })) : [], g = k(
1866
+ p(n.modelValue)
1858
1867
  ), y = S(() => Array.isArray(g.value) ? g.value.map((V) => V.url).join(",") : g.value ? g.value.url : "");
1859
1868
  G(
1860
1869
  () => n.modelValue,
1861
1870
  (V) => {
1862
- g.value = m(V);
1871
+ g.value = p(V);
1863
1872
  }
1864
1873
  ), G(r, async (V) => {
1865
1874
  if (V) {
@@ -1885,7 +1894,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1885
1894
  V.name && o.value?.id && a.service.removeStaticFile(V.name, o.value?.id);
1886
1895
  };
1887
1896
  return (V, B) => (u(), j("div", co, [
1888
- p(t(be), re({
1897
+ m(t(be), re({
1889
1898
  readonly: "",
1890
1899
  onFocus: w,
1891
1900
  "model-value": n.modelValue,
@@ -1903,7 +1912,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1903
1912
  onSubmit: d
1904
1913
  }, {
1905
1914
  extra: f(() => [
1906
- p(t(ae), {
1915
+ m(t(ae), {
1907
1916
  type: "warning",
1908
1917
  size: "default",
1909
1918
  onClick: _
@@ -1915,7 +1924,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1915
1924
  })
1916
1925
  ]),
1917
1926
  default: f(() => [
1918
- p(t(el), re({
1927
+ m(t(el), re({
1919
1928
  size: "small",
1920
1929
  "list-type": "list",
1921
1930
  selectable: !0,
@@ -1962,7 +1971,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
1962
1971
  label: "插件",
1963
1972
  type: "danger"
1964
1973
  }
1965
- }, s = k(void 0), { current: r } = ie(), i = k(!1), v = S(() => s.value?.id ? "编辑区块" : "新增区块"), m = S(() => `(共 ${n.value.length} 个)`), g = () => ({
1974
+ }, s = k(void 0), { current: r } = ie(), i = k(!1), v = S(() => s.value?.id ? "编辑区块" : "新增区块"), p = S(() => `(共 ${n.value.length} 个)`), g = () => ({
1966
1975
  fromType: "Schema",
1967
1976
  name: "",
1968
1977
  title: "",
@@ -2008,12 +2017,12 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2008
2017
  return (P, $) => (u(), b(t(U), {
2009
2018
  class: "v-blocks-widget",
2010
2019
  title: "区块管理",
2011
- subtitle: m.value,
2020
+ subtitle: p.value,
2012
2021
  plus: "",
2013
2022
  onPlus: _
2014
2023
  }, {
2015
2024
  default: f(() => [
2016
- p(t(ct), {
2025
+ m(t(ct), {
2017
2026
  wrap: "wrap",
2018
2027
  gutter: 5
2019
2028
  }, {
@@ -2023,7 +2032,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2023
2032
  span: t(e)
2024
2033
  }, {
2025
2034
  default: f(() => [
2026
- p(t(ft), {
2035
+ m(t(ft), {
2027
2036
  name: D.name,
2028
2037
  title: D.title,
2029
2038
  active: t(r)?.id === D.id,
@@ -2044,7 +2053,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2044
2053
  _: 1
2045
2054
  }),
2046
2055
  t(n).length ? A("", !0) : (u(), b(t(se), { key: 0 })),
2047
- p(t(xe), {
2056
+ m(t(xe), {
2048
2057
  modelValue: i.value,
2049
2058
  "onUpdate:modelValue": $[0] || ($[0] = (D) => i.value = D),
2050
2059
  title: v.value,
@@ -2055,7 +2064,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2055
2064
  "submit-method": d
2056
2065
  }, {
2057
2066
  default: f(() => [
2058
- p(t(I), {
2067
+ m(t(I), {
2059
2068
  name: "fromType",
2060
2069
  label: "类型",
2061
2070
  required: "",
@@ -2063,7 +2072,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2063
2072
  disabled: !!s.value?.id,
2064
2073
  options: a
2065
2074
  }, null, 8, ["disabled"]),
2066
- p(t(I), {
2075
+ m(t(I), {
2067
2076
  name: "name",
2068
2077
  label: "名称",
2069
2078
  required: "",
@@ -2074,7 +2083,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2074
2083
  },
2075
2084
  onChange: V
2076
2085
  }, null, 8, ["rules"]),
2077
- p(t(I), {
2086
+ m(t(I), {
2078
2087
  name: "title",
2079
2088
  label: "标题",
2080
2089
  required: ""
@@ -2110,7 +2119,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2110
2119
  const { span: e, engine: n } = wn(), { tabs: l, currentTab: a, currentGroup: o, model: s, searchKey: r, searchResult: i } = ks(), v = (g) => {
2111
2120
  const y = n.skeleton?.getWidget("Designer")?.widgetRef?.designer;
2112
2121
  y && y.setDragging(g);
2113
- }, m = () => {
2122
+ }, p = () => {
2114
2123
  const g = n.skeleton?.getWidget("Designer")?.widgetRef?.designer;
2115
2124
  g && g.setDragging(null);
2116
2125
  };
@@ -2121,7 +2130,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2121
2130
  }, {
2122
2131
  default: f(() => [
2123
2132
  C("div", mo, [
2124
- p(t(be), {
2133
+ m(t(be), {
2125
2134
  modelValue: t(r),
2126
2135
  "onUpdate:modelValue": y[0] || (y[0] = (h) => rt(r) ? r.value = h : null),
2127
2136
  placeholder: "搜索组件",
@@ -2129,13 +2138,13 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2129
2138
  size: "small"
2130
2139
  }, {
2131
2140
  prefix: f(() => [
2132
- p(t(Gl))
2141
+ m(t(Gl))
2133
2142
  ]),
2134
2143
  _: 1
2135
2144
  }, 8, ["modelValue"])
2136
2145
  ]),
2137
2146
  t(r) ? (u(), j("div", vo, [
2138
- p(t(ct), {
2147
+ m(t(ct), {
2139
2148
  wrap: "wrap",
2140
2149
  gutter: 5
2141
2150
  }, {
@@ -2145,12 +2154,12 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2145
2154
  key: h.name
2146
2155
  }, {
2147
2156
  default: f(() => [
2148
- p(t(ft), {
2157
+ m(t(ft), {
2149
2158
  name: h.name,
2150
2159
  title: h.label || h.name,
2151
2160
  draggable: "",
2152
2161
  onDragstart: (d) => v(h),
2153
- onDragend: m
2162
+ onDragend: p
2154
2163
  }, null, 8, ["name", "title", "onDragstart"])
2155
2164
  ]),
2156
2165
  _: 2
@@ -2190,12 +2199,12 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2190
2199
  key: d.name
2191
2200
  }, {
2192
2201
  default: f(() => [
2193
- p(t(ft), {
2202
+ m(t(ft), {
2194
2203
  name: d.name,
2195
2204
  title: d.label || d.name,
2196
2205
  draggable: "",
2197
2206
  onDragstart: (_) => v(d),
2198
- onDragend: m
2207
+ onDragend: p
2199
2208
  }, null, 8, ["name", "title", "onDragstart"])
2200
2209
  ]),
2201
2210
  _: 2
@@ -2272,7 +2281,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2272
2281
  children: i(D)
2273
2282
  }
2274
2283
  ];
2275
- }, m = async () => {
2284
+ }, p = async () => {
2276
2285
  o.value = v(), l.value?.model && (await _e(), n.value?.setSelected(l.value.model));
2277
2286
  }, g = S(() => l.value?.model.id), y = (P) => {
2278
2287
  const $ = P.data;
@@ -2313,7 +2322,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2313
2322
  M,
2314
2323
  L
2315
2324
  )) {
2316
- n.value?.setDropping(null), m(), Ye.warning({
2325
+ n.value?.setDropping(null), p(), Ye.warning({
2317
2326
  message: `${X.model.name}不能放置到该位置`
2318
2327
  }), n.value?.setDragging(null);
2319
2328
  return;
@@ -2325,7 +2334,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2325
2334
  const Fe = X.model;
2326
2335
  Fe.slot = $e, a.value?.move(Fe, M, L);
2327
2336
  } else
2328
- m();
2337
+ p();
2329
2338
  n.value?.setDropping(null), n.value?.setDragging(null), e.simulator.refresh();
2330
2339
  }, w = (P) => {
2331
2340
  if (P.type === "slot") {
@@ -2369,7 +2378,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2369
2378
  break;
2370
2379
  }
2371
2380
  };
2372
- return G(e.changed, m, { immediate: !0 }), (P, $) => (u(), b(t(U), {
2381
+ return G(e.changed, p, { immediate: !0 }), (P, $) => (u(), b(t(U), {
2373
2382
  class: "v-outline-widget",
2374
2383
  title: "大纲树"
2375
2384
  }, {
@@ -2392,7 +2401,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2392
2401
  onNodeDragEnd: B
2393
2402
  }, {
2394
2403
  default: f(({ data: D, node: X }) => [
2395
- p(t(ue), {
2404
+ m(t(ue), {
2396
2405
  class: q(["v-outline-widget__item", {
2397
2406
  "is-locked": D.model.locked,
2398
2407
  "is-invisible": D.model.invisible,
@@ -2441,11 +2450,11 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2441
2450
  key: 0,
2442
2451
  "image-size": 50
2443
2452
  })) : A("", !0),
2444
- t(e) ? (u(!0), j(T, { key: 1 }, F(t(e).items, (v, m) => (u(), b(t(ue), {
2445
- index: m + 1,
2453
+ t(e) ? (u(!0), j(T, { key: 1 }, F(t(e).items, (v, p) => (u(), b(t(ue), {
2454
+ index: p + 1,
2446
2455
  title: v.label,
2447
2456
  "model-value": v,
2448
- active: m == t(e).index,
2457
+ active: p == t(e).index,
2449
2458
  small: "",
2450
2459
  background: "",
2451
2460
  actions: ["remove"],
@@ -2464,25 +2473,25 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2464
2473
  value: n.toLowerCase()
2465
2474
  }));
2466
2475
  return (n, l) => (u(), j("div", null, [
2467
- p(t(I), {
2476
+ m(t(I), {
2468
2477
  name: "method",
2469
2478
  label: "请求类型",
2470
2479
  required: "",
2471
2480
  editor: "radio",
2472
2481
  options: t(e)
2473
2482
  }, null, 8, ["options"]),
2474
- p(t(I), {
2483
+ m(t(I), {
2475
2484
  name: "name",
2476
2485
  label: "接口名称",
2477
2486
  required: "",
2478
2487
  rules: { pattern: t(Ce), message: "名称格式不正确" }
2479
2488
  }, null, 8, ["rules"]),
2480
- p(t(I), {
2489
+ m(t(I), {
2481
2490
  name: "label",
2482
2491
  label: "备注说明",
2483
2492
  required: ""
2484
2493
  }),
2485
- p(t(I), {
2494
+ m(t(I), {
2486
2495
  name: "url",
2487
2496
  label: "接口URL",
2488
2497
  required: ""
@@ -2519,33 +2528,33 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2519
2528
  }
2520
2529
  ], n = ht("currentModel", null);
2521
2530
  return (l, a) => (u(), j("div", null, [
2522
- p(t(W), { justify: "space-between" }, {
2531
+ m(t(W), { justify: "space-between" }, {
2523
2532
  default: f(() => [
2524
- p(t(I), {
2533
+ m(t(I), {
2525
2534
  name: "settings.loading",
2526
2535
  size: "small",
2527
2536
  label: "加载提示",
2528
2537
  editor: "switch"
2529
2538
  }),
2530
- p(t(I), {
2539
+ m(t(I), {
2531
2540
  size: "small",
2532
2541
  name: "settings.failMessage",
2533
2542
  label: "失败提示",
2534
2543
  editor: "switch"
2535
2544
  }),
2536
- p(t(I), {
2545
+ m(t(I), {
2537
2546
  size: "small",
2538
2547
  name: "settings.validSuccess",
2539
2548
  label: "校验成功",
2540
2549
  editor: "switch"
2541
2550
  }),
2542
- p(t(I), {
2551
+ m(t(I), {
2543
2552
  size: "small",
2544
2553
  name: "settings.originResponse",
2545
2554
  label: "原始响应",
2546
2555
  editor: "switch"
2547
2556
  }),
2548
- p(t(I), {
2557
+ m(t(I), {
2549
2558
  size: "small",
2550
2559
  name: "settings.injectHeaders",
2551
2560
  label: "注入请求头",
@@ -2554,7 +2563,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2554
2563
  ]),
2555
2564
  _: 1
2556
2565
  }),
2557
- p(t(I), {
2566
+ m(t(I), {
2558
2567
  size: "small",
2559
2568
  name: "settings.type",
2560
2569
  label: "发送数据类型",
@@ -2562,14 +2571,14 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2562
2571
  options: e,
2563
2572
  props: { button: !0 }
2564
2573
  }),
2565
- p(t(I), {
2574
+ m(t(I), {
2566
2575
  size: "small",
2567
2576
  name: "headers.value",
2568
2577
  label: "请求头配置",
2569
2578
  tip: "支持 JSExpression 或 JSFunction"
2570
2579
  }, {
2571
2580
  editor: f(() => [
2572
- p(t(le), {
2581
+ m(t(le), {
2573
2582
  dark: "",
2574
2583
  height: "260px",
2575
2584
  modelValue: t(n).headers.value,
@@ -2584,23 +2593,23 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2584
2593
  __name: "jsonp-options",
2585
2594
  setup(c) {
2586
2595
  return (e, n) => (u(), j("div", null, [
2587
- p(t(I), {
2596
+ m(t(I), {
2588
2597
  name: "jsonpOptions.jsonpCallback",
2589
2598
  size: "small",
2590
2599
  label: "jsonpCallback"
2591
2600
  }),
2592
- p(t(I), {
2601
+ m(t(I), {
2593
2602
  name: "jsonpOptions.jsonpCallbackFunction",
2594
2603
  size: "small",
2595
2604
  label: "jsonpCallbackFunction"
2596
2605
  }),
2597
- p(t(I), {
2606
+ m(t(I), {
2598
2607
  name: "jsonpOptions.timeout",
2599
2608
  size: "small",
2600
2609
  label: "timeout",
2601
2610
  editor: "number"
2602
2611
  }),
2603
- p(t(I), {
2612
+ m(t(I), {
2604
2613
  name: "jsonpOptions.crossorigin",
2605
2614
  size: "small",
2606
2615
  label: "crossorigin",
@@ -2622,17 +2631,17 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2622
2631
  closable: !1,
2623
2632
  style: { "margin-bottom": "20px" }
2624
2633
  })),
2625
- p(t(I), {
2634
+ m(t(I), {
2626
2635
  size: "small",
2627
2636
  name: "mock",
2628
2637
  label: "开启模拟数据",
2629
2638
  disabled: !l.value.mock,
2630
2639
  editor: "switch"
2631
2640
  }, null, 8, ["disabled"]),
2632
- p(t(W), { justify: "space-between" }, {
2641
+ m(t(W), { justify: "space-between" }, {
2633
2642
  default: f(() => [
2634
2643
  ko,
2635
- p(t(he), {
2644
+ m(t(he), {
2636
2645
  icon: t(hn),
2637
2646
  mode: "text",
2638
2647
  label: "帮助",
@@ -2641,13 +2650,13 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2641
2650
  ]),
2642
2651
  _: 1
2643
2652
  }),
2644
- p(t(I), {
2653
+ m(t(I), {
2645
2654
  size: "small",
2646
2655
  name: "mockTemplate.value",
2647
2656
  label: " "
2648
2657
  }, {
2649
2658
  editor: f(() => [
2650
- p(t(le), {
2659
+ m(t(le), {
2651
2660
  dark: "",
2652
2661
  height: l.value.mock ? "330px" : "280px",
2653
2662
  lang: "typescript",
@@ -2683,7 +2692,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2683
2692
  }
2684
2693
  ];
2685
2694
  $n("currentModel", s);
2686
- const m = S(() => s.value?.method === "jsonp");
2695
+ const p = S(() => s.value?.method === "jsonp");
2687
2696
  G(
2688
2697
  () => e.model,
2689
2698
  (_) => {
@@ -2727,14 +2736,14 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2727
2736
  height: "600px"
2728
2737
  }, {
2729
2738
  default: f(() => [
2730
- p(t(W), { fit: "" }, {
2739
+ m(t(W), { fit: "" }, {
2731
2740
  default: f(() => [
2732
- p(t(W), {
2741
+ m(t(W), {
2733
2742
  width: "100px",
2734
2743
  shrink: !1
2735
2744
  }, {
2736
2745
  default: f(() => [
2737
- p(t(wt), {
2746
+ m(t(wt), {
2738
2747
  modelValue: l.value,
2739
2748
  "onUpdate:modelValue": w[0] || (w[0] = (x) => l.value = x),
2740
2749
  items: v,
@@ -2745,7 +2754,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2745
2754
  ]),
2746
2755
  _: 1
2747
2756
  }),
2748
- p(t(Ze), {
2757
+ m(t(Ze), {
2749
2758
  header: null,
2750
2759
  border: !1,
2751
2760
  overflow: "auto",
@@ -2754,7 +2763,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2754
2763
  fit: ""
2755
2764
  }, {
2756
2765
  footer: f(() => [
2757
- p(t(W), { justify: "space-between" }, {
2766
+ m(t(W), { justify: "space-between" }, {
2758
2767
  default: f(() => [
2759
2768
  C("div", null, [
2760
2769
  l.value === "mock" ? (u(), b(t(ae), {
@@ -2770,13 +2779,13 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2770
2779
  }, 8, ["disabled"])) : A("", !0)
2771
2780
  ]),
2772
2781
  C("div", null, [
2773
- p(t(ae), { onClick: g }, {
2782
+ m(t(ae), { onClick: g }, {
2774
2783
  default: f(() => [
2775
2784
  H("取消")
2776
2785
  ]),
2777
2786
  _: 1
2778
2787
  }),
2779
- p(t(ae), {
2788
+ m(t(ae), {
2780
2789
  type: "primary",
2781
2790
  onClick: y
2782
2791
  }, {
@@ -2791,7 +2800,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2791
2800
  })
2792
2801
  ]),
2793
2802
  default: f(() => [
2794
- p(t(kt), {
2803
+ m(t(kt), {
2795
2804
  ref_key: "formRef",
2796
2805
  ref: o,
2797
2806
  footer: !1,
@@ -2801,11 +2810,11 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2801
2810
  submitMethod: h
2802
2811
  }, {
2803
2812
  default: f(() => [
2804
- je(p(yo, null, null, 512), [
2813
+ je(m(yo, null, null, 512), [
2805
2814
  [Pe, l.value === "base"]
2806
2815
  ]),
2807
2816
  l.value === "settings" ? (u(), j("div", xo, [
2808
- m.value ? (u(), b(wo, { key: 0 })) : (u(), b(_o, { key: 1 }))
2817
+ p.value ? (u(), b(wo, { key: 0 })) : (u(), b(_o, { key: 1 }))
2809
2818
  ])) : A("", !0),
2810
2819
  l.value === "mock" ? (u(), b(So, { key: 1 })) : A("", !0)
2811
2820
  ]),
@@ -2828,7 +2837,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2828
2837
  size: "80%"
2829
2838
  }, {
2830
2839
  default: f(() => [
2831
- p(t(le), {
2840
+ m(t(le), {
2832
2841
  "model-value": i.value,
2833
2842
  border: "",
2834
2843
  dark: "",
@@ -2885,8 +2894,8 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2885
2894
  patch: "warning",
2886
2895
  jsonp: "info"
2887
2896
  }, v = (g) => {
2888
- g.name === "edit" && m(g.modelValue), g.name === "remove" && o.value?.removeApi(g.modelValue.name);
2889
- }, m = (g) => {
2897
+ g.name === "edit" && p(g.modelValue), g.name === "remove" && o.value?.removeApi(g.modelValue.name);
2898
+ }, p = (g) => {
2890
2899
  l.value = !0, n.value = et(g), e.value = !0;
2891
2900
  };
2892
2901
  return (g, y) => (u(), b(t(U), {
@@ -2906,14 +2915,14 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2906
2915
  "tag-type": i[h.method || "get"],
2907
2916
  background: "",
2908
2917
  actions: ["edit", "remove"],
2909
- onClick: (d) => m(h),
2918
+ onClick: (d) => p(h),
2910
2919
  onAction: v
2911
2920
  }, null, 8, ["title", "subtitle", "model-value", "tag", "tag-type", "onClick"]))), 128)),
2912
2921
  a.value.length === 0 ? (u(), b(t(se), {
2913
2922
  key: 0,
2914
2923
  "image-size": 50
2915
2924
  })) : A("", !0),
2916
- p(Co, {
2925
+ m(Co, {
2917
2926
  modelValue: e.value,
2918
2927
  "onUpdate:modelValue": y[0] || (y[0] = (h) => e.value = h),
2919
2928
  model: n.value,
@@ -2928,7 +2937,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2928
2937
  __name: "index",
2929
2938
  setup(c) {
2930
2939
  const { dependencies: e, engine: n } = _n(), l = k(!1), a = k(!1), o = k({}), s = S(() => a.value ? "查看依赖" : o.value ? "编辑依赖" : "新增依赖"), r = (d) => d.required || d.official ? [] : ["edit", "remove"], i = (d) => d.official && !d.required, v = async (d) => (d.urls = d.urls.split(`
2931
- `), n.project.value?.setDeps(d), !0), m = (d) => {
2940
+ `), n.project.value?.setDeps(d), !0), p = (d) => {
2932
2941
  n.project.value?.setDeps(d);
2933
2942
  }, g = () => {
2934
2943
  a.value = !1, l.value = !0, o.value = null;
@@ -2961,11 +2970,11 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2961
2970
  switch: i(w),
2962
2971
  modelValue: w.enabled,
2963
2972
  "onUpdate:modelValue": (x) => w.enabled = x,
2964
- onSwitch: (x) => m(w),
2973
+ onSwitch: (x) => p(w),
2965
2974
  onClick: (x) => y(w),
2966
2975
  onAction: (x) => h(w, x)
2967
2976
  }, null, 8, ["title", "subtitle", "actions", "switch", "modelValue", "onUpdate:modelValue", "onSwitch", "onClick", "onAction"]))), 128)),
2968
- p(t(xe), {
2977
+ m(t(xe), {
2969
2978
  modelValue: l.value,
2970
2979
  "onUpdate:modelValue": _[0] || (_[0] = (w) => l.value = w),
2971
2980
  width: "600px",
@@ -2979,23 +2988,23 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
2979
2988
  }
2980
2989
  }, {
2981
2990
  default: f(() => [
2982
- p(t(I), {
2991
+ m(t(I), {
2983
2992
  name: "package",
2984
2993
  label: "包名",
2985
2994
  required: "",
2986
2995
  disabled: !!o.value
2987
2996
  }, null, 8, ["disabled"]),
2988
- p(t(I), {
2997
+ m(t(I), {
2989
2998
  name: "version",
2990
2999
  label: "版本",
2991
3000
  required: ""
2992
3001
  }),
2993
- p(t(I), {
3002
+ m(t(I), {
2994
3003
  name: "library",
2995
3004
  label: "导出名称",
2996
3005
  required: ""
2997
3006
  }),
2998
- p(t(I), {
3007
+ m(t(I), {
2999
3008
  name: "urls",
3000
3009
  label: "资源文件",
3001
3010
  editor: "textarea",
@@ -3003,11 +3012,11 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3003
3012
  tip: "多个资源可以换行输入",
3004
3013
  required: ""
3005
3014
  }),
3006
- p(t(I), {
3015
+ m(t(I), {
3007
3016
  name: "assetsUrl",
3008
3017
  label: "物料URL"
3009
3018
  }),
3010
- p(t(I), {
3019
+ m(t(I), {
3011
3020
  name: "assetsLibrary",
3012
3021
  label: "物料名称"
3013
3022
  })
@@ -3027,11 +3036,11 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3027
3036
  },
3028
3037
  emits: ["action", "dragstart", "dragend"],
3029
3038
  setup(c, { emit: e }) {
3030
- const n = c, l = e, a = S(() => n.model.name), o = S(() => !ee(n.model) && !n.model.locked), s = S(() => n.path.map((m) => ({
3031
- command: m,
3032
- label: m.name,
3039
+ const n = c, l = e, a = S(() => n.model.name), o = S(() => !ee(n.model) && !n.model.locked), s = S(() => n.path.map((p) => ({
3040
+ command: p,
3041
+ label: p.name,
3033
3042
  onMouseenter: () => {
3034
- l("action", { type: "hover", model: m });
3043
+ l("action", { type: "hover", model: p });
3035
3044
  }
3036
3045
  }))), r = [
3037
3046
  {
@@ -3066,15 +3075,15 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3066
3075
  icon: tt,
3067
3076
  title: "删除"
3068
3077
  }
3069
- ], i = (m) => {
3070
- l("action", { type: "selected", model: m.command });
3071
- }, v = async (m) => {
3072
- m.name === "remove" ? await ze("确定删除?") && l("action", { type: m.name, model: n.model }) : l("action", { type: m.name, model: n.model });
3078
+ ], i = (p) => {
3079
+ l("action", { type: "selected", model: p.command });
3080
+ }, v = async (p) => {
3081
+ p.name === "remove" ? await ze("确定删除?") && l("action", { type: p.name, model: n.model }) : l("action", { type: p.name, model: n.model });
3073
3082
  };
3074
- return (m, g) => (u(), j("div", {
3083
+ return (p, g) => (u(), j("div", {
3075
3084
  class: q(["v-actions", [`is-${n.position}`]])
3076
3085
  }, [
3077
- p(t(he), {
3086
+ m(t(he), {
3078
3087
  mode: "icon",
3079
3088
  size: "small",
3080
3089
  icon: t(bn),
@@ -3083,7 +3092,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3083
3092
  background: "none",
3084
3093
  onCommand: i
3085
3094
  }, null, 8, ["icon", "label", "menus"]),
3086
- p(t(tl), {
3095
+ m(t(tl), {
3087
3096
  disabled: !o.value,
3088
3097
  mode: "icon",
3089
3098
  size: "small",
@@ -3101,7 +3110,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3101
3110
  inheritAttrs: !1,
3102
3111
  __name: "index",
3103
3112
  setup(c, { expose: e }) {
3104
- const n = k(), l = k(), { width: a, height: o } = Me(n), { dependencies: s, engine: r, apis: i, meta: v } = _n(), { current: m, isEmpty: g } = ie(), y = S(() => r.skeleton?.getWidget("Toolbar")?.widgetRef.mode ?? "pc"), h = S(() => r.project.value?.config || {}), { designer: d, hover: _, dropping: w, selected: x } = Ss(
3113
+ const n = k(), l = k(), { width: a, height: o } = Me(n), { dependencies: s, engine: r, apis: i, meta: v } = _n(), { current: p, isEmpty: g } = ie(), y = S(() => r.skeleton?.getWidget("Toolbar")?.widgetRef.mode ?? "pc"), h = S(() => r.project.value?.config || {}), { designer: d, hover: _, dropping: w, selected: x } = Ss(
3105
3114
  l,
3106
3115
  s,
3107
3116
  i,
@@ -3109,20 +3118,20 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3109
3118
  h
3110
3119
  ), V = (R) => {
3111
3120
  const P = R.type, $ = R.model;
3112
- if (m.value)
3121
+ if (p.value)
3113
3122
  switch (P) {
3114
3123
  case "remove":
3115
- m.value.removeNode($), d.value?.setSelected(null);
3124
+ p.value.removeNode($), d.value?.setSelected(null);
3116
3125
  break;
3117
3126
  case "copy":
3118
- const D = m.value.cloneNode($);
3127
+ const D = p.value.cloneNode($);
3119
3128
  d.value?.setSelected(D);
3120
3129
  break;
3121
3130
  case "prev":
3122
- m.value.movePrev($), d.value?.setSelected($);
3131
+ p.value.movePrev($), d.value?.setSelected($);
3123
3132
  break;
3124
3133
  case "next":
3125
- m.value.moveNext($), d.value?.setSelected($);
3134
+ p.value.moveNext($), d.value?.setSelected($);
3126
3135
  break;
3127
3136
  case "hover":
3128
3137
  d.value?.setHover($);
@@ -3147,7 +3156,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3147
3156
  ref: n,
3148
3157
  class: "v-designer"
3149
3158
  }, [
3150
- p(t(xn), {
3159
+ m(t(xn), {
3151
3160
  mode: y.value,
3152
3161
  width: t(a),
3153
3162
  height: t(o)
@@ -3180,7 +3189,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3180
3189
  class: "v-designer__selected",
3181
3190
  style: He(t(x).style)
3182
3191
  }, [
3183
- p(jo, {
3192
+ m(jo, {
3184
3193
  position: t(x).position,
3185
3194
  model: t(x).model,
3186
3195
  path: t(x).path,
@@ -3192,11 +3201,11 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3192
3201
  ]),
3193
3202
  _: 1
3194
3203
  }, 8, ["mode", "width", "height"]),
3195
- t(m) ? A("", !0) : (u(), b(t(se), {
3204
+ t(p) ? A("", !0) : (u(), b(t(se), {
3196
3205
  key: 0,
3197
3206
  description: "请新建或打开文件"
3198
3207
  })),
3199
- t(m) && t(g) ? (u(), j("div", Eo, " 您可以拖拽组件放置到这里 ")) : A("", !0)
3208
+ t(p) && t(g) ? (u(), j("div", Eo, " 您可以拖拽组件放置到这里 ")) : A("", !0)
3200
3209
  ], 512));
3201
3210
  }
3202
3211
  }), Ue = /* @__PURE__ */ E({
@@ -3227,7 +3236,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3227
3236
  e.remove(d);
3228
3237
  break;
3229
3238
  }
3230
- }, m = (d) => {
3239
+ }, p = (d) => {
3231
3240
  o.value.value = d;
3232
3241
  }, g = (d) => {
3233
3242
  s.value = !0, o.value = {
@@ -3256,7 +3265,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3256
3265
  key: 0,
3257
3266
  "image-size": 40
3258
3267
  })),
3259
- p(t(Ct), {
3268
+ m(t(Ct), {
3260
3269
  modelValue: a.value,
3261
3270
  "onUpdate:modelValue": _[1] || (_[1] = (w) => a.value = w),
3262
3271
  title: r.value,
@@ -3264,17 +3273,17 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3264
3273
  model: o.value,
3265
3274
  block: d.current,
3266
3275
  context: d.context,
3267
- onPick: m
3276
+ onPick: p
3268
3277
  }, {
3269
3278
  default: f(() => [
3270
3279
  we(d.$slots, "fields", Jt(Wt({ model: o.value, isEdit: s.value, nameLabel: d.nameLabel, valueLabel: d.valueLabel })), () => [
3271
- p(t(I), {
3280
+ m(t(I), {
3272
3281
  name: "name",
3273
3282
  label: d.nameLabel,
3274
3283
  required: "",
3275
3284
  disabled: s.value
3276
3285
  }, null, 8, ["label", "disabled"]),
3277
- p(t(I), {
3286
+ m(t(I), {
3278
3287
  ref_key: "codeFieldRef",
3279
3288
  ref: l,
3280
3289
  name: "value",
@@ -3282,7 +3291,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3282
3291
  required: ""
3283
3292
  }, {
3284
3293
  editor: f(() => [
3285
- p(t(le), {
3294
+ m(t(le), {
3286
3295
  ref_key: "editorRef",
3287
3296
  ref: n,
3288
3297
  dark: "",
@@ -3316,11 +3325,11 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3316
3325
  const { name: i, value: v } = s;
3317
3326
  if (!r && e.current?.state[i])
3318
3327
  return ne(`名称 ${i} 已存在,请更换!`), !1;
3319
- const m = {
3328
+ const p = {
3320
3329
  type: "JSExpression",
3321
3330
  value: v
3322
3331
  };
3323
- return oe(m, e.context, !0) ? (e.current?.setState(i, m), !0) : !1;
3332
+ return oe(p, e.context, !0) ? (e.current?.setState(i, p), !0) : !1;
3324
3333
  };
3325
3334
  return (s, r) => (u(), b(Ue, {
3326
3335
  title: "状态数据",
@@ -3348,11 +3357,11 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3348
3357
  const { name: i, value: v } = s;
3349
3358
  if (!r && e.current?.computed[i])
3350
3359
  return ne(`名称 ${i} 已存在,请更换!`), !1;
3351
- const m = {
3360
+ const p = {
3352
3361
  type: "JSFunction",
3353
3362
  value: v
3354
3363
  };
3355
- return oe(m, e.context, !0) ? (e.current?.setFunction("computed", i, m), !0) : !1;
3364
+ return oe(p, e.context, !0) ? (e.current?.setFunction("computed", i, p), !0) : !1;
3356
3365
  };
3357
3366
  return (s, r) => (u(), b(Ue, {
3358
3367
  title: "计算属性",
@@ -3380,11 +3389,11 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3380
3389
  const { name: i, value: v } = s;
3381
3390
  if (!r && e.current?.methods[i])
3382
3391
  return ne(`名称 ${i} 已存在,请更换!`), !1;
3383
- const m = {
3392
+ const p = {
3384
3393
  type: "JSFunction",
3385
3394
  value: v
3386
3395
  };
3387
- return oe(m, e.context, !0) ? (e.current?.setFunction("methods", i, m), !0) : !1;
3396
+ return oe(p, e.context, !0) ? (e.current?.setFunction("methods", i, p), !0) : !1;
3388
3397
  };
3389
3398
  return (s, r) => (u(), b(Ue, {
3390
3399
  title: "组件方法",
@@ -3412,12 +3421,12 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3412
3421
  name: "",
3413
3422
  value: "() => { }"
3414
3423
  }), o = (r) => e.current?.removeFunction("lifeCycles", r.name), s = async (r, i) => {
3415
- const { name: v, value: m } = r;
3424
+ const { name: v, value: p } = r;
3416
3425
  if (!i && e.current?.lifeCycles[v])
3417
3426
  return ne(`名称 ${v} 已存在,请更换!`), !1;
3418
3427
  const g = {
3419
3428
  type: "JSFunction",
3420
- value: m
3429
+ value: p
3421
3430
  };
3422
3431
  return oe(g, e.context, !0) ? (e.current?.setFunction("lifeCycles", v, g), !0) : !1;
3423
3432
  };
@@ -3432,22 +3441,22 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3432
3441
  remove: o,
3433
3442
  submit: s
3434
3443
  }, {
3435
- fields: f(({ model: v, nameLabel: m, isEdit: g, valueLabel: y }) => [
3436
- p(t(I), {
3444
+ fields: f(({ model: v, nameLabel: p, isEdit: g, valueLabel: y }) => [
3445
+ m(t(I), {
3437
3446
  name: "name",
3438
- label: m,
3447
+ label: p,
3439
3448
  editor: "select",
3440
3449
  options: n.value,
3441
3450
  required: "",
3442
3451
  disabled: g
3443
3452
  }, null, 8, ["label", "options", "disabled"]),
3444
- p(t(I), {
3453
+ m(t(I), {
3445
3454
  name: "value",
3446
3455
  label: y,
3447
3456
  required: ""
3448
3457
  }, {
3449
3458
  editor: f(() => [
3450
- p(t(le), {
3459
+ m(t(le), {
3451
3460
  ref: "editorRef",
3452
3461
  dark: "",
3453
3462
  height: "350px",
@@ -3481,16 +3490,16 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3481
3490
  const v = {
3482
3491
  type: "JSFunction",
3483
3492
  value: r.source
3484
- }, m = {
3493
+ }, p = {
3485
3494
  type: "JSFunction",
3486
3495
  value: r.handler
3487
3496
  };
3488
- if (!oe(v, e.context, !0) || !oe(m, e.context, !0))
3497
+ if (!oe(v, e.context, !0) || !oe(p, e.context, !0))
3489
3498
  return !1;
3490
3499
  const g = {
3491
3500
  ...r,
3492
3501
  source: v,
3493
- handler: m
3502
+ handler: p
3494
3503
  };
3495
3504
  return e.current?.setWatch(g), !0;
3496
3505
  };
@@ -3507,14 +3516,14 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3507
3516
  itemTitle: a,
3508
3517
  grow: ""
3509
3518
  }, {
3510
- fields: f(({ model: v, nameLabel: m, valueLabel: g }) => [
3511
- p(t(I), {
3519
+ fields: f(({ model: v, nameLabel: p, valueLabel: g }) => [
3520
+ m(t(I), {
3512
3521
  name: "source",
3513
- label: m,
3522
+ label: p,
3514
3523
  required: ""
3515
3524
  }, {
3516
3525
  editor: f(() => [
3517
- p(t(le), {
3526
+ m(t(le), {
3518
3527
  dark: "",
3519
3528
  height: "100px",
3520
3529
  modelValue: v.source,
@@ -3523,27 +3532,27 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3523
3532
  ]),
3524
3533
  _: 2
3525
3534
  }, 1032, ["label"]),
3526
- p(t(I), {
3535
+ m(t(I), {
3527
3536
  name: "deep",
3528
3537
  modelValue: v.deep,
3529
3538
  "onUpdate:modelValue": (y) => v.deep = y,
3530
3539
  label: "深度监听",
3531
3540
  editor: "switch"
3532
3541
  }, null, 8, ["modelValue", "onUpdate:modelValue"]),
3533
- p(t(I), {
3542
+ m(t(I), {
3534
3543
  name: "immediate",
3535
3544
  modelValue: v.immediate,
3536
3545
  "onUpdate:modelValue": (y) => v.immediate = y,
3537
3546
  label: "立即执行",
3538
3547
  editor: "switch"
3539
3548
  }, null, 8, ["modelValue", "onUpdate:modelValue"]),
3540
- p(t(I), {
3549
+ m(t(I), {
3541
3550
  name: "handler",
3542
3551
  label: g,
3543
3552
  required: ""
3544
3553
  }, {
3545
3554
  editor: f(() => [
3546
- p(t(le), {
3555
+ m(t(le), {
3547
3556
  dark: "",
3548
3557
  height: "130px",
3549
3558
  modelValue: v.handler,
@@ -3566,23 +3575,23 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3566
3575
  fit: ""
3567
3576
  }, {
3568
3577
  default: f(() => [
3569
- p(Po, {
3578
+ m(Po, {
3570
3579
  current: t(e),
3571
3580
  context: t(n)
3572
3581
  }, null, 8, ["current", "context"]),
3573
- p(Io, {
3582
+ m(Io, {
3574
3583
  current: t(e),
3575
3584
  context: t(n)
3576
3585
  }, null, 8, ["current", "context"]),
3577
- p(Bo, {
3586
+ m(Bo, {
3578
3587
  current: t(e),
3579
3588
  context: t(n)
3580
3589
  }, null, 8, ["current", "context"]),
3581
- p($o, {
3590
+ m($o, {
3582
3591
  current: t(e),
3583
3592
  context: t(n)
3584
3593
  }, null, 8, ["current", "context"]),
3585
- p(Ro, {
3594
+ m(Ro, {
3586
3595
  current: t(e),
3587
3596
  context: t(n)
3588
3597
  }, null, 8, ["current", "context"])
@@ -3614,7 +3623,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3614
3623
  fit: !1
3615
3624
  }, {
3616
3625
  default: f(() => [
3617
- p(t(ge), {
3626
+ m(t(ge), {
3618
3627
  class: "v-properties-widget__form",
3619
3628
  size: "small",
3620
3629
  "label-width": "90px",
@@ -3648,7 +3657,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3648
3657
  componentProps: r,
3649
3658
  customProps: i,
3650
3659
  addCustom: v,
3651
- removeCustom: m,
3660
+ removeCustom: p,
3652
3661
  isExist: g
3653
3662
  } = As(l), y = k(!1), h = k(), d = () => {
3654
3663
  y.value = !0, h.value = {
@@ -3658,7 +3667,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3658
3667
  const V = Object.keys(a.value?.props || {});
3659
3668
  return !g(x.name) && !V.includes(x.name) ? (v(x.name), !0) : (ne("已存在该属性名称"), !1);
3660
3669
  }, w = async (x) => {
3661
- await ze("确定删除?") && m(x);
3670
+ await ze("确定删除?") && p(x);
3662
3671
  };
3663
3672
  return (x, V) => t(e) ? (u(), b(t(W), {
3664
3673
  key: 0,
@@ -3699,7 +3708,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3699
3708
  onPlus: d,
3700
3709
  onRemove: w
3701
3710
  }, null, 8, ["current", "context", "node", "items", "onChange"])) : A("", !0),
3702
- p(t(xe), {
3711
+ m(t(xe), {
3703
3712
  modelValue: y.value,
3704
3713
  "onUpdate:modelValue": V[0] || (V[0] = (B) => y.value = B),
3705
3714
  title: "新增自定义属性",
@@ -3710,7 +3719,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3710
3719
  model: h.value
3711
3720
  }, {
3712
3721
  default: f(() => [
3713
- p(t(I), {
3722
+ m(t(I), {
3714
3723
  name: "name",
3715
3724
  label: "属性名称",
3716
3725
  required: "",
@@ -3750,13 +3759,13 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3750
3759
  onPick: a
3751
3760
  }, {
3752
3761
  default: f(() => [
3753
- p(t(I), {
3762
+ m(t(I), {
3754
3763
  name: "value",
3755
3764
  label: "绑定内容 [ JSExpression ]",
3756
3765
  required: ""
3757
3766
  }, {
3758
3767
  editor: f(() => [
3759
- p(t(le), {
3768
+ m(t(le), {
3760
3769
  ref_key: "editorRef",
3761
3770
  ref: n,
3762
3771
  modelValue: l.value,
@@ -3804,19 +3813,19 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3804
3813
  onPick: s
3805
3814
  }, {
3806
3815
  default: f(() => [
3807
- p(t(I), {
3816
+ m(t(I), {
3808
3817
  name: "modifiers",
3809
3818
  label: "事件修饰符",
3810
3819
  editor: "checkbox",
3811
3820
  options: t(o)
3812
3821
  }, null, 8, ["options"]),
3813
- p(t(I), {
3822
+ m(t(I), {
3814
3823
  name: "handler.value",
3815
3824
  label: "事件处理函数 [ JSFunction ]",
3816
3825
  required: ""
3817
3826
  }, {
3818
3827
  editor: f(() => [
3819
- p(t(le), {
3828
+ m(t(le), {
3820
3829
  ref_key: "editorRef",
3821
3830
  ref: n,
3822
3831
  modelValue: a.handler.value,
@@ -3835,12 +3844,12 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3835
3844
  name: "EventsWidget",
3836
3845
  __name: "index",
3837
3846
  setup(c) {
3838
- const { current: e, context: n } = ie(), { selected: l } = ye(), { mouseEventList: a, keyboardEventList: o, componentEventList: s } = js(l), r = k({
3847
+ const { current: e, context: n } = ie(), { selected: l } = ye(), { mouseEventList: a, keyboardEventList: o, componentEventList: s } = Es(l), r = k({
3839
3848
  name: "",
3840
3849
  event: void 0
3841
3850
  }), i = k(!1), v = (d) => {
3842
3851
  r.value = et(d), i.value = !0;
3843
- }, m = async (d) => {
3852
+ }, p = async (d) => {
3844
3853
  const _ = {
3845
3854
  ...d,
3846
3855
  modifiers: d.modifiers.reduce((x, V) => (x[V] = !0, x), {})
@@ -3861,7 +3870,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3861
3870
  fit: ""
3862
3871
  }, {
3863
3872
  default: f(() => [
3864
- p(t(U), {
3873
+ m(t(U), {
3865
3874
  title: "组件事件",
3866
3875
  class: "v-sub-panel",
3867
3876
  size: "small",
@@ -3887,7 +3896,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3887
3896
  ]),
3888
3897
  _: 1
3889
3898
  }),
3890
- p(t(U), {
3899
+ m(t(U), {
3891
3900
  title: "鼠标事件",
3892
3901
  class: "v-sub-panel",
3893
3902
  size: "small",
@@ -3908,7 +3917,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3908
3917
  ]),
3909
3918
  _: 1
3910
3919
  }),
3911
- p(t(U), {
3920
+ m(t(U), {
3912
3921
  title: "键盘事件",
3913
3922
  class: "v-sub-panel",
3914
3923
  size: "small",
@@ -3938,7 +3947,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3938
3947
  current: t(e),
3939
3948
  name: r.value.name,
3940
3949
  event: r.value.event,
3941
- submitMethod: m,
3950
+ submitMethod: p,
3942
3951
  onUnbind: y
3943
3952
  }, null, 8, ["modelValue", "context", "current", "name", "event"])) : A("", !0)
3944
3953
  ]),
@@ -3964,7 +3973,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3964
3973
  onSave: o
3965
3974
  }, {
3966
3975
  default: f(() => [
3967
- p(t(le), {
3976
+ m(t(le), {
3968
3977
  ref_key: "editorRef",
3969
3978
  ref: n,
3970
3979
  "model-value": l.value,
@@ -3988,30 +3997,30 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
3988
3997
  vFor: r,
3989
3998
  vModels: i,
3990
3999
  onValueChange: v,
3991
- onForChange: m,
4000
+ onForChange: p,
3992
4001
  onModelChange: g
3993
- } = Ps(l), y = (h) => h.arg ? typeof h.arg == "string" ? h.arg : Je(h.arg, {}) : "modelValue";
4002
+ } = Is(l), y = (h) => h.arg ? typeof h.arg == "string" ? h.arg : Je(h.arg, {}) : "modelValue";
3994
4003
  return (h, d) => (u(), b(t(W), {
3995
4004
  class: "v-directives-widget",
3996
4005
  direction: "column",
3997
4006
  fit: ""
3998
4007
  }, {
3999
4008
  default: f(() => [
4000
- p(t(U), {
4009
+ m(t(U), {
4001
4010
  class: "v-sub-panel",
4002
4011
  title: "内置指令",
4003
4012
  size: "small",
4004
4013
  fit: !1
4005
4014
  }, {
4006
4015
  default: f(() => [
4007
- p(t(ge), {
4016
+ m(t(ge), {
4008
4017
  size: "small",
4009
4018
  "label-width": "80px",
4010
4019
  onKeydown: d[0] || (d[0] = Ge(Oe(() => {
4011
4020
  }, ["prevent", "stop"]), ["enter"]))
4012
4021
  }, {
4013
4022
  default: f(() => [
4014
- p(t(J), {
4023
+ m(t(J), {
4015
4024
  name: "vIf",
4016
4025
  label: "v-if",
4017
4026
  setters: "ExpressionSetter",
@@ -4020,7 +4029,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4020
4029
  value: t(a).value,
4021
4030
  onChange: t(v)
4022
4031
  }, null, 8, ["current", "context", "value", "onChange"]),
4023
- p(t(J), {
4032
+ m(t(J), {
4024
4033
  name: "vShow",
4025
4034
  label: "v-show",
4026
4035
  setters: "ExpressionSetter",
@@ -4029,7 +4038,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4029
4038
  value: t(o).value,
4030
4039
  onChange: t(v)
4031
4040
  }, null, 8, ["current", "context", "value", "onChange"]),
4032
- p(t(J), {
4041
+ m(t(J), {
4033
4042
  name: "vBind",
4034
4043
  label: "v-bind",
4035
4044
  setters: "ExpressionSetter",
@@ -4044,30 +4053,30 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4044
4053
  ]),
4045
4054
  _: 1
4046
4055
  }),
4047
- p(t(U), {
4056
+ m(t(U), {
4048
4057
  class: "v-sub-panel",
4049
4058
  title: "循环",
4050
4059
  size: "small",
4051
4060
  fit: !1
4052
4061
  }, {
4053
4062
  default: f(() => [
4054
- p(t(ge), {
4063
+ m(t(ge), {
4055
4064
  size: "small",
4056
4065
  "label-width": "80px",
4057
4066
  onKeydown: d[1] || (d[1] = Ge(Oe(() => {
4058
4067
  }, ["prevent", "stop"]), ["enter"]))
4059
4068
  }, {
4060
4069
  default: f(() => [
4061
- p(t(J), {
4070
+ m(t(J), {
4062
4071
  name: "value",
4063
4072
  label: "循环数据",
4064
4073
  setters: "ExpressionSetter",
4065
4074
  current: t(e),
4066
4075
  context: t(n),
4067
4076
  value: t(r).value,
4068
- onChange: t(m)
4077
+ onChange: t(p)
4069
4078
  }, null, 8, ["current", "context", "value", "onChange"]),
4070
- p(t(J), {
4079
+ m(t(J), {
4071
4080
  name: "item",
4072
4081
  label: "迭代变量名",
4073
4082
  setters: {
@@ -4077,9 +4086,9 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4077
4086
  current: t(e),
4078
4087
  context: t(n),
4079
4088
  value: t(r).iterator?.item,
4080
- onChange: t(m)
4089
+ onChange: t(p)
4081
4090
  }, null, 8, ["current", "context", "value", "onChange"]),
4082
- p(t(J), {
4091
+ m(t(J), {
4083
4092
  name: "index",
4084
4093
  label: "索引变量名",
4085
4094
  setters: {
@@ -4089,7 +4098,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4089
4098
  current: t(e),
4090
4099
  context: t(n),
4091
4100
  value: t(r).iterator?.index,
4092
- onChange: t(m)
4101
+ onChange: t(p)
4093
4102
  }, null, 8, ["current", "context", "value", "onChange"])
4094
4103
  ]),
4095
4104
  _: 1
@@ -4097,7 +4106,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4097
4106
  ]),
4098
4107
  _: 1
4099
4108
  }),
4100
- p(t(U), {
4109
+ m(t(U), {
4101
4110
  class: "v-sub-panel",
4102
4111
  title: "双向绑定",
4103
4112
  size: "small",
@@ -4115,14 +4124,14 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4115
4124
  fit: !1
4116
4125
  }, {
4117
4126
  default: f(() => [
4118
- p(t(ge), {
4127
+ m(t(ge), {
4119
4128
  size: "small",
4120
4129
  "label-width": "60px",
4121
4130
  onKeydown: d[2] || (d[2] = Ge(Oe(() => {
4122
4131
  }, ["prevent", "stop"]), ["enter"]))
4123
4132
  }, {
4124
4133
  default: f(() => [
4125
- p(t(J), {
4134
+ m(t(J), {
4126
4135
  name: w.toString(),
4127
4136
  label: "绑定变量",
4128
4137
  setters: "ExpressionSetter",
@@ -4184,7 +4193,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4184
4193
  "submit-method": o
4185
4194
  }, {
4186
4195
  default: f(() => [
4187
- p(t(I), {
4196
+ m(t(I), {
4188
4197
  name: "name",
4189
4198
  label: "属性名称",
4190
4199
  required: "",
@@ -4195,7 +4204,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4195
4204
  pattern: t(Ce)
4196
4205
  }
4197
4206
  }, null, 8, ["disabled", "rules"]),
4198
- p(t(I), {
4207
+ m(t(I), {
4199
4208
  name: "type",
4200
4209
  label: "数据类型",
4201
4210
  editor: "checkbox",
@@ -4203,18 +4212,18 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4203
4212
  options: t(a),
4204
4213
  required: ""
4205
4214
  }, null, 8, ["options"]),
4206
- p(t(I), {
4215
+ m(t(I), {
4207
4216
  name: "required",
4208
4217
  label: "必须",
4209
4218
  editor: "switch"
4210
4219
  }),
4211
- p(t(I), {
4220
+ m(t(I), {
4212
4221
  name: "default.value",
4213
4222
  label: "默认值",
4214
4223
  editor: "none"
4215
4224
  }, {
4216
4225
  default: f(() => [
4217
- p(t(le), {
4226
+ m(t(le), {
4218
4227
  modelValue: l.value.default.value,
4219
4228
  "onUpdate:modelValue": r[0] || (r[0] = (i) => l.value.default.value = i),
4220
4229
  height: "200px",
@@ -4248,7 +4257,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4248
4257
  "submit-method": a
4249
4258
  }, {
4250
4259
  default: f(() => [
4251
- p(t(I), {
4260
+ m(t(I), {
4252
4261
  name: "name",
4253
4262
  label: "事件名称",
4254
4263
  required: "",
@@ -4283,7 +4292,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4283
4292
  "submit-method": a
4284
4293
  }, {
4285
4294
  default: f(() => [
4286
- p(t(I), {
4295
+ m(t(I), {
4287
4296
  name: "name",
4288
4297
  label: "插槽名称",
4289
4298
  disabled: !!e.item,
@@ -4329,7 +4338,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4329
4338
  "submit-method": a
4330
4339
  }, {
4331
4340
  default: f(() => [
4332
- p(t(I), {
4341
+ m(t(I), {
4333
4342
  name: "name",
4334
4343
  label: "注入名称",
4335
4344
  required: "",
@@ -4340,18 +4349,18 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4340
4349
  pattern: t(Ce)
4341
4350
  }
4342
4351
  }, null, 8, ["disabled", "rules"]),
4343
- p(t(I), {
4352
+ m(t(I), {
4344
4353
  name: "from",
4345
4354
  label: "来源名称",
4346
4355
  tip: "默认和注入名称一致"
4347
4356
  }),
4348
- p(t(I), {
4357
+ m(t(I), {
4349
4358
  name: "default.value",
4350
4359
  label: "默认值",
4351
4360
  editor: "none"
4352
4361
  }, {
4353
4362
  default: f(() => [
4354
- p(t(le), {
4363
+ m(t(le), {
4355
4364
  modelValue: l.value.default.value,
4356
4365
  "onUpdate:modelValue": s[0] || (s[0] = (r) => l.value.default.value = r),
4357
4366
  height: "200px",
@@ -4368,7 +4377,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4368
4377
  name: "DefinedWidget",
4369
4378
  __name: "index",
4370
4379
  setup(c) {
4371
- const { current: e, context: n } = ie(), l = S(() => (e.value?.props || []).map((M) => typeof M == "string" ? { name: M } : M)), a = S(() => e.value?.emits || []), o = S(() => e.value?.slots || []), s = S(() => e.value?.inject || []), r = k(!1), i = k(), v = k(!1), m = k(), g = k(!1), y = k(), h = k(!1), d = k(), _ = () => {
4380
+ const { current: e, context: n } = ie(), l = S(() => (e.value?.props || []).map((M) => typeof M == "string" ? { name: M } : M)), a = S(() => e.value?.emits || []), o = S(() => e.value?.slots || []), s = S(() => e.value?.inject || []), r = k(!1), i = k(), v = k(!1), p = k(), g = k(!1), y = k(), h = k(!1), d = k(), _ = () => {
4372
4381
  i.value = void 0, r.value = !0;
4373
4382
  }, w = (M) => {
4374
4383
  const { name: L, modelValue: N } = M;
@@ -4376,9 +4385,9 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4376
4385
  }, x = (M) => {
4377
4386
  i.value = M, r.value = !0;
4378
4387
  }, V = () => {
4379
- m.value = void 0, v.value = !0;
4388
+ p.value = void 0, v.value = !0;
4380
4389
  }, B = (M) => {
4381
- m.value = M, v.value = !0;
4390
+ p.value = M, v.value = !0;
4382
4391
  }, O = (M) => {
4383
4392
  const { name: L, modelValue: N } = M;
4384
4393
  L === "edit" && B(N), L === "remove" && e.value?.removeEmit(N);
@@ -4404,7 +4413,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4404
4413
  fit: ""
4405
4414
  }, {
4406
4415
  default: f(() => [
4407
- p(t(U), {
4416
+ m(t(U), {
4408
4417
  class: "v-sub-panel",
4409
4418
  title: "定义属性",
4410
4419
  size: "small",
@@ -4436,7 +4445,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4436
4445
  ]),
4437
4446
  _: 1
4438
4447
  }),
4439
- p(t(U), {
4448
+ m(t(U), {
4440
4449
  class: "v-sub-panel",
4441
4450
  title: "定义事件",
4442
4451
  size: "small",
@@ -4463,12 +4472,12 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4463
4472
  "onUpdate:modelValue": L[1] || (L[1] = (N) => v.value = N),
4464
4473
  current: t(e),
4465
4474
  context: t(n),
4466
- item: m.value
4475
+ item: p.value
4467
4476
  }, null, 8, ["modelValue", "current", "context", "item"])) : A("", !0)
4468
4477
  ]),
4469
4478
  _: 1
4470
4479
  }),
4471
- p(t(U), {
4480
+ m(t(U), {
4472
4481
  class: "v-sub-panel",
4473
4482
  title: "定义插槽",
4474
4483
  size: "small",
@@ -4500,7 +4509,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4500
4509
  ]),
4501
4510
  _: 1
4502
4511
  }),
4503
- p(t(U), {
4512
+ m(t(U), {
4504
4513
  class: "v-sub-panel",
4505
4514
  title: "注入",
4506
4515
  size: "small",
@@ -4563,7 +4572,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4563
4572
  disabled: !0,
4564
4573
  border: !0
4565
4574
  }
4566
- ], { apis: l, meta: a } = Is(), s = k(
4575
+ ], { apis: l, meta: a } = Bs(), s = k(
4567
4576
  Object.assign({
4568
4577
  type: "api",
4569
4578
  ref: "",
@@ -4582,7 +4591,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4582
4591
  })`
4583
4592
  }
4584
4593
  }, e.item)
4585
- ), r = k(!1), i = k(""), v = k(!1), m = S(() => s.value.type === "api" ? l.value.map((w) => ({
4594
+ ), r = k(!1), i = k(""), v = k(!1), p = S(() => s.value.type === "api" ? l.value.map((w) => ({
4586
4595
  label: w.label || "",
4587
4596
  value: w.id,
4588
4597
  data: w
@@ -4657,7 +4666,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4657
4666
  "submit-method": d
4658
4667
  }, {
4659
4668
  extra: f(() => [
4660
- p(t(ae), {
4669
+ m(t(ae), {
4661
4670
  loading: r.value,
4662
4671
  type: "warning",
4663
4672
  onClick: _
@@ -4669,7 +4678,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4669
4678
  }, 8, ["loading"])
4670
4679
  ]),
4671
4680
  default: f(() => [
4672
- p(t(I), {
4681
+ m(t(I), {
4673
4682
  name: "type",
4674
4683
  label: "数据类型",
4675
4684
  editor: "radio",
@@ -4685,7 +4694,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4685
4694
  key: s.value.type,
4686
4695
  required: "",
4687
4696
  disabled: !!e.item,
4688
- options: m.value,
4697
+ options: p.value,
4689
4698
  props: { filterable: !0 },
4690
4699
  onChange: h
4691
4700
  }, {
@@ -4695,7 +4704,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4695
4704
  ]),
4696
4705
  _: 1
4697
4706
  }, 8, ["disabled", "options"])),
4698
- p(t(I), {
4707
+ m(t(I), {
4699
4708
  name: "name",
4700
4709
  label: "调用名称",
4701
4710
  required: "",
@@ -4706,18 +4715,18 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4706
4715
  pattern: t(Ce)
4707
4716
  }
4708
4717
  }, null, 8, ["disabled", "rules"]),
4709
- p(t(I), {
4718
+ m(t(I), {
4710
4719
  name: "label",
4711
4720
  label: "备注说明",
4712
4721
  required: ""
4713
4722
  }),
4714
- p(t(I), {
4723
+ m(t(I), {
4715
4724
  name: "transform.value",
4716
4725
  label: "转换函数",
4717
4726
  editor: "none"
4718
4727
  }, {
4719
4728
  default: f(() => [
4720
- p(t(le), {
4729
+ m(t(le), {
4721
4730
  modelValue: s.value.transform.value,
4722
4731
  "onUpdate:modelValue": x[0] || (x[0] = (V) => s.value.transform.value = V),
4723
4732
  height: "200px",
@@ -4726,13 +4735,13 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4726
4735
  ]),
4727
4736
  _: 1
4728
4737
  }),
4729
- p(t(I), {
4738
+ m(t(I), {
4730
4739
  name: "test.value",
4731
4740
  label: "测试用例",
4732
4741
  editor: "none"
4733
4742
  }, {
4734
4743
  default: f(() => [
4735
- p(t(le), {
4744
+ m(t(le), {
4736
4745
  modelValue: s.value.test.value,
4737
4746
  "onUpdate:modelValue": x[1] || (x[1] = (V) => s.value.test.value = V),
4738
4747
  height: "100px",
@@ -4752,7 +4761,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4752
4761
  size: "80%"
4753
4762
  }, {
4754
4763
  default: f(() => [
4755
- p(t(le), {
4764
+ m(t(le), {
4756
4765
  "model-value": i.value,
4757
4766
  border: "",
4758
4767
  dark: "",
@@ -4771,26 +4780,26 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4771
4780
  __name: "index",
4772
4781
  setup(c) {
4773
4782
  const { current: e, context: n } = ie(), l = k(!1), a = k(), o = S(() => Object.values(e.value?.dataSources || {}).filter(
4774
- (m) => ["meta", "api"].includes(m.type)
4775
- )), s = (m) => ({
4783
+ (p) => ["meta", "api"].includes(p.type)
4784
+ )), s = (p) => ({
4776
4785
  api: "primary",
4777
4786
  meta: "success",
4778
4787
  cube: "warning"
4779
- })[m], r = () => {
4788
+ })[p], r = () => {
4780
4789
  a.value = void 0, l.value = !0;
4781
- }, i = (m) => {
4782
- a.value = m, l.value = !0;
4783
- }, v = (m) => {
4784
- const { name: g, modelValue: y } = m;
4790
+ }, i = (p) => {
4791
+ a.value = p, l.value = !0;
4792
+ }, v = (p) => {
4793
+ const { name: g, modelValue: y } = p;
4785
4794
  g === "edit" && i(y), g === "remove" && e.value?.removeDataSource(y.name);
4786
4795
  };
4787
- return (m, g) => (u(), b(t(W), {
4796
+ return (p, g) => (u(), b(t(W), {
4788
4797
  class: "v-data-sources-widget",
4789
4798
  direction: "column",
4790
4799
  fit: ""
4791
4800
  }, {
4792
4801
  default: f(() => [
4793
- p(t(U), {
4802
+ m(t(U), {
4794
4803
  title: "请求方法",
4795
4804
  class: "v-sub-panel",
4796
4805
  size: "small",
@@ -4955,10 +4964,10 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4955
4964
  value: "stretch",
4956
4965
  svg: fa
4957
4966
  }
4958
- ], i = (v, m) => {
4959
- n.value = m === "flex", e.setStyle("display", m), n.value || (e.setStyle("flex-direction", void 0), e.setStyle("justify-content", void 0), e.setStyle("align-items", void 0), e.setStyle("flex-wrap", void 0));
4967
+ ], i = (v, p) => {
4968
+ n.value = p === "flex", e.setStyle("display", p), n.value || (e.setStyle("flex-direction", void 0), e.setStyle("justify-content", void 0), e.setStyle("align-items", void 0), e.setStyle("flex-wrap", void 0));
4960
4969
  };
4961
- return (v, m) => (u(), b(t(U), {
4970
+ return (v, p) => (u(), b(t(U), {
4962
4971
  title: "布局",
4963
4972
  class: "v-sub-panel",
4964
4973
  size: "small",
@@ -4966,12 +4975,12 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4966
4975
  collapsable: ""
4967
4976
  }, {
4968
4977
  default: f(() => [
4969
- p(t(ge), {
4978
+ m(t(ge), {
4970
4979
  size: "small",
4971
4980
  "label-width": "80px"
4972
4981
  }, {
4973
4982
  default: f(() => [
4974
- p(t(J), {
4983
+ m(t(J), {
4975
4984
  name: "display",
4976
4985
  label: "排布",
4977
4986
  setters: { name: "TagSetter" },
@@ -4981,7 +4990,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4981
4990
  onChange: i
4982
4991
  }, null, 8, ["value"]),
4983
4992
  n.value ? (u(), j(T, { key: 0 }, [
4984
- p(t(J), {
4993
+ m(t(J), {
4985
4994
  name: "flex-direction",
4986
4995
  label: "主轴方向",
4987
4996
  setters: { name: "TagSetter" },
@@ -4990,7 +4999,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4990
4999
  value: e.styleJson["flex-direction"],
4991
5000
  onChange: e.setStyle
4992
5001
  }, null, 8, ["value", "onChange"]),
4993
- p(t(J), {
5002
+ m(t(J), {
4994
5003
  name: "justify-content",
4995
5004
  label: "主轴对齐",
4996
5005
  setters: { name: "TagSetter" },
@@ -4999,7 +5008,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
4999
5008
  value: e.styleJson["justify-content"],
5000
5009
  onChange: e.setStyle
5001
5010
  }, null, 8, ["value", "onChange"]),
5002
- p(t(J), {
5011
+ m(t(J), {
5003
5012
  name: "align-items",
5004
5013
  label: "辅轴对齐",
5005
5014
  setters: { name: "TagSetter" },
@@ -5008,7 +5017,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5008
5017
  value: e.styleJson["align-items"],
5009
5018
  onChange: e.setStyle
5010
5019
  }, null, 8, ["value", "onChange"]),
5011
- p(t(J), {
5020
+ m(t(J), {
5012
5021
  name: "flex-wrap",
5013
5022
  label: "换行模式",
5014
5023
  setters: { name: "TagSetter" },
@@ -5054,7 +5063,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5054
5063
  onSave: s
5055
5064
  }, {
5056
5065
  default: f(() => [
5057
- p(t(le), {
5066
+ m(t(le), {
5058
5067
  ref_key: "editorRef",
5059
5068
  ref: n,
5060
5069
  "model-value": a.value,
@@ -5081,8 +5090,8 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5081
5090
  a("close");
5082
5091
  });
5083
5092
  const v = (h) => {
5084
- r.value = typeof h == "number" ? `${h}px` : "auto", m(r.value);
5085
- }, m = (h) => {
5093
+ r.value = typeof h == "number" ? `${h}px` : "auto", p(r.value);
5094
+ }, p = (h) => {
5086
5095
  i.value = h === "auto" ? void 0 : "px";
5087
5096
  }, g = () => {
5088
5097
  r.value ? (a("update:modelValue", r.value), a("submit", l.name, r.value), a("close")) : ne("请输入有效值", "提示");
@@ -5092,28 +5101,28 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5092
5101
  return (h, d) => (u(), j("div", Yo, [
5093
5102
  Zo,
5094
5103
  C("div", er, [
5095
- p(t(W), {
5104
+ m(t(W), {
5096
5105
  class: "v-spacing-input__body",
5097
5106
  ref_key: "bodyRef",
5098
5107
  ref: s,
5099
5108
  direction: "column"
5100
5109
  }, {
5101
5110
  default: f(() => [
5102
- p(t(W), null, {
5111
+ m(t(W), null, {
5103
5112
  default: f(() => [
5104
- p(t(tn), {
5113
+ m(t(tn), {
5105
5114
  modelValue: r.value,
5106
5115
  "onUpdate:modelValue": d[0] || (d[0] = (_) => r.value = _),
5107
5116
  size: "small",
5108
5117
  "with-unit": !!i.value,
5109
5118
  unit: i.value,
5110
5119
  format: i.value ? "0" : void 0,
5111
- onChange: m
5120
+ onChange: p
5112
5121
  }, null, 8, ["modelValue", "with-unit", "unit", "format"])
5113
5122
  ]),
5114
5123
  _: 1
5115
5124
  }),
5116
- p(t(W), null, {
5125
+ m(t(W), null, {
5117
5126
  default: f(() => [
5118
5127
  o.value ? (u(), b(t(W), {
5119
5128
  key: 0,
@@ -5127,7 +5136,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5127
5136
  ]),
5128
5137
  _: 1
5129
5138
  })) : A("", !0),
5130
- p(t(W), {
5139
+ m(t(W), {
5131
5140
  grow: "",
5132
5141
  class: "v-spacing-input__values",
5133
5142
  align: "center",
@@ -5143,9 +5152,9 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5143
5152
  ]),
5144
5153
  _: 1
5145
5154
  }),
5146
- p(t(W), null, {
5155
+ m(t(W), null, {
5147
5156
  default: f(() => [
5148
- p(t(ae), {
5157
+ m(t(ae), {
5149
5158
  size: "small",
5150
5159
  type: "primary",
5151
5160
  round: "",
@@ -5157,7 +5166,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5157
5166
  ]),
5158
5167
  _: 1
5159
5168
  }),
5160
- p(t(ae), {
5169
+ m(t(ae), {
5161
5170
  size: "small",
5162
5171
  round: "",
5163
5172
  style: { width: "100%" },
@@ -5214,10 +5223,10 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5214
5223
  setStyle: { type: Function }
5215
5224
  },
5216
5225
  setup(c) {
5217
- const e = c, n = k(), l = k(), { width: a, height: o } = Me(n), { width: s, height: r } = Me(l), i = k(!1), v = k(), m = k(), g = () => {
5218
- i.value = !1, v.value = void 0, m.value = void 0;
5226
+ const e = c, n = k(), l = k(), { width: a, height: o } = Me(n), { width: s, height: r } = Me(l), i = k(!1), v = k(), p = k(), g = () => {
5227
+ i.value = !1, v.value = void 0, p.value = void 0;
5219
5228
  }, y = (h) => {
5220
- v.value = h, m.value = e.styleJson[h], i.value = !0;
5229
+ v.value = h, p.value = e.styleJson[h], i.value = !0;
5221
5230
  };
5222
5231
  return (h, d) => (u(), b(t(U), {
5223
5232
  title: "间距",
@@ -5535,8 +5544,8 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5535
5544
  i.value ? (u(), b(Cn, {
5536
5545
  key: 0,
5537
5546
  name: v.value,
5538
- modelValue: m.value,
5539
- "onUpdate:modelValue": d[16] || (d[16] = (_) => m.value = _),
5547
+ modelValue: p.value,
5548
+ "onUpdate:modelValue": d[16] || (d[16] = (_) => p.value = _),
5540
5549
  onClose: g,
5541
5550
  onSubmit: e.setStyle
5542
5551
  }, null, 8, ["name", "modelValue", "onSubmit"])) : A("", !0)
@@ -5615,14 +5624,14 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5615
5624
  collapsable: ""
5616
5625
  }, {
5617
5626
  default: f(() => [
5618
- p(t(ge), {
5627
+ m(t(ge), {
5619
5628
  class: "v-style-widget__sizing",
5620
5629
  size: "small",
5621
5630
  "label-width": "60px",
5622
5631
  inline: ""
5623
5632
  }, {
5624
5633
  default: f(() => [
5625
- (u(), j(T, null, F(a, (r) => p(t(J), {
5634
+ (u(), j(T, null, F(a, (r) => m(t(J), {
5626
5635
  name: r.name,
5627
5636
  label: r.label,
5628
5637
  setters: { name: r.setter },
@@ -5661,7 +5670,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5661
5670
  { label: "上", svg: Sa, value: "auto 0% 0% 0%" },
5662
5671
  { label: "下", svg: xa, value: "0% 0% auto 0%" },
5663
5672
  { label: "填充", svg: Ca, value: "0% 0% 0% 0%" }
5664
- ], m = S(() => (e.styleJson.inset || "").split(" ")), g = (h) => {
5673
+ ], p = S(() => (e.styleJson.inset || "").split(" ")), g = (h) => {
5665
5674
  s.value = h, r.value = e.styleJson[h], o.value = !0;
5666
5675
  }, y = () => {
5667
5676
  o.value = !1, s.value = void 0, r.value = void 0;
@@ -5675,12 +5684,12 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5675
5684
  }, {
5676
5685
  default: f(() => [
5677
5686
  C("div", $r, [
5678
- p(t(ge), {
5687
+ m(t(ge), {
5679
5688
  "label-width": "60px",
5680
5689
  size: "small"
5681
5690
  }, {
5682
5691
  default: f(() => [
5683
- p(t(J), {
5692
+ m(t(J), {
5684
5693
  name: "position",
5685
5694
  label: "定位",
5686
5695
  setters: { name: "SelectSetter" },
@@ -5689,7 +5698,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5689
5698
  value: e.styleJson.position,
5690
5699
  onChange: e.setStyle
5691
5700
  }, null, 8, ["value", "onChange"]),
5692
- p(t(J), {
5701
+ m(t(J), {
5693
5702
  name: "inset",
5694
5703
  label: " ",
5695
5704
  setters: { name: "TagSetter" },
@@ -5698,7 +5707,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5698
5707
  value: e.styleJson.inset,
5699
5708
  onChange: e.setStyle
5700
5709
  }, null, 8, ["value", "onChange"]),
5701
- p(t(en), { label: " " }, {
5710
+ m(t(en), { label: " " }, {
5702
5711
  default: f(() => [
5703
5712
  C("div", Rr, [
5704
5713
  C("div", {
@@ -5837,19 +5846,19 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5837
5846
  C("div", {
5838
5847
  class: q(["spacing-edit padding-top", { "is-setting": e.styleJson.top }]),
5839
5848
  onClick: d[4] || (d[4] = (_) => g("top"))
5840
- }, z(e.styleJson.top || m.value[0] || "-"), 3),
5849
+ }, z(e.styleJson.top || p.value[0] || "-"), 3),
5841
5850
  C("div", {
5842
5851
  class: q(["spacing-edit padding-right", { "is-setting": e.styleJson.right }]),
5843
5852
  onClick: d[5] || (d[5] = (_) => g("right"))
5844
- }, z(e.styleJson.right || m.value[1] || "-"), 3),
5853
+ }, z(e.styleJson.right || p.value[1] || "-"), 3),
5845
5854
  C("div", {
5846
5855
  class: q(["spacing-edit padding-bottom", { "is-setting": e.styleJson.bottom }]),
5847
5856
  onClick: d[6] || (d[6] = (_) => g("bottom"))
5848
- }, z(e.styleJson.bottom || m.value[2] || "-"), 3),
5857
+ }, z(e.styleJson.bottom || p.value[2] || "-"), 3),
5849
5858
  C("div", {
5850
5859
  class: q(["spacing-edit padding-left", { "is-setting": e.styleJson.left }]),
5851
5860
  onClick: d[7] || (d[7] = (_) => g("left"))
5852
- }, z(e.styleJson.left || m.value[3] || "-"), 3)
5861
+ }, z(e.styleJson.left || p.value[3] || "-"), 3)
5853
5862
  ], 512),
5854
5863
  o.value ? (u(), b(Cn, {
5855
5864
  key: 0,
@@ -5864,7 +5873,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5864
5873
  ]),
5865
5874
  _: 1
5866
5875
  }),
5867
- p(t(J), {
5876
+ m(t(J), {
5868
5877
  name: "z-index",
5869
5878
  label: "层级",
5870
5879
  setters: { name: "NumberSetter" },
@@ -5957,14 +5966,14 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5957
5966
  collapsable: ""
5958
5967
  }, {
5959
5968
  default: f(() => [
5960
- p(t(ge), {
5969
+ m(t(ge), {
5961
5970
  class: "v-style-widget__texting",
5962
5971
  size: "small",
5963
5972
  "label-width": "60px",
5964
5973
  inline: ""
5965
5974
  }, {
5966
5975
  default: f(() => [
5967
- (u(), j(T, null, F(n, (i) => p(t(J), {
5976
+ (u(), j(T, null, F(n, (i) => m(t(J), {
5968
5977
  name: i.name,
5969
5978
  label: i.label,
5970
5979
  setters: { name: i.setter },
@@ -5976,12 +5985,12 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5976
5985
  ]),
5977
5986
  _: 1
5978
5987
  }),
5979
- p(t(ge), {
5988
+ m(t(ge), {
5980
5989
  size: "small",
5981
5990
  "label-width": "60px"
5982
5991
  }, {
5983
5992
  default: f(() => [
5984
- p(t(J), {
5993
+ m(t(J), {
5985
5994
  name: "color",
5986
5995
  label: "颜色",
5987
5996
  setters: { name: "ColorSetter" },
@@ -5989,7 +5998,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5989
5998
  value: e.styleJson.color,
5990
5999
  onChange: s.setStyle
5991
6000
  }, null, 8, ["value", "onChange"]),
5992
- p(t(J), {
6001
+ m(t(J), {
5993
6002
  name: "text-align",
5994
6003
  label: "对齐",
5995
6004
  setters: { name: "TagSetter" },
@@ -5998,7 +6007,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
5998
6007
  value: e.styleJson["text-align"],
5999
6008
  onChange: s.setStyle
6000
6009
  }, null, 8, ["value", "onChange"]),
6001
- p(t(J), {
6010
+ m(t(J), {
6002
6011
  name: "font-style",
6003
6012
  label: "风格",
6004
6013
  setters: { name: "TagSetter" },
@@ -6007,7 +6016,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6007
6016
  value: e.styleJson["font-style"],
6008
6017
  onChange: s.setStyle
6009
6018
  }, null, 8, ["value", "onChange"]),
6010
- p(t(J), {
6019
+ m(t(J), {
6011
6020
  name: "text-decoration",
6012
6021
  label: "修饰",
6013
6022
  setters: { name: "TagSetter" },
@@ -6062,12 +6071,12 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6062
6071
  collapsable: ""
6063
6072
  }, {
6064
6073
  default: f(() => [
6065
- p(t(ge), {
6074
+ m(t(ge), {
6066
6075
  "label-width": "60px",
6067
6076
  size: "small"
6068
6077
  }, {
6069
6078
  default: f(() => [
6070
- p(t(J), {
6079
+ m(t(J), {
6071
6080
  name: "background-image",
6072
6081
  label: "图片",
6073
6082
  setters: { name: "ImageSetter" },
@@ -6075,7 +6084,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6075
6084
  value: l(e.styleJson["background-image"]),
6076
6085
  onChange: n
6077
6086
  }, null, 8, ["value"]),
6078
- p(t(J), {
6087
+ m(t(J), {
6079
6088
  name: "background-color",
6080
6089
  label: "颜色",
6081
6090
  setters: { name: "ColorSetter" },
@@ -6083,7 +6092,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6083
6092
  value: e.styleJson["background-color"],
6084
6093
  onChange: e.setStyle
6085
6094
  }, null, 8, ["value", "onChange"]),
6086
- p(t(J), {
6095
+ m(t(J), {
6087
6096
  name: "background-repeat",
6088
6097
  label: "重复",
6089
6098
  setters: { name: "TagSetter" },
@@ -6092,7 +6101,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6092
6101
  options: a,
6093
6102
  onChange: e.setStyle
6094
6103
  }, null, 8, ["value", "onChange"]),
6095
- p(t(J), {
6104
+ m(t(J), {
6096
6105
  name: "background-attachment",
6097
6106
  label: "固定",
6098
6107
  setters: { name: "RadioSetter" },
@@ -6101,7 +6110,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6101
6110
  options: o,
6102
6111
  onChange: e.setStyle
6103
6112
  }, null, 8, ["value", "onChange"]),
6104
- p(t(J), {
6113
+ m(t(J), {
6105
6114
  name: "background-position",
6106
6115
  label: "位置",
6107
6116
  setters: { name: "SectionSetter", props: { sections: 2 } },
@@ -6109,7 +6118,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6109
6118
  value: e.styleJson["background-position"],
6110
6119
  onChange: e.setStyle
6111
6120
  }, null, 8, ["value", "onChange"]),
6112
- p(t(J), {
6121
+ m(t(J), {
6113
6122
  name: "background-size",
6114
6123
  label: "大小",
6115
6124
  setters: { name: "SelectSetter" },
@@ -6118,7 +6127,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6118
6127
  options: r,
6119
6128
  onChange: e.setStyle
6120
6129
  }, null, 8, ["value", "onChange"]),
6121
- p(t(J), {
6130
+ m(t(J), {
6122
6131
  name: "background-clip",
6123
6132
  label: "裁剪",
6124
6133
  setters: { name: "SelectSetter" },
@@ -6163,12 +6172,12 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6163
6172
  collapsable: ""
6164
6173
  }, {
6165
6174
  default: f(() => [
6166
- p(t(ge), {
6175
+ m(t(ge), {
6167
6176
  "label-width": "60px",
6168
6177
  size: "small"
6169
6178
  }, {
6170
6179
  default: f(() => [
6171
- p(t(J), {
6180
+ m(t(J), {
6172
6181
  name: "border-radius",
6173
6182
  label: "圆角",
6174
6183
  setters: { name: "SectionSetter", props: { sections: 4 } },
@@ -6176,7 +6185,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6176
6185
  value: e.styleJson["border-radius"],
6177
6186
  onChange: e.setStyle
6178
6187
  }, null, 8, ["value", "onChange"]),
6179
- p(t(J), {
6188
+ m(t(J), {
6180
6189
  name: "borders",
6181
6190
  label: "边框",
6182
6191
  setters: { name: "TagSetter" },
@@ -6281,12 +6290,12 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6281
6290
  collapsable: ""
6282
6291
  }, {
6283
6292
  default: f(() => [
6284
- p(t(ge), {
6293
+ m(t(ge), {
6285
6294
  "label-width": "60px",
6286
6295
  size: "small"
6287
6296
  }, {
6288
6297
  default: f(() => [
6289
- p(t(J), {
6298
+ m(t(J), {
6290
6299
  name: "opacity",
6291
6300
  label: "透明度",
6292
6301
  setters: { name: "SliderSetter" },
@@ -6294,7 +6303,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6294
6303
  value: o(),
6295
6304
  onChange: a
6296
6305
  }, null, 8, ["value"]),
6297
- p(t(J), {
6306
+ m(t(J), {
6298
6307
  name: "box-shadow",
6299
6308
  label: "阴影",
6300
6309
  setters: { name: "SelectSetter" },
@@ -6303,7 +6312,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6303
6312
  value: e.styleJson["box-shadow"],
6304
6313
  onChange: e.setStyle
6305
6314
  }, null, 8, ["value", "onChange"]),
6306
- p(t(J), {
6315
+ m(t(J), {
6307
6316
  name: "cursor",
6308
6317
  label: "光标",
6309
6318
  setters: { name: "TagSetter" },
@@ -6393,7 +6402,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6393
6402
  path: { type: Function }
6394
6403
  },
6395
6404
  setup(c, { expose: e }) {
6396
- const n = c, l = k(), a = k(Symbol()), { current: o, engine: s } = ie(), { width: r, height: i } = Me(l), v = S(() => o.value && n.path ? n.path(o.value) : null), m = S(() => s.skeleton?.getWidget("Toolbar")?.widgetRef.mode ?? "pc");
6405
+ const n = c, l = k(), a = k(Symbol()), { current: o, engine: s } = ie(), { width: r, height: i } = Me(l), v = S(() => o.value && n.path ? n.path(o.value) : null), p = S(() => s.skeleton?.getWidget("Toolbar")?.widgetRef.mode ?? "pc");
6397
6406
  return e({
6398
6407
  refresh: () => {
6399
6408
  a.value = Symbol();
@@ -6404,8 +6413,8 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6404
6413
  class: "v-previewer",
6405
6414
  key: a.value
6406
6415
  }, [
6407
- p(t(xn), {
6408
- mode: m.value,
6416
+ m(t(xn), {
6417
+ mode: p.value,
6409
6418
  width: t(r),
6410
6419
  height: t(i)
6411
6420
  }, {
@@ -6478,7 +6487,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6478
6487
  onSave: o
6479
6488
  }, {
6480
6489
  default: f(() => [
6481
- p(t(le), {
6490
+ m(t(le), {
6482
6491
  ref_key: "editorRef",
6483
6492
  ref: n,
6484
6493
  "model-value": l.value,
@@ -6516,7 +6525,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6516
6525
  fit: ""
6517
6526
  }, {
6518
6527
  default: f(() => [
6519
- p(t(le), {
6528
+ m(t(le), {
6520
6529
  ref_key: "editorRef",
6521
6530
  ref: l,
6522
6531
  "model-value": a.value,
@@ -6598,22 +6607,22 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6598
6607
  onChange: n
6599
6608
  }, {
6600
6609
  default: f(() => [
6601
- p(t(I), {
6610
+ m(t(I), {
6602
6611
  label: "站点名称",
6603
6612
  name: "title"
6604
6613
  }),
6605
- p(t(I), {
6614
+ m(t(I), {
6606
6615
  label: "Logo",
6607
6616
  name: "logo",
6608
6617
  editor: Vt,
6609
6618
  props: { attachment: { accept: ".png,.jpg,.jpeg" } }
6610
6619
  }),
6611
- p(t(I), {
6620
+ m(t(I), {
6612
6621
  label: "主题切换",
6613
6622
  name: "themeSwitchable",
6614
6623
  editor: "switch"
6615
6624
  }),
6616
- p(t(I), {
6625
+ m(t(I), {
6617
6626
  label: "模拟数据",
6618
6627
  name: "mock",
6619
6628
  editor: "switch"
@@ -6626,11 +6635,11 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6626
6635
  }));
6627
6636
  }
6628
6637
  }), Q = {
6629
- Logo: Ts,
6630
- EmptyWidget: Fs,
6631
- Switcher: Js,
6632
- Toolbar: Ms,
6633
- Actions: qs,
6638
+ Logo: zs,
6639
+ EmptyWidget: Os,
6640
+ Switcher: Ws,
6641
+ Toolbar: Ls,
6642
+ Actions: Hs,
6634
6643
  Pages: uo,
6635
6644
  Blocks: po,
6636
6645
  Components: fo,
@@ -7542,7 +7551,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
7542
7551
  return (i, v) => (u(), b(t(be), {
7543
7552
  class: "v-expression-setter",
7544
7553
  modelValue: s.value,
7545
- "onUpdate:modelValue": v[0] || (v[0] = (m) => s.value = m),
7554
+ "onUpdate:modelValue": v[0] || (v[0] = (p) => s.value = p),
7546
7555
  onChange: r
7547
7556
  }, {
7548
7557
  prefix: f(() => [
@@ -7629,7 +7638,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
7629
7638
  const h = y.getValue();
7630
7639
  i(h) && (a.value = h, r("change", JSON.parse(h)), s.value = !1);
7631
7640
  }
7632
- }, m = () => {
7641
+ }, p = () => {
7633
7642
  a.value = "", r("change", void 0), s.value = !1;
7634
7643
  }, g = () => {
7635
7644
  s.value = !0;
@@ -7637,7 +7646,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
7637
7646
  return (y, h) => (u(), j("div", {
7638
7647
  class: q(["v-json-setter", { "is-active": o.value }])
7639
7648
  }, [
7640
- p(t(be), re({
7649
+ m(t(be), re({
7641
7650
  readonly: "",
7642
7651
  onFocus: g,
7643
7652
  "model-value": n.type,
@@ -7654,12 +7663,12 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
7654
7663
  submit: "",
7655
7664
  clear: "",
7656
7665
  onSubmit: v,
7657
- onClear: m
7666
+ onClear: p
7658
7667
  }, {
7659
7668
  extra: f(() => [
7660
- p(t(ae), {
7669
+ m(t(ae), {
7661
7670
  type: "warning",
7662
- onClick: m,
7671
+ onClick: p,
7663
7672
  size: "default"
7664
7673
  }, {
7665
7674
  default: f(() => [
@@ -7669,7 +7678,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
7669
7678
  })
7670
7679
  ]),
7671
7680
  default: f(() => [
7672
- p(t(le), {
7681
+ m(t(le), {
7673
7682
  ref_key: "codeEditor",
7674
7683
  ref: l,
7675
7684
  height: "100%",
@@ -7704,15 +7713,15 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
7704
7713
  }
7705
7714
  }, v = () => {
7706
7715
  a.value = "", r("change", void 0), o.value = !1;
7707
- }, m = () => {
7716
+ }, p = () => {
7708
7717
  o.value = !0;
7709
7718
  };
7710
7719
  return (g, y) => (u(), j("div", {
7711
7720
  class: q(["v-function-setter", { "is-active": s.value }])
7712
7721
  }, [
7713
- p(t(be), re({
7722
+ m(t(be), re({
7714
7723
  readonly: "",
7715
- onFocus: m,
7724
+ onFocus: p,
7716
7725
  "model-value": "JSFunction",
7717
7726
  "suffix-icon": t(xt)
7718
7727
  }, g.$attrs), null, 16, ["suffix-icon"]),
@@ -7730,7 +7739,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
7730
7739
  onClear: v
7731
7740
  }, {
7732
7741
  extra: f(() => [
7733
- p(t(ae), {
7742
+ m(t(ae), {
7734
7743
  type: "warning",
7735
7744
  onClick: v,
7736
7745
  size: "default"
@@ -7742,7 +7751,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
7742
7751
  })
7743
7752
  ]),
7744
7753
  default: f(() => [
7745
- p(t(le), {
7754
+ m(t(le), {
7746
7755
  ref_key: "codeEditor",
7747
7756
  ref: l,
7748
7757
  height: "100%",
@@ -7844,7 +7853,7 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
7844
7853
  unit: o.value,
7845
7854
  "with-unit": !!o.value,
7846
7855
  modelValue: s.value,
7847
- "onUpdate:modelValue": v[0] || (v[0] = (m) => s.value = m),
7856
+ "onUpdate:modelValue": v[0] || (v[0] = (p) => s.value = p),
7848
7857
  onChange: r
7849
7858
  }, i.$attrs), null, 16, ["unit", "with-unit", "modelValue"]));
7850
7859
  }
@@ -7879,14 +7888,14 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
7879
7888
  limit: 1,
7880
7889
  action: "#",
7881
7890
  "file-list": a.value,
7882
- "onUpdate:fileList": v[0] || (v[0] = (m) => a.value = m),
7891
+ "onUpdate:fileList": v[0] || (v[0] = (p) => a.value = p),
7883
7892
  "before-upload": s,
7884
7893
  "auto-upload": !0,
7885
7894
  "on-remove": r
7886
7895
  }, i.$attrs), {
7887
7896
  default: f(() => [
7888
7897
  C("span", Ii, [
7889
- p(t(ke), { icon: t(os) }, null, 8, ["icon"])
7898
+ m(t(ke), { icon: t(os) }, null, 8, ["icon"])
7890
7899
  ])
7891
7900
  ]),
7892
7901
  _: 1
@@ -7944,11 +7953,11 @@ const Bs = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
7944
7953
  a.value = void 0, l("change", void 0), l("update:modelValue", void 0);
7945
7954
  };
7946
7955
  return (s, r) => (u(), j("div", Ti, [
7947
- p(t(Gn), re({ size: "small" }, s.$attrs, {
7956
+ m(t(Gn), re({ size: "small" }, s.$attrs, {
7948
7957
  modelValue: a.value,
7949
7958
  "onUpdate:modelValue": r[0] || (r[0] = (i) => a.value = i)
7950
7959
  }), null, 16, ["modelValue"]),
7951
- p(t(ke), {
7960
+ m(t(ke), {
7952
7961
  onClick: o,
7953
7962
  class: "v-slider-setter__close",
7954
7963
  size: 16,
@@ -8367,22 +8376,22 @@ class Ui {
8367
8376
  const i = r.model, v = a.value.type;
8368
8377
  if (!await this.allowDrop(i, v))
8369
8378
  return;
8370
- let m;
8379
+ let p;
8371
8380
  if (o)
8372
- m = o;
8381
+ p = o;
8373
8382
  else {
8374
8383
  const g = this.createNodeDsl(l);
8375
- m = new Pt(g);
8384
+ p = new Pt(g);
8376
8385
  }
8377
8386
  if (ee(i))
8378
- o ? (delete m.slot, s.move(m, void 0, "inner")) : s.addNode(m, void 0, v);
8387
+ o ? (delete p.slot, s.move(p, void 0, "inner")) : s.addNode(p, void 0, v);
8379
8388
  else {
8380
8389
  const g = await this.getDropSlot(v === "inner" ? i : i.parent);
8381
8390
  if (g === null) {
8382
8391
  this.dropping.value = null;
8383
8392
  return;
8384
8393
  }
8385
- m.slot = g, o ? s.move(m, i, v) : s.addNode(m, i, v);
8394
+ p.slot = g, o ? s.move(p, i, v) : s.addNode(p, i, v);
8386
8395
  }
8387
8396
  this.dropping.value = null, n.simulator.refresh(), n.assets.clearCaches();
8388
8397
  }
@@ -8545,7 +8554,7 @@ class Ui {
8545
8554
  const r = a.assets.componentMap, i = n !== "inner" && e.parent || e, v = await a.assets.getBlockMaterial(i.from) || r.get(i.name);
8546
8555
  if (!v)
8547
8556
  return !1;
8548
- const { parentIncludes: m = !0, name: g } = l, { childIncludes: y = !0 } = v, h = m === !0 || Array.isArray(m) && m.includes(i.name), d = y === !0 || Array.isArray(y) && y.includes(g);
8557
+ const { parentIncludes: p = !0, name: g } = l, { childIncludes: y = !0 } = v, h = p === !0 || Array.isArray(p) && p.includes(i.name), d = y === !0 || Array.isArray(y) && y.includes(g);
8549
8558
  return h && d;
8550
8559
  }
8551
8560
  dispose() {
@@ -8572,8 +8581,8 @@ class qi {
8572
8581
  e.use(r);
8573
8582
  }
8574
8583
  const s = Object.entries(n);
8575
- Object.assign(e.config.globalProperties, l), e.config.errorHandler = (r, i, v) => {
8576
- const m = i?.$options.name, g = r?.message || r?.msg || "未知错误", y = `[ ${m} ] ${g}`;
8584
+ Object.assign(e.config.globalProperties, l), this.provider.options.install && this.provider.options.install(e), e.config.errorHandler = (r, i, v) => {
8585
+ const p = i?.$options.name, g = r?.message || r?.msg || "未知错误", y = `[ ${p} ] ${g}`;
8577
8586
  console.error({
8578
8587
  err: r,
8579
8588
  instance: i,
@@ -8585,15 +8594,15 @@ class qi {
8585
8594
  }, s.forEach(([r, i]) => {
8586
8595
  if (typeof i == "function" || typeof i.install == "function") {
8587
8596
  let v = {};
8588
- const m = o[r];
8589
- m && (v.locale = m), e?.use(i, v);
8597
+ const p = o[r];
8598
+ p && (v.locale = p), e?.use(i, v);
8590
8599
  }
8591
8600
  });
8592
8601
  }
8593
8602
  render(e) {
8594
8603
  const { window: n, container: l, library: a, Vue: o, components: s, apis: r } = this.env, i = n.document.createElement("div");
8595
8604
  i.id = "app", l.appendChild(i), this.dsl = o.reactive(e.toDsl());
8596
- const { renderer: v, context: m } = this.provider.createDslRenderer(this.dsl, {
8605
+ const { renderer: v, context: p } = this.provider.createDslRenderer(this.dsl, {
8597
8606
  window: n,
8598
8607
  mode: on.Design,
8599
8608
  Vue: o,
@@ -8607,7 +8616,7 @@ class qi {
8607
8616
  } catch (g) {
8608
8617
  ne(g.message || "未知错误", "运行时错误"), console.error(g);
8609
8618
  }
8610
- this.context = m, te.on(Ne, this.nodeChange), te.on(vt, this.blockChange);
8619
+ this.context = p, te.on(Ne, this.nodeChange), te.on(vt, this.blockChange);
8611
8620
  }
8612
8621
  dispose() {
8613
8622
  if (this.app) {
@@ -8677,7 +8686,7 @@ class Hi extends sn {
8677
8686
  materials: r,
8678
8687
  libraryExports: i,
8679
8688
  materialExports: v,
8680
- materialMapLibrary: m,
8689
+ materialMapLibrary: p,
8681
8690
  libraryLocaleMap: g
8682
8691
  } = xl(n, this.materialPath);
8683
8692
  a.open(), a.write(`
@@ -8706,7 +8715,7 @@ class Hi extends sn {
8706
8715
  <script>
8707
8716
  __simulator__.emitReady(${JSON.stringify(i)},
8708
8717
  ${JSON.stringify(v)},
8709
- ${JSON.stringify(m)},
8718
+ ${JSON.stringify(p)},
8710
8719
  ${JSON.stringify(g)}
8711
8720
  );
8712
8721
  <\/script>
@@ -8715,9 +8724,9 @@ class Hi extends sn {
8715
8724
  }
8716
8725
  async emitReady(e = [], n = [], l = {}, a = {}) {
8717
8726
  this.renderer?.dispose(), this.renderer = null;
8718
- const o = this.contentWindow, { assets: s, service: r, current: i, provider: v } = this.engine, m = v.materials || {}, g = [];
8727
+ const o = this.contentWindow, { assets: s, service: r, current: i, provider: v } = this.engine, p = v.materials || {}, g = [];
8719
8728
  for (const h of n) {
8720
- const d = m[h] ? (await m[h]()).default : o[h];
8729
+ const d = p[h] ? (await p[h]()).default : o[h];
8721
8730
  g.push(d);
8722
8731
  }
8723
8732
  s.load(g);
@@ -8730,7 +8739,7 @@ class Hi extends sn {
8730
8739
  this.renderer = new qi(y, r, v, this.designer.value), i.value && this.renderer.render(i.value), this.triggerReady();
8731
8740
  }
8732
8741
  createEnv(e = [], n = {}, l = [], a = {}) {
8733
- const o = this.contentWindow, { engine: s } = this, { project: r, assets: i, provider: v } = s, m = e.reduce((V, B) => (V[B] = o[B], V), {}), g = {};
8742
+ const o = this.contentWindow, { engine: s } = this, { project: r, assets: i, provider: v } = s, p = e.reduce((V, B) => (V[B] = o[B], V), {}), g = {};
8734
8743
  Object.entries(a).forEach(([V, B]) => {
8735
8744
  g[V] = o[B];
8736
8745
  });
@@ -8739,11 +8748,11 @@ class Hi extends sn {
8739
8748
  const B = V.names || [];
8740
8749
  if (V.name === pt)
8741
8750
  B.forEach((O) => {
8742
- const R = d.get(O), P = R?.package || "", $ = cl[P], D = m[$];
8751
+ const R = d.get(O), P = R?.package || "", $ = cl[P], D = p[$];
8743
8752
  D && R && (y[O] = $t(R, D));
8744
8753
  });
8745
8754
  else {
8746
- const O = m[n[V.library || ""]];
8755
+ const O = p[n[V.library || ""]];
8747
8756
  O && B.forEach((R) => {
8748
8757
  const P = d.get(R);
8749
8758
  P ? y[R] = $t(P, O) : y[R] = O[R];
@@ -8759,7 +8768,7 @@ class Hi extends sn {
8759
8768
  window: o,
8760
8769
  Vue: o.Vue,
8761
8770
  VueRouter: o.VueRouter,
8762
- library: m,
8771
+ library: p,
8763
8772
  materials: l,
8764
8773
  components: y,
8765
8774
  container: o.document.body,
@@ -8803,15 +8812,15 @@ class Gi {
8803
8812
  const { categories: a, components: o, label: s, name: r, library: i } = l;
8804
8813
  if (!a || !o)
8805
8814
  continue;
8806
- const v = o.filter((h) => !!h.package).map((h) => h.name), m = a.map(
8815
+ const v = o.filter((h) => !!h.package).map((h) => h.name), p = a.map(
8807
8816
  (h) => this.getCateoryComponents(h, o)
8808
- ), g = m.reduce((h, d) => d.count + h, 0), y = {
8817
+ ), g = p.reduce((h, d) => d.count + h, 0), y = {
8809
8818
  name: l.name,
8810
8819
  label: s || r,
8811
8820
  count: g,
8812
8821
  names: v,
8813
8822
  library: i,
8814
- children: m
8823
+ children: p
8815
8824
  };
8816
8825
  n.push(y);
8817
8826
  }
@@ -8843,7 +8852,7 @@ class Gi {
8843
8852
  Qe.getByType(d)
8844
8853
  );
8845
8854
  return h;
8846
- }, m = {
8855
+ }, p = {
8847
8856
  id: a,
8848
8857
  name: o,
8849
8858
  // 如果没有定义插槽,不能放置子组件
@@ -8859,7 +8868,7 @@ class Gi {
8859
8868
  slots: s,
8860
8869
  from: e
8861
8870
  };
8862
- return this.componentMap.set(o, m), m;
8871
+ return this.componentMap.set(o, p), p;
8863
8872
  }
8864
8873
  clearCaches() {
8865
8874
  this.caches = {};
@@ -8877,7 +8886,8 @@ class Bu extends sn {
8877
8886
  dependencies: s,
8878
8887
  materials: r,
8879
8888
  materialPath: i = "./",
8880
- adapter: v
8889
+ adapter: v,
8890
+ install: p
8881
8891
  } = this.options;
8882
8892
  this.container = n, this.service = l, this.provider = new El({
8883
8893
  mode: on.Design,
@@ -8887,7 +8897,8 @@ class Bu extends sn {
8887
8897
  dependencies: s,
8888
8898
  materials: r,
8889
8899
  materialPath: i,
8890
- adapter: v
8900
+ adapter: v,
8901
+ install: p
8891
8902
  }), this.assets = new Gi(this.service, this.provider), this.simulator = new Hi({
8892
8903
  engine: this,
8893
8904
  materialPath: i
@@ -9260,7 +9271,7 @@ const Ae = E({
9260
9271
  computedOptions: r,
9261
9272
  variable: i,
9262
9273
  changeValue: v,
9263
- defaultSetter: m,
9274
+ defaultSetter: p,
9264
9275
  removable: g,
9265
9276
  onRemove: y
9266
9277
  } = this;
@@ -9271,7 +9282,7 @@ const Ae = E({
9271
9282
  label: l,
9272
9283
  title: a,
9273
9284
  setters: s,
9274
- defaultSetter: m,
9285
+ defaultSetter: p,
9275
9286
  variable: i,
9276
9287
  value: o,
9277
9288
  removable: g,
@@ -9322,11 +9333,11 @@ const Ae = E({
9322
9333
  onEnd(V, B) {
9323
9334
  o.value = B.elementWidth.value;
9324
9335
  }
9325
- }, i = k(), v = k(), m = k(), g = k(), y = k(), h = k(), d = k(), _ = k(), w = k(!1), x = k(!1);
9336
+ }, i = k(), v = k(), p = k(), g = k(), y = k(), h = k(), d = k(), _ = k(), w = k(!1), x = k(!1);
9326
9337
  return e({
9327
9338
  brand: i,
9328
9339
  toolbar: v,
9329
- actions: m,
9340
+ actions: p,
9330
9341
  apps: g,
9331
9342
  workspace: y,
9332
9343
  settings: h,
@@ -9339,33 +9350,33 @@ const Ae = E({
9339
9350
  isPreview: l
9340
9351
  }), (V, B) => (u(), b(t(Xn), { locale: t(Zn) }, {
9341
9352
  default: f(() => [
9342
- p(t(jt), { class: "v-skeleton" }, {
9353
+ m(t(jt), { class: "v-skeleton" }, {
9343
9354
  default: f(() => [
9344
- p(t(Qn), {
9355
+ m(t(Qn), {
9345
9356
  class: "v-skeleton__header",
9346
9357
  height: V.headerHeight
9347
9358
  }, {
9348
9359
  default: f(() => [
9349
- p(t(Ae), {
9360
+ m(t(Ae), {
9350
9361
  ref_key: "brand",
9351
9362
  ref: i,
9352
9363
  region: "Brand"
9353
9364
  }, null, 512),
9354
- p(t(Ae), {
9365
+ m(t(Ae), {
9355
9366
  ref_key: "toolbar",
9356
9367
  ref: v,
9357
9368
  region: "Toolbar",
9358
9369
  preview: l.value
9359
9370
  }, null, 8, ["preview"]),
9360
- p(t(Ae), {
9371
+ m(t(Ae), {
9361
9372
  ref_key: "actions",
9362
- ref: m,
9373
+ ref: p,
9363
9374
  region: "Actions"
9364
9375
  }, null, 512)
9365
9376
  ]),
9366
9377
  _: 1
9367
9378
  }, 8, ["height"]),
9368
- p(t(jt), { class: "v-skeleton__wrapper" }, {
9379
+ m(t(jt), { class: "v-skeleton__wrapper" }, {
9369
9380
  default: f(() => [
9370
9381
  l.value ? A("", !0) : je((u(), b(t(Et), {
9371
9382
  key: 0,
@@ -9375,7 +9386,7 @@ const Ae = E({
9375
9386
  }])
9376
9387
  }, {
9377
9388
  default: f(() => [
9378
- p(t(Ae), {
9389
+ m(t(Ae), {
9379
9390
  ref_key: "apps",
9380
9391
  ref: g,
9381
9392
  region: "Apps"
@@ -9385,7 +9396,7 @@ const Ae = E({
9385
9396
  }, 8, ["width", "class"])), [
9386
9397
  [t(Dt), s]
9387
9398
  ]),
9388
- p(t(Kn), { class: "v-skeleton__main" }, {
9399
+ m(t(Kn), { class: "v-skeleton__main" }, {
9389
9400
  default: f(() => [
9390
9401
  l.value ? (u(), b(t(Ae), {
9391
9402
  key: 0,
@@ -9394,7 +9405,7 @@ const Ae = E({
9394
9405
  region: "Preview",
9395
9406
  preview: l.value
9396
9407
  }, null, 8, ["preview"])) : A("", !0),
9397
- je(p(t(Ae), {
9408
+ je(m(t(Ae), {
9398
9409
  ref_key: "workspace",
9399
9410
  ref: y,
9400
9411
  region: "Workspace"
@@ -9410,7 +9421,7 @@ const Ae = E({
9410
9421
  class: "v-skeleton__right"
9411
9422
  }, {
9412
9423
  default: f(() => [
9413
- p(t(Ae), {
9424
+ m(t(Ae), {
9414
9425
  ref_key: "settings",
9415
9426
  ref: h,
9416
9427
  region: "Settings"
@@ -9430,7 +9441,7 @@ const Ae = E({
9430
9441
  height: V.footerHeight
9431
9442
  }, {
9432
9443
  default: f(() => [
9433
- p(t(Ae), {
9444
+ m(t(Ae), {
9434
9445
  ref_key: "status",
9435
9446
  ref: d,
9436
9447
  region: "Status"
@@ -9469,7 +9480,7 @@ const Ae = E({
9469
9480
  n.setters.find((x) => x.name === n.defaultSetter) || n.setters[0]
9470
9481
  ), r = k(n.value), i = S(() => !!We(r.value)), v = {
9471
9482
  [s.value.name]: r.value
9472
- }, m = (x) => {
9483
+ }, p = (x) => {
9473
9484
  v[s.value.name] = r.value, s.value = x, r.value = v[x.name] ?? void 0, g(r.value);
9474
9485
  };
9475
9486
  G(
@@ -9554,17 +9565,17 @@ const Ae = E({
9554
9565
  disabled: i.value,
9555
9566
  size: "small",
9556
9567
  "popper-class": "v-setter-switch",
9557
- onCommand: m
9568
+ onCommand: p
9558
9569
  }, {
9559
9570
  dropdown: f(() => [
9560
- p(t(Xt), null, {
9571
+ m(t(Xt), null, {
9561
9572
  default: f(() => [
9562
9573
  (u(!0), j(T, null, F(n.setters, (B) => (u(), b(t(ut), {
9563
9574
  command: B,
9564
9575
  key: B.name
9565
9576
  }, {
9566
9577
  default: f(() => [
9567
- p(t(pn), {
9578
+ m(t(pn), {
9568
9579
  class: q({
9569
9580
  "is-placeholder": B.name !== s.value.name
9570
9581
  })
@@ -9578,7 +9589,7 @@ const Ae = E({
9578
9589
  })
9579
9590
  ]),
9580
9591
  default: f(() => [
9581
- p(t(us), { title: "切换设置器" })
9592
+ m(t(us), { title: "切换设置器" })
9582
9593
  ]),
9583
9594
  _: 1
9584
9595
  }, 8, ["disabled"])) : A("", !0),
@@ -9688,8 +9699,8 @@ const Ae = E({
9688
9699
  index: { default: 0 }
9689
9700
  },
9690
9701
  setup(c, { expose: e }) {
9691
- const n = c, l = ce(), { widgets: a, widgetsRef: o } = Ee(n.region), s = S(() => a.value.filter((d) => d.openType === "panel")), r = S(() => a.value.filter((d) => d.openType !== "panel")), i = s.value[n.index], v = k(i), m = k(i), g = (d) => {
9692
- v.value = d, m.value = m.value?.name === d.name ? null : d;
9702
+ const n = c, l = ce(), { widgets: a, widgetsRef: o } = Ee(n.region), s = S(() => a.value.filter((d) => d.openType === "panel")), r = S(() => a.value.filter((d) => d.openType !== "panel")), i = s.value[n.index], v = k(i), p = k(i), g = (d) => {
9703
+ v.value = d, p.value = p.value?.name === d.name ? null : d;
9693
9704
  }, y = (d) => {
9694
9705
  d.openType === "link" && d.url && window.open(d.url), d.openType === "dialog" && nl({
9695
9706
  title: d.label,
@@ -9698,14 +9709,14 @@ const Ae = E({
9698
9709
  content: d.component
9699
9710
  });
9700
9711
  };
9701
- return G(m, (d) => {
9712
+ return G(p, (d) => {
9702
9713
  l.skeleton?.toggleCollapse(!d);
9703
9714
  }), e({
9704
9715
  widgets: a,
9705
9716
  widgetsRef: o,
9706
9717
  setActive: (d) => {
9707
9718
  const _ = s.value.find((w) => w.name === d);
9708
- v.value = _, m.value = _;
9719
+ v.value = _, p.value = _;
9709
9720
  }
9710
9721
  }), (d, _) => (u(), j("div", pu, [
9711
9722
  C("div", mu, [
@@ -9715,7 +9726,7 @@ const Ae = E({
9715
9726
  icon: w.icon,
9716
9727
  label: w.label,
9717
9728
  active: v.value?.name === w.name,
9718
- open: m.value?.name === w.name,
9729
+ open: p.value?.name === w.name,
9719
9730
  onClick: (x) => g(w)
9720
9731
  }, null, 8, ["icon", "label", "active", "open", "onClick"]))), 128))
9721
9732
  ]),
@@ -9763,7 +9774,7 @@ const Ae = E({
9763
9774
  ), s = S(() => o.filter((h) => !h.closable || h.checked)), r = S(() => o.map((h) => ({
9764
9775
  ...h,
9765
9776
  disabled: !h.closable
9766
- }))), i = k(s.value[0]?.name), v = S(() => o.find((d) => d.name === i.value)?.props || {}), m = (h) => {
9777
+ }))), i = k(s.value[0]?.name), v = S(() => o.find((d) => d.name === i.value)?.props || {}), p = (h) => {
9767
9778
  const d = o.find((_) => _.name === h);
9768
9779
  d && (d.checked = !1), i.value === h && (i.value = s.value[0]?.name);
9769
9780
  }, g = (h) => {
@@ -9785,7 +9796,7 @@ const Ae = E({
9785
9796
  modelValue: i.value,
9786
9797
  "onUpdate:modelValue": d[0] || (d[0] = (_) => i.value = _),
9787
9798
  checkable: "",
9788
- onRemove: m,
9799
+ onRemove: p,
9789
9800
  onCommand: g
9790
9801
  }, {
9791
9802
  default: f(() => [
@@ -9814,7 +9825,7 @@ const Ae = E({
9814
9825
  setup(c, { expose: e }) {
9815
9826
  const n = c, l = ce(), { current: a } = ie(), { selected: o, isSelectBlock: s } = ye(), r = S(
9816
9827
  () => s.value ? fe.Block : fe.Node
9817
- ), { widgets: i, widgetsRef: v } = Ee(n.region, r), m = k(), g = k(!1), y = S(() => i.value.map((w) => ({
9828
+ ), { widgets: i, widgetsRef: v } = Ee(n.region, r), p = k(), g = k(!1), y = S(() => i.value.map((w) => ({
9818
9829
  name: w.name,
9819
9830
  label: w.label,
9820
9831
  actions: w.name === "Style" ? [
@@ -9833,10 +9844,10 @@ const Ae = E({
9833
9844
  }), G(
9834
9845
  r,
9835
9846
  () => {
9836
- m.value = y.value[0]?.name;
9847
+ p.value = y.value[0]?.name;
9837
9848
  },
9838
9849
  { immediate: !0 }
9839
- ), G(m, () => {
9850
+ ), G(p, () => {
9840
9851
  g.value = !1;
9841
9852
  });
9842
9853
  const d = () => {
@@ -9867,9 +9878,9 @@ const Ae = E({
9867
9878
  class: "v-settings-region__header"
9868
9879
  }, {
9869
9880
  default: f(() => [
9870
- p(t(W), { class: "v-settings-region__title" }, {
9881
+ m(t(W), { class: "v-settings-region__title" }, {
9871
9882
  default: f(() => [
9872
- p(t(bn)),
9883
+ m(t(bn)),
9873
9884
  C("span", null, [
9874
9885
  H(z(t(o)?.model.name) + ": ", 1),
9875
9886
  C("i", null, z(t(o)?.model.id), 1)
@@ -9879,7 +9890,7 @@ const Ae = E({
9879
9890
  }),
9880
9891
  h.value ? (u(), b(t(W), { key: 0 }, {
9881
9892
  default: f(() => [
9882
- p(t(he), {
9893
+ m(t(he), {
9883
9894
  onClick: d,
9884
9895
  icon: t(hn),
9885
9896
  mode: "text",
@@ -9897,10 +9908,10 @@ const Ae = E({
9897
9908
  padding: !1
9898
9909
  }, {
9899
9910
  default: f(() => [
9900
- p(t(nt), {
9911
+ m(t(nt), {
9901
9912
  items: y.value,
9902
- modelValue: m.value,
9903
- "onUpdate:modelValue": x[0] || (x[0] = (V) => m.value = V),
9913
+ modelValue: p.value,
9914
+ "onUpdate:modelValue": x[0] || (x[0] = (V) => p.value = V),
9904
9915
  stretch: "",
9905
9916
  body: { padding: !1 },
9906
9917
  onActionClick: _
@@ -9909,7 +9920,7 @@ const Ae = E({
9909
9920
  (u(!0), j(T, null, F(t(i), (V) => (u(), j(T, {
9910
9921
  key: V.name
9911
9922
  }, [
9912
- m.value === V.name ? (u(), b(t(De), {
9923
+ p.value === V.name ? (u(), b(t(De), {
9913
9924
  key: 0,
9914
9925
  ref_for: !0,
9915
9926
  ref_key: "widgetsRef",
@@ -9983,19 +9994,19 @@ const Ae = E({
9983
9994
  class: "v-workspace-region",
9984
9995
  items: s.value,
9985
9996
  modelValue: r.value,
9986
- "onUpdate:modelValue": v[0] || (v[0] = (m) => r.value = m)
9997
+ "onUpdate:modelValue": v[0] || (v[0] = (p) => r.value = p)
9987
9998
  }, {
9988
9999
  default: f(() => [
9989
- (u(!0), j(T, null, F(t(l), (m) => (u(), b(qt, {
9990
- key: m.name
10000
+ (u(!0), j(T, null, F(t(l), (p) => (u(), b(qt, {
10001
+ key: p.name
9991
10002
  }, [
9992
- r.value === m.name ? (u(), b(t(De), {
10003
+ r.value === p.name ? (u(), b(t(De), {
9993
10004
  key: 0,
9994
10005
  ref_for: !0,
9995
10006
  ref_key: "widgetsRef",
9996
10007
  ref: a,
9997
10008
  region: i.region,
9998
- widget: m
10009
+ widget: p
9999
10010
  }, null, 8, ["region", "widget"])) : A("", !0)
10000
10011
  ], 1024))), 128))
10001
10012
  ]),
@@ -10057,6 +10068,7 @@ export {
10057
10068
  Wi as depsManager,
10058
10069
  En as engineKey,
10059
10070
  oe as expressionValidate,
10071
+ js as getClassProperties,
10060
10072
  de as message,
10061
10073
  ne as notify,
10062
10074
  Ot as regions,