@vtj/ui 0.7.5 → 0.7.7

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,21 +1,21 @@
1
- import { defineComponent as P, useAttrs as Je, getCurrentInstance as pe, computed as y, markRaw as ke, openBlock as u, createBlock as g, unref as n, normalizeClass as W, normalizeStyle as fe, withCtx as d, renderSlot as x, resolveDynamicComponent as J, createCommentVNode as v, createElementBlock as C, mergeProps as F, createElementVNode as H, toDisplayString as O, Fragment as Q, renderList as Y, isVNode as Ut, h as ae, shallowRef as Ve, ref as D, watch as L, toRef as Ae, createTextVNode as R, useSlots as Ht, toRaw as ge, createVNode as _, normalizeProps as le, guardReactiveProps as be, effectScope as mt, reactive as Re, onMounted as gt, onUnmounted as yt, watchEffect as Qe, nextTick as ye, Teleport as vt, withDirectives as G, createSlots as he, render as nt, vShow as ne, isRef as Be, withModifiers as bt, KeepAlive as Kt, provide as ze, inject as xe, withKeys as Lt } from "vue";
2
- import { ElIcon as Wt, ElSubMenu as Jt, ElBadge as Ke, ElMenuItem as Qt, ElMenu as Zt, ElButton as ie, ElDropdown as Gt, ElDropdownMenu as Yt, ElDropdownItem as qt, ElTooltip as ht, ElDivider as se, ElSwitch as Ze, ElInput as Ce, ElEmpty as _t, ElTabs as kt, ElTabPane as Le, ElPopover as wt, ElAvatar as eo, ElMessageBox as Ne, ElSelect as to, ElOption as oo, ElCheckboxButton as no, ElCheckbox as ao, ElCheckboxGroup as so, ElRadioButton as lo, ElRadio as io, ElRadioGroup as ro, ElInputNumber as co, ElDatePicker as at, ElTimePicker as uo, ElRate as po, ElSlider as fo, ElCascader as mo, formContextKey as go, ElFormItem as yo, ElForm as vo, ElImage as bo, ElInfiniteScroll as st, ElPagination as ho, ElDescriptions as lt, ElDescriptionsItem as Xe, ElMessage as it } from "element-plus";
3
- import { ArrowRight as _o, Minimize as ko, Popup as wo, Maximize as xo, RawClose as So, StarFilled as xt, Menu as zo, Search as We, Close as St, Expand as Co, Fold as To, Star as zt, Document as me, Refresh as $o, CopyDocument as Mo, Moon as Eo, Sunny as Io, MoreFilled as Bo, UserFilled as Po, HomeFilled as Vo, WarningFilled as Ao } from "@vtj/icons";
4
- import { useDraggable as Do, useMouseInElement as Ro, useEventListener as De, useElementSize as Ct, useDark as Oo, useResizeObserver as Fo, useVirtualList as jo } from "@vueuse/core";
5
- import { isEqual as Ge, isObject as Ye, uid as Tt, arrayToMap as No, isUrl as Xo, upperFirstCamelCase as $t, toArray as Uo, get as Pe, merge as Ho, set as Ue, debounce as Ko } from "@vtj/utils";
6
- import { useRouter as qe, RouterView as Lo, useRoute as Mt, routeLocationKey as Wo } from "vue-router";
1
+ import { defineComponent as V, useAttrs as Je, getCurrentInstance as pe, computed as y, markRaw as ke, openBlock as u, createBlock as g, unref as n, normalizeClass as W, normalizeStyle as fe, withCtx as d, renderSlot as x, resolveDynamicComponent as J, createCommentVNode as v, createElementBlock as C, mergeProps as F, createElementVNode as X, toDisplayString as A, Fragment as Q, renderList as Y, isVNode as Ut, h as ae, shallowRef as Ve, ref as O, watch as L, toRef as Ae, createTextVNode as R, useSlots as Ht, toRaw as ge, createVNode as _, normalizeProps as le, guardReactiveProps as he, effectScope as mt, reactive as Re, onMounted as gt, onUnmounted as yt, watchEffect as Qe, nextTick as ye, Teleport as vt, withDirectives as G, createSlots as be, render as nt, vShow as ne, isRef as Be, withModifiers as ht, KeepAlive as Kt, provide as ze, inject as xe, withKeys as Lt } from "vue";
2
+ import { ElIcon as Wt, ElSubMenu as Jt, ElBadge as Ke, ElMenuItem as Qt, ElMenu as Zt, ElButton as ie, ElDropdown as Gt, ElDropdownMenu as Yt, ElDropdownItem as qt, ElTooltip as bt, ElDivider as se, ElSwitch as Ze, ElInput as Ce, ElEmpty as _t, ElTabs as kt, ElTabPane as Le, ElPopover as wt, ElAvatar as eo, ElMessageBox as Ne, ElSelect as to, ElOption as oo, ElCheckboxButton as no, ElCheckbox as ao, ElCheckboxGroup as so, ElRadioButton as lo, ElRadio as io, ElRadioGroup as ro, ElInputNumber as co, ElDatePicker as at, ElTimePicker as uo, ElRate as po, ElSlider as fo, ElCascader as mo, formContextKey as go, ElFormItem as yo, ElForm as vo, ElImage as ho, ElInfiniteScroll as st, ElPagination as bo, ElDescriptions as lt, ElDescriptionsItem as Xe, ElMessage as it } from "element-plus";
3
+ import { ArrowRight as _o, Minimize as ko, Popup as wo, Maximize as xo, RawClose as So, StarFilled as xt, Menu as zo, Search as We, Close as St, Expand as Co, Fold as To, Star as zt, Document as me, Refresh as $o, CopyDocument as Eo, Moon as Mo, Sunny as Io, MoreFilled as Bo, UserFilled as Po, HomeFilled as Vo, WarningFilled as Ao, EditPen as Do } from "@vtj/icons";
4
+ import { useDraggable as Ro, useMouseInElement as Oo, useEventListener as De, useElementSize as Ct, useDark as Fo, useResizeObserver as jo, useVirtualList as No } from "@vueuse/core";
5
+ import { isEqual as Ge, isObject as Ye, uid as Tt, arrayToMap as Xo, isUrl as Uo, upperFirstCamelCase as $t, toArray as Ho, get as Pe, merge as Ko, set as Ue, debounce as Lo } from "@vtj/utils";
6
+ import { useRouter as qe, RouterView as Wo, useRoute as Et, routeLocationKey as Jo } from "vue-router";
7
7
  /**!
8
8
  * Copyright (c) 2024, VTJ.PRO All rights reserved.
9
9
  * @name @vtj/ui
10
10
  * @author CHC chenhuachun1549@dingtalk.com
11
- * @version 0.7.5
11
+ * @version 0.7.7
12
12
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
13
13
  */
14
- const Aa = "0.7.5", Jo = {
14
+ const Ha = "0.7.7", Qo = {
15
15
  default: 14,
16
16
  small: 12,
17
17
  large: 18
18
- }, Qo = {
18
+ }, Zo = {
19
19
  icon: {
20
20
  type: [String, Object]
21
21
  },
@@ -42,7 +42,7 @@ const Aa = "0.7.5", Jo = {
42
42
  function q(a) {
43
43
  return typeof a == "string" ? a : `${a}px`;
44
44
  }
45
- function Me(a = 0, o) {
45
+ function Ee(a = 0, o) {
46
46
  if (typeof a == "number")
47
47
  return a;
48
48
  if (/(%|vh|vw)$/i.test(a)) {
@@ -55,16 +55,16 @@ function rt(a, o = {}) {
55
55
  const e = { ...o };
56
56
  return typeof a == "boolean" ? e : Object.assign(e, a || {});
57
57
  }
58
- const ct = Symbol("INSTALLED_KEY"), Da = (a = []) => ({
58
+ const ct = Symbol("INSTALLED_KEY"), Ka = (a = []) => ({
59
59
  install: (e) => {
60
60
  e[ct] || (e[ct] = !0, a.forEach((t) => {
61
61
  t.name && e.component(t.name, t);
62
62
  }));
63
63
  }
64
- }), Zo = ["src"], re = /* @__PURE__ */ P({
64
+ }), Go = ["src"], re = /* @__PURE__ */ V({
65
65
  name: "XIcon",
66
66
  __name: "Icon",
67
- props: Qo,
67
+ props: Zo,
68
68
  setup(a) {
69
69
  const o = a, e = Je(), t = pe(), l = y(() => {
70
70
  if (!o.icon)
@@ -80,7 +80,7 @@ const ct = Symbol("INSTALLED_KEY"), Da = (a = []) => ({
80
80
  "background-color": o.background,
81
81
  "border-radius": o.radius ? q(o.radius) : void 0,
82
82
  padding: o.padding ? q(o.padding) : void 0
83
- })), i = y(() => typeof o.size == "number" ? o.size : Jo[o.size] ?? void 0);
83
+ })), i = y(() => typeof o.size == "number" ? o.size : Qo[o.size] ?? void 0);
84
84
  return (r, p) => (u(), g(n(Wt), {
85
85
  class: W(["x-icon", s.value]),
86
86
  color: o.color,
@@ -93,19 +93,19 @@ const ct = Symbol("INSTALLED_KEY"), Da = (a = []) => ({
93
93
  o.src ? (u(), C("img", {
94
94
  key: 1,
95
95
  src: o.src
96
- }, null, 8, Zo)) : v("", !0)
96
+ }, null, 8, Go)) : v("", !0)
97
97
  ])
98
98
  ]),
99
99
  _: 3
100
100
  }, 8, ["class", "color", "size", "style"]));
101
101
  }
102
- }), Go = { class: "x-menu__wrapper" }, Yo = {
102
+ }), Yo = { class: "x-menu__wrapper" }, qo = {
103
103
  key: 1,
104
104
  class: "x-menu__title"
105
- }, qo = /* @__PURE__ */ H("i", null, null, -1), en = {
105
+ }, en = /* @__PURE__ */ X("i", null, null, -1), tn = {
106
106
  key: 0,
107
107
  class: "x-menu__title"
108
- }, tn = /* @__PURE__ */ H("i", null, null, -1), Et = /* @__PURE__ */ P({
108
+ }, on = /* @__PURE__ */ X("i", null, null, -1), Mt = /* @__PURE__ */ V({
109
109
  inheritAttrs: !1,
110
110
  name: "XMenuItem",
111
111
  __name: "MenuItem",
@@ -126,25 +126,25 @@ const ct = Symbol("INSTALLED_KEY"), Da = (a = []) => ({
126
126
  index: String(o.item.id)
127
127
  }), {
128
128
  title: d(() => [
129
- H("div", Go, [
129
+ X("div", Yo, [
130
130
  o.item.icon ? (u(), g(n(re), {
131
131
  key: 0,
132
132
  icon: t(o.item.icon)
133
133
  }, null, 8, ["icon"])) : v("", !0),
134
- o.item.title ? (u(), C("span", Yo, O(o.item.title), 1)) : v("", !0),
134
+ o.item.title ? (u(), C("span", qo, A(o.item.title), 1)) : v("", !0),
135
135
  o.item.badge ? (u(), g(n(Ke), F({
136
136
  key: 2,
137
137
  class: "x-menu__badge"
138
138
  }, l(o.item.badge)), {
139
139
  default: d(() => [
140
- qo
140
+ en
141
141
  ]),
142
142
  _: 1
143
143
  }, 16)) : v("", !0)
144
144
  ])
145
145
  ]),
146
146
  default: d(() => [
147
- (u(!0), C(Q, null, Y(s(o.item.children), (r) => (u(), g(n(Et), {
147
+ (u(!0), C(Q, null, Y(s(o.item.children), (r) => (u(), g(n(Mt), {
148
148
  key: r.id,
149
149
  item: r,
150
150
  subMenu: o.subMenu,
@@ -158,13 +158,13 @@ const ct = Symbol("INSTALLED_KEY"), Da = (a = []) => ({
158
158
  disabled: o.item.disabled
159
159
  }, {
160
160
  title: d(() => [
161
- o.item.title ? (u(), C("span", en, O(o.item.title), 1)) : v("", !0),
161
+ o.item.title ? (u(), C("span", tn, A(o.item.title), 1)) : v("", !0),
162
162
  o.item.badge ? (u(), g(n(Ke), F({
163
163
  key: 1,
164
164
  class: "x-menu__badge"
165
165
  }, l(o.item.badge)), {
166
166
  default: d(() => [
167
- tn
167
+ on
168
168
  ]),
169
169
  _: 1
170
170
  }, 16)) : v("", !0)
@@ -178,7 +178,7 @@ const ct = Symbol("INSTALLED_KEY"), Da = (a = []) => ({
178
178
  _: 1
179
179
  }, 8, ["index", "disabled"]));
180
180
  }
181
- }), de = /* @__PURE__ */ P({
181
+ }), de = /* @__PURE__ */ V({
182
182
  inheritAttrs: !1,
183
183
  name: "XMenu",
184
184
  __name: "Menu",
@@ -191,13 +191,13 @@ const ct = Symbol("INSTALLED_KEY"), Da = (a = []) => ({
191
191
  setup(a, { emit: o }) {
192
192
  const e = a, t = o, l = y(() => e.data.filter((i) => !i.hidden)), s = (i, r) => {
193
193
  const p = (f, m = []) => {
194
- for (const h of m) {
195
- if (h.id.toString() === f.toString())
196
- return h;
197
- if (h.children?.length) {
198
- const b = p(f, h.children);
199
- if (b)
200
- return b;
194
+ for (const b of m) {
195
+ if (b.id.toString() === f.toString())
196
+ return b;
197
+ if (b.children?.length) {
198
+ const h = p(f, b.children);
199
+ if (h)
200
+ return h;
201
201
  }
202
202
  }
203
203
  };
@@ -208,7 +208,7 @@ const ct = Symbol("INSTALLED_KEY"), Da = (a = []) => ({
208
208
  };
209
209
  return (i, r) => (u(), g(n(Zt), F({ class: "x-menu" }, i.$attrs, { onSelect: c }), {
210
210
  default: d(() => [
211
- (u(!0), C(Q, null, Y(l.value, (p) => (u(), g(n(Et), {
211
+ (u(!0), C(Q, null, Y(l.value, (p) => (u(), g(n(Mt), {
212
212
  item: { ...p, icon: p.icon },
213
213
  defaultIcon: e.defaultIcon,
214
214
  subMenu: e.subMenu
@@ -313,21 +313,21 @@ const ct = Symbol("INSTALLED_KEY"), Da = (a = []) => ({
313
313
  type: Boolean
314
314
  }
315
315
  };
316
- function on(a) {
316
+ function nn(a) {
317
317
  return y(() => {
318
318
  const o = a.tooltip;
319
319
  if (o)
320
320
  return typeof o == "string" ? { content: o } : o;
321
321
  });
322
322
  }
323
- function nn(a) {
323
+ function an(a) {
324
324
  return y(() => {
325
325
  const o = a.badge;
326
326
  if (o)
327
327
  return typeof o == "object" ? o : { value: o };
328
328
  });
329
329
  }
330
- function an(a) {
330
+ function sn(a) {
331
331
  return y(() => {
332
332
  const { dropdown: o, menus: e } = a;
333
333
  if (e && e.length > 0)
@@ -337,7 +337,7 @@ function an(a) {
337
337
  );
338
338
  });
339
339
  }
340
- function sn(a) {
340
+ function ln(a) {
341
341
  const o = pe();
342
342
  return y(() => {
343
343
  const e = n(a);
@@ -353,8 +353,8 @@ function sn(a) {
353
353
  });
354
354
  }
355
355
  function _e(a) {
356
- const o = sn(a);
357
- return o.value ? ke(P({ render: () => ae(re, o.value) })) : void 0;
356
+ const o = ln(a);
357
+ return o.value ? ke(V({ render: () => ae(re, o.value) })) : void 0;
358
358
  }
359
359
  function et(a, o) {
360
360
  return y(() => {
@@ -362,8 +362,8 @@ function et(a, o) {
362
362
  return typeof e == "function" ? e(o) : !!e;
363
363
  });
364
364
  }
365
- function ln(a, o, e) {
366
- const t = Ve(o), l = D(!1), s = async (i) => {
365
+ function rn(a, o, e) {
366
+ const t = Ve(o), l = O(!1), s = async (i) => {
367
367
  const r = n(a);
368
368
  return r ? typeof r == "function" ? await r(i) : r : o;
369
369
  }, c = async (i) => (l.value = !0, await s(i).then((r) => (t.value = r || o, l.value = !1, t)));
@@ -381,7 +381,7 @@ function ln(a, o, e) {
381
381
  loader: c
382
382
  };
383
383
  }
384
- const rn = { key: 0 }, cn = /* @__PURE__ */ P({
384
+ const cn = { key: 0 }, un = /* @__PURE__ */ V({
385
385
  __name: "Trigger",
386
386
  props: It,
387
387
  emits: ["click"],
@@ -405,7 +405,7 @@ const rn = { key: 0 }, cn = /* @__PURE__ */ P({
405
405
  disabled: n(s)
406
406
  }, e.button, { onClick: i }), {
407
407
  default: d(() => [
408
- R(O(r.label), 1)
408
+ R(A(r.label), 1)
409
409
  ]),
410
410
  _: 1
411
411
  }, 16, ["icon", "type", "size", "disabled"])) : (u(), C("div", {
@@ -414,25 +414,25 @@ const rn = { key: 0 }, cn = /* @__PURE__ */ P({
414
414
  onClick: i
415
415
  }, [
416
416
  (u(), g(J(n(l)))),
417
- r.label ? (u(), C("span", rn, O(r.label), 1)) : v("", !0)
417
+ r.label ? (u(), C("span", cn, A(r.label), 1)) : v("", !0)
418
418
  ], 2));
419
419
  }
420
- }), te = /* @__PURE__ */ P({
420
+ }), te = /* @__PURE__ */ V({
421
421
  name: "XAction",
422
422
  __name: "Action",
423
423
  props: It,
424
424
  emits: ["click", "command"],
425
425
  setup(a, { emit: o }) {
426
- const e = a, t = Ht(), l = o, s = on(e), c = nn(e), i = an(e), r = et(Ae(e, "disabled")), p = y(() => ({
426
+ const e = a, t = Ht(), l = o, s = nn(e), c = an(e), i = sn(e), r = et(Ae(e, "disabled")), p = y(() => ({
427
427
  [`x-action--${e.mode}`]: !!e.mode
428
428
  })), f = () => {
429
429
  r.value || l("click", ge(e));
430
430
  }, m = (z) => {
431
431
  if (r.value)
432
432
  return;
433
- const I = e.menus?.find((V) => V.command === z);
434
- I && l("command", ge(I));
435
- }, h = (z) => ae(Ke, c.value, () => [].concat(z)), b = (z) => ae(
433
+ const E = e.menus?.find((B) => B.command === z);
434
+ E && l("command", ge(E));
435
+ }, b = (z) => ae(Ke, c.value, () => [].concat(z)), h = (z) => ae(
436
436
  Gt,
437
437
  { ...i.value, disabled: r.value, onCommand: m },
438
438
  {
@@ -440,27 +440,28 @@ const rn = { key: 0 }, cn = /* @__PURE__ */ P({
440
440
  dropdown: () => [
441
441
  ae(
442
442
  Yt,
443
- () => (e.menus || []).map((I) => ae(
443
+ () => (e.menus || []).map((E, B) => ae(
444
444
  qt,
445
- I,
446
- () => t.item ? t.item({ item: I }) : I.label
445
+ E,
446
+ () => t.item ? t.item({ item: E, index: B }) : E.label
447
447
  ))
448
448
  )
449
449
  ]
450
450
  }
451
- ), w = (z) => ae(ht, { ...s.value, disabled: r.value }, () => [
451
+ ), w = (z) => ae(bt, { ...s.value, disabled: r.value }, () => [
452
452
  z
453
453
  ]), M = y(() => {
454
- let z = t.default ? t.default()[0] : ae(ke(cn), { ...e, onClick: f });
455
- return c.value && (z = h(z)), i.value && (z = b(z)), s.value && (z = w(z)), z;
454
+ let z = ae(ke(un), { ...e, onClick: f });
455
+ const E = t.default?.();
456
+ return E && E.length && (z = E[0]), c.value && (z = b(z)), i.value && (z = h(z)), s.value && (z = w(z)), z;
456
457
  });
457
- return (z, I) => (u(), C("div", {
458
+ return (z, E) => (u(), C("div", {
458
459
  class: W(["x-action", p.value])
459
460
  }, [
460
461
  (u(), g(J(M.value)))
461
462
  ], 2));
462
463
  }
463
- }), un = {
464
+ }), dn = {
464
465
  /**
465
466
  * 动作项
466
467
  */
@@ -531,10 +532,10 @@ const rn = { key: 0 }, cn = /* @__PURE__ */ P({
531
532
  button: {
532
533
  type: Object
533
534
  }
534
- }, Oe = /* @__PURE__ */ P({
535
+ }, Oe = /* @__PURE__ */ V({
535
536
  name: "XActionBar",
536
537
  __name: "ActionBar",
537
- props: un,
538
+ props: dn,
538
539
  emits: ["click", "command"],
539
540
  setup(a, { emit: o }) {
540
541
  const e = a, t = o, l = y(() => (e.items || []).map((i) => i === "|" ? i : {
@@ -552,7 +553,7 @@ const rn = { key: 0 }, cn = /* @__PURE__ */ P({
552
553
  }, c = (i, r) => {
553
554
  t("command", i, r);
554
555
  };
555
- return (i, r) => (u(), g(n(E), {
556
+ return (i, r) => (u(), g(n(I), {
556
557
  class: "x-action-bar",
557
558
  align: "center"
558
559
  }, {
@@ -581,7 +582,7 @@ const rn = { key: 0 }, cn = /* @__PURE__ */ P({
581
582
  _: 1
582
583
  }));
583
584
  }
584
- }), dn = {
585
+ }), pn = {
585
586
  /**
586
587
  * 组件渲染html标签
587
588
  */
@@ -697,10 +698,10 @@ const rn = { key: 0 }, cn = /* @__PURE__ */ P({
697
698
  autoPointer: {
698
699
  type: Boolean
699
700
  }
700
- }, E = /* @__PURE__ */ P({
701
+ }, I = /* @__PURE__ */ V({
701
702
  name: "XContainer",
702
703
  __name: "Container",
703
- props: dn,
704
+ props: pn,
704
705
  setup(a) {
705
706
  const o = a, e = Je(), t = pe(), l = y(() => {
706
707
  const i = t?.parent;
@@ -741,7 +742,7 @@ const rn = { key: 0 }, cn = /* @__PURE__ */ P({
741
742
  _: 3
742
743
  }, 8, ["class", "style"]));
743
744
  }
744
- }), pn = {
745
+ }), fn = {
745
746
  size: {
746
747
  type: String,
747
748
  default: "default"
@@ -762,27 +763,27 @@ const rn = { key: 0 }, cn = /* @__PURE__ */ P({
762
763
  more: {
763
764
  type: Boolean
764
765
  }
765
- }, fn = {
766
+ }, mn = {
766
767
  key: 0,
767
768
  class: "x-header__actions"
768
- }, Bt = /* @__PURE__ */ P({
769
+ }, Bt = /* @__PURE__ */ V({
769
770
  name: "XHeader",
770
771
  inheritAttrs: !1,
771
772
  __name: "Header",
772
- props: pn,
773
+ props: fn,
773
774
  setup(a) {
774
775
  const o = a, e = _e(Ae(o, "icon")), t = Je(), l = y(() => ({
775
776
  [`is-size-${o.size}`]: !!o.size && o.size !== "default",
776
777
  "is-border": o.border,
777
778
  "is-pointer": !!t.onClick
778
779
  }));
779
- return (s, c) => (u(), g(n(E), {
780
+ return (s, c) => (u(), g(n(I), {
780
781
  class: W(["x-header", l.value]),
781
782
  justify: "space-between",
782
783
  align: "center"
783
784
  }, {
784
785
  default: d(() => [
785
- _(n(E), {
786
+ _(n(I), {
786
787
  align: "center",
787
788
  class: W(["x-header__wrapper", l.value]),
788
789
  grow: ""
@@ -793,13 +794,13 @@ const rn = { key: 0 }, cn = /* @__PURE__ */ P({
793
794
  class: "x-header__icon",
794
795
  onClick: n(t).onClickIcon || n(t).onClick
795
796
  }, null, 8, ["onClick"])) : v("", !0),
796
- H("span", {
797
+ X("span", {
797
798
  class: "x-header__content",
798
799
  onClick: c[0] || (c[0] = //@ts-ignore
799
800
  (...i) => n(t).onClick && n(t).onClick(...i))
800
801
  }, [
801
802
  x(s.$slots, "default", {}, () => [
802
- R(O(o.content), 1)
803
+ R(A(o.content), 1)
803
804
  ])
804
805
  ]),
805
806
  o.more ? (u(), g(n(re), {
@@ -814,20 +815,20 @@ const rn = { key: 0 }, cn = /* @__PURE__ */ P({
814
815
  (...i) => n(t).onClick && n(t).onClick(...i))
815
816
  }, [
816
817
  x(s.$slots, "subtitle", {}, () => [
817
- R(O(o.subtitle), 1)
818
+ R(A(o.subtitle), 1)
818
819
  ])
819
820
  ])) : v("", !0)
820
821
  ]),
821
822
  _: 3
822
823
  }, 8, ["class"]),
823
- s.$slots.actions ? (u(), C("div", fn, [
824
+ s.$slots.actions ? (u(), C("div", mn, [
824
825
  x(s.$slots, "actions")
825
826
  ])) : v("", !0)
826
827
  ]),
827
828
  _: 3
828
829
  }, 8, ["class"]));
829
830
  }
830
- }), mn = {
831
+ }), gn = {
831
832
  /**
832
833
  * 宽高自适应
833
834
  */
@@ -891,12 +892,12 @@ const rn = { key: 0 }, cn = /* @__PURE__ */ P({
891
892
  footer: {
892
893
  type: Object
893
894
  }
894
- }, Se = /* @__PURE__ */ P({
895
+ }, Se = /* @__PURE__ */ V({
895
896
  name: "XPanel",
896
897
  __name: "Panel",
897
- props: mn,
898
+ props: gn,
898
899
  setup(a, { expose: o }) {
899
- const e = a, t = D(), l = y(() => ({
900
+ const e = a, t = O(), l = y(() => ({
900
901
  "x-panel--card": !!e.card,
901
902
  "x-panel--default": !e.card,
902
903
  [`is-${e.size}`]: !!e.size && e.size !== "default",
@@ -912,7 +913,7 @@ const rn = { key: 0 }, cn = /* @__PURE__ */ P({
912
913
  }), c = y(() => e.fit || e.height ? "auto" : void 0);
913
914
  return o({
914
915
  bodyRef: t
915
- }), (i, r) => (u(), g(n(E), {
916
+ }), (i, r) => (u(), g(n(I), {
916
917
  class: W(["x-panel", l.value]),
917
918
  direction: "column",
918
919
  fit: e.fit,
@@ -920,14 +921,14 @@ const rn = { key: 0 }, cn = /* @__PURE__ */ P({
920
921
  height: e.height
921
922
  }, {
922
923
  default: d(() => [
923
- s.value ? (u(), g(n(E), {
924
+ s.value ? (u(), g(n(I), {
924
925
  key: 0,
925
926
  flex: !1,
926
927
  class: "x-panel__header"
927
928
  }, {
928
929
  default: d(() => [
929
930
  x(i.$slots, "header", {}, () => [
930
- _(n(Bt), le(be(s.value)), {
931
+ _(n(Bt), le(he(s.value)), {
931
932
  default: d(() => [
932
933
  x(i.$slots, "title")
933
934
  ]),
@@ -940,7 +941,7 @@ const rn = { key: 0 }, cn = /* @__PURE__ */ P({
940
941
  ]),
941
942
  _: 3
942
943
  })) : v("", !0),
943
- _(n(E), F({
944
+ _(n(I), F({
944
945
  ref_key: "bodyRef",
945
946
  ref: t,
946
947
  flex: !1,
@@ -954,7 +955,7 @@ const rn = { key: 0 }, cn = /* @__PURE__ */ P({
954
955
  ]),
955
956
  _: 3
956
957
  }, 16, ["overflow"]),
957
- i.$slots.footer ? (u(), g(n(E), F({
958
+ i.$slots.footer ? (u(), g(n(I), F({
958
959
  key: 1,
959
960
  flex: !1,
960
961
  padding: "",
@@ -993,7 +994,7 @@ class dt {
993
994
  let i = null;
994
995
  const r = this.getHandle(), p = this.getTarget();
995
996
  let f = o.getBoundingClientRect(), m = null;
996
- const { x: h, y: b } = Do(o, {
997
+ const { x: b, y: h } = Ro(o, {
997
998
  initialValue: { x: f.x, y: f.y },
998
999
  ...e,
999
1000
  handle: r,
@@ -1005,14 +1006,14 @@ class dt {
1005
1006
  onEnd: (w, M) => {
1006
1007
  if (clearTimeout(i), document.body.classList.remove(ut), this.dragging && m) {
1007
1008
  this.dragging = !1;
1008
- const { x: z, y: I } = w, V = this.getPosition(m, f, z, I);
1009
- c && c(V, M), m = null;
1009
+ const { x: z, y: E } = w, B = this.getPosition(m, f, z, E);
1010
+ c && c(B, M), m = null;
1010
1011
  }
1011
1012
  }
1012
1013
  });
1013
- L([h, b], () => {
1014
+ L([b, h], () => {
1014
1015
  if (this.dragging && m) {
1015
- const w = this.getPosition(m, f, h.value, b.value);
1016
+ const w = this.getPosition(m, f, b.value, h.value);
1016
1017
  o.style.left = `${w.x}px`, o.style.top = `${w.y}px`;
1017
1018
  }
1018
1019
  });
@@ -1028,7 +1029,7 @@ class dt {
1028
1029
  this.scope.stop();
1029
1030
  }
1030
1031
  }
1031
- const gn = {
1032
+ const yn = {
1032
1033
  mounted(a, o) {
1033
1034
  const e = o.value || {}, t = new dt(a, e);
1034
1035
  a.__draggable__ = t;
@@ -1050,8 +1051,8 @@ class pt {
1050
1051
  });
1051
1052
  }
1052
1053
  scope;
1053
- resizing = D(!1);
1054
- direction = D("");
1054
+ resizing = O(!1);
1055
+ direction = O("");
1055
1056
  MIE = null;
1056
1057
  cleanMousedown;
1057
1058
  cleanMouseup;
@@ -1059,7 +1060,7 @@ class pt {
1059
1060
  const { el: o, options: e } = this, { disabled: t, onStart: l, onEnd: s } = e;
1060
1061
  if (t)
1061
1062
  return;
1062
- this.MIE = Ro(o), this.cleanMousedown = De(document, "mousedown", () => {
1063
+ this.MIE = Oo(o), this.cleanMousedown = De(document, "mousedown", () => {
1063
1064
  this.direction?.value && this.MIE && (this.resizing.value = !0, o.classList.add("is-resizing", `is-${this.direction.value}-resizing`), l && l(this.direction.value, this.MIE));
1064
1065
  }), this.cleanMouseup = De(document, "mouseup", () => {
1065
1066
  this.resizing.value && this.direction?.value && this.MIE && (o.classList.remove(
@@ -1079,35 +1080,35 @@ class pt {
1079
1080
  const { MIE: o, direction: e, resizing: t, options: l, el: s } = this, c = e?.value || "";
1080
1081
  if (!o || !t.value || !c)
1081
1082
  return;
1082
- const { x: i, y: r, elementX: p, elementY: f, elementHeight: m, elementWidth: h } = o, { onResizing: b } = l, {
1083
+ const { x: i, y: r, elementX: p, elementY: f, elementHeight: m, elementWidth: b } = o, { onResizing: h } = l, {
1083
1084
  minWidth: w = 0,
1084
1085
  minHeight: M = 0,
1085
1086
  maxWidth: z = 99999,
1086
- maxHeight: I = 99999
1087
+ maxHeight: E = 99999
1087
1088
  } = l;
1088
1089
  if (c.includes("e")) {
1089
- const V = Math.min(Math.max(p.value, w), z);
1090
- s.style.width = `${V}px`;
1090
+ const B = Math.min(Math.max(p.value, w), z);
1091
+ s.style.width = `${B}px`;
1091
1092
  }
1092
1093
  if (c.includes("s")) {
1093
- const V = Math.min(Math.max(f.value, M), I);
1094
- s.style.height = `${V}px`;
1094
+ const B = Math.min(Math.max(f.value, M), E);
1095
+ s.style.height = `${B}px`;
1095
1096
  }
1096
1097
  if (c.includes("w")) {
1097
- const V = Math.min(
1098
- Math.max(h.value - p.value, w),
1098
+ const B = Math.min(
1099
+ Math.max(b.value - p.value, w),
1099
1100
  z
1100
1101
  );
1101
- s.style.width = `${V}px`, s.style.left = `${i.value}px`;
1102
+ s.style.width = `${B}px`, s.style.left = `${i.value}px`;
1102
1103
  }
1103
1104
  if (c.includes("n")) {
1104
- const V = Math.min(
1105
+ const B = Math.min(
1105
1106
  Math.max(m.value - f.value, M),
1106
- I
1107
+ E
1107
1108
  );
1108
- this.el.style.height = `${V}px`, this.el.style.top = `${r.value}px`;
1109
+ this.el.style.height = `${B}px`, this.el.style.top = `${r.value}px`;
1109
1110
  }
1110
- b && b(c, o);
1111
+ h && h(c, o);
1111
1112
  }
1112
1113
  getDirection() {
1113
1114
  if (!this.MIE)
@@ -1138,7 +1139,7 @@ const Pt = {
1138
1139
  const o = a.__resizable__;
1139
1140
  o && (o.destory(), a.__resizable__ = null);
1140
1141
  }
1141
- }, yn = {
1142
+ }, vn = {
1142
1143
  modelValue: {
1143
1144
  type: Boolean,
1144
1145
  default: !0
@@ -1224,7 +1225,7 @@ const Pt = {
1224
1225
  }
1225
1226
  };
1226
1227
  let ve = 1e3;
1227
- function vn(a, o) {
1228
+ function hn(a, o) {
1228
1229
  const { width: e, height: t } = Ct(o), l = Re({
1229
1230
  mode: a.mode || "normal",
1230
1231
  wrapperWidth: 0,
@@ -1238,7 +1239,7 @@ function vn(a, o) {
1238
1239
  resizing: !1
1239
1240
  });
1240
1241
  return L([e, t], ([s, c]) => {
1241
- l.wrapperWidth = s, l.wrapperHeight = c, l.width = Me(a.width, s), l.height = Me(a.height, c), l.left = a.left ? Me(a.left, s) - l.width / 2 : Math.max(Math.floor((s - l.width) / 2), 0), l.top = a.top ? Me(a.top, c) : Math.max(Math.floor((c - l.height) / 2), 0);
1242
+ l.wrapperWidth = s, l.wrapperHeight = c, l.width = Ee(a.width, s), l.height = Ee(a.height, c), l.left = a.left ? Ee(a.left, s) - l.width / 2 : Math.max(Math.floor((s - l.width) / 2), 0), l.top = a.top ? Ee(a.top, c) : Math.max(Math.floor((c - l.height) / 2), 0);
1242
1243
  }), L(l, (s) => {
1243
1244
  ve = Math.max(s.zIndex, ve);
1244
1245
  }), {
@@ -1277,7 +1278,7 @@ function bn(a, o) {
1277
1278
  modalStyle: s
1278
1279
  };
1279
1280
  }
1280
- function hn(a, o, e) {
1281
+ function _n(a, o, e) {
1281
1282
  const t = (f) => {
1282
1283
  o.mode = f, ["maximized", "minimized", "normal"].includes(f) && e(f), e("modeChange", f);
1283
1284
  }, l = async () => {
@@ -1300,7 +1301,7 @@ function hn(a, o, e) {
1300
1301
  }
1301
1302
  };
1302
1303
  }
1303
- function _n(a, o, e, t) {
1304
+ function kn(a, o, e, t) {
1304
1305
  return y(() => {
1305
1306
  const l = typeof a.draggable == "boolean" ? !a.draggable : !!a.draggable?.disabled;
1306
1307
  return {
@@ -1323,7 +1324,7 @@ function _n(a, o, e, t) {
1323
1324
  };
1324
1325
  });
1325
1326
  }
1326
- function kn(a, o, e) {
1327
+ function wn(a, o, e) {
1327
1328
  return y(() => {
1328
1329
  const t = typeof a.resizable == "boolean" ? !a.resizable : !!a.resizable?.disabled;
1329
1330
  return {
@@ -1344,7 +1345,7 @@ function kn(a, o, e) {
1344
1345
  };
1345
1346
  });
1346
1347
  }
1347
- function wn(a, o) {
1348
+ function xn(a, o) {
1348
1349
  const e = a.componentInstance;
1349
1350
  if (!e)
1350
1351
  return;
@@ -1358,17 +1359,17 @@ function wn(a, o) {
1358
1359
  componentInstance: e
1359
1360
  };
1360
1361
  }
1361
- const xn = ["src"], tt = /* @__PURE__ */ P({
1362
+ const Sn = ["src"], tt = /* @__PURE__ */ V({
1362
1363
  name: "XDialog",
1363
1364
  __name: "Dialog",
1364
- props: yn,
1365
+ props: vn,
1365
1366
  emits: ["update:modelValue", "open", "close", "destroy", "maximized", "minimized", "normal", "modeChange", "dragStart", "dragging", "dragEnd", "resizeStart", "resizeEnd", "resizing", "submit", "cancel"],
1366
1367
  setup(a, { expose: o, emit: e }) {
1367
- const t = a, l = e, s = pe(), c = D(), i = D(), { state: r, maximized: p, minimized: f, normal: m } = vn(t, c), { styles: h, classes: b, wrapperClass: w, modalStyle: M } = bn(t, r), { changeMode: z, active: I, close: V, show: S, hide: B, submit: T, cancel: j } = hn(
1368
+ const t = a, l = e, s = pe(), c = O(), i = O(), { state: r, maximized: p, minimized: f, normal: m } = hn(t, c), { styles: b, classes: h, wrapperClass: w, modalStyle: M } = bn(t, r), { changeMode: z, active: E, close: B, show: S, hide: P, submit: T, cancel: j } = _n(
1368
1369
  t,
1369
1370
  r,
1370
1371
  l
1371
- ), k = _n(t, r, l, c), U = kn(t, r, l), K = wn(t, i);
1372
+ ), k = kn(t, r, l, c), H = wn(t, r, l), K = xn(t, i);
1372
1373
  Qe(async () => {
1373
1374
  t.modelValue && (await ye(), s && l("open", s));
1374
1375
  });
@@ -1381,7 +1382,7 @@ const xn = ["src"], tt = /* @__PURE__ */ P({
1381
1382
  minimized: f,
1382
1383
  changeMode: z,
1383
1384
  show: S,
1384
- hide: B,
1385
+ hide: P,
1385
1386
  submit: T,
1386
1387
  cancel: j,
1387
1388
  componentInstance: K
@@ -1389,7 +1390,7 @@ const xn = ["src"], tt = /* @__PURE__ */ P({
1389
1390
  key: 0,
1390
1391
  to: "body"
1391
1392
  }, [
1392
- H("div", {
1393
+ X("div", {
1393
1394
  ref_key: "wrapper",
1394
1395
  ref: c,
1395
1396
  class: W(["x-dialog__wrapper", n(w)])
@@ -1402,20 +1403,20 @@ const xn = ["src"], tt = /* @__PURE__ */ P({
1402
1403
  G((u(), g(n(Se), F({
1403
1404
  ref_key: "panelRef",
1404
1405
  ref: i,
1405
- class: ["x-dialog", n(b)],
1406
+ class: ["x-dialog", n(h)],
1406
1407
  card: "",
1407
1408
  shadow: "always",
1408
1409
  header: { icon: t.icon, subtitle: t.subtitle },
1409
1410
  width: "800px",
1410
1411
  height: "600px",
1411
1412
  footer: { justify: "space-between", flex: !0, align: "center" },
1412
- style: n(h),
1413
+ style: n(b),
1413
1414
  size: t.size,
1414
1415
  body: { padding: t.bodyPadding },
1415
- onClick: n(I)
1416
- }, Z.$attrs), he({
1416
+ onClick: n(E)
1417
+ }, Z.$attrs), be({
1417
1418
  title: d(() => [
1418
- R(O(t.title), 1)
1419
+ R(A(t.title), 1)
1419
1420
  ]),
1420
1421
  actions: d(() => [
1421
1422
  x(Z.$slots, "actions"),
@@ -1454,7 +1455,7 @@ const xn = ["src"], tt = /* @__PURE__ */ P({
1454
1455
  mode: "icon",
1455
1456
  type: "danger",
1456
1457
  background: "hover",
1457
- onClick: n(V)
1458
+ onClick: n(B)
1458
1459
  }, null, 8, ["icon", "size", "onClick"])) : v("", !0)
1459
1460
  ]),
1460
1461
  default: d(() => [
@@ -1464,7 +1465,7 @@ const xn = ["src"], tt = /* @__PURE__ */ P({
1464
1465
  key: 1,
1465
1466
  src: t.src,
1466
1467
  class: "x-dialog__frame"
1467
- }, null, 8, xn)) : v("", !0)
1468
+ }, null, 8, Sn)) : v("", !0)
1468
1469
  ])
1469
1470
  ]),
1470
1471
  _: 2
@@ -1473,13 +1474,13 @@ const xn = ["src"], tt = /* @__PURE__ */ P({
1473
1474
  name: "footer",
1474
1475
  fn: d(() => [
1475
1476
  x(Z.$slots, "footer", {}, () => [
1476
- _(n(E), { align: "center" }, {
1477
+ _(n(I), { align: "center" }, {
1477
1478
  default: d(() => [
1478
1479
  x(Z.$slots, "extra")
1479
1480
  ]),
1480
1481
  _: 3
1481
1482
  }),
1482
- _(n(E), { align: "center" }, {
1483
+ _(n(I), { align: "center" }, {
1483
1484
  default: d(() => [
1484
1485
  x(Z.$slots, "handle"),
1485
1486
  t.cancel ? (u(), g(n(ie), {
@@ -1489,7 +1490,7 @@ const xn = ["src"], tt = /* @__PURE__ */ P({
1489
1490
  onClick: n(j)
1490
1491
  }, {
1491
1492
  default: d(() => [
1492
- R(O(typeof t.cancel == "string" ? t.cancel : "取消"), 1)
1493
+ R(A(typeof t.cancel == "string" ? t.cancel : "取消"), 1)
1493
1494
  ]),
1494
1495
  _: 1
1495
1496
  }, 8, ["size", "onClick"])) : v("", !0),
@@ -1500,7 +1501,7 @@ const xn = ["src"], tt = /* @__PURE__ */ P({
1500
1501
  onClick: n(T)
1501
1502
  }, {
1502
1503
  default: d(() => [
1503
- R(O(typeof t.submit == "string" ? t.submit : "确定"), 1)
1504
+ R(A(typeof t.submit == "string" ? t.submit : "确定"), 1)
1504
1505
  ]),
1505
1506
  _: 1
1506
1507
  }, 8, ["size", "onClick"])) : v("", !0)
@@ -1512,8 +1513,8 @@ const xn = ["src"], tt = /* @__PURE__ */ P({
1512
1513
  key: "0"
1513
1514
  } : void 0
1514
1515
  ]), 1040, ["header", "class", "style", "size", "body", "onClick"])), [
1515
- [n(gn), n(k)],
1516
- [n(Pt), n(U)]
1516
+ [n(yn), n(k)],
1517
+ [n(Pt), n(H)]
1517
1518
  ])
1518
1519
  ], 2)
1519
1520
  ])) : v("", !0);
@@ -1532,14 +1533,14 @@ function ot(a, o) {
1532
1533
  destroy: l
1533
1534
  };
1534
1535
  }
1535
- const Sn = /* @__PURE__ */ H("div", { class: "x-mask-sidebar__helper" }, null, -1), zn = /* @__PURE__ */ P({
1536
+ const zn = /* @__PURE__ */ X("div", { class: "x-mask-sidebar__helper" }, null, -1), Cn = /* @__PURE__ */ V({
1536
1537
  __name: "Sidebar",
1537
1538
  props: {
1538
1539
  collapsed: { type: Boolean }
1539
1540
  },
1540
1541
  setup(a) {
1541
1542
  const o = a;
1542
- return (e, t) => G((u(), g(n(E), {
1543
+ return (e, t) => G((u(), g(n(I), {
1543
1544
  class: W(["x-mask-sidebar", { "is-collapsed": o.collapsed }]),
1544
1545
  grow: !1,
1545
1546
  flex: "",
@@ -1547,7 +1548,7 @@ const Sn = /* @__PURE__ */ H("div", { class: "x-mask-sidebar__helper" }, null, -
1547
1548
  }, {
1548
1549
  default: d(() => [
1549
1550
  x(e.$slots, "brand"),
1550
- _(n(E), {
1551
+ _(n(I), {
1551
1552
  class: "x-mask-sidebar__wrapper",
1552
1553
  flex: "",
1553
1554
  grow: "",
@@ -1557,7 +1558,7 @@ const Sn = /* @__PURE__ */ H("div", { class: "x-mask-sidebar__helper" }, null, -
1557
1558
  }, {
1558
1559
  default: d(() => [
1559
1560
  x(e.$slots, "default"),
1560
- Sn
1561
+ zn
1561
1562
  ]),
1562
1563
  _: 3
1563
1564
  })
@@ -1572,7 +1573,7 @@ const Sn = /* @__PURE__ */ H("div", { class: "x-mask-sidebar__helper" }, null, -
1572
1573
  }]
1573
1574
  ]);
1574
1575
  }
1575
- }), Cn = /* @__PURE__ */ P({
1576
+ }), Tn = /* @__PURE__ */ V({
1576
1577
  __name: "SwitchBar",
1577
1578
  props: {
1578
1579
  collasped: { type: Boolean, default: !1 },
@@ -1585,7 +1586,7 @@ const Sn = /* @__PURE__ */ H("div", { class: "x-mask-sidebar__helper" }, null, -
1585
1586
  "update:favorite"
1586
1587
  ],
1587
1588
  setup(a, { emit: o }) {
1588
- const e = a, t = o, l = D(!1), s = D(""), c = D(!1), i = () => {
1589
+ const e = a, t = o, l = O(!1), s = O(""), c = O(!1), i = () => {
1589
1590
  l.value = !0;
1590
1591
  }, r = () => {
1591
1592
  s.value = "", l.value = !1, t("update:keyword", s.value);
@@ -1596,13 +1597,13 @@ const Sn = /* @__PURE__ */ H("div", { class: "x-mask-sidebar__helper" }, null, -
1596
1597
  }, m = () => {
1597
1598
  t("update:favorite", c.value);
1598
1599
  };
1599
- return (h, b) => (u(), g(n(E), {
1600
+ return (b, h) => (u(), g(n(I), {
1600
1601
  class: "x-mask-switch-bar",
1601
1602
  justify: "space-between",
1602
1603
  align: "center"
1603
1604
  }, {
1604
1605
  default: d(() => [
1605
- e.collasped ? v("", !0) : (u(), g(n(E), {
1606
+ e.collasped ? v("", !0) : (u(), g(n(I), {
1606
1607
  key: 0,
1607
1608
  class: "x-mask-switch-bar__left",
1608
1609
  grow: ""
@@ -1611,7 +1612,7 @@ const Sn = /* @__PURE__ */ H("div", { class: "x-mask-sidebar__helper" }, null, -
1611
1612
  l.value ? v("", !0) : (u(), g(n(Ze), {
1612
1613
  key: 0,
1613
1614
  modelValue: c.value,
1614
- "onUpdate:modelValue": b[0] || (b[0] = (w) => c.value = w),
1615
+ "onUpdate:modelValue": h[0] || (h[0] = (w) => c.value = w),
1615
1616
  class: "x-mask-switch-bar__switch",
1616
1617
  "active-icon": n(xt),
1617
1618
  "inactive-icon": n(zo),
@@ -1620,7 +1621,7 @@ const Sn = /* @__PURE__ */ H("div", { class: "x-mask-sidebar__helper" }, null, -
1620
1621
  l.value ? (u(), g(n(Ce), {
1621
1622
  key: 1,
1622
1623
  modelValue: s.value,
1623
- "onUpdate:modelValue": b[1] || (b[1] = (w) => s.value = w),
1624
+ "onUpdate:modelValue": h[1] || (h[1] = (w) => s.value = w),
1624
1625
  class: "x-mask-switch-bar__input",
1625
1626
  size: "small",
1626
1627
  placeholder: "请输入查询关键字",
@@ -1638,7 +1639,7 @@ const Sn = /* @__PURE__ */ H("div", { class: "x-mask-sidebar__helper" }, null, -
1638
1639
  ]),
1639
1640
  _: 1
1640
1641
  })),
1641
- _(n(E), {
1642
+ _(n(I), {
1642
1643
  class: W(["x-mask-switch-bar__right", { "is-collasped": e.collasped }]),
1643
1644
  flex: "",
1644
1645
  align: "center",
@@ -1679,7 +1680,7 @@ const Sn = /* @__PURE__ */ H("div", { class: "x-mask-sidebar__helper" }, null, -
1679
1680
  _: 1
1680
1681
  }));
1681
1682
  }
1682
- }), Tn = ["src"], $n = { key: 0 }, Mn = /* @__PURE__ */ P({
1683
+ }), $n = ["src"], En = { key: 0 }, Mn = /* @__PURE__ */ V({
1683
1684
  __name: "Brand",
1684
1685
  props: {
1685
1686
  collapsed: { type: Boolean, default: !1 },
@@ -1691,12 +1692,12 @@ const Sn = /* @__PURE__ */ H("div", { class: "x-mask-sidebar__helper" }, null, -
1691
1692
  const o = a, e = qe(), t = () => {
1692
1693
  o.url && e.push(o.url);
1693
1694
  };
1694
- return (l, s) => (u(), g(n(E), {
1695
+ return (l, s) => (u(), g(n(I), {
1695
1696
  class: W(["x-mask-brand", { "is-collapsed": o.collapsed }]),
1696
1697
  align: "center"
1697
1698
  }, {
1698
1699
  default: d(() => [
1699
- _(n(E), {
1700
+ _(n(I), {
1700
1701
  class: "x-mask-brand__logo",
1701
1702
  flex: "",
1702
1703
  justify: "center",
@@ -1708,20 +1709,20 @@ const Sn = /* @__PURE__ */ H("div", { class: "x-mask-sidebar__helper" }, null, -
1708
1709
  o.logo ? (u(), C("img", {
1709
1710
  key: 0,
1710
1711
  src: o.logo
1711
- }, null, 8, Tn)) : v("", !0)
1712
+ }, null, 8, $n)) : v("", !0)
1712
1713
  ])
1713
1714
  ]),
1714
1715
  _: 3
1715
1716
  }),
1716
- _(n(E), {
1717
+ _(n(I), {
1717
1718
  class: "x-mask-brand__title",
1718
1719
  flex: "",
1719
1720
  align: "center"
1720
1721
  }, {
1721
1722
  default: d(() => [
1722
- o.title ? (u(), C("span", $n, [
1723
+ o.title ? (u(), C("span", En, [
1723
1724
  x(l.$slots, "title", {}, () => [
1724
- R(O(o.title), 1)
1725
+ R(A(o.title), 1)
1725
1726
  ])
1726
1727
  ])) : v("", !0)
1727
1728
  ]),
@@ -1731,7 +1732,7 @@ const Sn = /* @__PURE__ */ H("div", { class: "x-mask-sidebar__helper" }, null, -
1731
1732
  _: 3
1732
1733
  }, 8, ["class"]));
1733
1734
  }
1734
- }), Ee = "__favorites__", Ie = "__search__", En = /* @__PURE__ */ P({
1735
+ }), Me = "__favorites__", Ie = "__search__", In = /* @__PURE__ */ V({
1735
1736
  __name: "Menu",
1736
1737
  props: {
1737
1738
  collapse: { type: Boolean, default: !1 },
@@ -1746,12 +1747,12 @@ const Sn = /* @__PURE__ */ H("div", { class: "x-mask-sidebar__helper" }, null, -
1746
1747
  setup(a, { emit: o }) {
1747
1748
  const e = a, t = y(() => e.menus || []), l = o, s = y(() => String(e.active?.id)), c = y(() => [
1748
1749
  {
1749
- id: Ee,
1750
+ id: Me,
1750
1751
  title: "收藏",
1751
1752
  icon: zt,
1752
1753
  children: e.favorites?.length ? e.favorites : [
1753
1754
  {
1754
- id: Ee + "empty",
1755
+ id: Me + "empty",
1755
1756
  disabled: !0,
1756
1757
  title: "暂无收藏菜单"
1757
1758
  }
@@ -1777,7 +1778,7 @@ const Sn = /* @__PURE__ */ H("div", { class: "x-mask-sidebar__helper" }, null, -
1777
1778
  l("select", p);
1778
1779
  };
1779
1780
  return (p, f) => (u(), C(Q, null, [
1780
- G(_(n(E), {
1781
+ G(_(n(I), {
1781
1782
  class: "x-mask-menu",
1782
1783
  grow: "",
1783
1784
  flex: !1,
@@ -1823,7 +1824,7 @@ const Sn = /* @__PURE__ */ H("div", { class: "x-mask-sidebar__helper" }, null, -
1823
1824
  }, 512), [
1824
1825
  [ne, !e.favorite && !e.keyword]
1825
1826
  ]),
1826
- G(_(n(E), {
1827
+ G(_(n(I), {
1827
1828
  class: "x-mask-menu",
1828
1829
  grow: "",
1829
1830
  flex: !1,
@@ -1843,7 +1844,7 @@ const Sn = /* @__PURE__ */ H("div", { class: "x-mask-sidebar__helper" }, null, -
1843
1844
  collapse: !0,
1844
1845
  "collapse-transition": !1,
1845
1846
  "default-active": s.value,
1846
- "default-openeds": [Ee],
1847
+ "default-openeds": [Me],
1847
1848
  onSelect: r
1848
1849
  }, null, 8, ["data", "default-icon", "default-active", "default-openeds"]), [
1849
1850
  [ne, e.collapse]
@@ -1861,7 +1862,7 @@ const Sn = /* @__PURE__ */ H("div", { class: "x-mask-sidebar__helper" }, null, -
1861
1862
  collapse: !1,
1862
1863
  "collapse-transition": !1,
1863
1864
  "default-active": s.value,
1864
- "default-openeds": [Ee],
1865
+ "default-openeds": [Me],
1865
1866
  onSelect: r
1866
1867
  }, null, 8, ["data", "default-icon", "default-active", "default-openeds"]), [
1867
1868
  [ne, !e.collapse]
@@ -1871,7 +1872,7 @@ const Sn = /* @__PURE__ */ H("div", { class: "x-mask-sidebar__helper" }, null, -
1871
1872
  }, 512), [
1872
1873
  [ne, e.favorite && !e.keyword]
1873
1874
  ]),
1874
- e.keyword ? G((u(), g(n(E), {
1875
+ e.keyword ? G((u(), g(n(I), {
1875
1876
  key: 0,
1876
1877
  class: "x-mask-menu",
1877
1878
  grow: "",
@@ -1922,13 +1923,13 @@ const Sn = /* @__PURE__ */ H("div", { class: "x-mask-sidebar__helper" }, null, -
1922
1923
  ]) : v("", !0)
1923
1924
  ], 64));
1924
1925
  }
1925
- }), In = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAQd0lEQVR4nO2dCXRVxRnHf/clIPsekBgIS1hFdqVoZbGLFNTWWgQ3bLVurRYJcTuntbW22qooKKWl2toWquygIFa01doqmBBWWcomIkhACLIKyXvcnu/eefiSNzd57y4vAfI/553wuPfNzJ3/nW9m/t83M4Yx6iTVGOlAC6AD0Bs4F2gGtFT/lmtNgLpABDgMFAN7gCJgH3AQ2ACsAz5V91RbpFfDguUAg4EewBCgLdAQqJXAb5sD7RyuHVGfpcBy4AOgADjkc/k9obq0kP7AN4CrgK7qrQ8aJrALeAt4Q/3dV7XVULWEtAauBq5ThNSpqoIo7AReBWYA/6mqQlQFId2AW4HRwHmpzjwBSMv5N/BHYAHwRSozTyUhQsS9iohGqcrUI1YDE4GXgROpyDAVhMiIKBe4I0V9QxCQgcCvgdeCzigUcPo/BN4HHjiNyRAMBBYBs4BOQWYUFCFdgI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jopD79Vb9TW20YWdlChOPK5JSoRflr1NLjfDVfcr8LUoDwed8c3yCzYFmUIB9BM3U6prQi+UjrkY9s4CnXZGdu0dWkD5CwJZFwxO0sw20JLJCFdPIJfKmFJwD/B4g2wB0X86iqAAAAAElFTkSuQmCC", Pn = 140, Vn = {
1926
1927
  /**
1927
1928
  * 系统logo
1928
1929
  */
1929
1930
  logo: {
1930
1931
  type: String,
1931
- default: In
1932
+ default: Bn
1932
1933
  },
1933
1934
  /**
1934
1935
  * 系统标题
@@ -2005,7 +2006,7 @@ const Sn = /* @__PURE__ */ H("div", { class: "x-mask-sidebar__helper" }, null, -
2005
2006
  removeFavorite: {
2006
2007
  type: Function
2007
2008
  }
2008
- }, Vt = Symbol(), At = Symbol(), Vn = { class: "x-mask-tabs__trigger" }, An = { key: 1 }, Dn = ["onDragstart", "onDragend"], Rn = { key: 1 }, On = /* @__PURE__ */ P({
2009
+ }, Vt = Symbol(), At = Symbol(), An = { class: "x-mask-tabs__trigger" }, Dn = { key: 1 }, Rn = ["onDragstart", "onDragend"], On = { key: 1 }, Fn = /* @__PURE__ */ V({
2009
2010
  __name: "Tabs",
2010
2011
  props: {
2011
2012
  tabs: {},
@@ -2018,7 +2019,7 @@ const Sn = /* @__PURE__ */ H("div", { class: "x-mask-sidebar__helper" }, null, -
2018
2019
  setup(a, { emit: o }) {
2019
2020
  const e = a, t = o, l = (f) => {
2020
2021
  const m = !!e.favorites.find(
2021
- (h) => h === f.menu || h.id === f.menu?.id
2022
+ (b) => b === f.menu || b.id === f.menu?.id
2022
2023
  );
2023
2024
  return [
2024
2025
  {
@@ -2037,7 +2038,7 @@ const Sn = /* @__PURE__ */ H("div", { class: "x-mask-sidebar__helper" }, null, -
2037
2038
  },
2038
2039
  "|",
2039
2040
  {
2040
- icon: Mo,
2041
+ icon: Eo,
2041
2042
  label: "弹窗",
2042
2043
  name: "dialog",
2043
2044
  value: f
@@ -2049,10 +2050,10 @@ const Sn = /* @__PURE__ */ H("div", { class: "x-mask-sidebar__helper" }, null, -
2049
2050
  t("click", e.home);
2050
2051
  return;
2051
2052
  }
2052
- const h = e.tabs.find((b) => b.id === m);
2053
- h && t("click", h);
2053
+ const b = e.tabs.find((h) => h.id === m);
2054
+ b && t("click", b);
2054
2055
  }, c = (f) => {
2055
- const m = e.tabs.find((h) => h.id === f);
2056
+ const m = e.tabs.find((b) => b.id === f);
2056
2057
  m && t("remove", m);
2057
2058
  }, i = (f) => {
2058
2059
  switch (f.name) {
@@ -2071,7 +2072,7 @@ const Sn = /* @__PURE__ */ H("div", { class: "x-mask-sidebar__helper" }, null, -
2071
2072
  }, p = (f, m) => {
2072
2073
  m.target && m.target.classList.remove("is-dagging");
2073
2074
  };
2074
- return (f, m) => (u(), g(n(E), {
2075
+ return (f, m) => (u(), g(n(I), {
2075
2076
  ref: "tabsRef",
2076
2077
  class: "x-mask-tabs",
2077
2078
  height: "100%",
@@ -2093,16 +2094,16 @@ const Sn = /* @__PURE__ */ H("div", { class: "x-mask-sidebar__helper" }, null, -
2093
2094
  name: e.home.id
2094
2095
  }, {
2095
2096
  label: d(() => [
2096
- H("div", Vn, [
2097
+ X("div", An, [
2097
2098
  e.home.icon ? (u(), g(J(n(_e)(e.home.icon)), { key: 0 })) : v("", !0),
2098
- e.home.title ? (u(), C("span", An, O(e.home.title), 1)) : v("", !0)
2099
+ e.home.title ? (u(), C("span", Dn, A(e.home.title), 1)) : v("", !0)
2099
2100
  ])
2100
2101
  ]),
2101
2102
  _: 1
2102
2103
  }, 8, ["name"])) : v("", !0),
2103
- (u(!0), C(Q, null, Y(e.tabs, (h) => (u(), g(n(Le), {
2104
- key: h.id,
2105
- name: h.id,
2104
+ (u(!0), C(Q, null, Y(e.tabs, (b) => (u(), g(n(Le), {
2105
+ key: b.id,
2106
+ name: b.id,
2106
2107
  lazy: "",
2107
2108
  closable: ""
2108
2109
  }, {
@@ -2112,22 +2113,22 @@ const Sn = /* @__PURE__ */ H("div", { class: "x-mask-sidebar__helper" }, null, -
2112
2113
  placement: "bottom",
2113
2114
  trigger: "hover",
2114
2115
  width: "200px",
2115
- disabled: h.id !== e.value
2116
+ disabled: b.id !== e.value
2116
2117
  }, {
2117
2118
  reference: d(() => [
2118
- H("div", {
2119
+ X("div", {
2119
2120
  class: "x-mask-tabs__trigger",
2120
2121
  draggable: "true",
2121
- onDragstart: (b) => r(h, b),
2122
- onDragend: (b) => p(h, b)
2122
+ onDragstart: (h) => r(b, h),
2123
+ onDragend: (h) => p(b, h)
2123
2124
  }, [
2124
- h.icon ? (u(), g(J(n(_e)(h.icon)), { key: 0 })) : v("", !0),
2125
- h.title ? (u(), C("span", Rn, O(h.title), 1)) : v("", !0)
2126
- ], 40, Dn)
2125
+ b.icon ? (u(), g(J(n(_e)(b.icon)), { key: 0 })) : v("", !0),
2126
+ b.title ? (u(), C("span", On, A(b.title), 1)) : v("", !0)
2127
+ ], 40, Rn)
2127
2128
  ]),
2128
2129
  default: d(() => [
2129
2130
  _(n(Oe), {
2130
- items: l(h),
2131
+ items: l(b),
2131
2132
  mode: "text",
2132
2133
  size: "small",
2133
2134
  type: "info",
@@ -2146,20 +2147,20 @@ const Sn = /* @__PURE__ */ H("div", { class: "x-mask-sidebar__helper" }, null, -
2146
2147
  _: 1
2147
2148
  }, 512));
2148
2149
  }
2149
- }), Fn = /* @__PURE__ */ P({
2150
+ }), jn = /* @__PURE__ */ V({
2150
2151
  __name: "ThemeSwitch",
2151
2152
  setup(a) {
2152
- const o = Oo();
2153
+ const o = Fo();
2153
2154
  return (e, t) => (u(), g(n(Ze), {
2154
2155
  class: "x-mask-theme-switch",
2155
2156
  modelValue: n(o),
2156
2157
  "onUpdate:modelValue": t[0] || (t[0] = (l) => Be(o) ? o.value = l : null),
2157
2158
  size: "default",
2158
- "active-action-icon": n(Eo),
2159
+ "active-action-icon": n(Mo),
2159
2160
  "inactive-action-icon": n(Io)
2160
2161
  }, null, 8, ["modelValue", "active-action-icon", "inactive-action-icon"]));
2161
2162
  }
2162
- }), jn = { class: "x-mask-toolbar__menu-item" }, Nn = /* @__PURE__ */ P({
2163
+ }), Nn = { class: "x-mask-toolbar__menu-item" }, Xn = /* @__PURE__ */ V({
2163
2164
  __name: "Toolbar",
2164
2165
  props: {
2165
2166
  tabs: { default: () => [] },
@@ -2211,7 +2212,7 @@ const Sn = /* @__PURE__ */ H("div", { class: "x-mask-sidebar__helper" }, null, -
2211
2212
  }, r = (p, f) => {
2212
2213
  t("actionCommand", p, f);
2213
2214
  };
2214
- return (p, f) => (u(), g(n(E), {
2215
+ return (p, f) => (u(), g(n(I), {
2215
2216
  class: "x-mask-toolbar",
2216
2217
  align: "center"
2217
2218
  }, {
@@ -2226,11 +2227,11 @@ const Sn = /* @__PURE__ */ H("div", { class: "x-mask-sidebar__helper" }, null, -
2226
2227
  onCommand: c
2227
2228
  }, {
2228
2229
  item: d(({ item: m }) => [
2229
- H("span", jn, [
2230
- R(O(m.label) + " ", 1),
2230
+ X("span", Nn, [
2231
+ R(A(m.label) + " ", 1),
2231
2232
  ["other", "all"].includes(m.command) ? v("", !0) : (u(), g(n(re), {
2232
2233
  key: 0,
2233
- onClick: bt((h) => s(m), ["stop"]),
2234
+ onClick: ht((b) => s(m), ["stop"]),
2234
2235
  icon: n(St)
2235
2236
  }, null, 8, ["onClick", "icon"]))
2236
2237
  ])
@@ -2252,7 +2253,7 @@ const Sn = /* @__PURE__ */ H("div", { class: "x-mask-sidebar__helper" }, null, -
2252
2253
  key: 1,
2253
2254
  direction: "vertical"
2254
2255
  })) : v("", !0),
2255
- e.theme ? (u(), g(Fn, { key: 2 })) : v("", !0),
2256
+ e.theme ? (u(), g(jn, { key: 2 })) : v("", !0),
2256
2257
  e.theme ? (u(), g(n(se), {
2257
2258
  key: 3,
2258
2259
  direction: "vertical"
@@ -2262,7 +2263,7 @@ const Sn = /* @__PURE__ */ H("div", { class: "x-mask-sidebar__helper" }, null, -
2262
2263
  _: 3
2263
2264
  }));
2264
2265
  }
2265
- }), Xn = /* @__PURE__ */ P({
2266
+ }), Un = /* @__PURE__ */ V({
2266
2267
  __name: "Avatar",
2267
2268
  props: {
2268
2269
  avatar: {}
@@ -2289,7 +2290,7 @@ const Sn = /* @__PURE__ */ H("div", { class: "x-mask-sidebar__helper" }, null, -
2289
2290
  _: 3
2290
2291
  }, 8, ["disabled"]));
2291
2292
  }
2292
- }), ft = /* @__PURE__ */ P({
2293
+ }), ft = /* @__PURE__ */ V({
2293
2294
  __name: "Content",
2294
2295
  props: {
2295
2296
  createView: { type: Function },
@@ -2297,7 +2298,7 @@ const Sn = /* @__PURE__ */ H("div", { class: "x-mask-sidebar__helper" }, null, -
2297
2298
  },
2298
2299
  setup(a) {
2299
2300
  const o = a;
2300
- return (e, t) => (u(), g(n(E), {
2301
+ return (e, t) => (u(), g(n(I), {
2301
2302
  class: "x-mask__content",
2302
2303
  flex: !1,
2303
2304
  grow: "",
@@ -2305,7 +2306,7 @@ const Sn = /* @__PURE__ */ H("div", { class: "x-mask-sidebar__helper" }, null, -
2305
2306
  }, {
2306
2307
  default: d(() => [
2307
2308
  x(e.$slots, "default"),
2308
- _(n(Lo), null, {
2309
+ _(n(Wo), null, {
2309
2310
  default: d(({ Component: l, route: s }) => [
2310
2311
  (u(), g(Kt, {
2311
2312
  exclude: o.exclude
@@ -2322,15 +2323,15 @@ const Sn = /* @__PURE__ */ H("div", { class: "x-mask-sidebar__helper" }, null, -
2322
2323
  }));
2323
2324
  }
2324
2325
  });
2325
- function Un() {
2326
- const a = D(!1), o = D(""), e = D(!1);
2326
+ function Hn() {
2327
+ const a = O(!1), o = O(""), e = O(!1);
2327
2328
  return {
2328
2329
  collapsed: a,
2329
2330
  keyword: o,
2330
2331
  favorite: e
2331
2332
  };
2332
2333
  }
2333
- function Hn(a) {
2334
+ function Kn(a) {
2334
2335
  const o = Tt();
2335
2336
  return y(() => {
2336
2337
  const e = a.home;
@@ -2346,34 +2347,34 @@ function Dt(a, o) {
2346
2347
  t = o ? o(t) : t, t.children ? e = e.concat(Dt(t.children, o)) : e.push(t);
2347
2348
  }), e;
2348
2349
  }
2349
- function Kn(a, o) {
2350
- const e = qe(), t = Ve([]), l = Ve([]), s = y(() => Dt(t.value, a.menuAdapter)), c = y(() => No(s.value, "id")), i = D(null), r = (w) => {
2350
+ function Ln(a, o) {
2351
+ const e = qe(), t = Ve([]), l = Ve([]), s = y(() => Dt(t.value, a.menuAdapter)), c = y(() => Xo(s.value, "id")), i = O(null), r = (w) => {
2351
2352
  const M = typeof w == "object" ? w.id : w, z = c.value.get(M);
2352
2353
  if (!z) {
2353
2354
  console.warn("找不到菜单", w);
2354
2355
  return;
2355
2356
  }
2356
- const { type: I = "route", url: V, title: S, icon: B } = z;
2357
- if (!V) {
2357
+ const { type: E = "route", url: B, title: S, icon: P } = z;
2358
+ if (!B) {
2358
2359
  i.value = z, o("select", z);
2359
2360
  return;
2360
2361
  }
2361
- if (I === "route") {
2362
- Xo(V) || V.startsWith("//") ? window.open(V) : (i.value = z, e.push(V).catch((T) => T));
2362
+ if (E === "route") {
2363
+ Uo(B) || B.startsWith("//") ? window.open(B) : (i.value = z, e.push(B).catch((T) => T));
2363
2364
  return;
2364
2365
  }
2365
- if (I === "window") {
2366
- window.open(V);
2366
+ if (E === "window") {
2367
+ window.open(B);
2367
2368
  return;
2368
2369
  }
2369
- I === "dialog" && ot({
2370
+ E === "dialog" && ot({
2370
2371
  resizable: !0,
2371
2372
  bodyPadding: !1,
2372
2373
  width: "80%",
2373
2374
  height: "80%",
2374
2375
  title: S,
2375
- icon: B,
2376
- src: V
2376
+ icon: P,
2377
+ src: B
2377
2378
  });
2378
2379
  }, p = async () => {
2379
2380
  t.value = typeof a.menus == "function" ? await a.menus() || [] : a.menus ?? [], l.value = typeof a.favorites == "function" ? await a.favorites() || [] : a.favorites ?? [];
@@ -2381,8 +2382,8 @@ function Kn(a, o) {
2381
2382
  l.value = [w, ...l.value], a.addFavorite && a.addFavorite(w);
2382
2383
  }, m = (w) => {
2383
2384
  l.value = l.value.filter((M) => M.id !== w.id), a.removeFavorite && a.removeFavorite(w);
2384
- }, h = (w) => !!l.value.find((M) => M === w || M.id === w.id), b = (w) => {
2385
- h(w) ? m(w) : f(w);
2385
+ }, b = (w) => !!l.value.find((M) => M === w || M.id === w.id), h = (w) => {
2386
+ b(w) ? m(w) : f(w);
2386
2387
  };
2387
2388
  return Qe(p), {
2388
2389
  menus: t,
@@ -2390,114 +2391,114 @@ function Kn(a, o) {
2390
2391
  flatMenus: s,
2391
2392
  active: i,
2392
2393
  select: r,
2393
- toggleFavorite: b
2394
+ toggleFavorite: h
2394
2395
  };
2395
2396
  }
2396
- function Ln(a, o, e, t, l) {
2397
- const s = Mt(), c = qe(), i = {}, r = D([]), p = D(), { width: f } = Ct(p), m = y(() => Math.floor(f.value / Bn)), h = y(
2397
+ function Wn(a, o, e, t, l) {
2398
+ const s = Et(), c = qe(), i = {}, r = O([]), p = O(), { width: f } = Ct(p), m = y(() => Math.floor(f.value / Pn)), b = y(
2398
2399
  () => r.value.slice(0, m.value).filter(($) => !$.dialog)
2399
- ), b = y(() => r.value.slice(m.value)), w = ($) => e.value.find((A) => A.url === $), M = ($) => s.fullPath === $.url, z = ($) => l.value.id === $ ? l.value : r.value.find((A) => A.id === $), I = D(""), V = y(() => z(I.value)), S = ($) => {
2400
- c.push($.url).catch((A) => A);
2401
- }, B = ($) => {
2402
- I.value = $.id, s.fullPath !== $.url && S($);
2400
+ ), h = y(() => r.value.slice(m.value)), w = ($) => e.value.find((D) => D.url === $), M = ($) => s.fullPath === $.url, z = ($) => l.value.id === $ ? l.value : r.value.find((D) => D.id === $), E = O(""), B = y(() => z(E.value)), S = ($) => {
2401
+ c.push($.url).catch((D) => D);
2402
+ }, P = ($) => {
2403
+ E.value = $.id, s.fullPath !== $.url && S($);
2403
2404
  }, T = () => {
2404
2405
  S(l.value);
2405
2406
  }, j = ($) => {
2406
- const A = r.value.find((N) => N.url === $.url || N.id === $.id);
2407
- A ? B(A) : (r.value.unshift($), B($));
2407
+ const D = r.value.find((N) => N.url === $.url || N.id === $.id);
2408
+ D ? P(D) : (r.value.unshift($), P($));
2408
2409
  }, k = async ($) => {
2409
- const { url: A = s.fullPath, icon: N, title: Te = "新建标签页" } = $ || {}, $e = i[A], Fe = Tt(), je = $t(A);
2410
+ const { url: D = s.fullPath, icon: N, title: Te = "新建标签页" } = $ || {}, $e = i[D], Fe = Tt(), je = $t(D);
2410
2411
  return {
2411
2412
  id: Fe,
2412
2413
  name: je,
2413
- url: A,
2414
+ url: D,
2414
2415
  icon: N,
2415
2416
  title: Te,
2416
2417
  closable: !0,
2417
2418
  menu: $,
2418
2419
  ...$e ? await $e() : {}
2419
2420
  };
2420
- }, U = async ($) => {
2421
+ }, H = async ($) => {
2421
2422
  if (await Ne.confirm("是否关闭页签", "提示", {
2422
2423
  type: "warning"
2423
2424
  }).catch(() => !1)) {
2424
- if (r.value = r.value.filter((N) => N.id !== $.id), I.value === $.id) {
2425
+ if (r.value = r.value.filter((N) => N.id !== $.id), E.value === $.id) {
2425
2426
  const N = r.value[0];
2426
2427
  S(N || l.value);
2427
2428
  }
2428
2429
  return $;
2429
2430
  }
2430
2431
  }, K = ($) => {
2431
- const A = r.value.findIndex((N) => N.id === $.id);
2432
- if (A >= 0) {
2433
- const N = r.value[A];
2434
- r.value.splice(A, 1, Object.assign(N, $));
2432
+ const D = r.value.findIndex((N) => N.id === $.id);
2433
+ if (D >= 0) {
2434
+ const N = r.value[D];
2435
+ r.value.splice(D, 1, Object.assign(N, $));
2435
2436
  }
2436
2437
  }, ce = async () => {
2437
2438
  if (!await Ne.confirm("是否关闭全部页签", "提示", {
2438
2439
  type: "warning"
2439
2440
  }).catch(() => !1))
2440
2441
  return;
2441
- const A = r.value;
2442
- return r.value = [], B(l.value), A;
2442
+ const D = r.value;
2443
+ return r.value = [], P(l.value), D;
2443
2444
  }, Z = async () => {
2444
2445
  if (!await Ne.confirm("是否关闭其他页签", "提示", {
2445
2446
  type: "warning"
2446
2447
  }).catch(() => !1))
2447
2448
  return;
2448
- const A = r.value.filter((N) => N.id !== I.value);
2449
- return r.value = r.value.filter((N) => N.id === I.value), A;
2449
+ const D = r.value.filter((N) => N.id !== E.value);
2450
+ return r.value = r.value.filter((N) => N.id === E.value), D;
2450
2451
  }, ee = ($) => {
2451
- const A = r.value.filter((N) => N.id !== $.id);
2452
- r.value = [$, ...A], B($);
2452
+ const D = r.value.filter((N) => N.id !== $.id);
2453
+ r.value = [$, ...D], P($);
2453
2454
  }, ue = async () => {
2454
2455
  await ye();
2455
- const $ = l.value.url === s.fullPath, A = w(s.fullPath);
2456
+ const $ = l.value.url === s.fullPath, D = w(s.fullPath);
2456
2457
  if ($)
2457
- I.value = l.value.id;
2458
+ E.value = l.value.id;
2458
2459
  else {
2459
- const N = await k(A);
2460
+ const N = await k(D);
2460
2461
  j(N);
2461
2462
  }
2462
- await ye(), t.value = A || null;
2463
+ await ye(), t.value = D || null;
2463
2464
  };
2464
2465
  return L(e, ue), L(s, ue, { immediate: !0 }), ze(Vt, i), {
2465
2466
  tabRef: p,
2466
2467
  tabs: r,
2467
- showTabs: h,
2468
- currentTab: V,
2468
+ showTabs: b,
2469
+ currentTab: B,
2469
2470
  changeTab: S,
2470
- removeTab: U,
2471
+ removeTab: H,
2471
2472
  updateTab: K,
2472
2473
  addTab: j,
2473
2474
  home: l,
2474
- tabValue: I,
2475
+ tabValue: E,
2475
2476
  isCurrentTab: M,
2476
2477
  activeHome: T,
2477
- activeTab: B,
2478
- dropdownTabs: b,
2478
+ activeTab: P,
2479
+ dropdownTabs: h,
2479
2480
  removeAllTabs: ce,
2480
2481
  removeOtherTabs: Z,
2481
2482
  moveToShow: ee
2482
2483
  };
2483
2484
  }
2484
- function Wn(a) {
2485
- const o = /* @__PURE__ */ new Map(), e = D([]), t = Re({}), l = pe(), s = {}, { updateTab: c, isCurrentTab: i, activeHome: r, tabs: p } = a, f = (S, B) => {
2486
- const T = B.fullPath;
2485
+ function Jn(a) {
2486
+ const o = /* @__PURE__ */ new Map(), e = O([]), t = Re({}), l = pe(), s = {}, { updateTab: c, isCurrentTab: i, activeHome: r, tabs: p } = a, f = (S, P) => {
2487
+ const T = P.fullPath;
2487
2488
  if (o.has(T))
2488
2489
  return o.get(T);
2489
2490
  {
2490
2491
  const j = $t(T), k = {
2491
2492
  name: j,
2492
2493
  setup() {
2493
- const U = y(() => t[T] || document.body), K = y(() => !t[T]), ce = y(() => !e.value.includes(j));
2494
+ const H = y(() => t[T] || document.body), K = y(() => !t[T]), ce = y(() => !e.value.includes(j));
2494
2495
  return ze(
2495
- Wo,
2496
- ge({ ...B })
2496
+ Jo,
2497
+ ge({ ...P })
2497
2498
  ), () => ce.value ? ae(
2498
2499
  vt,
2499
2500
  {
2500
- to: U.value,
2501
+ to: H.value,
2501
2502
  disabled: K.value
2502
2503
  },
2503
2504
  [ae(S)]
@@ -2508,13 +2509,13 @@ function Wn(a) {
2508
2509
  }
2509
2510
  }, m = (S) => {
2510
2511
  S.dialog = void 0, delete t[S.url];
2511
- const B = s[S.id];
2512
- B && (B.destroy(), delete s[S.id], c(S));
2513
- }, h = (S = []) => {
2514
- S.forEach((B) => {
2515
- m(B);
2512
+ const P = s[S.id];
2513
+ P && (P.destroy(), delete s[S.id], c(S));
2514
+ }, b = (S = []) => {
2515
+ S.forEach((P) => {
2516
+ m(P);
2516
2517
  });
2517
- }, b = async (S) => {
2518
+ }, h = async (S) => {
2518
2519
  S.dialog = {
2519
2520
  ...S.dialog,
2520
2521
  onMinimized: () => {
@@ -2524,7 +2525,7 @@ function Wn(a) {
2524
2525
  m(S), p.value = p.value.filter((T) => T.id !== S.id);
2525
2526
  }
2526
2527
  }, c(S);
2527
- const B = ot(
2528
+ const P = ot(
2528
2529
  {
2529
2530
  title: S.title,
2530
2531
  icon: S.icon,
@@ -2540,80 +2541,80 @@ function Wn(a) {
2540
2541
  },
2541
2542
  l?.appContext
2542
2543
  );
2543
- return await ye(), i(S) && r(), s[S.id] = B, B;
2544
+ return await ye(), i(S) && r(), s[S.id] = P, P;
2544
2545
  }, w = async (S) => {
2545
2546
  e.value = [S.name], await ye(), e.value = [];
2546
2547
  }, M = async (S) => {
2547
- e.value = S.map((B) => B.name), await ye(), e.value = [];
2548
- }, z = (S) => (S.preventDefault(), !1), I = (S) => {
2548
+ e.value = S.map((P) => P.name), await ye(), e.value = [];
2549
+ }, z = (S) => (S.preventDefault(), !1), E = (S) => {
2549
2550
  if (S.dataTransfer) {
2550
- const B = S.dataTransfer.getData("tab"), T = p.value.find((j) => j.id === B);
2551
+ const P = S.dataTransfer.getData("tab"), T = p.value.find((j) => j.id === P);
2551
2552
  if (T) {
2552
2553
  const { clientX: j, clientY: k } = S;
2553
2554
  T.dialog = {
2554
2555
  left: j,
2555
2556
  top: k
2556
- }, b(T);
2557
+ }, h(T);
2557
2558
  }
2558
2559
  }
2559
- }, V = (S) => !!t[S];
2560
- return De(document, "dragover", z), De(document, "drop", I), {
2560
+ }, B = (S) => !!t[S];
2561
+ return De(document, "dragover", z), De(document, "drop", E), {
2561
2562
  createView: f,
2562
- openDialog: b,
2563
+ openDialog: h,
2563
2564
  refresh: w,
2564
2565
  exclude: e,
2565
2566
  cleanCache: M,
2566
- hasDialog: V,
2567
+ hasDialog: B,
2567
2568
  closeDialog: m,
2568
- closeDialogs: h
2569
+ closeDialogs: b
2569
2570
  };
2570
2571
  }
2571
- const Jn = /* @__PURE__ */ P({
2572
+ const Qn = /* @__PURE__ */ V({
2572
2573
  name: "XMask",
2573
2574
  __name: "Mask",
2574
- props: Pn,
2575
+ props: Vn,
2575
2576
  emits: ["select", "actionClick", "actionCommand"],
2576
2577
  setup(a, { emit: o }) {
2577
- const e = a, t = o, l = Hn(e), { collapsed: s, keyword: c, favorite: i } = Un(), { menus: r, favorites: p, flatMenus: f, active: m, select: h, toggleFavorite: b } = Kn(e, t), {
2578
+ const e = a, t = o, l = Kn(e), { collapsed: s, keyword: c, favorite: i } = Hn(), { menus: r, favorites: p, flatMenus: f, active: m, select: b, toggleFavorite: h } = Ln(e, t), {
2578
2579
  tabRef: w,
2579
2580
  showTabs: M,
2580
2581
  currentTab: z,
2581
- changeTab: I,
2582
- removeTab: V,
2582
+ changeTab: E,
2583
+ removeTab: B,
2583
2584
  tabs: S,
2584
- updateTab: B,
2585
+ updateTab: P,
2585
2586
  isCurrentTab: T,
2586
2587
  activeHome: j,
2587
2588
  removeAllTabs: k,
2588
- removeOtherTabs: U,
2589
+ removeOtherTabs: H,
2589
2590
  dropdownTabs: K,
2590
2591
  moveToShow: ce
2591
- } = Ln(e, t, f, m, l), { createView: Z, openDialog: ee, refresh: ue, exclude: $, cleanCache: A, closeDialogs: N } = Wn({
2592
+ } = Wn(e, t, f, m, l), { createView: Z, openDialog: ee, refresh: ue, exclude: $, cleanCache: D, closeDialogs: N } = Jn({
2592
2593
  tabs: S,
2593
- updateTab: B,
2594
+ updateTab: P,
2594
2595
  isCurrentTab: T,
2595
2596
  activeHome: j
2596
- }), Te = async (X) => {
2597
- await V(X) && await A([X]);
2597
+ }), Te = async (U) => {
2598
+ await B(U) && await D([U]);
2598
2599
  }, $e = async () => {
2599
- const X = await k();
2600
- X && (N(X), await A(X));
2600
+ const U = await k();
2601
+ U && (N(U), await D(U));
2601
2602
  }, Fe = async () => {
2602
- const X = await U();
2603
- X && (N(X), await A(X));
2604
- }, je = (X) => {
2605
- t("actionClick", X);
2606
- }, Xt = (X, oe) => {
2607
- t("actionCommand", X, oe);
2603
+ const U = await H();
2604
+ U && (N(U), await D(U));
2605
+ }, je = (U) => {
2606
+ t("actionClick", U);
2607
+ }, Xt = (U, oe) => {
2608
+ t("actionCommand", U, oe);
2608
2609
  };
2609
2610
  return ze(At, {
2610
2611
  tabs: S,
2611
2612
  flatMenus: f,
2612
2613
  favorites: p,
2613
- updateTab: B,
2614
+ updateTab: P,
2614
2615
  active: m,
2615
2616
  currentTab: z
2616
- }), (X, oe) => (u(), g(n(E), {
2617
+ }), (U, oe) => (u(), g(n(I), {
2617
2618
  class: W(["x-mask", { "is-disabled": e.disabled }]),
2618
2619
  fit: ""
2619
2620
  }, {
@@ -2624,11 +2625,11 @@ const Jn = /* @__PURE__ */ P({
2624
2625
  exclude: n($)
2625
2626
  }, {
2626
2627
  default: d(() => [
2627
- X.$slots.default ? x(X.$slots, "default", { key: 0 }) : v("", !0)
2628
+ U.$slots.default ? x(U.$slots, "default", { key: 0 }) : v("", !0)
2628
2629
  ]),
2629
2630
  _: 3
2630
2631
  }, 8, ["createView", "exclude"])) : (u(), C(Q, { key: 0 }, [
2631
- _(zn, { collapsed: n(s) }, {
2632
+ _(Cn, { collapsed: n(s) }, {
2632
2633
  brand: d(() => [
2633
2634
  _(Mn, {
2634
2635
  logo: e.logo,
@@ -2638,7 +2639,7 @@ const Jn = /* @__PURE__ */ P({
2638
2639
  }, null, 8, ["logo", "title", "url", "collapsed"])
2639
2640
  ]),
2640
2641
  default: d(() => [
2641
- _(Cn, {
2642
+ _(Tn, {
2642
2643
  collasped: n(s),
2643
2644
  "onUpdate:collasped": oe[0] || (oe[0] = (we) => Be(s) ? s.value = we : null),
2644
2645
  favorite: n(i),
@@ -2646,7 +2647,7 @@ const Jn = /* @__PURE__ */ P({
2646
2647
  keyword: n(c),
2647
2648
  "onUpdate:keyword": oe[2] || (oe[2] = (we) => Be(c) ? c.value = we : null)
2648
2649
  }, null, 8, ["collasped", "favorite", "keyword"]),
2649
- _(En, {
2650
+ _(In, {
2650
2651
  collapse: n(s),
2651
2652
  keyword: n(c),
2652
2653
  favorite: n(i),
@@ -2654,12 +2655,12 @@ const Jn = /* @__PURE__ */ P({
2654
2655
  flatMenus: n(f),
2655
2656
  menus: n(r),
2656
2657
  active: n(m),
2657
- onSelect: n(h)
2658
+ onSelect: n(b)
2658
2659
  }, null, 8, ["collapse", "keyword", "favorite", "favorites", "flatMenus", "menus", "active", "onSelect"])
2659
2660
  ]),
2660
2661
  _: 1
2661
2662
  }, 8, ["collapsed"]),
2662
- _(n(E), {
2663
+ _(n(I), {
2663
2664
  class: "x-mask__main",
2664
2665
  grow: "",
2665
2666
  shrink: "",
@@ -2667,26 +2668,26 @@ const Jn = /* @__PURE__ */ P({
2667
2668
  direction: "column"
2668
2669
  }, {
2669
2670
  default: d(() => [
2670
- _(n(E), {
2671
+ _(n(I), {
2671
2672
  class: "x-mask-topbar",
2672
2673
  justify: "space-between",
2673
2674
  align: "center"
2674
2675
  }, {
2675
2676
  default: d(() => [
2676
- _(On, {
2677
+ _(Fn, {
2677
2678
  ref_key: "tabRef",
2678
2679
  ref: w,
2679
2680
  favorites: n(p),
2680
2681
  tabs: n(M),
2681
2682
  home: n(l),
2682
2683
  value: n(z)?.id,
2683
- onClick: n(I),
2684
- onToggleFavorite: n(b),
2684
+ onClick: n(E),
2685
+ onToggleFavorite: n(h),
2685
2686
  onRemove: Te,
2686
2687
  onDialog: n(ee),
2687
2688
  onRefresh: n(ue)
2688
2689
  }, null, 8, ["favorites", "tabs", "home", "value", "onClick", "onToggleFavorite", "onDialog", "onRefresh"]),
2689
- _(Nn, {
2690
+ _(Xn, {
2690
2691
  tabs: n(K),
2691
2692
  actions: e.actions,
2692
2693
  theme: e.theme,
@@ -2698,13 +2699,13 @@ const Jn = /* @__PURE__ */ P({
2698
2699
  onActionCommand: Xt
2699
2700
  }, {
2700
2701
  default: d(() => [
2701
- _(Xn, {
2702
+ _(Un, {
2702
2703
  avatar: e.avatar
2703
- }, he({ _: 2 }, [
2704
- X.$slots.user ? {
2704
+ }, be({ _: 2 }, [
2705
+ U.$slots.user ? {
2705
2706
  name: "default",
2706
2707
  fn: d(() => [
2707
- x(X.$slots, "user")
2708
+ x(U.$slots, "user")
2708
2709
  ]),
2709
2710
  key: "0"
2710
2711
  } : void 0
@@ -2720,7 +2721,7 @@ const Jn = /* @__PURE__ */ P({
2720
2721
  exclude: n($)
2721
2722
  }, {
2722
2723
  default: d(() => [
2723
- X.$slots.default ? x(X.$slots, "default", { key: 0 }) : v("", !0)
2724
+ U.$slots.default ? x(U.$slots, "default", { key: 0 }) : v("", !0)
2724
2725
  ]),
2725
2726
  _: 3
2726
2727
  }, 8, ["createView", "exclude"])
@@ -2733,8 +2734,8 @@ const Jn = /* @__PURE__ */ P({
2733
2734
  }, 8, ["class"]));
2734
2735
  }
2735
2736
  });
2736
- function Ra(a = {}) {
2737
- const o = Mt(), e = xe(Vt, null), t = xe(At, null);
2737
+ function La(a = {}) {
2738
+ const o = Et(), e = xe(Vt, null), t = xe(At, null);
2738
2739
  if (e) {
2739
2740
  const s = typeof a == "function" ? a : async () => a;
2740
2741
  e[o.fullPath] = s;
@@ -2744,18 +2745,18 @@ function Ra(a = {}) {
2744
2745
  mask: t
2745
2746
  };
2746
2747
  }
2747
- const Qn = /* @__PURE__ */ P({
2748
+ const Zn = /* @__PURE__ */ V({
2748
2749
  __name: "SelectEditor",
2749
2750
  props: {
2750
2751
  options: { default: () => [] }
2751
2752
  },
2752
2753
  setup(a) {
2753
2754
  const o = a;
2754
- return (e, t) => (u(), g(n(to), le(be(e.$attrs)), {
2755
+ return (e, t) => (u(), g(n(to), le(he(e.$attrs)), {
2755
2756
  default: d(() => [
2756
2757
  (u(!0), C(Q, null, Y(o.options, (l, s) => (u(), g(n(oo), F({
2757
2758
  key: `item_${s}_${l.value}`
2758
- }, l), he({ _: 2 }, [
2759
+ }, l), be({ _: 2 }, [
2759
2760
  e.$slots.option ? {
2760
2761
  name: "default",
2761
2762
  fn: d(() => [
@@ -2768,7 +2769,7 @@ const Qn = /* @__PURE__ */ P({
2768
2769
  _: 3
2769
2770
  }, 16));
2770
2771
  }
2771
- }), Zn = /* @__PURE__ */ P({
2772
+ }), Gn = /* @__PURE__ */ V({
2772
2773
  __name: "CheckboxEditor",
2773
2774
  props: {
2774
2775
  options: { default: () => [] },
@@ -2778,14 +2779,14 @@ const Qn = /* @__PURE__ */ P({
2778
2779
  const o = a, e = y(
2779
2780
  () => ke(o.button ? no : ao)
2780
2781
  );
2781
- return (t, l) => (u(), g(n(so), le(be(t.$attrs)), {
2782
+ return (t, l) => (u(), g(n(so), le(he(t.$attrs)), {
2782
2783
  default: d(() => [
2783
2784
  (u(!0), C(Q, null, Y(o.options, (s, c) => (u(), g(J(e.value), {
2784
2785
  key: `item_${c}_${s.value}`,
2785
2786
  label: s.value
2786
2787
  }, {
2787
2788
  default: d(() => [
2788
- R(O(s.label), 1)
2789
+ R(A(s.label), 1)
2789
2790
  ]),
2790
2791
  _: 2
2791
2792
  }, 1032, ["label"]))), 128))
@@ -2793,7 +2794,7 @@ const Qn = /* @__PURE__ */ P({
2793
2794
  _: 1
2794
2795
  }, 16));
2795
2796
  }
2796
- }), Gn = /* @__PURE__ */ P({
2797
+ }), Yn = /* @__PURE__ */ V({
2797
2798
  __name: "RadioEditor",
2798
2799
  props: {
2799
2800
  options: { default: () => [] },
@@ -2803,14 +2804,14 @@ const Qn = /* @__PURE__ */ P({
2803
2804
  const o = a, e = y(
2804
2805
  () => ke(o.button ? lo : io)
2805
2806
  );
2806
- return (t, l) => (u(), g(n(ro), le(be(t.$attrs)), {
2807
+ return (t, l) => (u(), g(n(ro), le(he(t.$attrs)), {
2807
2808
  default: d(() => [
2808
2809
  (u(!0), C(Q, null, Y(o.options, (s, c) => (u(), g(J(e.value), {
2809
2810
  key: `item_${c}_${s.value}`,
2810
2811
  label: s.value
2811
2812
  }, {
2812
2813
  default: d(() => [
2813
- R(O(s.label), 1)
2814
+ R(A(s.label), 1)
2814
2815
  ]),
2815
2816
  _: 2
2816
2817
  }, 1032, ["label"]))), 128))
@@ -2841,18 +2842,18 @@ const Qn = /* @__PURE__ */ P({
2841
2842
  defaultValue: ""
2842
2843
  },
2843
2844
  select: {
2844
- component: Qn,
2845
+ component: Zn,
2845
2846
  props: {
2846
2847
  clearable: !0
2847
2848
  }
2848
2849
  },
2849
2850
  checkbox: {
2850
- component: Zn,
2851
+ component: Gn,
2851
2852
  props: {},
2852
2853
  defaultValue: []
2853
2854
  },
2854
2855
  radio: {
2855
- component: Gn,
2856
+ component: Yn,
2856
2857
  props: {}
2857
2858
  },
2858
2859
  number: {
@@ -2889,7 +2890,7 @@ const Qn = /* @__PURE__ */ P({
2889
2890
  component: mo,
2890
2891
  props: {}
2891
2892
  }
2892
- }, Yn = {
2893
+ }, qn = {
2893
2894
  /**
2894
2895
  * 字段名称
2895
2896
  */
@@ -3003,17 +3004,17 @@ const Qn = /* @__PURE__ */ P({
3003
3004
  type: Boolean
3004
3005
  }
3005
3006
  };
3006
- async function qn(a, o) {
3007
+ async function ea(a, o) {
3007
3008
  const e = a.options;
3008
3009
  return e ? typeof e == "function" ? await e(o) || [] : e : [];
3009
3010
  }
3010
- function ea(a, o, e, t, l) {
3011
- const s = D([]), c = y(() => !t || !l ? {} : Uo(a.cascader).reduce((p, f) => (p[f] = Pe(l, f), p), {}));
3011
+ function ta(a, o, e, t, l) {
3012
+ const s = O([]), c = y(() => !t || !l ? {} : Ho(a.cascader).reduce((p, f) => (p[f] = Pe(l, f), p), {}));
3012
3013
  return L(
3013
3014
  c,
3014
3015
  async (r) => {
3015
3016
  if (e.value) {
3016
- s.value = await qn(a, r);
3017
+ s.value = await ea(a, r);
3017
3018
  const p = t?.exposed?.reset;
3018
3019
  p && a.name && p(a.name);
3019
3020
  }
@@ -3028,12 +3029,12 @@ function ea(a, o, e, t, l) {
3028
3029
  placeholder: p,
3029
3030
  label: f = "...",
3030
3031
  disabled: m,
3031
- readonly: h
3032
- } = a, b = {
3032
+ readonly: b
3033
+ } = a, h = {
3033
3034
  ...a.props,
3034
3035
  placeholder: p || (p === null ? void 0 : `请输入${f}`),
3035
3036
  disabled: m,
3036
- readonly: h,
3037
+ readonly: b,
3037
3038
  options: s.value,
3038
3039
  onFocus: () => o("focus"),
3039
3040
  onBlur: () => o("blur"),
@@ -3042,57 +3043,57 @@ function ea(a, o, e, t, l) {
3042
3043
  component: r,
3043
3044
  props: {}
3044
3045
  };
3045
- return Ho({}, w, {
3046
- props: b
3046
+ return Ko({}, w, {
3047
+ props: h
3047
3048
  });
3048
3049
  })
3049
3050
  };
3050
3051
  }
3051
- const ta = {
3052
+ const oa = {
3052
3053
  key: 1,
3053
3054
  class: "el-form-item__error"
3054
- }, oa = {
3055
+ }, na = {
3055
3056
  key: 0,
3056
3057
  class: "x-field__tip"
3057
- }, Ot = /* @__PURE__ */ P({
3058
+ }, Ot = /* @__PURE__ */ V({
3058
3059
  name: "XField",
3059
3060
  __name: "Field",
3060
- props: Yn,
3061
+ props: qn,
3061
3062
  emits: ["update:modelValue", "change", "focus", "blur"],
3062
3063
  setup(a, { expose: o, emit: e }) {
3063
- const t = a, l = e, s = xe(Ft, null), c = xe(go, null), i = xe(jt, null), r = y(() => !s?.proxy || !i ? t.visible : typeof t.visible == "function" ? t.visible(i) : Ye(t.visible) ? Object.entries(t.visible).every(([U, K]) => Pe(i, U) === K) : t.visible), p = () => s?.proxy && i && t.name ? Pe(i, t.name) ?? t.modelValue : t.modelValue, f = D(p()), { editor: m } = ea(
3064
+ const t = a, l = e, s = xe(Ft, null), c = xe(go, null), i = xe(jt, null), r = y(() => !s?.proxy || !i ? t.visible : typeof t.visible == "function" ? t.visible(i) : Ye(t.visible) ? Object.entries(t.visible).every(([H, K]) => Pe(i, H) === K) : t.visible), p = () => s?.proxy && i && t.name ? Pe(i, t.name) ?? t.modelValue : t.modelValue, f = O(p()), { editor: m } = ta(
3064
3065
  t,
3065
3066
  l,
3066
3067
  r,
3067
3068
  s,
3068
3069
  i
3069
- ), h = D(), b = D(), w = y(
3070
+ ), b = O(), h = O(), w = y(
3070
3071
  () => t.size || c?.size || "default"
3071
3072
  ), M = y(() => Object.assign(
3072
3073
  {},
3073
3074
  s?.props.tooltipMessage || {},
3074
3075
  typeof t.tooltipMessage == "boolean" ? {} : t.tooltipMessage
3075
- )), z = (k = "") => t.error ? t.error : k.includes("is required") ? `${t.label || t.name}是必填项!` : k, I = y(() => {
3076
+ )), z = (k = "") => t.error ? t.error : k.includes("is required") ? `${t.label || t.name}是必填项!` : k, E = y(() => {
3076
3077
  const k = s?.props.tooltipMessage ?? t.tooltipMessage;
3077
3078
  return {
3078
3079
  [`is-tooltip-${t.tooltipPosition}`]: !!k && !!t.tooltipPosition
3079
3080
  };
3080
- }), V = y(() => {
3081
+ }), B = y(() => {
3081
3082
  const k = s?.proxy;
3082
3083
  return {
3083
3084
  width: t.width ? q(t.width) : k && k.inline && k.inlineColumns ? `${100 / k.inlineColumns}%` : null
3084
3085
  };
3085
3086
  }), S = y(() => ({
3086
3087
  right: typeof t.tooltipPosition == "number" ? `${t.tooltipPosition}px` : void 0
3087
- })), B = y(() => ({
3088
+ })), P = y(() => ({
3088
3089
  ...m.value.props,
3089
3090
  modelValue: f.value,
3090
3091
  "onUpdate:modelValue": (k) => {
3091
3092
  f.value = k;
3092
3093
  }
3093
3094
  }));
3094
- return L(f, (k, U) => {
3095
- r.value && !Ge(k, U) && (l("update:modelValue", k), s?.proxy && i && t.name && Ue(i, t.name, k));
3095
+ return L(f, (k, H) => {
3096
+ r.value && !Ge(k, H) && (l("update:modelValue", k), s?.proxy && i && t.name && Ue(i, t.name, k));
3096
3097
  }), L(
3097
3098
  () => !s?.proxy || !t.name || !i ? t.modelValue : Pe(i, t.name) ?? t.modelValue,
3098
3099
  (k) => {
@@ -3111,24 +3112,24 @@ const ta = {
3111
3112
  }
3112
3113
  ), o({
3113
3114
  fieldValue: f,
3114
- itemRef: h,
3115
- editorRef: b,
3115
+ itemRef: b,
3116
+ editorRef: h,
3116
3117
  focus: () => {
3117
- b.value?.focus && b.value.focus();
3118
+ h.value?.focus && h.value.focus();
3118
3119
  },
3119
3120
  blur: () => {
3120
- b.value?.foucs && b.value.blur();
3121
+ h.value?.foucs && h.value.blur();
3121
3122
  }
3122
- }), (k, U) => r.value ? (u(), g(n(yo), F({
3123
+ }), (k, H) => r.value ? (u(), g(n(yo), F({
3123
3124
  key: 0,
3124
- class: ["x-field", I.value],
3125
+ class: ["x-field", E.value],
3125
3126
  ref_key: "itemRef",
3126
- ref: h,
3127
+ ref: b,
3127
3128
  prop: t.name,
3128
3129
  label: k.label,
3129
3130
  size: w.value,
3130
- style: V.value
3131
- }, k.$attrs), he({
3131
+ style: B.value
3132
+ }, k.$attrs), be({
3132
3133
  error: d(({ error: K }) => [
3133
3134
  x(k.$slots, "error", { error: K }, () => [
3134
3135
  n(s)?.props.tooltipMessage ?? t.tooltipMessage ? (u(), C("div", {
@@ -3136,7 +3137,7 @@ const ta = {
3136
3137
  class: "x-field__info",
3137
3138
  style: fe(S.value)
3138
3139
  }, [
3139
- _(n(ht), F({
3140
+ _(n(bt), F({
3140
3141
  content: z(K)
3141
3142
  }, M.value), {
3142
3143
  default: d(() => [
@@ -3148,22 +3149,22 @@ const ta = {
3148
3149
  ]),
3149
3150
  _: 2
3150
3151
  }, 1040, ["content"])
3151
- ], 4)) : (u(), C("div", ta, O(z(K)), 1))
3152
+ ], 4)) : (u(), C("div", oa, A(z(K)), 1))
3152
3153
  ])
3153
3154
  ]),
3154
3155
  default: d(() => [
3155
- H("div", {
3156
+ X("div", {
3156
3157
  class: W(["x-field__editor_wrap", { "is-inline": t.inline }])
3157
3158
  }, [
3158
- x(k.$slots, "editor", { editor: B.value }, () => [
3159
+ x(k.$slots, "editor", { editor: P.value }, () => [
3159
3160
  n(m).component ? (u(), g(J(n(m).component), F({
3160
3161
  key: 0,
3161
3162
  class: "x-field__editor",
3162
3163
  ref_key: "editorRef",
3163
- ref: b,
3164
+ ref: h,
3164
3165
  modelValue: f.value,
3165
- "onUpdate:modelValue": U[0] || (U[0] = (K) => f.value = K)
3166
- }, n(m).props), he({ _: 2 }, [
3166
+ "onUpdate:modelValue": H[0] || (H[0] = (K) => f.value = K)
3167
+ }, n(m).props), be({ _: 2 }, [
3167
3168
  k.$slots.option ? {
3168
3169
  name: "option",
3169
3170
  fn: d(({ option: K }) => [
@@ -3173,9 +3174,9 @@ const ta = {
3173
3174
  } : void 0
3174
3175
  ]), 1040, ["modelValue"])) : v("", !0)
3175
3176
  ]),
3176
- t.tip || k.$slots.tip ? (u(), C("div", oa, [
3177
+ t.tip || k.$slots.tip ? (u(), C("div", na, [
3177
3178
  x(k.$slots, "tip", {}, () => [
3178
- R(O(t.tip), 1)
3179
+ R(A(t.tip), 1)
3179
3180
  ])
3180
3181
  ])) : v("", !0)
3181
3182
  ], 2),
@@ -3192,7 +3193,7 @@ const ta = {
3192
3193
  } : void 0
3193
3194
  ]), 1040, ["prop", "label", "size", "class", "style"])) : v("", !0);
3194
3195
  }
3195
- }), na = {
3196
+ }), aa = {
3196
3197
  /**
3197
3198
  * 表单模型
3198
3199
  */
@@ -3248,13 +3249,13 @@ const ta = {
3248
3249
  type: [Object, Boolean],
3249
3250
  default: void 0
3250
3251
  }
3251
- }, Ft = Symbol("formInstanceKey"), jt = Symbol("formModelKey"), Nt = /* @__PURE__ */ P({
3252
+ }, Ft = Symbol("formInstanceKey"), jt = Symbol("formModelKey"), Nt = /* @__PURE__ */ V({
3252
3253
  name: "XForm",
3253
3254
  __name: "Form",
3254
- props: na,
3255
+ props: aa,
3255
3256
  emits: ["change", "submit", "reset"],
3256
3257
  setup(a, { expose: o, emit: e }) {
3257
- const t = a, l = e, s = pe(), c = D(), i = Re(t.model || {}), r = D(!1);
3258
+ const t = a, l = e, s = pe(), c = O(), i = Re(t.model || {}), r = O(!1);
3258
3259
  ze(Ft, s), ze(jt, i), L(i, () => {
3259
3260
  l("change", ge(i));
3260
3261
  }), L(
@@ -3274,14 +3275,14 @@ const ta = {
3274
3275
  model: i,
3275
3276
  submit: p,
3276
3277
  reset: f
3277
- }), (m, h) => (u(), g(n(vo), F({
3278
+ }), (m, b) => (u(), g(n(vo), F({
3278
3279
  ref_key: "formRef",
3279
3280
  ref: c,
3280
3281
  class: "x-form",
3281
3282
  inline: t.inline,
3282
3283
  model: i,
3283
3284
  onKeyup: Lt(p, ["enter"]),
3284
- onSubmit: h[1] || (h[1] = bt(() => {
3285
+ onSubmit: b[1] || (b[1] = ht(() => {
3285
3286
  }, ["stop", "prevent"]))
3286
3287
  }, m.$attrs), {
3287
3288
  default: d(() => [
@@ -3301,17 +3302,17 @@ const ta = {
3301
3302
  onClick: p
3302
3303
  }, {
3303
3304
  default: d(() => [
3304
- R(O(t.submitText), 1)
3305
+ R(A(t.submitText), 1)
3305
3306
  ]),
3306
3307
  _: 1
3307
3308
  }, 8, ["loading"])) : v("", !0),
3308
3309
  t.resetText ? (u(), g(n(ie), {
3309
3310
  key: 1,
3310
3311
  type: "default",
3311
- onClick: h[0] || (h[0] = () => f())
3312
+ onClick: b[0] || (b[0] = () => f())
3312
3313
  }, {
3313
3314
  default: d(() => [
3314
- R(O(t.resetText), 1)
3315
+ R(A(t.resetText), 1)
3315
3316
  ]),
3316
3317
  _: 1
3317
3318
  })) : v("", !0),
@@ -3324,7 +3325,7 @@ const ta = {
3324
3325
  _: 3
3325
3326
  }, 16, ["inline", "model"]));
3326
3327
  }
3327
- }), aa = {
3328
+ }), sa = {
3328
3329
  modelValue: {
3329
3330
  type: Boolean,
3330
3331
  default: !0
@@ -3361,40 +3362,40 @@ const ta = {
3361
3362
  submitMethod: {
3362
3363
  type: Function
3363
3364
  }
3364
- }, sa = /* @__PURE__ */ P({
3365
+ }, la = /* @__PURE__ */ V({
3365
3366
  name: "XDialogForm",
3366
3367
  __name: "DialogForm",
3367
- props: aa,
3368
+ props: sa,
3368
3369
  emits: ["update:modelValue", "submit", "close"],
3369
3370
  setup(a, { expose: o, emit: e }) {
3370
- const t = a, l = e, s = D(), c = D(), i = y(() => c.value?.$vtjEl), r = () => {
3371
+ const t = a, l = e, s = O(), c = O(), i = y(() => c.value?.$vtjEl), r = () => {
3371
3372
  s.value?.submit();
3372
3373
  }, p = () => {
3373
3374
  l("update:modelValue", !1), l("close");
3374
- }, f = async (b) => {
3375
- l("submit", b), t.submitMethod ? await t.submitMethod(b) && p() : p();
3375
+ }, f = async (h) => {
3376
+ l("submit", h), t.submitMethod ? await t.submitMethod(h) && p() : p();
3376
3377
  }, m = y(
3377
3378
  () => t.formProps?.disabled ? !1 : t.submit
3378
- ), h = y(
3379
+ ), b = y(
3379
3380
  () => t.formProps?.disabled ? !1 : t.cancel
3380
3381
  );
3381
3382
  return o({
3382
3383
  $vtjEl: i,
3383
3384
  formRef: s,
3384
3385
  dialogRef: c
3385
- }), (b, w) => (u(), g(n(tt), F({
3386
+ }), (h, w) => (u(), g(n(tt), F({
3386
3387
  ref_key: "dialogRef",
3387
3388
  ref: c,
3388
3389
  class: "x-dialog-form",
3389
3390
  "model-value": t.modelValue,
3390
3391
  submit: m.value,
3391
- cancel: h.value,
3392
+ cancel: b.value,
3392
3393
  size: t.size,
3393
3394
  onSubmit: r,
3394
3395
  onClose: p,
3395
3396
  minimizable: !1,
3396
3397
  maximizable: !1
3397
- }, b.$attrs), he({
3398
+ }, h.$attrs), be({
3398
3399
  default: d(() => [
3399
3400
  _(n(Nt), F({
3400
3401
  ref_key: "formRef",
@@ -3408,37 +3409,37 @@ const ta = {
3408
3409
  "submit-method": f
3409
3410
  }, t.formProps), {
3410
3411
  default: d(() => [
3411
- x(b.$slots, "default")
3412
+ x(h.$slots, "default")
3412
3413
  ]),
3413
3414
  _: 3
3414
3415
  }, 16, ["size", "model", "rules"])
3415
3416
  ]),
3416
3417
  _: 2
3417
3418
  }, [
3418
- b.$slots.extra ? {
3419
+ h.$slots.extra ? {
3419
3420
  name: "extra",
3420
3421
  fn: d(() => [
3421
- x(b.$slots, "extra")
3422
+ x(h.$slots, "extra")
3422
3423
  ]),
3423
3424
  key: "0"
3424
3425
  } : void 0,
3425
- b.$slots.handle ? {
3426
+ h.$slots.handle ? {
3426
3427
  name: "handle",
3427
3428
  fn: d(() => [
3428
- x(b.$slots, "handle")
3429
+ x(h.$slots, "handle")
3429
3430
  ]),
3430
3431
  key: "1"
3431
3432
  } : void 0,
3432
- b.$slots.footer ? {
3433
+ h.$slots.footer ? {
3433
3434
  name: "footer",
3434
3435
  fn: d(() => [
3435
- x(b.$slots, "footer")
3436
+ x(h.$slots, "footer")
3436
3437
  ]),
3437
3438
  key: "2"
3438
3439
  } : void 0
3439
3440
  ]), 1040, ["model-value", "submit", "cancel", "size"]));
3440
3441
  }
3441
- }), la = {
3442
+ }), ia = {
3442
3443
  items: {
3443
3444
  type: Array,
3444
3445
  default() {
@@ -3448,10 +3449,10 @@ const ta = {
3448
3449
  border: {
3449
3450
  type: Boolean
3450
3451
  }
3451
- }, ia = /* @__PURE__ */ P({
3452
+ }, ra = /* @__PURE__ */ V({
3452
3453
  name: "XTabs",
3453
3454
  __name: "Tabs",
3454
- props: la,
3455
+ props: ia,
3455
3456
  setup(a) {
3456
3457
  const o = a, e = (l) => {
3457
3458
  const { label: s, name: c, value: i, disabled: r, closable: p, lazy: f } = l;
@@ -3473,16 +3474,16 @@ const ta = {
3473
3474
  key: c.value ?? c.name
3474
3475
  }, e(c)), {
3475
3476
  label: d(() => [
3476
- x(l.$slots, "label", le(be(c)), () => [
3477
+ x(l.$slots, "label", le(he(c)), () => [
3477
3478
  c.icon ? (u(), g(J(n(_e)(c.icon)), {
3478
3479
  key: 0,
3479
3480
  class: "x-tabs__icon"
3480
3481
  })) : v("", !0),
3481
- R(" " + O(c.label), 1)
3482
+ R(" " + A(c.label), 1)
3482
3483
  ])
3483
3484
  ]),
3484
3485
  default: d(() => [
3485
- x(l.$slots, "default", le(be(c)), () => [
3486
+ x(l.$slots, "default", le(he(c)), () => [
3486
3487
  c.component ? (u(), g(J(c.component), le(F({ key: 0 }, c.props)), null, 16)) : v("", !0)
3487
3488
  ])
3488
3489
  ]),
@@ -3492,7 +3493,7 @@ const ta = {
3492
3493
  _: 3
3493
3494
  }, 16, ["class"]));
3494
3495
  }
3495
- }), ra = {
3496
+ }), ca = {
3496
3497
  direction: {
3497
3498
  type: String,
3498
3499
  default: "column"
@@ -3530,26 +3531,26 @@ const ta = {
3530
3531
  onTitleClick: {
3531
3532
  type: Function
3532
3533
  }
3533
- }, ca = { class: "x-data-item__title" }, ua = {
3534
+ }, ua = { class: "x-data-item__title" }, da = {
3534
3535
  key: 1,
3535
3536
  class: "x-data-item__section x-data-item__desc"
3536
- }, da = {
3537
+ }, pa = {
3537
3538
  key: 2,
3538
3539
  class: "x-data-item__section x-data-item__extra"
3539
- }, pa = {
3540
+ }, fa = {
3540
3541
  key: 3,
3541
3542
  class: "x-data-item__section x-data-item__actions"
3542
- }, fa = /* @__PURE__ */ P({
3543
+ }, ma = /* @__PURE__ */ V({
3543
3544
  name: "XDataItem",
3544
3545
  __name: "DataItem",
3545
- props: ra,
3546
+ props: ca,
3546
3547
  emits: ["imageClick", "titleClick", "actionClick", "actionCommand"],
3547
3548
  setup(a, { emit: o }) {
3548
3549
  const e = a, t = o, l = y(() => {
3549
- const { imageWidth: m, imageHeight: h } = e;
3550
+ const { imageWidth: m, imageHeight: b } = e;
3550
3551
  return {
3551
3552
  width: m ? q(m) : void 0,
3552
- height: h ? q(h) : void 0
3553
+ height: b ? q(b) : void 0
3553
3554
  };
3554
3555
  }), s = y(() => ({
3555
3556
  [`is-image-${e.direction}`]: !!e.direction,
@@ -3561,13 +3562,13 @@ const ta = {
3561
3562
  type: "info",
3562
3563
  items: e.actions,
3563
3564
  ...e.actionBarProps
3564
- })), i = () => t("imageClick"), r = () => t("titleClick"), p = (m) => t("actionClick", m), f = (m, h) => t("actionCommand", m, h);
3565
- return (m, h) => (u(), g(n(E), {
3565
+ })), i = () => t("imageClick"), r = () => t("titleClick"), p = (m) => t("actionClick", m), f = (m, b) => t("actionCommand", m, b);
3566
+ return (m, b) => (u(), g(n(I), {
3566
3567
  class: W(["x-data-item", s.value]),
3567
3568
  direction: e.direction
3568
3569
  }, {
3569
3570
  default: d(() => [
3570
- e.imageSrc || m.$slots.image ? (u(), g(n(E), {
3571
+ e.imageSrc || m.$slots.image ? (u(), g(n(I), {
3571
3572
  key: 0,
3572
3573
  class: "x-data-item__img",
3573
3574
  autoPointer: !0,
@@ -3575,7 +3576,7 @@ const ta = {
3575
3576
  }, {
3576
3577
  default: d(() => [
3577
3578
  x(m.$slots, "image", {}, () => [
3578
- e.imageSrc ? (u(), g(n(bo), {
3579
+ e.imageSrc ? (u(), g(n(ho), {
3579
3580
  key: 0,
3580
3581
  style: fe(l.value),
3581
3582
  src: e.imageSrc
@@ -3584,14 +3585,14 @@ const ta = {
3584
3585
  ]),
3585
3586
  _: 3
3586
3587
  }, 8, ["onClick"])) : v("", !0),
3587
- _(n(E), {
3588
+ _(n(I), {
3588
3589
  class: "x-data-item__content",
3589
3590
  direction: "column",
3590
3591
  grow: "",
3591
3592
  shrink: ""
3592
3593
  }, {
3593
3594
  default: d(() => [
3594
- e.title || m.$slots.title ? (u(), g(n(E), {
3595
+ e.title || m.$slots.title ? (u(), g(n(I), {
3595
3596
  key: 0,
3596
3597
  class: "x-data-item__section x-data-item__wrapper",
3597
3598
  align: "center",
@@ -3603,23 +3604,23 @@ const ta = {
3603
3604
  key: 0,
3604
3605
  class: "x-data-item__icon"
3605
3606
  })) : v("", !0),
3606
- H("span", ca, [
3607
+ X("span", ua, [
3607
3608
  x(m.$slots, "title", {}, () => [
3608
- R(O(e.title), 1)
3609
+ R(A(e.title), 1)
3609
3610
  ])
3610
3611
  ])
3611
3612
  ]),
3612
3613
  _: 3
3613
3614
  }, 8, ["onClick"])) : v("", !0),
3614
- e.description || m.$slots.description ? (u(), C("div", ua, [
3615
+ e.description || m.$slots.description ? (u(), C("div", da, [
3615
3616
  x(m.$slots, "description", {}, () => [
3616
- R(O(e.description), 1)
3617
+ R(A(e.description), 1)
3617
3618
  ])
3618
3619
  ])) : v("", !0),
3619
- m.$slots.default ? (u(), C("div", da, [
3620
+ m.$slots.default ? (u(), C("div", pa, [
3620
3621
  x(m.$slots, "default")
3621
3622
  ])) : v("", !0),
3622
- e.actions || e.actionBarProps || m.$slots.actions ? (u(), C("div", pa, [
3623
+ e.actions || e.actionBarProps || m.$slots.actions ? (u(), C("div", fa, [
3623
3624
  x(m.$slots, "actions", {}, () => [
3624
3625
  _(n(Oe), F(c.value, {
3625
3626
  onClick: p,
@@ -3634,7 +3635,7 @@ const ta = {
3634
3635
  _: 3
3635
3636
  }, 8, ["direction", "class"]));
3636
3637
  }
3637
- }), ma = {
3638
+ }), ga = {
3638
3639
  option: {
3639
3640
  type: Object
3640
3641
  },
@@ -3647,13 +3648,13 @@ const ta = {
3647
3648
  default: "400px"
3648
3649
  }
3649
3650
  };
3650
- function ga() {
3651
+ function ya() {
3651
3652
  return import("echarts");
3652
3653
  }
3653
- function ya(a, o) {
3654
- const e = D(), t = Ve();
3654
+ function va(a, o) {
3655
+ const e = O(), t = Ve();
3655
3656
  return gt(async () => {
3656
- t.value = await ga();
3657
+ t.value = await ya();
3657
3658
  const l = n(a);
3658
3659
  l && (e.value || (e.value = ke(t.value.init(l))), e.value && e.value.setOption(o.option || {}));
3659
3660
  }), yt(() => {
@@ -3664,9 +3665,9 @@ function ya(a, o) {
3664
3665
  e.value && e.value.setOption(l || {});
3665
3666
  },
3666
3667
  { deep: !0 }
3667
- ), Fo(
3668
+ ), jo(
3668
3669
  a,
3669
- Ko(() => {
3670
+ Lo(() => {
3670
3671
  e.value && e.value.resize();
3671
3672
  }, 150)
3672
3673
  ), {
@@ -3674,12 +3675,12 @@ function ya(a, o) {
3674
3675
  echarts: t
3675
3676
  };
3676
3677
  }
3677
- const va = /* @__PURE__ */ P({
3678
+ const ha = /* @__PURE__ */ V({
3678
3679
  name: "XChart",
3679
3680
  __name: "Chart",
3680
- props: ma,
3681
+ props: ga,
3681
3682
  setup(a, { expose: o }) {
3682
- const e = a, t = D(), { echartsInstance: l, echarts: s } = ya(t, e), c = y(() => ({
3683
+ const e = a, t = O(), { echartsInstance: l, echarts: s } = va(t, e), c = y(() => ({
3683
3684
  width: q(e.width),
3684
3685
  height: q(e.height)
3685
3686
  }));
@@ -3731,22 +3732,22 @@ const va = /* @__PURE__ */ P({
3731
3732
  infiniteScroll: {
3732
3733
  type: [Boolean, Object]
3733
3734
  }
3734
- }, ha = {
3735
+ }, _a = {
3735
3736
  key: 0,
3736
3737
  class: "x-list__loading"
3737
- }, _a = {
3738
+ }, ka = {
3738
3739
  key: 1,
3739
3740
  class: "x-list__nomore"
3740
- }, ka = {
3741
+ }, wa = {
3741
3742
  key: 0,
3742
3743
  class: "x-list__loading"
3743
- }, wa = {
3744
+ }, xa = {
3744
3745
  key: 1,
3745
3746
  class: "x-list__nomore"
3746
- }, xa = {
3747
+ }, Sa = {
3747
3748
  key: 1,
3748
3749
  class: "x-list__pager"
3749
- }, Sa = /* @__PURE__ */ P({
3750
+ }, za = /* @__PURE__ */ V({
3750
3751
  name: "XList",
3751
3752
  __name: "List",
3752
3753
  props: ba,
@@ -3760,68 +3761,68 @@ const va = /* @__PURE__ */ P({
3760
3761
  const { page: T, pageSize: j } = t;
3761
3762
  Object.assign(s, { page: T, pageSize: j });
3762
3763
  });
3763
- const { data: c, loading: i } = ln(
3764
+ const { data: c, loading: i } = rn(
3764
3765
  t.data,
3765
3766
  {
3766
3767
  list: [],
3767
3768
  total: 0
3768
3769
  },
3769
3770
  s
3770
- ), r = y(() => Math.ceil((c.value.total || 0) / s.pageSize)), p = D(!1), f = D(), m = y(() => ({
3771
+ ), r = y(() => Math.ceil((c.value.total || 0) / s.pageSize)), p = O(!1), f = O(), m = y(() => ({
3771
3772
  width: q(t.width),
3772
3773
  height: q(t.height)
3773
- })), h = y(() => ({
3774
+ })), b = y(() => ({
3774
3775
  "is-virtual": !!t.itemHeight
3775
- })), b = y(() => {
3776
+ })), h = y(() => {
3776
3777
  const T = {};
3777
3778
  for (let [j, k] of Object.entries(
3778
3779
  rt(t.infiniteScroll)
3779
3780
  ))
3780
3781
  T[`infinite-scroll-${j}`] = k;
3781
3782
  return (i.value || p.value) && (T["infinite-scroll-disabled"] = !0), T;
3782
- }), w = y(() => rt(t.pager, {})), { list: M, containerProps: z, wrapperProps: I, scrollTo: V } = jo(
3783
+ }), w = y(() => rt(t.pager, {})), { list: M, containerProps: z, wrapperProps: E, scrollTo: B } = No(
3783
3784
  y(() => c.value.list),
3784
3785
  {
3785
3786
  itemHeight: t.itemHeight || 0
3786
3787
  }
3787
3788
  ), S = () => {
3788
3789
  !t.infiniteScroll || p.value || (s.page < r.value ? (++s.page, l("load", s)) : p.value = !0);
3789
- }, B = (T) => t.dataKey ? T[t.dataKey] : void 0;
3790
+ }, P = (T) => t.dataKey ? T[t.dataKey] : void 0;
3790
3791
  return o({
3791
3792
  list: M,
3792
- scrollTo: V,
3793
+ scrollTo: B,
3793
3794
  wrapperRef: f,
3794
3795
  loading: i,
3795
3796
  state: s,
3796
3797
  pageCount: r,
3797
3798
  nomore: p,
3798
3799
  data: c,
3799
- getKey: B
3800
+ getKey: P
3800
3801
  }), (T, j) => (u(), C("div", {
3801
- class: W(["x-list", h.value]),
3802
+ class: W(["x-list", b.value]),
3802
3803
  style: fe(m.value)
3803
3804
  }, [
3804
3805
  !n(c).total && !n(i) ? x(T.$slots, "empty", { key: 0 }, () => [
3805
3806
  _(n(_t))
3806
3807
  ]) : v("", !0),
3807
- H("div", F({ class: "x-list__content" }, n(z)), [
3808
+ X("div", F({ class: "x-list__content" }, n(z)), [
3808
3809
  t.itemHeight ? G((u(), C("div", F({
3809
3810
  key: 0,
3810
3811
  class: "x-list__wrapper",
3811
3812
  ref_key: "wrapperRef",
3812
3813
  ref: f
3813
- }, { ...n(I), ...b.value }), [
3814
- (u(!0), C(Q, null, Y(n(M), (k, U) => x(T.$slots, "default", le(F({
3815
- key: B(k.data)
3816
- }, { item: k.data, index: U })), () => [
3817
- H("div", null, O(k), 1)
3814
+ }, { ...n(E), ...h.value }), [
3815
+ (u(!0), C(Q, null, Y(n(M), (k, H) => x(T.$slots, "default", le(F({
3816
+ key: P(k.data)
3817
+ }, { item: k.data, index: H })), () => [
3818
+ X("div", null, A(k), 1)
3818
3819
  ])), 128)),
3819
- n(i) ? (u(), C("div", ha, [
3820
+ n(i) ? (u(), C("div", _a, [
3820
3821
  x(T.$slots, "loading", {}, () => [
3821
3822
  R(" 正在加载数据... ")
3822
3823
  ])
3823
3824
  ])) : v("", !0),
3824
- p.value ? (u(), C("div", _a, [
3825
+ p.value ? (u(), C("div", ka, [
3825
3826
  x(T.$slots, "nomore", {}, () => [
3826
3827
  R(" 没有更多数据 ")
3827
3828
  ])
@@ -3831,18 +3832,18 @@ const va = /* @__PURE__ */ P({
3831
3832
  ]) : G((u(), C("div", F({
3832
3833
  key: 1,
3833
3834
  class: "x-list__wrapper"
3834
- }, b.value), [
3835
- (u(!0), C(Q, null, Y(n(c).list, (k, U) => x(T.$slots, "default", le(F({
3836
- key: B(k)
3837
- }, { item: k, index: U })), () => [
3838
- H("div", null, O(k), 1)
3835
+ }, h.value), [
3836
+ (u(!0), C(Q, null, Y(n(c).list, (k, H) => x(T.$slots, "default", le(F({
3837
+ key: P(k)
3838
+ }, { item: k, index: H })), () => [
3839
+ X("div", null, A(k), 1)
3839
3840
  ])), 128)),
3840
- n(i) ? (u(), C("div", ka, [
3841
+ n(i) ? (u(), C("div", wa, [
3841
3842
  x(T.$slots, "loading", {}, () => [
3842
3843
  R(" 正在加载数据... ")
3843
3844
  ])
3844
3845
  ])) : v("", !0),
3845
- p.value ? (u(), C("div", wa, [
3846
+ p.value ? (u(), C("div", xa, [
3846
3847
  x(T.$slots, "nomore", {}, () => [
3847
3848
  R(" 没有更多数据 ")
3848
3849
  ])
@@ -3851,8 +3852,8 @@ const va = /* @__PURE__ */ P({
3851
3852
  [n(st), S]
3852
3853
  ])
3853
3854
  ], 16),
3854
- t.pager ? (u(), C("div", xa, [
3855
- _(n(ho), F({
3855
+ t.pager ? (u(), C("div", Sa, [
3856
+ _(n(bo), F({
3856
3857
  small: "",
3857
3858
  background: "",
3858
3859
  layout: "prev, pager, next",
@@ -3867,7 +3868,55 @@ const va = /* @__PURE__ */ P({
3867
3868
  ])) : v("", !0)
3868
3869
  ], 6));
3869
3870
  }
3870
- }), za = {
3871
+ }), Ca = {
3872
+ name: {
3873
+ type: String,
3874
+ default: "VTJ.PRO"
3875
+ },
3876
+ tagline: {
3877
+ type: String,
3878
+ default: "基于 Vue3 + TypeScript 快速打造高生产力的低代码研发平台"
3879
+ },
3880
+ actionText: {
3881
+ type: String,
3882
+ default: "开始设计"
3883
+ },
3884
+ actionLink: {
3885
+ type: String,
3886
+ default: "/@vtj/pro/"
3887
+ }
3888
+ }, Ta = { class: "x-startup" }, $a = { class: "x-startup__wrapper" }, Ea = { class: "x-startup__name" }, Ma = { class: "clip" }, Ia = { class: "x-startup__tagline" }, Ba = { class: "x-startup__actions" }, Pa = /* @__PURE__ */ V({
3889
+ __name: "Startup",
3890
+ props: Ca,
3891
+ setup(a) {
3892
+ const o = a, e = () => {
3893
+ let l = (window.__VTJ_LINK__ || {}).href || window.location.pathname + "@vtj/pro/#/";
3894
+ location.href = l;
3895
+ };
3896
+ return (t, l) => (u(), C("div", Ta, [
3897
+ X("div", $a, [
3898
+ X("div", Ea, [
3899
+ X("span", Ma, A(o.name), 1)
3900
+ ]),
3901
+ X("div", Ia, A(o.tagline), 1),
3902
+ X("div", Ba, [
3903
+ _(n(ie), {
3904
+ type: "primary",
3905
+ size: "large",
3906
+ round: "",
3907
+ icon: n(Do),
3908
+ onClick: e
3909
+ }, {
3910
+ default: d(() => [
3911
+ R(A(o.actionText), 1)
3912
+ ]),
3913
+ _: 1
3914
+ }, 8, ["icon"])
3915
+ ])
3916
+ ])
3917
+ ]));
3918
+ }
3919
+ }), Va = {
3871
3920
  stringProp: {
3872
3921
  type: String
3873
3922
  },
@@ -3898,27 +3947,27 @@ const va = /* @__PURE__ */ P({
3898
3947
  syncProp: {
3899
3948
  type: String
3900
3949
  }
3901
- }, Ca = { class: "x-test__slot" }, Ta = { class: "x-test__slot" }, $a = /* @__PURE__ */ P({
3950
+ }, Aa = { class: "x-test__slot" }, Da = { class: "x-test__slot" }, Ra = /* @__PURE__ */ V({
3902
3951
  name: "XTest",
3903
3952
  __name: "Test",
3904
- props: za,
3953
+ props: Va,
3905
3954
  emits: ["click", "submit", "change", "update:modelValue", "update:syncProp"],
3906
3955
  setup(a, { expose: o, emit: e }) {
3907
3956
  const t = a, l = e, s = y(() => Object.entries(t)), c = y({
3908
3957
  get() {
3909
3958
  return t.modelValue;
3910
3959
  },
3911
- set(b) {
3912
- l("update:modelValue", b);
3960
+ set(h) {
3961
+ l("update:modelValue", h);
3913
3962
  }
3914
3963
  }), i = y({
3915
3964
  get() {
3916
3965
  return t.syncProp;
3917
3966
  },
3918
- set(b) {
3919
- l("update:syncProp", b);
3967
+ set(h) {
3968
+ l("update:syncProp", h);
3920
3969
  }
3921
- }), r = D("default inner data"), p = () => {
3970
+ }), r = O("default inner data"), p = () => {
3922
3971
  it.info({
3923
3972
  message: "触发click事件"
3924
3973
  }), l("click", t);
@@ -3926,9 +3975,9 @@ const va = /* @__PURE__ */ P({
3926
3975
  it.info({
3927
3976
  message: "触发submit事件"
3928
3977
  }), l("submit", t);
3929
- }, m = (b) => {
3930
- r.value = b, l("change", r.value);
3931
- }, h = () => {
3978
+ }, m = (h) => {
3979
+ r.value = h, l("change", r.value);
3980
+ }, b = () => {
3932
3981
  m("user click change:" + Date.now());
3933
3982
  };
3934
3983
  return o({
@@ -3936,7 +3985,7 @@ const va = /* @__PURE__ */ P({
3936
3985
  submit: f,
3937
3986
  data: r,
3938
3987
  change: m
3939
- }), (b, w) => (u(), g(n(Se), {
3988
+ }), (h, w) => (u(), g(n(Se), {
3940
3989
  class: "x-test",
3941
3990
  header: "VTJ 低代码测试组件",
3942
3991
  border: ""
@@ -3948,9 +3997,9 @@ const va = /* @__PURE__ */ P({
3948
3997
  ]),
3949
3998
  _: 1
3950
3999
  }),
3951
- _(n(E), null, {
4000
+ _(n(I), null, {
3952
4001
  default: d(() => [
3953
- R(O(r.value), 1)
4002
+ R(A(r.value), 1)
3954
4003
  ]),
3955
4004
  _: 1
3956
4005
  }),
@@ -3967,7 +4016,7 @@ const va = /* @__PURE__ */ P({
3967
4016
  default: d(() => [
3968
4017
  (u(!0), C(Q, null, Y(s.value, ([M, z]) => (u(), g(n(Xe), { label: M }, {
3969
4018
  default: d(() => [
3970
- H("pre", null, O(JSON.stringify(z, null, 2)), 1)
4019
+ X("pre", null, A(JSON.stringify(z, null, 2)), 1)
3971
4020
  ]),
3972
4021
  _: 2
3973
4022
  }, 1032, ["label"]))), 256))
@@ -3980,7 +4029,7 @@ const va = /* @__PURE__ */ P({
3980
4029
  ]),
3981
4030
  _: 1
3982
4031
  }),
3983
- _(n(E), {
4032
+ _(n(I), {
3984
4033
  justify: "space-around",
3985
4034
  flex: "",
3986
4035
  gap: ""
@@ -3992,12 +4041,12 @@ const va = /* @__PURE__ */ P({
3992
4041
  card: ""
3993
4042
  }, {
3994
4043
  default: d(() => [
3995
- H("div", Ca, [
3996
- x(b.$slots, "default", {
4044
+ X("div", Aa, [
4045
+ x(h.$slots, "default", {
3997
4046
  props: t,
3998
4047
  data: r.value
3999
4048
  }, () => [
4000
- H("pre", null, O(JSON.stringify({ props: t, data: r.value }, null, 2)), 1)
4049
+ X("pre", null, A(JSON.stringify({ props: t, data: r.value }, null, 2)), 1)
4001
4050
  ])
4002
4051
  ])
4003
4052
  ]),
@@ -4009,12 +4058,12 @@ const va = /* @__PURE__ */ P({
4009
4058
  card: ""
4010
4059
  }, {
4011
4060
  default: d(() => [
4012
- H("div", Ta, [
4013
- x(b.$slots, "extra", {
4061
+ X("div", Da, [
4062
+ x(h.$slots, "extra", {
4014
4063
  props: t,
4015
4064
  data: r.value
4016
4065
  }, () => [
4017
- H("pre", null, O(JSON.stringify({ props: t, data: r.value }, null, 2)), 1)
4066
+ X("pre", null, A(JSON.stringify({ props: t, data: r.value }, null, 2)), 1)
4018
4067
  ])
4019
4068
  ])
4020
4069
  ]),
@@ -4029,7 +4078,7 @@ const va = /* @__PURE__ */ P({
4029
4078
  ]),
4030
4079
  _: 1
4031
4080
  }),
4032
- _(n(E), null, {
4081
+ _(n(I), null, {
4033
4082
  default: d(() => [
4034
4083
  _(n(lt), {
4035
4084
  column: 2,
@@ -4066,7 +4115,7 @@ const va = /* @__PURE__ */ P({
4066
4115
  ]),
4067
4116
  _: 1
4068
4117
  }),
4069
- _(n(E), null, {
4118
+ _(n(I), null, {
4070
4119
  default: d(() => [
4071
4120
  _(n(ie), { onClick: p }, {
4072
4121
  default: d(() => [
@@ -4080,7 +4129,7 @@ const va = /* @__PURE__ */ P({
4080
4129
  ]),
4081
4130
  _: 1
4082
4131
  }),
4083
- _(n(ie), { onClick: h }, {
4132
+ _(n(ie), { onClick: b }, {
4084
4133
  default: d(() => [
4085
4134
  R("change")
4086
4135
  ]),
@@ -4093,24 +4142,25 @@ const va = /* @__PURE__ */ P({
4093
4142
  _: 3
4094
4143
  }));
4095
4144
  }
4096
- }), Oa = [
4145
+ }), Wa = [
4097
4146
  re,
4098
4147
  de,
4099
4148
  te,
4100
4149
  Oe,
4101
- E,
4150
+ I,
4102
4151
  Bt,
4103
4152
  Se,
4104
4153
  tt,
4105
- Jn,
4154
+ Qn,
4106
4155
  Ot,
4107
4156
  Nt,
4108
- sa,
4109
- ia,
4110
- fa,
4111
- va,
4112
- Sa,
4113
- $a
4157
+ la,
4158
+ ra,
4159
+ ma,
4160
+ ha,
4161
+ za,
4162
+ Pa,
4163
+ Ra
4114
4164
  ];
4115
4165
  export {
4116
4166
  dt as Draggable,
@@ -4118,56 +4168,58 @@ export {
4118
4168
  At as MASK_KEY,
4119
4169
  pt as Resizable,
4120
4170
  Vt as TAB_CREATORS_KEY,
4121
- Bn as TAB_ITEM_WIDTH,
4122
- Aa as VTJ_UI_VERSION,
4171
+ Pn as TAB_ITEM_WIDTH,
4172
+ Ha as VTJ_UI_VERSION,
4123
4173
  te as XAction,
4124
4174
  Oe as XActionBar,
4125
- va as XChart,
4126
- E as XContainer,
4127
- fa as XDataItem,
4175
+ ha as XChart,
4176
+ I as XContainer,
4177
+ ma as XDataItem,
4128
4178
  tt as XDialog,
4129
- sa as XDialogForm,
4179
+ la as XDialogForm,
4130
4180
  Ot as XField,
4131
4181
  Nt as XForm,
4132
4182
  Bt as XHeader,
4133
4183
  re as XIcon,
4134
- Sa as XList,
4135
- Jn as XMask,
4184
+ za as XList,
4185
+ Qn as XMask,
4136
4186
  de as XMenu,
4137
4187
  Se as XPanel,
4138
- ia as XTabs,
4139
- $a as XTest,
4140
- un as actionBarProps,
4188
+ Pa as XStartup,
4189
+ ra as XTabs,
4190
+ Ra as XTest,
4191
+ dn as actionBarProps,
4141
4192
  It as actionProps,
4142
4193
  Rt as builtinFieldEditors,
4143
- ma as chartProps,
4144
- Oa as components,
4145
- dn as containerProps,
4194
+ ga as chartProps,
4195
+ Wa as components,
4196
+ pn as containerProps,
4146
4197
  ot as createDialog,
4147
- ra as dataItemProps,
4148
- Ra as defineTab,
4149
- aa as dialogFormProps,
4150
- yn as dialogProps,
4151
- Yn as fieldProps,
4198
+ ca as dataItemProps,
4199
+ La as defineTab,
4200
+ sa as dialogFormProps,
4201
+ vn as dialogProps,
4202
+ qn as fieldProps,
4152
4203
  Ft as formInstanceKey,
4153
4204
  jt as formModelKey,
4154
- na as formProps,
4205
+ aa as formProps,
4155
4206
  q as getSizeValue,
4156
- pn as headerProps,
4157
- Qo as iconProps,
4158
- Jo as iconSizeMap,
4207
+ fn as headerProps,
4208
+ Zo as iconProps,
4209
+ Qo as iconSizeMap,
4159
4210
  ba as listProps,
4160
- Da as makeInstaller,
4161
- Pn as maskProps,
4162
- mn as panelProps,
4163
- Me as parseSize,
4164
- la as tabsProps,
4165
- za as testProps,
4211
+ Ka as makeInstaller,
4212
+ Vn as maskProps,
4213
+ gn as panelProps,
4214
+ Ee as parseSize,
4215
+ Ca as startupProps,
4216
+ ia as tabsProps,
4217
+ Va as testProps,
4166
4218
  rt as toObjectProps,
4167
4219
  et as useDisabled,
4168
4220
  _e as useIcon,
4169
- sn as useIconProps,
4170
- ln as useLoader,
4171
- gn as vDraggable,
4221
+ ln as useIconProps,
4222
+ rn as useLoader,
4223
+ yn as vDraggable,
4172
4224
  Pt as vResizable
4173
4225
  };