@vtj/ui 0.6.2 → 0.6.4

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/lib/index.js CHANGED
@@ -1,38 +1,38 @@
1
- import { defineComponent as D, openBlock as c, createElementBlock as A, renderSlot as z, createElementVNode as R, unref as o, toDisplayString as O, createVNode as b, withCtx as p, createTextVNode as N, useAttrs as Je, computed as y, markRaw as Ae, createBlock as m, normalizeClass as U, resolveDynamicComponent as Y, createCommentVNode as v, getCurrentInstance as _e, mergeProps as Q, Fragment as q, renderList as we, isVNode as xt, h as K, toRef as he, useSlots as zt, normalizeStyle as Ee, ref as $, normalizeProps as St, guardReactiveProps as Ct, effectScope as Ke, watch as ne, reactive as Ye, onMounted as Tt, onUnmounted as Mt, watchEffect as Ge, nextTick as le, Teleport as qe, withDirectives as L, createSlots as et, render as Fe, vShow as J, isRef as ge, withModifiers as Et, KeepAlive as It, shallowRef as Oe, provide as De, toRaw as Bt, inject as je } from "vue";
2
- import { ElDivider as ue, ElButton as ve, ElIcon as At, ElSubMenu as Dt, ElBadge as Ie, ElMenuItem as Vt, ElMenu as Pt, ElContainer as Ne, ElHeader as Rt, ElAside as $t, ElMain as Ft, ElFooter as Ot, ElDropdown as jt, ElDropdownMenu as Nt, ElDropdownItem as Ut, ElTooltip as Xt, ElSwitch as tt, ElInput as Ht, ElEmpty as Lt, ElTabs as Wt, ElTabPane as Ue, ElPopover as nt, ElAvatar as Qt, ElMessageBox as Te } from "element-plus";
3
- import { VideoPlay as Zt, Menu as ot, ArrowRight as Jt, StarFilled as at, Search as Be, Close as st, Expand as Kt, Fold as Yt, Star as lt, Document as se, Refresh as Gt, CopyDocument as qt, Moon as en, Sunny as tn, MoreFilled as nn, UserFilled as on, HomeFilled as an } from "@element-plus/icons-vue";
1
+ import { defineComponent as D, openBlock as u, createElementBlock as A, renderSlot as z, createElementVNode as R, unref as o, toDisplayString as O, createVNode as b, withCtx as p, createTextVNode as N, createBlock as f, createCommentVNode as v, useAttrs as Je, getCurrentInstance as pe, computed as y, markRaw as Ae, normalizeClass as U, resolveDynamicComponent as Y, mergeProps as Q, Fragment as q, renderList as we, isVNode as xt, h as K, toRef as ye, useSlots as zt, normalizeStyle as Ee, ref as $, normalizeProps as St, guardReactiveProps as Ct, effectScope as Ke, watch as oe, reactive as Ye, onMounted as Tt, onUnmounted as Mt, watchEffect as Ge, nextTick as le, Teleport as qe, withDirectives as L, createSlots as et, render as Fe, vShow as J, isRef as ve, withModifiers as Et, KeepAlive as It, shallowRef as Oe, provide as De, toRaw as Bt, inject as je } from "vue";
2
+ import { ElDivider as ue, ElButton as de, ElIcon as At, ElSubMenu as Dt, ElBadge as Ie, ElMenuItem as Vt, ElMenu as Pt, ElContainer as Ne, ElHeader as Rt, ElAside as $t, ElMain as Ft, ElFooter as Ot, ElDropdown as jt, ElDropdownMenu as Nt, ElDropdownItem as Ut, ElTooltip as Xt, ElSwitch as tt, ElInput as Ht, ElEmpty as Lt, ElTabs as Wt, ElTabPane as Ue, ElPopover as nt, ElAvatar as Qt, ElMessageBox as Te } from "element-plus";
3
+ import { VideoPlay as Zt, Document as ne, Menu as ot, ArrowRight as Jt, StarFilled as at, Search as Be, Close as st, Expand as Kt, Fold as Yt, Star as lt, Refresh as Gt, CopyDocument as qt, Moon as en, Sunny as tn, MoreFilled as nn, UserFilled as on, HomeFilled as an } from "@element-plus/icons-vue";
4
4
  import { useRouter as ke, useRoute as Ve, RouterView as it, routeLocationKey as sn } from "vue-router";
5
5
  import { Minimize as ln, Popup as rn, Maximize as cn, RawClose as un } from "@vtj/icons";
6
- import { useDraggable as dn, useMouseInElement as pn, useEventListener as ye, useElementSize as rt, useDark as fn } from "@vueuse/core";
6
+ import { useDraggable as dn, useMouseInElement as pn, useEventListener as be, useElementSize as rt, useDark as fn } from "@vueuse/core";
7
7
  import { isEqual as ct, isObject as ut, uid as dt, arrayToMap as mn, isUrl as gn, upperFirstCamelCase as pt } from "@vtj/utils";
8
8
  function Xe(a) {
9
9
  return typeof a == "string" ? a : `${a}px`;
10
10
  }
11
- function pe(a = 0, t) {
11
+ function me(a = 0, e) {
12
12
  if (typeof a == "number")
13
13
  return a;
14
14
  if (/(%|vh|vw)$/i.test(a)) {
15
15
  const n = Number.parseInt(a);
16
- return Math.floor(t * n / 100);
16
+ return Math.floor(e * n / 100);
17
17
  }
18
18
  return Number.parseInt(a);
19
19
  }
20
- function Ro(a, t) {
21
- const e = {};
20
+ function Ro(a, e) {
21
+ const t = {};
22
22
  return Object.keys(a).forEach((n) => {
23
- t.includes(n) || (e[n] = a[n]);
24
- }), e;
23
+ e.includes(n) || (t[n] = a[n]);
24
+ }), t;
25
25
  }
26
- function $o(a, t) {
27
- const e = {};
26
+ function $o(a, e) {
27
+ const t = {};
28
28
  return Object.keys(a).forEach((n) => {
29
- t.includes(n) && (e[n] = a[n]);
30
- }), e;
29
+ e.includes(n) && (t[n] = a[n]);
30
+ }), t;
31
31
  }
32
32
  const Fo = () => {
33
33
  }, He = Symbol("INSTALLED_KEY"), hn = (a = []) => ({
34
- install: (e) => {
35
- e[He] || (e[He] = !0, a.forEach((n) => e.component(n.name, n)));
34
+ install: (t) => {
35
+ t[He] || (t[He] = !0, a.forEach((n) => t.component(n.name, n)));
36
36
  }
37
37
  }), ft = "data:image/png;base64,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", vn = { class: "x-startup" }, yn = { class: "brand" }, bn = ["src"], _n = /* @__PURE__ */ R("h3", null, [
38
38
  /* @__PURE__ */ N("基于 "),
@@ -45,24 +45,27 @@ const Fo = () => {
45
45
  __name: "Startup",
46
46
  props: {
47
47
  text: { default: "VTJ.PRO" },
48
- link: { default: "/" }
48
+ link: { default: "/" },
49
+ example: {}
49
50
  },
50
51
  setup(a) {
51
- const t = a, e = () => {
52
- location.href = t.link + "#/?startup";
52
+ const e = a, t = () => {
53
+ location.href = e.link + "#/?startup";
54
+ }, n = () => {
55
+ e.example && e.example(e.link);
53
56
  };
54
- return (n, s) => (c(), A("div", vn, [
55
- z(n.$slots, "default", {}, () => [
57
+ return (s, l) => (u(), A("div", vn, [
58
+ z(s.$slots, "default", {}, () => [
56
59
  R("div", null, [
57
60
  R("div", yn, [
58
61
  R("img", { src: o(ft) }, null, 8, bn),
59
- R("h1", null, O(t.text), 1)
62
+ R("h1", null, O(e.text), 1)
60
63
  ]),
61
64
  b(o(ue)),
62
65
  _n,
63
66
  R("div", wn, [
64
- b(o(ve), {
65
- onClick: e,
67
+ b(o(de), {
68
+ onClick: t,
66
69
  type: "primary",
67
70
  round: "",
68
71
  size: "large",
@@ -72,7 +75,20 @@ const Fo = () => {
72
75
  N(" 立即开始体验 ")
73
76
  ]),
74
77
  _: 1
75
- }, 8, ["icon"])
78
+ }, 8, ["icon"]),
79
+ e.example ? (u(), f(o(de), {
80
+ key: 0,
81
+ onClick: n,
82
+ type: "default",
83
+ round: "",
84
+ size: "large",
85
+ icon: o(ne)
86
+ }, {
87
+ default: p(() => [
88
+ N(" 加载示例项目 ")
89
+ ]),
90
+ _: 1
91
+ }, 8, ["icon"])) : v("", !0)
76
92
  ])
77
93
  ])
78
94
  ]),
@@ -97,32 +113,34 @@ const zn = {
97
113
  },
98
114
  src: {
99
115
  type: String
100
- },
101
- disabled: {
102
- type: Boolean
103
116
  }
104
- }, Cn = ["src"], oe = /* @__PURE__ */ D({
117
+ }, Cn = ["src"], ae = /* @__PURE__ */ D({
105
118
  name: "XIcon",
106
119
  __name: "Icon",
107
120
  props: Sn,
108
121
  setup(a) {
109
- const t = a, e = Je(), n = y(() => typeof t.icon == "object" ? Ae(t.icon) : null), s = y(() => {
110
- const i = {
111
- "is-pointer": !!e.onClick
122
+ const e = a, t = Je(), n = pe(), s = y(() => {
123
+ if (!e.icon)
124
+ return null;
125
+ const c = n?.appContext.app;
126
+ return typeof e.icon == "object" ? Ae(e.icon) : c?.component(e.icon) || e.icon;
127
+ }), l = y(() => {
128
+ const c = {
129
+ "is-pointer": !!t.onClick
112
130
  };
113
- return !n.value && t.icon && (i[t.icon] = !0), i;
114
- }), l = y(() => typeof t.size == "number" ? t.size : zn[t.size] ?? void 0);
115
- return (i, u) => (c(), m(o(At), {
116
- class: U(["x-icon", s.value]),
117
- color: t.color,
118
- size: l.value
131
+ return !s.value && e.icon && (c[e.icon] = !0), c;
132
+ }), i = y(() => typeof e.size == "number" ? e.size : zn[e.size] ?? void 0);
133
+ return (c, r) => (u(), f(o(At), {
134
+ class: U(["x-icon", l.value]),
135
+ color: e.color,
136
+ size: i.value
119
137
  }, {
120
138
  default: p(() => [
121
- z(i.$slots, "default", {}, () => [
122
- n.value ? (c(), m(Y(n.value), { key: 0 })) : v("", !0),
123
- t.src ? (c(), A("img", {
139
+ z(c.$slots, "default", {}, () => [
140
+ s.value ? (u(), f(Y(s.value), { key: 0 })) : v("", !0),
141
+ e.src ? (u(), A("img", {
124
142
  key: 1,
125
- src: t.src
143
+ src: e.src
126
144
  }, null, 8, Cn)) : v("", !0)
127
145
  ])
128
146
  ]),
@@ -145,27 +163,27 @@ const zn = {
145
163
  defaultIcon: { type: [Object, Function] }
146
164
  },
147
165
  setup(a) {
148
- const t = a, e = _e(), n = (i) => {
166
+ const e = a, t = pe(), n = (i) => {
149
167
  if (i)
150
- return typeof i == "string" && (e?.appContext.app?.component(i) || t.defaultIcon) || i;
151
- }, s = (i) => typeof i == "object" ? i : { value: i }, l = (i = []) => i.filter((u) => !u.hidden);
152
- return (i, u) => t.item.children ? (c(), m(o(Dt), Q({
168
+ return typeof i == "string" && (t?.appContext.app?.component(i) || e.defaultIcon) || i;
169
+ }, s = (i) => typeof i == "object" ? i : { value: i }, l = (i = []) => i.filter((c) => !c.hidden);
170
+ return (i, c) => e.item.children ? (u(), f(o(Dt), Q({
153
171
  key: 0,
154
- disabled: t.item.disabled
155
- }, t.subMenu, {
156
- index: String(t.item.id)
172
+ disabled: e.item.disabled
173
+ }, e.subMenu, {
174
+ index: String(e.item.id)
157
175
  }), {
158
176
  title: p(() => [
159
177
  R("div", Tn, [
160
- t.item.icon ? (c(), m(o(oe), {
178
+ e.item.icon ? (u(), f(o(ae), {
161
179
  key: 0,
162
- icon: n(t.item.icon)
180
+ icon: n(e.item.icon)
163
181
  }, null, 8, ["icon"])) : v("", !0),
164
- t.item.title ? (c(), A("span", Mn, O(t.item.title), 1)) : v("", !0),
165
- t.item.badge ? (c(), m(o(Ie), Q({
182
+ e.item.title ? (u(), A("span", Mn, O(e.item.title), 1)) : v("", !0),
183
+ e.item.badge ? (u(), f(o(Ie), Q({
166
184
  key: 2,
167
185
  class: "x-menu__badge"
168
- }, s(t.item.badge)), {
186
+ }, s(e.item.badge)), {
169
187
  default: p(() => [
170
188
  En
171
189
  ]),
@@ -174,25 +192,25 @@ const zn = {
174
192
  ])
175
193
  ]),
176
194
  default: p(() => [
177
- (c(!0), A(q, null, we(l(t.item.children), (r) => (c(), m(o(mt), {
195
+ (u(!0), A(q, null, we(l(e.item.children), (r) => (u(), f(o(mt), {
178
196
  key: r.id,
179
197
  item: r,
180
- subMenu: t.subMenu,
181
- defaultIcon: t.defaultIcon
198
+ subMenu: e.subMenu,
199
+ defaultIcon: e.defaultIcon
182
200
  }, null, 8, ["item", "subMenu", "defaultIcon"]))), 128))
183
201
  ]),
184
202
  _: 1
185
- }, 16, ["disabled", "index"])) : (c(), m(o(Vt), {
203
+ }, 16, ["disabled", "index"])) : (u(), f(o(Vt), {
186
204
  key: 1,
187
- index: String(t.item.id),
188
- disabled: t.item.disabled
205
+ index: String(e.item.id),
206
+ disabled: e.item.disabled
189
207
  }, {
190
208
  title: p(() => [
191
- t.item.title ? (c(), A("span", In, O(t.item.title), 1)) : v("", !0),
192
- t.item.badge ? (c(), m(o(Ie), Q({
209
+ e.item.title ? (u(), A("span", In, O(e.item.title), 1)) : v("", !0),
210
+ e.item.badge ? (u(), f(o(Ie), Q({
193
211
  key: 1,
194
212
  class: "x-menu__badge"
195
- }, s(t.item.badge)), {
213
+ }, s(e.item.badge)), {
196
214
  default: p(() => [
197
215
  Bn
198
216
  ]),
@@ -200,9 +218,9 @@ const zn = {
200
218
  }, 16)) : v("", !0)
201
219
  ]),
202
220
  default: p(() => [
203
- t.item.icon ? (c(), m(o(oe), {
221
+ e.item.icon ? (u(), f(o(ae), {
204
222
  key: 0,
205
- icon: n(t.item.icon)
223
+ icon: n(e.item.icon)
206
224
  }, null, 8, ["icon"])) : v("", !0)
207
225
  ]),
208
226
  _: 1
@@ -218,10 +236,10 @@ const zn = {
218
236
  defaultIcon: {}
219
237
  },
220
238
  emits: ["select"],
221
- setup(a, { emit: t }) {
222
- const e = a, n = y(() => e.data.filter((i) => !i.hidden)), s = (i, u) => {
223
- const r = (d, f = []) => {
224
- for (const h of f) {
239
+ setup(a, { emit: e }) {
240
+ const t = a, n = y(() => t.data.filter((i) => !i.hidden)), s = (i, c) => {
241
+ const r = (d, m = []) => {
242
+ for (const h of m) {
225
243
  if (h.id.toString() === d.toString())
226
244
  return h;
227
245
  if (h.children?.length) {
@@ -231,17 +249,17 @@ const zn = {
231
249
  }
232
250
  }
233
251
  };
234
- return r(u, i);
252
+ return r(c, i);
235
253
  }, l = (i) => {
236
- const u = s(n.value, i);
237
- u && t("select", u);
254
+ const c = s(n.value, i);
255
+ c && e("select", c);
238
256
  };
239
- return (i, u) => (c(), m(o(Pt), Q({ class: "x-menu" }, i.$attrs, { onSelect: l }), {
257
+ return (i, c) => (u(), f(o(Pt), Q({ class: "x-menu" }, i.$attrs, { onSelect: l }), {
240
258
  default: p(() => [
241
- (c(!0), A(q, null, we(n.value, (r) => (c(), m(o(mt), {
259
+ (u(!0), A(q, null, we(n.value, (r) => (u(), f(o(mt), {
242
260
  item: { ...r, icon: r.icon || o(ot) },
243
- defaultIcon: e.defaultIcon,
244
- subMenu: e.subMenu
261
+ defaultIcon: t.defaultIcon,
262
+ subMenu: t.subMenu
245
263
  }, null, 8, ["item", "defaultIcon", "subMenu"]))), 256))
246
264
  ]),
247
265
  _: 1
@@ -258,20 +276,20 @@ const zn = {
258
276
  }) },
259
277
  menu: {}
260
278
  },
261
- setup(a, { expose: t }) {
262
- const e = a, n = ke(), s = Ve(), l = y(() => s.params.id), i = () => {
263
- const r = e.project.home;
279
+ setup(a, { expose: e }) {
280
+ const t = a, n = ke(), s = Ve(), l = y(() => s.params.id), i = () => {
281
+ const r = t.project.home;
264
282
  r && n.push(r);
265
- }, u = (r) => {
283
+ }, c = (r) => {
266
284
  const d = r?.id;
267
285
  if (d) {
268
- const h = `${e.preview ? "/preview" : e.project.page}/${d}`;
286
+ const h = `${t.preview ? "/preview" : t.project.page}/${d}`;
269
287
  n.push(h);
270
288
  }
271
289
  };
272
- return t({
290
+ return e({
273
291
  goHome: i
274
- }), (r, d) => (c(), m(o(Ne), { class: "x-simple-mask" }, {
292
+ }), (r, d) => (u(), f(o(Ne), { class: "x-simple-mask" }, {
275
293
  default: p(() => [
276
294
  b(o(Rt), { class: "x-simple-mask__header" }, {
277
295
  default: p(() => [
@@ -281,7 +299,7 @@ const zn = {
281
299
  onClick: i
282
300
  }, [
283
301
  z(r.$slots, "logo", {}, () => [
284
- N(O(e.project.name), 1)
302
+ N(O(t.project.name), 1)
285
303
  ])
286
304
  ])
287
305
  ]),
@@ -295,9 +313,9 @@ const zn = {
295
313
  default: p(() => [
296
314
  b(o($t), { class: "x-simple-mask__aside" }, {
297
315
  default: p(() => [
298
- b(o(G), Q(e.menu, {
316
+ b(o(G), Q(t.menu, {
299
317
  "default-active": l.value,
300
- onSelect: u
318
+ onSelect: c
301
319
  }), null, 16, ["default-active"])
302
320
  ]),
303
321
  _: 1
@@ -313,7 +331,7 @@ const zn = {
313
331
  ]),
314
332
  _: 3
315
333
  }),
316
- r.$slots.footer ? (c(), m(o(Ot), {
334
+ r.$slots.footer ? (u(), f(o(Ot), {
317
335
  key: 0,
318
336
  class: "x-simple-mask__footer",
319
337
  height: "40px"
@@ -425,86 +443,86 @@ const zn = {
425
443
  };
426
444
  function Pn(a) {
427
445
  return y(() => {
428
- const t = a.tooltip;
429
- if (t)
430
- return typeof t == "string" ? { content: t } : t;
446
+ const e = a.tooltip;
447
+ if (e)
448
+ return typeof e == "string" ? { content: e } : e;
431
449
  });
432
450
  }
433
451
  function Rn(a) {
434
452
  return y(() => {
435
- const t = a.badge;
436
- if (t)
437
- return typeof t == "object" ? t : { value: t };
453
+ const e = a.badge;
454
+ if (e)
455
+ return typeof e == "object" ? e : { value: e };
438
456
  });
439
457
  }
440
458
  function $n(a) {
441
459
  return y(() => {
442
- const { dropdown: t, menus: e } = a;
443
- if (e && e.length > 0)
460
+ const { dropdown: e, menus: t } = a;
461
+ if (t && t.length > 0)
444
462
  return Object.assign(
445
463
  { popperClass: "x-action__menus", size: a.size },
446
- t || {}
464
+ e || {}
447
465
  );
448
466
  });
449
467
  }
450
468
  function Fn(a) {
451
- const t = _e();
469
+ const e = pe();
452
470
  return y(() => {
453
- const e = o(a);
454
- if (e)
455
- if (typeof e == "string" || e.setup || e.render || xt(e)) {
456
- const n = t?.appContext.app;
471
+ const t = o(a);
472
+ if (t)
473
+ if (typeof t == "string" || t.setup || t.render || xt(t)) {
474
+ const n = e?.appContext.app;
457
475
  return {
458
- icon: typeof e == "string" && n?.component(e) || e
476
+ icon: typeof t == "string" && n?.component(t) || t
459
477
  };
460
478
  } else
461
- return e;
479
+ return t;
462
480
  return null;
463
481
  });
464
482
  }
465
- function be(a) {
466
- const t = Fn(a);
467
- return t.value ? Ae(D({ render: () => K(oe, t.value) })) : null;
483
+ function _e(a) {
484
+ const e = Fn(a);
485
+ return e.value ? Ae(D({ render: () => K(ae, e.value) })) : null;
468
486
  }
469
- function Pe(a, t) {
487
+ function Pe(a, e) {
470
488
  return y(() => {
471
- const e = o(a);
472
- return typeof e == "function" ? e(t) : !!e;
489
+ const t = o(a);
490
+ return typeof t == "function" ? t(e) : !!t;
473
491
  });
474
492
  }
475
493
  const On = { key: 0 }, jn = /* @__PURE__ */ D({
476
494
  __name: "Trigger",
477
495
  props: gt,
478
496
  emits: ["click"],
479
- setup(a, { emit: t }) {
480
- const e = a, n = be(he(e, "icon")), s = Pe(he(e, "disabled")), l = y(() => ({
481
- [`is-${e.mode}`]: !!e.mode,
482
- [`is-${e.type}`]: !!e.type,
483
- [`is-${e.size}`]: !!e.size && e.size !== "default",
484
- [`is-background-${e.background}`]: e.mode === "icon" && !!e.background,
485
- "is-disabled": !!e.disabled,
486
- "is-circle": !!e.circle
497
+ setup(a, { emit: e }) {
498
+ const t = a, n = _e(ye(t, "icon")), s = Pe(ye(t, "disabled")), l = y(() => ({
499
+ [`is-${t.mode}`]: !!t.mode,
500
+ [`is-${t.type}`]: !!t.type,
501
+ [`is-${t.size}`]: !!t.size && t.size !== "default",
502
+ [`is-background-${t.background}`]: t.mode === "icon" && !!t.background,
503
+ "is-disabled": !!t.disabled,
504
+ "is-circle": !!t.circle
487
505
  })), i = () => {
488
- t("click");
506
+ e("click");
489
507
  };
490
- return (u, r) => e.mode === "button" ? (c(), m(o(ve), Q({
508
+ return (c, r) => t.mode === "button" ? (u(), f(o(de), Q({
491
509
  key: 0,
492
510
  icon: o(n),
493
- type: e.type,
494
- size: e.size,
511
+ type: t.type,
512
+ size: t.size,
495
513
  disabled: o(s)
496
- }, e.button, { onClick: i }), {
514
+ }, t.button, { onClick: i }), {
497
515
  default: p(() => [
498
- N(O(u.label), 1)
516
+ N(O(c.label), 1)
499
517
  ]),
500
518
  _: 1
501
- }, 16, ["icon", "type", "size", "disabled"])) : (c(), A("div", {
519
+ }, 16, ["icon", "type", "size", "disabled"])) : (u(), A("div", {
502
520
  key: 1,
503
521
  class: U(["x-action__inner", l.value]),
504
522
  onClick: i
505
523
  }, [
506
- (c(), m(Y(o(n)))),
507
- u.label ? (c(), A("span", On, O(u.label), 1)) : v("", !0)
524
+ (u(), f(Y(o(n)))),
525
+ c.label ? (u(), A("span", On, O(c.label), 1)) : v("", !0)
508
526
  ], 2));
509
527
  }
510
528
  }), W = /* @__PURE__ */ D({
@@ -512,23 +530,23 @@ const On = { key: 0 }, jn = /* @__PURE__ */ D({
512
530
  __name: "Action",
513
531
  props: gt,
514
532
  emits: ["click", "command"],
515
- setup(a, { emit: t }) {
516
- const e = a, n = zt(), s = Pn(e), l = Rn(e), i = $n(e), u = Pe(he(e, "disabled")), r = y(() => ({
517
- [`x-action--${e.mode}`]: !!e.mode
533
+ setup(a, { emit: e }) {
534
+ const t = a, n = zt(), s = Pn(t), l = Rn(t), i = $n(t), c = Pe(ye(t, "disabled")), r = y(() => ({
535
+ [`x-action--${t.mode}`]: !!t.mode
518
536
  })), d = () => {
519
- t("click", e);
520
- }, f = (_) => {
521
- const E = e.menus?.find((B) => B.command === _);
522
- E && t("command", E);
537
+ e("click", t);
538
+ }, m = (_) => {
539
+ const E = t.menus?.find((B) => B.command === _);
540
+ E && e("command", E);
523
541
  }, h = (_) => K(Ie, l.value, () => [].concat(_)), x = (_) => K(
524
542
  jt,
525
- { ...i.value, disabled: u.value, onCommand: f },
543
+ { ...i.value, disabled: c.value, onCommand: m },
526
544
  {
527
545
  default: () => [_],
528
546
  dropdown: () => [
529
547
  K(
530
548
  Nt,
531
- () => (e.menus || []).map((E) => K(
549
+ () => (t.menus || []).map((E) => K(
532
550
  Ut,
533
551
  E,
534
552
  () => n.item ? n.item({ item: E }) : E.label
@@ -536,16 +554,16 @@ const On = { key: 0 }, jn = /* @__PURE__ */ D({
536
554
  )
537
555
  ]
538
556
  }
539
- ), V = (_) => K(Xt, { ...s.value, disabled: u.value }, () => [
557
+ ), V = (_) => K(Xt, { ...s.value, disabled: c.value }, () => [
540
558
  _
541
559
  ]), k = y(() => {
542
- let _ = n.default ? n.default()[0] : K(Ae(jn), { ...e, onClick: d });
560
+ let _ = n.default ? n.default()[0] : K(Ae(jn), { ...t, onClick: d });
543
561
  return l.value && (_ = h(_)), i.value && (_ = x(_)), s.value && (_ = V(_)), _;
544
562
  });
545
- return (_, E) => (c(), A("div", {
563
+ return (_, E) => (u(), A("div", {
546
564
  class: U(["x-action", r.value])
547
565
  }, [
548
- (c(), m(Y(k.value)))
566
+ (u(), f(Y(k.value)))
549
567
  ], 2));
550
568
  }
551
569
  }), Nn = {
@@ -624,42 +642,42 @@ const On = { key: 0 }, jn = /* @__PURE__ */ D({
624
642
  __name: "ActionBar",
625
643
  props: Nn,
626
644
  emits: ["click", "command"],
627
- setup(a, { emit: t }) {
628
- const e = a, n = y(() => (e.items || []).map((i) => i === "|" ? i : {
645
+ setup(a, { emit: e }) {
646
+ const t = a, n = y(() => (t.items || []).map((i) => i === "|" ? i : {
629
647
  ...i,
630
648
  badge: i.badge ? {
631
- ...e.badge,
649
+ ...t.badge,
632
650
  ...typeof i.badge == "object" ? i.badge || {} : { value: i.badge }
633
651
  } : void 0,
634
652
  tooltip: i.tooltip ? {
635
- ...e.tooltip,
653
+ ...t.tooltip,
636
654
  ...typeof i.tooltip == "object" ? i.tooltip || {} : { content: i.tooltip }
637
655
  } : void 0
638
656
  })), s = (i) => {
639
- t("click", i);
640
- }, l = (i, u) => {
641
- t("command", i, u);
657
+ e("click", i);
658
+ }, l = (i, c) => {
659
+ e("command", i, c);
642
660
  };
643
- return (i, u) => (c(), m(o(M), {
661
+ return (i, c) => (u(), f(o(M), {
644
662
  class: "x-action-bar",
645
663
  align: "center"
646
664
  }, {
647
665
  default: p(() => [
648
- (c(!0), A(q, null, we(n.value, (r) => (c(), A(q, null, [
649
- r === "|" ? (c(), m(o(ue), {
666
+ (u(!0), A(q, null, we(n.value, (r) => (u(), A(q, null, [
667
+ r === "|" ? (u(), f(o(ue), {
650
668
  key: 0,
651
669
  direction: "vertical",
652
670
  class: "x-action-bar__divider"
653
- })) : (c(), m(o(W), Q({
671
+ })) : (u(), f(o(W), Q({
654
672
  key: 1,
655
- mode: e.mode,
656
- size: e.size,
657
- type: e.type,
658
- circle: e.circle,
659
- background: e.background,
660
- button: e.button,
661
- dropdown: e.dropdown,
662
- disabled: o(Pe)(e.disabled, r).value
673
+ mode: t.mode,
674
+ size: t.size,
675
+ type: t.type,
676
+ circle: t.circle,
677
+ background: t.background,
678
+ button: t.button,
679
+ dropdown: t.dropdown,
680
+ disabled: o(Pe)(t.disabled, r).value
663
681
  }, r, {
664
682
  onClick: s,
665
683
  onCommand: (d) => l(r, d)
@@ -783,34 +801,34 @@ const On = { key: 0 }, jn = /* @__PURE__ */ D({
783
801
  __name: "Container",
784
802
  props: Un,
785
803
  setup(a) {
786
- const t = a, e = _e(), n = y(() => {
787
- const i = e?.parent;
804
+ const e = a, t = pe(), n = y(() => {
805
+ const i = t?.parent;
788
806
  if (!i)
789
807
  return !1;
790
- const u = i.proxy;
791
- return u.$options.name === "XContainer" || !!u.flex;
808
+ const c = i.proxy;
809
+ return c.$options.name === "XContainer" || !!c.flex;
792
810
  }), s = y(() => ({
793
- "is-fit": t.fit,
794
- "is-flex": t.flex && !t.inline,
795
- "is-inline-flex": t.flex && t.inline,
796
- [`is-direction-${t.direction}`]: t.flex && t.direction !== "row",
797
- [`is-wrap-${t.wrap}`]: t.flex && t.wrap !== "nowrap",
798
- [`is-justify-${t.justify}`]: t.flex && t.justify !== "flex-start",
799
- [`is-align-${t.align}`]: t.flex && t.align !== "flex-start",
800
- [`is-align-content-${t.alignContent}`]: t.flex && t.alignContent !== "stretch",
801
- "is-grow": t.grow ?? n.value,
802
- "is-shrink": n.value && t.shrink,
803
- [`is-align-self-${t.alignSelf}`]: n.value && t.alignSelf !== "auto",
804
- [`is-overflow-${t.overflow}`]: !!t.overflow,
805
- "is-padding": !!t.padding
811
+ "is-fit": e.fit,
812
+ "is-flex": e.flex && !e.inline,
813
+ "is-inline-flex": e.flex && e.inline,
814
+ [`is-direction-${e.direction}`]: e.flex && e.direction !== "row",
815
+ [`is-wrap-${e.wrap}`]: e.flex && e.wrap !== "nowrap",
816
+ [`is-justify-${e.justify}`]: e.flex && e.justify !== "flex-start",
817
+ [`is-align-${e.align}`]: e.flex && e.align !== "flex-start",
818
+ [`is-align-content-${e.alignContent}`]: e.flex && e.alignContent !== "stretch",
819
+ "is-grow": e.grow ?? n.value,
820
+ "is-shrink": n.value && e.shrink,
821
+ [`is-align-self-${e.alignSelf}`]: n.value && e.alignSelf !== "auto",
822
+ [`is-overflow-${e.overflow}`]: !!e.overflow,
823
+ "is-padding": !!e.padding
806
824
  })), l = y(() => {
807
- const { width: i, height: u, fit: r } = t;
825
+ const { width: i, height: c, fit: r } = e;
808
826
  return r ? null : {
809
827
  width: i ? Xe(i) : void 0,
810
- height: u ? Xe(u) : void 0
828
+ height: c ? Xe(c) : void 0
811
829
  };
812
830
  });
813
- return (i, u) => (c(), m(Y(t.tag), {
831
+ return (i, c) => (u(), f(Y(e.tag), {
814
832
  class: U(["x-container", s.value]),
815
833
  style: Ee(l.value)
816
834
  }, {
@@ -853,12 +871,12 @@ const On = { key: 0 }, jn = /* @__PURE__ */ D({
853
871
  __name: "Header",
854
872
  props: Xn,
855
873
  setup(a) {
856
- const t = a, e = Je(), n = be(he(t, "icon")), s = y(() => ({
857
- [`is-size-${t.size}`]: !!t.size && t.size !== "default",
858
- "is-border": t.border,
859
- "is-pointer": !!e.onClick
874
+ const e = a, t = Je(), n = _e(ye(e, "icon")), s = y(() => ({
875
+ [`is-size-${e.size}`]: !!e.size && e.size !== "default",
876
+ "is-border": e.border,
877
+ "is-pointer": !!t.onClick
860
878
  }));
861
- return (l, i) => (c(), m(o(M), {
879
+ return (l, i) => (u(), f(o(M), {
862
880
  class: U(["x-header", s.value]),
863
881
  justify: "space-between",
864
882
  align: "center"
@@ -870,29 +888,29 @@ const On = { key: 0 }, jn = /* @__PURE__ */ D({
870
888
  grow: ""
871
889
  }, {
872
890
  default: p(() => [
873
- o(n) ? (c(), m(Y(o(n)), {
891
+ o(n) ? (u(), f(Y(o(n)), {
874
892
  key: 0,
875
893
  class: "x-header__icon"
876
894
  })) : v("", !0),
877
895
  R("span", Q({ class: "x-header__content" }, l.$attrs), [
878
896
  z(l.$slots, "default", {}, () => [
879
- N(O(t.content), 1)
897
+ N(O(e.content), 1)
880
898
  ])
881
899
  ], 16),
882
- t.more ? (c(), m(o(oe), {
900
+ e.more ? (u(), f(o(ae), {
883
901
  key: 1,
884
902
  class: "x-header__more",
885
903
  icon: o(Jt)
886
904
  }, null, 8, ["icon"])) : v("", !0),
887
- t.subtitle || l.$slots.subtitle ? (c(), A("span", Hn, [
905
+ e.subtitle || l.$slots.subtitle ? (u(), A("span", Hn, [
888
906
  z(l.$slots, "subtitle", {}, () => [
889
- N(O(t.subtitle), 1)
907
+ N(O(e.subtitle), 1)
890
908
  ])
891
909
  ])) : v("", !0)
892
910
  ]),
893
911
  _: 3
894
912
  }, 8, ["class"]),
895
- l.$slots.actions ? (c(), A("div", Ln, [
913
+ l.$slots.actions ? (u(), A("div", Ln, [
896
914
  z(l.$slots, "actions")
897
915
  ])) : v("", !0)
898
916
  ]),
@@ -975,44 +993,44 @@ const On = { key: 0 }, jn = /* @__PURE__ */ D({
975
993
  name: "XPanel",
976
994
  __name: "Panel",
977
995
  props: Wn,
978
- setup(a, { expose: t }) {
979
- const e = a, n = $(), s = y(() => ({
980
- "x-panel--card": !!e.card,
981
- "x-panel--default": !e.card,
982
- [`is-${e.size}`]: !!e.size && e.size !== "default",
983
- "is-border": !!e.border,
984
- "is-radius": !!e.radius,
985
- [`is-shadow-${e.shadow}`]: !!e.shadow && e.shadow !== "none"
986
- })), l = y(() => e.header === null ? null : typeof e.header == "string" ? {
987
- content: e.header,
988
- size: e.size
996
+ setup(a, { expose: e }) {
997
+ const t = a, n = $(), s = y(() => ({
998
+ "x-panel--card": !!t.card,
999
+ "x-panel--default": !t.card,
1000
+ [`is-${t.size}`]: !!t.size && t.size !== "default",
1001
+ "is-border": !!t.border,
1002
+ "is-radius": !!t.radius,
1003
+ [`is-shadow-${t.shadow}`]: !!t.shadow && t.shadow !== "none"
1004
+ })), l = y(() => t.header === null ? null : typeof t.header == "string" ? {
1005
+ content: t.header,
1006
+ size: t.size
989
1007
  } : {
990
- ...e.header,
991
- size: e.size
992
- }), i = y(() => e.fit || e.height ? "auto" : void 0);
993
- return t({
1008
+ ...t.header,
1009
+ size: t.size
1010
+ }), i = y(() => t.fit || t.height ? "auto" : void 0);
1011
+ return e({
994
1012
  bodyRef: n
995
- }), (u, r) => (c(), m(o(M), {
1013
+ }), (c, r) => (u(), f(o(M), {
996
1014
  class: U(["x-panel", s.value]),
997
1015
  direction: "column",
998
- fit: e.fit,
999
- width: e.width,
1000
- height: e.height
1016
+ fit: t.fit,
1017
+ width: t.width,
1018
+ height: t.height
1001
1019
  }, {
1002
1020
  default: p(() => [
1003
- l.value ? (c(), m(o(M), {
1021
+ l.value ? (u(), f(o(M), {
1004
1022
  key: 0,
1005
1023
  flex: !1,
1006
1024
  class: "x-panel__header"
1007
1025
  }, {
1008
1026
  default: p(() => [
1009
- z(u.$slots, "header", {}, () => [
1027
+ z(c.$slots, "header", {}, () => [
1010
1028
  b(o(ht), St(Ct(l.value)), {
1011
1029
  default: p(() => [
1012
- z(u.$slots, "title")
1030
+ z(c.$slots, "title")
1013
1031
  ]),
1014
1032
  actions: p(() => [
1015
- z(u.$slots, "actions")
1033
+ z(c.$slots, "actions")
1016
1034
  ]),
1017
1035
  _: 3
1018
1036
  }, 16)
@@ -1028,20 +1046,20 @@ const On = { key: 0 }, jn = /* @__PURE__ */ D({
1028
1046
  grow: "",
1029
1047
  padding: "",
1030
1048
  class: "x-panel__body"
1031
- }, e.body), {
1049
+ }, t.body), {
1032
1050
  default: p(() => [
1033
- z(u.$slots, "default")
1051
+ z(c.$slots, "default")
1034
1052
  ]),
1035
1053
  _: 3
1036
1054
  }, 16, ["overflow"]),
1037
- u.$slots.footer ? (c(), m(o(M), Q({
1055
+ c.$slots.footer ? (u(), f(o(M), Q({
1038
1056
  key: 1,
1039
1057
  flex: !1,
1040
1058
  padding: "",
1041
1059
  class: "x-panel__footer"
1042
- }, e.footer), {
1060
+ }, t.footer), {
1043
1061
  default: p(() => [
1044
- z(u.$slots, "footer")
1062
+ z(c.$slots, "footer")
1045
1063
  ]),
1046
1064
  _: 3
1047
1065
  }, 16)) : v("", !0)
@@ -1051,56 +1069,56 @@ const On = { key: 0 }, jn = /* @__PURE__ */ D({
1051
1069
  }
1052
1070
  }), Le = "user-select-none";
1053
1071
  class We {
1054
- constructor(t, e = {}) {
1055
- this.el = t, this.options = e, this.scope = Ke(), this.scope.run(() => {
1072
+ constructor(e, t = {}) {
1073
+ this.el = e, this.options = t, this.scope = Ke(), this.scope.run(() => {
1056
1074
  this.init();
1057
1075
  });
1058
1076
  }
1059
1077
  scope;
1060
1078
  dragging = !1;
1061
1079
  getHandle() {
1062
- const { selector: t, handle: e } = this.options;
1063
- return t ? this.el.querySelector(t) : e;
1080
+ const { selector: e, handle: t } = this.options;
1081
+ return e ? this.el.querySelector(e) : t;
1064
1082
  }
1065
1083
  getTarget() {
1066
- const { target: t = "body" } = this.options;
1067
- return typeof t == "string" ? document.querySelector(t) : o(t) || document.body;
1084
+ const { target: e = "body" } = this.options;
1085
+ return typeof e == "string" ? document.querySelector(e) : o(e) || document.body;
1068
1086
  }
1069
1087
  init() {
1070
- const { el: t, options: e } = this, { disabled: n, delay: s = 150, onStart: l, onEnd: i } = e;
1088
+ const { el: e, options: t } = this, { disabled: n, delay: s = 150, onStart: l, onEnd: i } = t;
1071
1089
  if (n)
1072
1090
  return;
1073
- let u = null;
1091
+ let c = null;
1074
1092
  const r = this.getHandle(), d = this.getTarget();
1075
- let f = t.getBoundingClientRect(), h = null;
1076
- const { x, y: V } = dn(t, {
1077
- initialValue: { x: f.x, y: f.y },
1078
- ...e,
1093
+ let m = e.getBoundingClientRect(), h = null;
1094
+ const { x, y: V } = dn(e, {
1095
+ initialValue: { x: m.x, y: m.y },
1096
+ ...t,
1079
1097
  handle: r,
1080
1098
  onStart: (k, _) => {
1081
- document.body.classList.add(Le), clearTimeout(u), u = setTimeout(() => {
1082
- this.dragging = !0, f = t.getBoundingClientRect(), h = d?.getBoundingClientRect(), l && l(k, _);
1099
+ document.body.classList.add(Le), clearTimeout(c), c = setTimeout(() => {
1100
+ this.dragging = !0, m = e.getBoundingClientRect(), h = d?.getBoundingClientRect(), l && l(k, _);
1083
1101
  }, s);
1084
1102
  },
1085
1103
  onEnd: (k, _) => {
1086
- if (clearTimeout(u), document.body.classList.remove(Le), this.dragging && h) {
1104
+ if (clearTimeout(c), document.body.classList.remove(Le), this.dragging && h) {
1087
1105
  this.dragging = !1;
1088
- const { x: E, y: B } = k, g = this.getPosition(h, f, E, B);
1106
+ const { x: E, y: B } = k, g = this.getPosition(h, m, E, B);
1089
1107
  i && i(g, _), h = null;
1090
1108
  }
1091
1109
  }
1092
1110
  });
1093
- ne([x, V], () => {
1111
+ oe([x, V], () => {
1094
1112
  if (this.dragging && h) {
1095
- const k = this.getPosition(h, f, x.value, V.value);
1096
- t.style.left = `${k.x}px`, t.style.top = `${k.y}px`;
1113
+ const k = this.getPosition(h, m, x.value, V.value);
1114
+ e.style.left = `${k.x}px`, e.style.top = `${k.y}px`;
1097
1115
  }
1098
1116
  });
1099
1117
  }
1100
- getPosition(t, e, n, s) {
1101
- const { edge: l = 50 } = this.options, i = -e.width + l, u = t.width - l, r = 0, d = t.height - l, f = Math.min(u, Math.max(n, i)), h = Math.min(d, Math.max(s, r));
1118
+ getPosition(e, t, n, s) {
1119
+ const { edge: l = 50 } = this.options, i = -t.width + l, c = e.width - l, r = 0, d = e.height - l, m = Math.min(c, Math.max(n, i)), h = Math.min(d, Math.max(s, r));
1102
1120
  return {
1103
- x: f,
1121
+ x: m,
1104
1122
  y: h
1105
1123
  };
1106
1124
  }
@@ -1109,23 +1127,23 @@ class We {
1109
1127
  }
1110
1128
  }
1111
1129
  const Qn = {
1112
- mounted(a, t) {
1113
- const e = t.value || {}, n = new We(a, e);
1130
+ mounted(a, e) {
1131
+ const t = e.value || {}, n = new We(a, t);
1114
1132
  a.__draggable__ = n;
1115
1133
  },
1116
- updated(a, t) {
1117
- const e = t.value || {};
1134
+ updated(a, e) {
1135
+ const t = e.value || {};
1118
1136
  let n = a.__draggable__;
1119
- n && !ct(n.options, e) && (n.destory(), a.__draggable__ = new We(a, e));
1137
+ n && !ct(n.options, t) && (n.destory(), a.__draggable__ = new We(a, t));
1120
1138
  },
1121
1139
  unmounted(a) {
1122
- const t = a.__draggable__;
1123
- t && (t.destory(), a.__draggable__ = null);
1140
+ const e = a.__draggable__;
1141
+ e && (e.destory(), a.__draggable__ = null);
1124
1142
  }
1125
1143
  }, Me = "user-select-none";
1126
1144
  class Qe {
1127
- constructor(t, e = {}) {
1128
- this.el = t, this.options = e, this.scope = Ke(), this.scope.run(() => {
1145
+ constructor(e, t = {}) {
1146
+ this.el = e, this.options = t, this.scope = Ke(), this.scope.run(() => {
1129
1147
  this.init();
1130
1148
  });
1131
1149
  }
@@ -1136,30 +1154,30 @@ class Qe {
1136
1154
  cleanMousedown;
1137
1155
  cleanMouseup;
1138
1156
  init() {
1139
- const { el: t, options: e } = this, { disabled: n, onStart: s, onEnd: l } = e;
1157
+ const { el: e, options: t } = this, { disabled: n, onStart: s, onEnd: l } = t;
1140
1158
  if (n)
1141
1159
  return;
1142
- this.MIE = pn(t), this.cleanMousedown = ye(document, "mousedown", () => {
1143
- this.direction?.value && this.MIE && (this.resizing.value = !0, t.classList.add("is-resizing", `is-${this.direction.value}-resizing`), s && s(this.direction.value, this.MIE));
1144
- }), this.cleanMouseup = ye(document, "mouseup", () => {
1145
- this.resizing.value && this.direction?.value && this.MIE && (t.classList.remove(
1160
+ this.MIE = pn(e), this.cleanMousedown = be(document, "mousedown", () => {
1161
+ this.direction?.value && this.MIE && (this.resizing.value = !0, e.classList.add("is-resizing", `is-${this.direction.value}-resizing`), s && s(this.direction.value, this.MIE));
1162
+ }), this.cleanMouseup = be(document, "mouseup", () => {
1163
+ this.resizing.value && this.direction?.value && this.MIE && (e.classList.remove(
1146
1164
  "is-resizing",
1147
1165
  `is-${this.direction.value}-resizing`
1148
1166
  ), l && l(this.direction.value, this.MIE)), this.resizing.value = !1;
1149
- }), ne(this.direction, (r) => {
1167
+ }), oe(this.direction, (r) => {
1150
1168
  const d = document.body;
1151
1169
  d.style.cursor = r ? `${r}-resize` : "", r ? d.classList.add(Me) : d.classList.remove(Me);
1152
1170
  });
1153
- const { x: i, y: u } = this.MIE;
1154
- ne([i, u], () => {
1171
+ const { x: i, y: c } = this.MIE;
1172
+ oe([i, c], () => {
1155
1173
  this.resizing.value ? this.resize() : this.direction.value = this.getDirection();
1156
1174
  });
1157
1175
  }
1158
1176
  resize() {
1159
- const { MIE: t, direction: e, resizing: n, options: s, el: l } = this, i = e?.value || "";
1160
- if (!t || !n.value || !i)
1177
+ const { MIE: e, direction: t, resizing: n, options: s, el: l } = this, i = t?.value || "";
1178
+ if (!e || !n.value || !i)
1161
1179
  return;
1162
- const { x: u, y: r, elementX: d, elementY: f, elementHeight: h, elementWidth: x } = t, { onResizing: V } = s, {
1180
+ const { x: c, y: r, elementX: d, elementY: m, elementHeight: h, elementWidth: x } = e, { onResizing: V } = s, {
1163
1181
  minWidth: k = 0,
1164
1182
  minHeight: _ = 0,
1165
1183
  maxWidth: E = 99999,
@@ -1170,7 +1188,7 @@ class Qe {
1170
1188
  l.style.width = `${g}px`;
1171
1189
  }
1172
1190
  if (i.includes("s")) {
1173
- const g = Math.min(Math.max(f.value, _), B);
1191
+ const g = Math.min(Math.max(m.value, _), B);
1174
1192
  l.style.height = `${g}px`;
1175
1193
  }
1176
1194
  if (i.includes("w")) {
@@ -1178,45 +1196,45 @@ class Qe {
1178
1196
  Math.max(x.value - d.value, k),
1179
1197
  E
1180
1198
  );
1181
- l.style.width = `${g}px`, l.style.left = `${u.value}px`;
1199
+ l.style.width = `${g}px`, l.style.left = `${c.value}px`;
1182
1200
  }
1183
1201
  if (i.includes("n")) {
1184
1202
  const g = Math.min(
1185
- Math.max(h.value - f.value, _),
1203
+ Math.max(h.value - m.value, _),
1186
1204
  B
1187
1205
  );
1188
1206
  this.el.style.height = `${g}px`, this.el.style.top = `${r.value}px`;
1189
1207
  }
1190
- V && V(i, t);
1208
+ V && V(i, e);
1191
1209
  }
1192
1210
  getDirection() {
1193
1211
  if (!this.MIE)
1194
1212
  return "";
1195
- const { elementX: t, elementY: e, elementHeight: n, elementWidth: s, isOutside: l } = this.MIE;
1213
+ const { elementX: e, elementY: t, elementHeight: n, elementWidth: s, isOutside: l } = this.MIE;
1196
1214
  if (l.value)
1197
1215
  return "";
1198
- const { dirs: i = ["n", "s", "w", "e"], edge: u = 5 } = this.options;
1216
+ const { dirs: i = ["n", "s", "w", "e"], edge: c = 5 } = this.options;
1199
1217
  let r = "";
1200
- return i.includes("n") && e.value <= u ? r += "n" : i.includes("s") && e.value > n.value - u && (r += "s"), i.includes("w") && t.value <= u ? r += "w" : i.includes("e") && t.value > s.value - u && (r += "e"), r;
1218
+ return i.includes("n") && t.value <= c ? r += "n" : i.includes("s") && t.value > n.value - c && (r += "s"), i.includes("w") && e.value <= c ? r += "w" : i.includes("e") && e.value > s.value - c && (r += "e"), r;
1201
1219
  }
1202
1220
  destory() {
1203
- const t = document.body;
1204
- t.style.cursor = "", t.classList.remove(Me), this.cleanMousedown && this.cleanMousedown(), this.cleanMouseup && this.cleanMouseup(), this.MIE?.stop(), this.scope.stop();
1221
+ const e = document.body;
1222
+ e.style.cursor = "", e.classList.remove(Me), this.cleanMousedown && this.cleanMousedown(), this.cleanMouseup && this.cleanMouseup(), this.MIE?.stop(), this.scope.stop();
1205
1223
  }
1206
1224
  }
1207
1225
  const yt = {
1208
- mounted(a, t) {
1209
- const e = t.value || {}, n = new Qe(a, e);
1226
+ mounted(a, e) {
1227
+ const t = e.value || {}, n = new Qe(a, t);
1210
1228
  a.__resizable__ = n;
1211
1229
  },
1212
- updated(a, t) {
1213
- const e = t.value || {};
1230
+ updated(a, e) {
1231
+ const t = e.value || {};
1214
1232
  let n = a.__resizable__;
1215
- n && !ct(n.options, e) && (n.destory(), a.__resizable__ = new Qe(a, e));
1233
+ n && !ct(n.options, t) && (n.destory(), a.__resizable__ = new Qe(a, t));
1216
1234
  },
1217
1235
  unmounted(a) {
1218
- const t = a.__resizable__;
1219
- t && (t.destory(), a.__resizable__ = null);
1236
+ const e = a.__resizable__;
1237
+ e && (e.destory(), a.__resizable__ = null);
1220
1238
  }
1221
1239
  }, Zn = {
1222
1240
  modelValue: {
@@ -1304,8 +1322,8 @@ const yt = {
1304
1322
  }
1305
1323
  };
1306
1324
  let ie = 1e3;
1307
- function Jn(a, t) {
1308
- const { width: e, height: n } = rt(t), s = Ye({
1325
+ function Jn(a, e) {
1326
+ const { width: t, height: n } = rt(e), s = Ye({
1309
1327
  mode: a.mode || "normal",
1310
1328
  wrapperWidth: 0,
1311
1329
  wrapperHeight: 0,
@@ -1317,9 +1335,9 @@ function Jn(a, t) {
1317
1335
  dragging: !1,
1318
1336
  resizing: !1
1319
1337
  });
1320
- return ne([e, n], ([l, i]) => {
1321
- s.wrapperWidth = l, s.wrapperHeight = i, s.width = pe(a.width, l), s.height = pe(a.height, i), s.left = a.left ? pe(a.left, l) - s.width / 2 : Math.max(Math.floor((l - s.width) / 2), 0), s.top = a.top ? pe(a.top, i) : Math.max(Math.floor((i - s.height) / 2), 0);
1322
- }), ne(s, (l) => {
1338
+ return oe([t, n], ([l, i]) => {
1339
+ s.wrapperWidth = l, s.wrapperHeight = i, s.width = me(a.width, l), s.height = me(a.height, i), s.left = a.left ? me(a.left, l) - s.width / 2 : Math.max(Math.floor((l - s.width) / 2), 0), s.top = a.top ? me(a.top, i) : Math.max(Math.floor((i - s.height) / 2), 0);
1340
+ }), oe(s, (l) => {
1323
1341
  ie = Math.max(l.zIndex, ie);
1324
1342
  }), {
1325
1343
  state: s,
@@ -1328,40 +1346,40 @@ function Jn(a, t) {
1328
1346
  minimized: y(() => s.mode === "minimized")
1329
1347
  };
1330
1348
  }
1331
- function Kn(a, t) {
1332
- const e = y(() => {
1333
- const { width: i, height: u, top: r, left: d, zIndex: f } = t;
1349
+ function Kn(a, e) {
1350
+ const t = y(() => {
1351
+ const { width: i, height: c, top: r, left: d, zIndex: m } = e;
1334
1352
  return {
1335
1353
  width: `${i}px`,
1336
- height: `${u}px`,
1354
+ height: `${c}px`,
1337
1355
  top: `${r}px`,
1338
1356
  left: `${d}px`,
1339
- zIndex: f
1357
+ zIndex: m
1340
1358
  };
1341
1359
  }), n = y(() => ({
1342
- [`is-${t.mode}`]: !!t.mode,
1360
+ [`is-${e.mode}`]: !!e.mode,
1343
1361
  "is-draggable": !!a.draggable,
1344
1362
  "is-resizable": !!a.resizable,
1345
1363
  "is-primary": !!a.primary
1346
1364
  })), s = y(() => ({
1347
- [`is-${t.mode}`]: !!t.mode,
1348
- "is-dragging": t.dragging,
1349
- "is-resizing": t.resizing
1365
+ [`is-${e.mode}`]: !!e.mode,
1366
+ "is-dragging": e.dragging,
1367
+ "is-resizing": e.resizing
1350
1368
  })), l = y(() => ({
1351
- zIndex: t.zIndex
1369
+ zIndex: e.zIndex
1352
1370
  }));
1353
1371
  return {
1354
- styles: e,
1372
+ styles: t,
1355
1373
  classes: n,
1356
1374
  wrapperClass: s,
1357
1375
  modalStyle: l
1358
1376
  };
1359
1377
  }
1360
- function Yn(a, t, e) {
1361
- const n = (f) => {
1362
- t.mode = f, ["maximized", "minimized", "normal"].includes(f) && e(f), e("modeChange", f);
1378
+ function Yn(a, e, t) {
1379
+ const n = (m) => {
1380
+ e.mode = m, ["maximized", "minimized", "normal"].includes(m) && t(m), t("modeChange", m);
1363
1381
  }, s = async () => {
1364
- (!a.beforeClose || await a.beforeClose()) && (e("update:modelValue", !1), e("close"), e("destroy"));
1382
+ (!a.beforeClose || await a.beforeClose()) && (t("update:modelValue", !1), t("close"), t("destroy"));
1365
1383
  };
1366
1384
  return {
1367
1385
  close: s,
@@ -1369,15 +1387,15 @@ function Yn(a, t, e) {
1369
1387
  show: () => n("normal"),
1370
1388
  hide: () => n("minimized"),
1371
1389
  active: () => {
1372
- t.zIndex = Math.max(t.zIndex, ++ie);
1390
+ e.zIndex = Math.max(e.zIndex, ++ie);
1373
1391
  },
1374
- submit: () => e("submit"),
1392
+ submit: () => t("submit"),
1375
1393
  cancel: () => {
1376
- e("cancel"), s();
1394
+ t("cancel"), s();
1377
1395
  }
1378
1396
  };
1379
1397
  }
1380
- function Gn(a, t, e, n) {
1398
+ function Gn(a, e, t, n) {
1381
1399
  return y(() => {
1382
1400
  const s = typeof a.draggable == "boolean" ? !a.draggable : !!a.draggable?.disabled;
1383
1401
  return {
@@ -1386,21 +1404,21 @@ function Gn(a, t, e, n) {
1386
1404
  target: n,
1387
1405
  selector: ".x-panel__header",
1388
1406
  onStart(l) {
1389
- t.dragging = !0, t.zIndex = Math.max(t.zIndex, ++ie), e("dragStart", l);
1407
+ e.dragging = !0, e.zIndex = Math.max(e.zIndex, ++ie), t("dragStart", l);
1390
1408
  },
1391
1409
  onMove(l) {
1392
- e("dragging", l);
1410
+ t("dragging", l);
1393
1411
  },
1394
1412
  onEnd(l) {
1395
- if (t.mode === "maximized")
1413
+ if (e.mode === "maximized")
1396
1414
  return;
1397
- const { x: i, y: u } = l;
1398
- t.left = i, t.top = u, t.dragging = !1, e("dragEnd", l);
1415
+ const { x: i, y: c } = l;
1416
+ e.left = i, e.top = c, e.dragging = !1, t("dragEnd", l);
1399
1417
  }
1400
1418
  };
1401
1419
  });
1402
1420
  }
1403
- function qn(a, t, e) {
1421
+ function qn(a, e, t) {
1404
1422
  return y(() => {
1405
1423
  const n = typeof a.resizable == "boolean" ? !a.resizable : !!a.resizable?.disabled;
1406
1424
  return {
@@ -1410,29 +1428,29 @@ function qn(a, t, e) {
1410
1428
  disabled: n,
1411
1429
  dirs: ["e", "s", "w"],
1412
1430
  onStart(s, l) {
1413
- t.resizing = !0, t.zIndex = Math.max(t.zIndex, ++ie), e("resizeStart", s, l);
1431
+ e.resizing = !0, e.zIndex = Math.max(e.zIndex, ++ie), t("resizeStart", s, l);
1414
1432
  },
1415
1433
  onResizing(s, l) {
1416
- e("resizing", s, l);
1434
+ t("resizing", s, l);
1417
1435
  },
1418
1436
  onEnd(s, l) {
1419
- t.left = l.elementPositionX.value, t.top = l.elementPositionY.value, t.width = l.elementWidth.value, t.height = l.elementHeight.value, t.resizing = !1, e("resizeEnd", s, l);
1437
+ e.left = l.elementPositionX.value, e.top = l.elementPositionY.value, e.width = l.elementWidth.value, e.height = l.elementHeight.value, e.resizing = !1, t("resizeEnd", s, l);
1420
1438
  }
1421
1439
  };
1422
1440
  });
1423
1441
  }
1424
- function eo(a, t) {
1425
- const e = a.componentInstance;
1426
- if (!e)
1442
+ function eo(a, e) {
1443
+ const t = a.componentInstance;
1444
+ if (!t)
1427
1445
  return;
1428
1446
  let n = null;
1429
1447
  return Tt(() => {
1430
- const s = o(t), l = o(s?.bodyRef);
1431
- n = e.$el, l && l.$el && l.$el.appendChild(n);
1448
+ const s = o(e), l = o(s?.bodyRef);
1449
+ n = t.$el, l && l.$el && l.$el.appendChild(n);
1432
1450
  }), Mt(() => {
1433
1451
  n && n.parentNode && n.parentNode.removeChild(n);
1434
1452
  }), {
1435
- componentInstance: e
1453
+ componentInstance: t
1436
1454
  };
1437
1455
  }
1438
1456
  const to = ["src"], bt = /* @__PURE__ */ D({
@@ -1440,17 +1458,17 @@ const to = ["src"], bt = /* @__PURE__ */ D({
1440
1458
  __name: "Dialog",
1441
1459
  props: Zn,
1442
1460
  emits: ["update:modelValue", "open", "close", "destroy", "maximized", "minimized", "normal", "modeChange", "dragStart", "dragging", "dragEnd", "resizeStart", "resizeEnd", "resizing", "submit", "cancel"],
1443
- setup(a, { expose: t, emit: e }) {
1444
- const n = a, s = _e(), l = $(), i = $(), { state: u, maximized: r, minimized: d, normal: f } = Jn(n, l), { styles: h, classes: x, wrapperClass: V, modalStyle: k } = Kn(n, u), { changeMode: _, active: E, close: B, show: g, hide: I, submit: C, cancel: F } = Yn(
1461
+ setup(a, { expose: e, emit: t }) {
1462
+ const n = a, s = pe(), l = $(), i = $(), { state: c, maximized: r, minimized: d, normal: m } = Jn(n, l), { styles: h, classes: x, wrapperClass: V, modalStyle: k } = Kn(n, c), { changeMode: _, active: E, close: B, show: g, hide: I, submit: C, cancel: F } = Yn(
1445
1463
  n,
1446
- u,
1447
- e
1448
- ), X = Gn(n, u, e, l), ee = qn(n, u, e), te = eo(n, i);
1464
+ c,
1465
+ t
1466
+ ), X = Gn(n, c, t, l), ee = qn(n, c, t), te = eo(n, i);
1449
1467
  return Ge(async () => {
1450
- n.modelValue && (await le(), s && e("open", s));
1451
- }), t({
1468
+ n.modelValue && (await le(), s && t("open", s));
1469
+ }), e({
1452
1470
  panelRef: i,
1453
- state: u,
1471
+ state: c,
1454
1472
  maximized: r,
1455
1473
  minimized: d,
1456
1474
  changeMode: _,
@@ -1459,7 +1477,7 @@ const to = ["src"], bt = /* @__PURE__ */ D({
1459
1477
  submit: C,
1460
1478
  cancel: F,
1461
1479
  componentInstance: te
1462
- }), (j, H) => n.modelValue ? (c(), m(qe, {
1480
+ }), (j, H) => n.modelValue ? (u(), f(qe, {
1463
1481
  key: 0,
1464
1482
  to: "body"
1465
1483
  }, [
@@ -1468,12 +1486,12 @@ const to = ["src"], bt = /* @__PURE__ */ D({
1468
1486
  ref: l,
1469
1487
  class: U(["x-dialog__wrapper", o(V)])
1470
1488
  }, [
1471
- n.modal ? (c(), A("div", {
1489
+ n.modal ? (u(), A("div", {
1472
1490
  key: 0,
1473
1491
  class: "x-dialog__modal",
1474
1492
  style: Ee(o(k))
1475
1493
  }, null, 4)) : v("", !0),
1476
- L((c(), m(o(vt), {
1494
+ L((u(), f(o(vt), {
1477
1495
  ref_key: "panelRef",
1478
1496
  ref: i,
1479
1497
  class: U(["x-dialog", o(x)]),
@@ -1493,35 +1511,35 @@ const to = ["src"], bt = /* @__PURE__ */ D({
1493
1511
  ]),
1494
1512
  actions: p(() => [
1495
1513
  z(j.$slots, "actions"),
1496
- n.minimizable ? (c(), m(o(W), {
1514
+ n.minimizable ? (u(), f(o(W), {
1497
1515
  key: 0,
1498
1516
  icon: o(ln),
1499
1517
  size: n.size,
1500
1518
  mode: "icon",
1501
1519
  type: "primary",
1502
1520
  background: "hover",
1503
- onClick: H[0] || (H[0] = (ae) => o(_)("minimized"))
1521
+ onClick: H[0] || (H[0] = (se) => o(_)("minimized"))
1504
1522
  }, null, 8, ["icon", "size"])) : v("", !0),
1505
- n.maximizable ? (c(), A(q, { key: 1 }, [
1506
- o(f) ? (c(), m(o(W), {
1523
+ n.maximizable ? (u(), A(q, { key: 1 }, [
1524
+ o(m) ? (u(), f(o(W), {
1507
1525
  key: 1,
1508
1526
  icon: o(cn),
1509
1527
  size: n.size,
1510
1528
  mode: "icon",
1511
1529
  type: "primary",
1512
1530
  background: "hover",
1513
- onClick: H[2] || (H[2] = (ae) => o(_)("maximized"))
1514
- }, null, 8, ["icon", "size"])) : (c(), m(o(W), {
1531
+ onClick: H[2] || (H[2] = (se) => o(_)("maximized"))
1532
+ }, null, 8, ["icon", "size"])) : (u(), f(o(W), {
1515
1533
  key: 0,
1516
1534
  icon: o(rn),
1517
1535
  size: n.size,
1518
1536
  mode: "icon",
1519
1537
  type: "primary",
1520
1538
  background: "hover",
1521
- onClick: H[1] || (H[1] = (ae) => o(_)("normal"))
1539
+ onClick: H[1] || (H[1] = (se) => o(_)("normal"))
1522
1540
  }, null, 8, ["icon", "size"]))
1523
1541
  ], 64)) : v("", !0),
1524
- n.closable ? (c(), m(o(W), {
1542
+ n.closable ? (u(), f(o(W), {
1525
1543
  key: 2,
1526
1544
  icon: o(un),
1527
1545
  size: n.size,
@@ -1533,8 +1551,8 @@ const to = ["src"], bt = /* @__PURE__ */ D({
1533
1551
  ]),
1534
1552
  default: p(() => [
1535
1553
  z(j.$slots, "default", {}, () => [
1536
- n.content ? (c(), m(Y(n.content), { key: 0 })) : v("", !0),
1537
- n.src ? (c(), A("iframe", {
1554
+ n.content ? (u(), f(Y(n.content), { key: 0 })) : v("", !0),
1555
+ n.src ? (u(), A("iframe", {
1538
1556
  key: 1,
1539
1557
  src: n.src,
1540
1558
  class: "x-dialog__frame"
@@ -1556,7 +1574,7 @@ const to = ["src"], bt = /* @__PURE__ */ D({
1556
1574
  b(o(M), null, {
1557
1575
  default: p(() => [
1558
1576
  z(j.$slots, "handle"),
1559
- n.cancel ? (c(), m(o(ve), {
1577
+ n.cancel ? (u(), f(o(de), {
1560
1578
  key: 0,
1561
1579
  type: "default",
1562
1580
  size: n.size,
@@ -1567,7 +1585,7 @@ const to = ["src"], bt = /* @__PURE__ */ D({
1567
1585
  ]),
1568
1586
  _: 1
1569
1587
  }, 8, ["size", "onClick"])) : v("", !0),
1570
- n.submit ? (c(), m(o(ve), {
1588
+ n.submit ? (u(), f(o(de), {
1571
1589
  key: 1,
1572
1590
  type: "primary",
1573
1591
  size: n.size,
@@ -1593,15 +1611,15 @@ const to = ["src"], bt = /* @__PURE__ */ D({
1593
1611
  ])) : v("", !0);
1594
1612
  }
1595
1613
  });
1596
- function $e(a, t) {
1597
- const e = document.createElement("div"), n = b(bt, a);
1598
- n.appContext = t ?? $e._context, Fe(n, e);
1614
+ function $e(a, e) {
1615
+ const t = document.createElement("div"), n = b(bt, a);
1616
+ n.appContext = e ?? $e._context, Fe(n, t);
1599
1617
  const s = () => {
1600
- Fe(null, e), e.parentNode?.removeChild(e);
1618
+ Fe(null, t), t.parentNode?.removeChild(t);
1601
1619
  };
1602
1620
  return n.props.onDestroy = () => {
1603
1621
  s();
1604
- }, document.body.appendChild(e), {
1622
+ }, document.body.appendChild(t), {
1605
1623
  vnode: n,
1606
1624
  destroy: s
1607
1625
  };
@@ -1612,15 +1630,15 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
1612
1630
  collapsed: { type: Boolean }
1613
1631
  },
1614
1632
  setup(a) {
1615
- const t = a;
1616
- return (e, n) => L((c(), m(o(M), {
1617
- class: U(["x-mask-sidebar", { "is-collapsed": t.collapsed }]),
1633
+ const e = a;
1634
+ return (t, n) => L((u(), f(o(M), {
1635
+ class: U(["x-mask-sidebar", { "is-collapsed": e.collapsed }]),
1618
1636
  grow: !1,
1619
1637
  flex: "",
1620
1638
  direction: "column"
1621
1639
  }, {
1622
1640
  default: p(() => [
1623
- z(e.$slots, "brand"),
1641
+ z(t.$slots, "brand"),
1624
1642
  b(o(M), {
1625
1643
  class: "x-mask-sidebar__wrapper",
1626
1644
  flex: "",
@@ -1630,7 +1648,7 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
1630
1648
  align: "center"
1631
1649
  }, {
1632
1650
  default: p(() => [
1633
- z(e.$slots, "default"),
1651
+ z(t.$slots, "default"),
1634
1652
  no
1635
1653
  ]),
1636
1654
  _: 3
@@ -1640,7 +1658,7 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
1640
1658
  }, 8, ["class"])), [
1641
1659
  [o(yt), {
1642
1660
  dirs: ["e"],
1643
- disabled: t.collapsed,
1661
+ disabled: e.collapsed,
1644
1662
  maxWidth: 500,
1645
1663
  minWidth: 200
1646
1664
  }]
@@ -1658,40 +1676,40 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
1658
1676
  "update:keyword",
1659
1677
  "update:favorite"
1660
1678
  ],
1661
- setup(a, { emit: t }) {
1662
- const e = a, n = $(!1), s = $(""), l = $(!1), i = () => {
1679
+ setup(a, { emit: e }) {
1680
+ const t = a, n = $(!1), s = $(""), l = $(!1), i = () => {
1663
1681
  n.value = !0;
1664
- }, u = () => {
1665
- s.value = "", n.value = !1, t("update:keyword", s.value);
1682
+ }, c = () => {
1683
+ s.value = "", n.value = !1, e("update:keyword", s.value);
1666
1684
  }, r = () => {
1667
- t("update:collasped", !e.collasped);
1685
+ e("update:collasped", !t.collasped);
1668
1686
  }, d = () => {
1669
- t("update:keyword", s.value);
1670
- }, f = () => {
1671
- t("update:favorite", l.value);
1687
+ e("update:keyword", s.value);
1688
+ }, m = () => {
1689
+ e("update:favorite", l.value);
1672
1690
  };
1673
- return (h, x) => (c(), m(o(M), {
1691
+ return (h, x) => (u(), f(o(M), {
1674
1692
  class: "x-mask-switch-bar",
1675
1693
  justify: "space-between",
1676
1694
  align: "center"
1677
1695
  }, {
1678
1696
  default: p(() => [
1679
- e.collasped ? v("", !0) : (c(), m(o(M), {
1697
+ t.collasped ? v("", !0) : (u(), f(o(M), {
1680
1698
  key: 0,
1681
1699
  class: "x-mask-switch-bar__left",
1682
1700
  grow: ""
1683
1701
  }, {
1684
1702
  default: p(() => [
1685
- n.value ? v("", !0) : (c(), m(o(tt), {
1703
+ n.value ? v("", !0) : (u(), f(o(tt), {
1686
1704
  key: 0,
1687
1705
  modelValue: l.value,
1688
1706
  "onUpdate:modelValue": x[0] || (x[0] = (V) => l.value = V),
1689
1707
  class: "x-mask-switch-bar__switch",
1690
1708
  "active-icon": o(at),
1691
1709
  "inactive-icon": o(ot),
1692
- onChange: f
1710
+ onChange: m
1693
1711
  }, null, 8, ["modelValue", "active-icon", "inactive-icon"])),
1694
- n.value ? (c(), m(o(Ht), {
1712
+ n.value ? (u(), f(o(Ht), {
1695
1713
  key: 1,
1696
1714
  modelValue: s.value,
1697
1715
  "onUpdate:modelValue": x[1] || (x[1] = (V) => s.value = V),
@@ -1702,9 +1720,9 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
1702
1720
  "prefix-icon": o(Be)
1703
1721
  }, {
1704
1722
  suffix: p(() => [
1705
- b(o(oe), {
1723
+ b(o(ae), {
1706
1724
  icon: o(st),
1707
- onClick: u
1725
+ onClick: c
1708
1726
  }, null, 8, ["icon"])
1709
1727
  ]),
1710
1728
  _: 1
@@ -1713,13 +1731,13 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
1713
1731
  _: 1
1714
1732
  })),
1715
1733
  b(o(M), {
1716
- class: U(["x-mask-switch-bar__right", { "is-collasped": e.collasped }]),
1734
+ class: U(["x-mask-switch-bar__right", { "is-collasped": t.collasped }]),
1717
1735
  flex: "",
1718
1736
  align: "center",
1719
1737
  justify: "center"
1720
1738
  }, {
1721
1739
  default: p(() => [
1722
- !n.value && !e.collasped ? (c(), m(o(W), {
1740
+ !n.value && !t.collasped ? (u(), f(o(W), {
1723
1741
  key: 0,
1724
1742
  icon: o(Be),
1725
1743
  mode: "icon",
@@ -1728,7 +1746,7 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
1728
1746
  circle: "",
1729
1747
  onClick: i
1730
1748
  }, null, 8, ["icon"])) : v("", !0),
1731
- e.collasped ? (c(), m(o(W), {
1749
+ t.collasped ? (u(), f(o(W), {
1732
1750
  key: 1,
1733
1751
  icon: o(Kt),
1734
1752
  mode: "icon",
@@ -1737,7 +1755,7 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
1737
1755
  onClick: r,
1738
1756
  circle: ""
1739
1757
  }, null, 8, ["icon"])) : v("", !0),
1740
- e.collasped ? v("", !0) : (c(), m(o(W), {
1758
+ t.collasped ? v("", !0) : (u(), f(o(W), {
1741
1759
  key: 2,
1742
1760
  icon: o(Yt),
1743
1761
  mode: "icon",
@@ -1762,11 +1780,11 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
1762
1780
  url: {}
1763
1781
  },
1764
1782
  setup(a) {
1765
- const t = a, e = ke(), n = () => {
1766
- t.url && e.push(t.url);
1783
+ const e = a, t = ke(), n = () => {
1784
+ e.url && t.push(e.url);
1767
1785
  };
1768
- return (s, l) => (c(), m(o(M), {
1769
- class: U(["x-mask-brand", { "is-collapsed": t.collapsed }]),
1786
+ return (s, l) => (u(), f(o(M), {
1787
+ class: U(["x-mask-brand", { "is-collapsed": e.collapsed }]),
1770
1788
  align: "center"
1771
1789
  }, {
1772
1790
  default: p(() => [
@@ -1779,9 +1797,9 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
1779
1797
  }, {
1780
1798
  default: p(() => [
1781
1799
  z(s.$slots, "logo", {}, () => [
1782
- t.logo ? (c(), A("img", {
1800
+ e.logo ? (u(), A("img", {
1783
1801
  key: 0,
1784
- src: t.logo
1802
+ src: e.logo
1785
1803
  }, null, 8, so)) : v("", !0)
1786
1804
  ])
1787
1805
  ]),
@@ -1793,9 +1811,9 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
1793
1811
  align: "center"
1794
1812
  }, {
1795
1813
  default: p(() => [
1796
- t.title ? (c(), A("span", lo, [
1814
+ e.title ? (u(), A("span", lo, [
1797
1815
  z(s.$slots, "title", {}, () => [
1798
- N(O(t.title), 1)
1816
+ N(O(e.title), 1)
1799
1817
  ])
1800
1818
  ])) : v("", !0)
1801
1819
  ]),
@@ -1805,7 +1823,7 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
1805
1823
  _: 3
1806
1824
  }, 8, ["class"]));
1807
1825
  }
1808
- }), fe = "__favorites__", me = "__search__", ro = /* @__PURE__ */ D({
1826
+ }), ge = "__favorites__", he = "__search__", ro = /* @__PURE__ */ D({
1809
1827
  __name: "Menu",
1810
1828
  props: {
1811
1829
  collapse: { type: Boolean, default: !1 },
@@ -1817,40 +1835,40 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
1817
1835
  active: {}
1818
1836
  },
1819
1837
  emits: ["select"],
1820
- setup(a, { emit: t }) {
1821
- const e = a, n = y(() => e.menus || []), s = y(() => String(e.active?.id)), l = y(() => [
1838
+ setup(a, { emit: e }) {
1839
+ const t = a, n = y(() => t.menus || []), s = y(() => String(t.active?.id)), l = y(() => [
1822
1840
  {
1823
- id: fe,
1841
+ id: ge,
1824
1842
  title: "收藏",
1825
1843
  icon: lt,
1826
- children: e.favorites?.length ? e.favorites : [
1844
+ children: t.favorites?.length ? t.favorites : [
1827
1845
  {
1828
- id: fe + "empty",
1846
+ id: ge + "empty",
1829
1847
  disabled: !0,
1830
1848
  title: "暂无收藏菜单"
1831
1849
  }
1832
1850
  ]
1833
1851
  }
1834
1852
  ]), i = y(() => {
1835
- const r = (e.keyword || "").trim(), d = r ? (e.flatMenus || []).filter((f) => f.title?.includes(r)) : [];
1853
+ const r = (t.keyword || "").trim(), d = r ? (t.flatMenus || []).filter((m) => m.title?.includes(r)) : [];
1836
1854
  return [
1837
1855
  {
1838
- id: me,
1856
+ id: he,
1839
1857
  title: "搜索",
1840
1858
  icon: Be,
1841
1859
  children: d?.length ? d : [
1842
1860
  {
1843
- id: me + "empty",
1861
+ id: he + "empty",
1844
1862
  disabled: !0,
1845
1863
  title: "查询匹配不到菜单项"
1846
1864
  }
1847
1865
  ]
1848
1866
  }
1849
1867
  ];
1850
- }), u = (r) => {
1851
- t("select", r);
1868
+ }), c = (r) => {
1869
+ e("select", r);
1852
1870
  };
1853
- return (r, d) => (c(), A(q, null, [
1871
+ return (r, d) => (u(), A(q, null, [
1854
1872
  L(b(o(M), {
1855
1873
  class: "x-mask-menu",
1856
1874
  grow: "",
@@ -1866,13 +1884,13 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
1866
1884
  hideTimeout: 200
1867
1885
  },
1868
1886
  data: n.value,
1869
- "default-icon": o(se),
1887
+ "default-icon": o(ne),
1870
1888
  collapse: !0,
1871
1889
  "collapse-transition": !1,
1872
1890
  "default-active": s.value,
1873
- onSelect: u
1891
+ onSelect: c
1874
1892
  }, null, 8, ["data", "default-icon", "default-active"]), [
1875
- [J, e.collapse]
1893
+ [J, t.collapse]
1876
1894
  ]),
1877
1895
  L(b(o(G), {
1878
1896
  subMenu: {
@@ -1880,22 +1898,22 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
1880
1898
  teleported: !0
1881
1899
  },
1882
1900
  data: n.value,
1883
- "default-icon": o(se),
1901
+ "default-icon": o(ne),
1884
1902
  collapse: !1,
1885
1903
  "collapse-transition": !1,
1886
1904
  "default-active": s.value,
1887
- onSelect: u
1905
+ onSelect: c
1888
1906
  }, null, 8, ["data", "default-icon", "default-active"]), [
1889
- [J, !e.collapse]
1907
+ [J, !t.collapse]
1890
1908
  ]),
1891
- n.value.length ? v("", !0) : (c(), m(o(Lt), {
1909
+ n.value.length ? v("", !0) : (u(), f(o(Lt), {
1892
1910
  key: 0,
1893
1911
  description: "暂无菜单数据"
1894
1912
  }))
1895
1913
  ]),
1896
1914
  _: 1
1897
1915
  }, 512), [
1898
- [J, !e.favorite && !e.keyword]
1916
+ [J, !t.favorite && !t.keyword]
1899
1917
  ]),
1900
1918
  L(b(o(M), {
1901
1919
  class: "x-mask-menu",
@@ -1913,14 +1931,14 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
1913
1931
  hideTimeout: 200
1914
1932
  },
1915
1933
  data: l.value,
1916
- "default-icon": o(se),
1934
+ "default-icon": o(ne),
1917
1935
  collapse: !0,
1918
1936
  "collapse-transition": !1,
1919
1937
  "default-active": s.value,
1920
- "default-openeds": [fe],
1921
- onSelect: u
1938
+ "default-openeds": [ge],
1939
+ onSelect: c
1922
1940
  }, null, 8, ["data", "default-icon", "default-active", "default-openeds"]), [
1923
- [J, e.collapse]
1941
+ [J, t.collapse]
1924
1942
  ]),
1925
1943
  L(b(o(G), {
1926
1944
  class: "x-mask-menu__favorites",
@@ -1931,21 +1949,21 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
1931
1949
  hideTimeout: 200
1932
1950
  },
1933
1951
  data: l.value,
1934
- "default-icon": o(se),
1952
+ "default-icon": o(ne),
1935
1953
  collapse: !1,
1936
1954
  "collapse-transition": !1,
1937
1955
  "default-active": s.value,
1938
- "default-openeds": [fe],
1939
- onSelect: u
1956
+ "default-openeds": [ge],
1957
+ onSelect: c
1940
1958
  }, null, 8, ["data", "default-icon", "default-active", "default-openeds"]), [
1941
- [J, !e.collapse]
1959
+ [J, !t.collapse]
1942
1960
  ])
1943
1961
  ]),
1944
1962
  _: 1
1945
1963
  }, 512), [
1946
- [J, e.favorite && !e.keyword]
1964
+ [J, t.favorite && !t.keyword]
1947
1965
  ]),
1948
- e.keyword ? L((c(), m(o(M), {
1966
+ t.keyword ? L((u(), f(o(M), {
1949
1967
  key: 0,
1950
1968
  class: "x-mask-menu",
1951
1969
  grow: "",
@@ -1962,14 +1980,14 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
1962
1980
  hideTimeout: 200
1963
1981
  },
1964
1982
  data: i.value,
1965
- "default-icon": o(se),
1983
+ "default-icon": o(ne),
1966
1984
  collapse: !0,
1967
1985
  "collapse-transition": !1,
1968
1986
  "default-active": s.value,
1969
- "default-openeds": [me],
1970
- onSelect: u
1987
+ "default-openeds": [he],
1988
+ onSelect: c
1971
1989
  }, null, 8, ["data", "default-icon", "default-active", "default-openeds"]), [
1972
- [J, e.collapse]
1990
+ [J, t.collapse]
1973
1991
  ]),
1974
1992
  L(b(o(G), {
1975
1993
  class: "x-mask-menu__search",
@@ -1980,19 +1998,19 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
1980
1998
  hideTimeout: 200
1981
1999
  },
1982
2000
  data: i.value,
1983
- "default-icon": o(se),
2001
+ "default-icon": o(ne),
1984
2002
  collapse: !1,
1985
2003
  "collapse-transition": !1,
1986
2004
  "default-active": s.value,
1987
- "default-openeds": [me],
1988
- onSelect: u
2005
+ "default-openeds": [he],
2006
+ onSelect: c
1989
2007
  }, null, 8, ["data", "default-icon", "default-active", "default-openeds"]), [
1990
- [J, !e.collapse]
2008
+ [J, !t.collapse]
1991
2009
  ])
1992
2010
  ]),
1993
2011
  _: 1
1994
2012
  }, 512)), [
1995
- [J, !!e.keyword]
2013
+ [J, !!t.keyword]
1996
2014
  ]) : v("", !0)
1997
2015
  ], 64));
1998
2016
  }
@@ -2006,9 +2024,9 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
2006
2024
  favorites: {}
2007
2025
  },
2008
2026
  emits: ["click", "remove", "refresh", "toggleFavorite", "dialog"],
2009
- setup(a, { emit: t }) {
2010
- const e = a, n = (d) => {
2011
- const f = !!e.favorites.find(
2027
+ setup(a, { emit: e }) {
2028
+ const t = a, n = (d) => {
2029
+ const m = !!t.favorites.find(
2012
2030
  (h) => h === d.menu || h.id === d.menu?.id
2013
2031
  );
2014
2032
  return [
@@ -2020,7 +2038,7 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
2020
2038
  },
2021
2039
  "|",
2022
2040
  {
2023
- icon: f ? at : lt,
2041
+ icon: m ? at : lt,
2024
2042
  label: "收藏",
2025
2043
  name: "favorite",
2026
2044
  value: d.menu,
@@ -2035,34 +2053,34 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
2035
2053
  }
2036
2054
  ];
2037
2055
  }, s = (d) => {
2038
- const f = d.paneName;
2039
- if (f === e.home.id) {
2040
- t("click", e.home);
2056
+ const m = d.paneName;
2057
+ if (m === t.home.id) {
2058
+ e("click", t.home);
2041
2059
  return;
2042
2060
  }
2043
- const h = e.tabs.find((x) => x.id === f);
2044
- h && t("click", h);
2061
+ const h = t.tabs.find((x) => x.id === m);
2062
+ h && e("click", h);
2045
2063
  }, l = (d) => {
2046
- const f = e.tabs.find((h) => h.id === d);
2047
- f && t("remove", f);
2064
+ const m = t.tabs.find((h) => h.id === d);
2065
+ m && e("remove", m);
2048
2066
  }, i = (d) => {
2049
2067
  switch (d.name) {
2050
2068
  case "refresh":
2051
- t("refresh", d.value);
2069
+ e("refresh", d.value);
2052
2070
  break;
2053
2071
  case "favorite":
2054
- t("toggleFavorite", d.value);
2072
+ e("toggleFavorite", d.value);
2055
2073
  break;
2056
2074
  case "dialog":
2057
- t("dialog", d.value);
2075
+ e("dialog", d.value);
2058
2076
  break;
2059
2077
  }
2060
- }, u = (d, f) => {
2061
- f.dataTransfer && (f.dataTransfer.setData("tab", d.id), f.target && f.target.classList.add("is-dagging"));
2062
- }, r = (d, f) => {
2063
- f.target && f.target.classList.remove("is-dagging");
2078
+ }, c = (d, m) => {
2079
+ m.dataTransfer && (m.dataTransfer.setData("tab", d.id), m.target && m.target.classList.add("is-dagging"));
2080
+ }, r = (d, m) => {
2081
+ m.target && m.target.classList.remove("is-dagging");
2064
2082
  };
2065
- return (d, f) => (c(), m(o(M), {
2083
+ return (d, m) => (u(), f(o(M), {
2066
2084
  ref: "tabsRef",
2067
2085
  class: "x-mask-tabs",
2068
2086
  height: "100%",
@@ -2074,24 +2092,24 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
2074
2092
  default: p(() => [
2075
2093
  b(o(Wt), {
2076
2094
  type: "card",
2077
- "model-value": e.value,
2095
+ "model-value": t.value,
2078
2096
  onTabRemove: l,
2079
2097
  onTabClick: s
2080
2098
  }, {
2081
2099
  default: p(() => [
2082
- e.home ? (c(), m(o(Ue), {
2100
+ t.home ? (u(), f(o(Ue), {
2083
2101
  key: 0,
2084
- name: e.home.id
2102
+ name: t.home.id
2085
2103
  }, {
2086
2104
  label: p(() => [
2087
2105
  R("div", co, [
2088
- e.home.icon ? (c(), m(Y(o(be)(e.home.icon)), { key: 0 })) : v("", !0),
2089
- e.home.title ? (c(), A("span", uo, O(e.home.title), 1)) : v("", !0)
2106
+ t.home.icon ? (u(), f(Y(o(_e)(t.home.icon)), { key: 0 })) : v("", !0),
2107
+ t.home.title ? (u(), A("span", uo, O(t.home.title), 1)) : v("", !0)
2090
2108
  ])
2091
2109
  ]),
2092
2110
  _: 1
2093
2111
  }, 8, ["name"])) : v("", !0),
2094
- (c(!0), A(q, null, we(e.tabs, (h) => (c(), m(o(Ue), {
2112
+ (u(!0), A(q, null, we(t.tabs, (h) => (u(), f(o(Ue), {
2095
2113
  key: h.id,
2096
2114
  name: h.id,
2097
2115
  lazy: "",
@@ -2103,17 +2121,17 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
2103
2121
  placement: "bottom",
2104
2122
  trigger: "hover",
2105
2123
  width: "200px",
2106
- disabled: h.id !== e.value
2124
+ disabled: h.id !== t.value
2107
2125
  }, {
2108
2126
  reference: p(() => [
2109
2127
  R("div", {
2110
2128
  class: "x-mask-tabs__trigger",
2111
2129
  draggable: "true",
2112
- onDragstart: (x) => u(h, x),
2130
+ onDragstart: (x) => c(h, x),
2113
2131
  onDragend: (x) => r(h, x)
2114
2132
  }, [
2115
- h.icon ? (c(), m(Y(o(be)(h.icon)), { key: 0 })) : v("", !0),
2116
- h.title ? (c(), A("span", fo, O(h.title), 1)) : v("", !0)
2133
+ h.icon ? (u(), f(Y(o(_e)(h.icon)), { key: 0 })) : v("", !0),
2134
+ h.title ? (u(), A("span", fo, O(h.title), 1)) : v("", !0)
2117
2135
  ], 40, po)
2118
2136
  ]),
2119
2137
  default: p(() => [
@@ -2140,11 +2158,11 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
2140
2158
  }), go = /* @__PURE__ */ D({
2141
2159
  __name: "ThemeSwitch",
2142
2160
  setup(a) {
2143
- const t = fn();
2144
- return (e, n) => (c(), m(o(tt), {
2161
+ const e = fn();
2162
+ return (t, n) => (u(), f(o(tt), {
2145
2163
  class: "x-mask-theme-switch",
2146
- modelValue: o(t),
2147
- "onUpdate:modelValue": n[0] || (n[0] = (s) => ge(t) ? t.value = s : null),
2164
+ modelValue: o(e),
2165
+ "onUpdate:modelValue": n[0] || (n[0] = (s) => ve(e) ? e.value = s : null),
2148
2166
  size: "default",
2149
2167
  "active-action-icon": o(en),
2150
2168
  "inactive-action-icon": o(tn)
@@ -2165,10 +2183,10 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
2165
2183
  "actionClick",
2166
2184
  "actionCommand"
2167
2185
  ],
2168
- setup(a, { emit: t }) {
2169
- const e = a, n = y(() => {
2170
- const r = e.tabs.map((d, f) => ({
2171
- divided: f === 0,
2186
+ setup(a, { emit: e }) {
2187
+ const t = a, n = y(() => {
2188
+ const r = t.tabs.map((d, m) => ({
2189
+ divided: m === 0,
2172
2190
  label: d.title,
2173
2191
  command: d
2174
2192
  }));
@@ -2184,25 +2202,25 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
2184
2202
  ...r
2185
2203
  ];
2186
2204
  }), s = (r) => {
2187
- t("closeTab", r.command);
2205
+ e("closeTab", r.command);
2188
2206
  }, l = (r) => {
2189
2207
  switch (r.command) {
2190
2208
  case "all":
2191
- t("closeAllTabs");
2209
+ e("closeAllTabs");
2192
2210
  break;
2193
2211
  case "other":
2194
- t("closeOtherTabs");
2212
+ e("closeOtherTabs");
2195
2213
  break;
2196
2214
  default:
2197
- t("clickTab", r.command);
2215
+ e("clickTab", r.command);
2198
2216
  break;
2199
2217
  }
2200
2218
  }, i = (r) => {
2201
- t("actionClick", r);
2202
- }, u = (r, d) => {
2203
- t("actionCommand", r, d);
2219
+ e("actionClick", r);
2220
+ }, c = (r, d) => {
2221
+ e("actionCommand", r, d);
2204
2222
  };
2205
- return (r, d) => (c(), m(o(M), {
2223
+ return (r, d) => (u(), f(o(M), {
2206
2224
  class: "x-mask-toolbar",
2207
2225
  align: "center"
2208
2226
  }, {
@@ -2216,12 +2234,12 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
2216
2234
  background: "hover",
2217
2235
  onCommand: l
2218
2236
  }, {
2219
- item: p(({ item: f }) => [
2237
+ item: p(({ item: m }) => [
2220
2238
  R("span", ho, [
2221
- N(O(f.label) + " ", 1),
2222
- ["other", "all"].includes(f.command) ? v("", !0) : (c(), m(o(oe), {
2239
+ N(O(m.label) + " ", 1),
2240
+ ["other", "all"].includes(m.command) ? v("", !0) : (u(), f(o(ae), {
2223
2241
  key: 0,
2224
- onClick: Et((h) => s(f), ["stop"]),
2242
+ onClick: Et((h) => s(m), ["stop"]),
2225
2243
  icon: o(st)
2226
2244
  }, null, 8, ["onClick", "icon"]))
2227
2245
  ])
@@ -2229,7 +2247,7 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
2229
2247
  _: 1
2230
2248
  }, 8, ["icon", "menus"]),
2231
2249
  b(o(ue), { direction: "vertical" }),
2232
- e.actions ? (c(), m(o(Re), {
2250
+ t.actions ? (u(), f(o(Re), {
2233
2251
  key: 0,
2234
2252
  circle: "",
2235
2253
  mode: "icon",
@@ -2237,14 +2255,14 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
2237
2255
  background: "hover",
2238
2256
  items: r.actions,
2239
2257
  onClick: i,
2240
- onCommand: u
2258
+ onCommand: c
2241
2259
  }, null, 8, ["items"])) : v("", !0),
2242
- e.actions ? (c(), m(o(ue), {
2260
+ t.actions ? (u(), f(o(ue), {
2243
2261
  key: 1,
2244
2262
  direction: "vertical"
2245
2263
  })) : v("", !0),
2246
- e.theme ? (c(), m(go, { key: 2 })) : v("", !0),
2247
- e.theme ? (c(), m(o(ue), {
2264
+ t.theme ? (u(), f(go, { key: 2 })) : v("", !0),
2265
+ t.theme ? (u(), f(o(ue), {
2248
2266
  key: 3,
2249
2267
  direction: "vertical"
2250
2268
  })) : v("", !0),
@@ -2259,23 +2277,23 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
2259
2277
  avatar: {}
2260
2278
  },
2261
2279
  setup(a) {
2262
- const t = a;
2263
- return (e, n) => (c(), m(o(nt), {
2280
+ const e = a;
2281
+ return (t, n) => (u(), f(o(nt), {
2264
2282
  width: 200,
2265
2283
  "popper-class": "x-mask-avatar__popper",
2266
- disabled: !e.$slots.default
2284
+ disabled: !t.$slots.default
2267
2285
  }, {
2268
2286
  reference: p(() => [
2269
2287
  b(o(Qt), {
2270
2288
  class: "x-mask-avatar",
2271
2289
  shape: "circle",
2272
2290
  icon: o(on),
2273
- src: t.avatar,
2291
+ src: e.avatar,
2274
2292
  size: 26
2275
2293
  }, null, 8, ["icon", "src"])
2276
2294
  ]),
2277
2295
  default: p(() => [
2278
- e.$slots.default ? z(e.$slots, "default", { key: 0 }) : v("", !0)
2296
+ t.$slots.default ? z(t.$slots, "default", { key: 0 }) : v("", !0)
2279
2297
  ]),
2280
2298
  _: 3
2281
2299
  }, 8, ["disabled"]));
@@ -2287,21 +2305,21 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
2287
2305
  exclude: {}
2288
2306
  },
2289
2307
  setup(a) {
2290
- const t = a;
2291
- return (e, n) => (c(), m(o(M), {
2308
+ const e = a;
2309
+ return (t, n) => (u(), f(o(M), {
2292
2310
  class: "x-mask__content",
2293
2311
  flex: !1,
2294
2312
  grow: "",
2295
- padding: ""
2313
+ padding: !1
2296
2314
  }, {
2297
2315
  default: p(() => [
2298
- z(e.$slots, "default"),
2316
+ z(t.$slots, "default"),
2299
2317
  b(o(it), null, {
2300
2318
  default: p(({ Component: s, route: l }) => [
2301
- (c(), m(It, {
2302
- exclude: t.exclude
2319
+ (u(), f(It, {
2320
+ exclude: e.exclude
2303
2321
  }, [
2304
- s ? (c(), m(Y(t.createView(s, l)), {
2322
+ s ? (u(), f(Y(e.createView(s, l)), {
2305
2323
  key: l.fullPath
2306
2324
  })) : v("", !0)
2307
2325
  ], 1032, ["exclude"]))
@@ -2397,31 +2415,31 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
2397
2415
  }
2398
2416
  }, _t = Symbol(), wt = Symbol();
2399
2417
  function wo(a) {
2400
- const t = $(!1), e = $(""), n = $(!1);
2418
+ const e = $(!1), t = $(""), n = $(!1);
2401
2419
  return {
2402
- collapsed: t,
2403
- keyword: e,
2420
+ collapsed: e,
2421
+ keyword: t,
2404
2422
  favorite: n
2405
2423
  };
2406
2424
  }
2407
2425
  function ko(a) {
2408
- const t = dt();
2426
+ const e = dt();
2409
2427
  return y(() => {
2410
- const e = a.home;
2428
+ const t = a.home;
2411
2429
  return Object.assign(
2412
- { id: t, url: "/", name: "MaskHome", icon: an, closable: !1 },
2413
- typeof e == "string" ? { url: e } : e || {}
2430
+ { id: e, url: "/", name: "MaskHome", icon: an, closable: !1 },
2431
+ typeof t == "string" ? { url: t } : t || {}
2414
2432
  );
2415
2433
  });
2416
2434
  }
2417
- function kt(a, t) {
2418
- let e = [];
2435
+ function kt(a, e) {
2436
+ let t = [];
2419
2437
  return a.forEach((n) => {
2420
- n = t ? t(n) : n, n.children ? e = e.concat(kt(n.children, t)) : e.push(n);
2421
- }), e;
2438
+ n = e ? e(n) : n, n.children ? t = t.concat(kt(n.children, e)) : t.push(n);
2439
+ }), t;
2422
2440
  }
2423
- function xo(a, t) {
2424
- const e = ke(), n = Oe([]), s = Oe([]), l = y(() => kt(n.value, a.menuAdapter)), i = y(() => mn(l.value, "id")), u = $(null), r = (k) => {
2441
+ function xo(a, e) {
2442
+ const t = ke(), n = Oe([]), s = Oe([]), l = y(() => kt(n.value, a.menuAdapter)), i = y(() => mn(l.value, "id")), c = $(null), r = (k) => {
2425
2443
  const _ = typeof k == "object" ? k.id : k, E = i.value.get(_);
2426
2444
  if (!E) {
2427
2445
  console.warn("找不到菜单", k);
@@ -2429,11 +2447,11 @@ function xo(a, t) {
2429
2447
  }
2430
2448
  const { type: B = "route", url: g, title: I, icon: C } = E;
2431
2449
  if (!g) {
2432
- u.value = E, t("select", E);
2450
+ c.value = E, e("select", E);
2433
2451
  return;
2434
2452
  }
2435
2453
  if (B === "route") {
2436
- gn(g) || g.startsWith("//") ? window.open(g) : (u.value = E, e.push(g).catch((F) => F));
2454
+ gn(g) || g.startsWith("//") ? window.open(g) : (c.value = E, t.push(g).catch((F) => F));
2437
2455
  return;
2438
2456
  }
2439
2457
  if (B === "window") {
@@ -2451,26 +2469,26 @@ function xo(a, t) {
2451
2469
  });
2452
2470
  }, d = async () => {
2453
2471
  n.value = typeof a.menus == "function" ? await a.menus() || [] : a.menus ?? [], s.value = typeof a.favorites == "function" ? await a.favorites() || [] : a.favorites ?? [];
2454
- }, f = (k) => {
2472
+ }, m = (k) => {
2455
2473
  s.value = [k, ...s.value], a.addFavorite && a.addFavorite(k);
2456
2474
  }, h = (k) => {
2457
2475
  s.value = s.value.filter((_) => _.id !== k.id), a.removeFavorite && a.removeFavorite(k);
2458
2476
  }, x = (k) => !!s.value.find((_) => _ === k || _.id === k.id), V = (k) => {
2459
- x(k) ? h(k) : f(k);
2477
+ x(k) ? h(k) : m(k);
2460
2478
  };
2461
2479
  return Ge(d), {
2462
2480
  menus: n,
2463
2481
  favorites: s,
2464
2482
  flatMenus: l,
2465
- active: u,
2483
+ active: c,
2466
2484
  select: r,
2467
2485
  toggleFavorite: V
2468
2486
  };
2469
2487
  }
2470
- function zo(a, t, e, n, s) {
2471
- const l = Ve(), i = ke(), u = {}, r = $([]), d = $(), { width: f } = rt(d), h = y(() => Math.floor(f.value / bo)), x = y(
2488
+ function zo(a, e, t, n, s) {
2489
+ const l = Ve(), i = ke(), c = {}, r = $([]), d = $(), { width: m } = rt(d), h = y(() => Math.floor(m.value / bo)), x = y(
2472
2490
  () => r.value.slice(0, h.value).filter((w) => !w.dialog)
2473
- ), V = y(() => r.value.slice(h.value)), k = (w) => e.value.find((S) => S.url === w), _ = (w) => l.fullPath === w.url, E = (w) => s.value.id === w ? s.value : r.value.find((S) => S.id === w), B = $(""), g = y(() => E(B.value)), I = (w) => {
2491
+ ), V = y(() => r.value.slice(h.value)), k = (w) => t.value.find((S) => S.url === w), _ = (w) => l.fullPath === w.url, E = (w) => s.value.id === w ? s.value : r.value.find((S) => S.id === w), B = $(""), g = y(() => E(B.value)), I = (w) => {
2474
2492
  i.push(w.url).catch((S) => S);
2475
2493
  }, C = (w) => {
2476
2494
  B.value = w.id, l.fullPath !== w.url && I(w);
@@ -2480,7 +2498,7 @@ function zo(a, t, e, n, s) {
2480
2498
  const S = r.value.find((T) => T.url === w.url || T.id === w.id);
2481
2499
  S ? C(S) : (r.value.unshift(w), C(w));
2482
2500
  }, ee = async (w) => {
2483
- const { url: S = l.fullPath, icon: T, title: ze = "新建标签页" } = w || {}, de = u[S], Se = dt(), Ce = pt(S);
2501
+ const { url: S = l.fullPath, icon: T, title: ze = "新建标签页" } = w || {}, fe = c[S], Se = dt(), Ce = pt(S);
2484
2502
  return {
2485
2503
  id: Se,
2486
2504
  name: Ce,
@@ -2489,7 +2507,7 @@ function zo(a, t, e, n, s) {
2489
2507
  title: ze,
2490
2508
  closable: !0,
2491
2509
  menu: w,
2492
- ...de ? await de() : {}
2510
+ ...fe ? await fe() : {}
2493
2511
  };
2494
2512
  }, te = async (w) => {
2495
2513
  if (await Te.confirm("是否关闭页签", "提示", {
@@ -2514,7 +2532,7 @@ function zo(a, t, e, n, s) {
2514
2532
  return;
2515
2533
  const S = r.value;
2516
2534
  return r.value = [], C(s.value), S;
2517
- }, ae = async () => {
2535
+ }, se = async () => {
2518
2536
  if (!await Te.confirm("是否关闭其他页签", "提示", {
2519
2537
  type: "warning"
2520
2538
  }).catch((T) => !1))
@@ -2535,7 +2553,7 @@ function zo(a, t, e, n, s) {
2535
2553
  }
2536
2554
  await le(), n.value = S || null;
2537
2555
  };
2538
- return ne(e, re), ne(l, re, { immediate: !0 }), De(_t, u), {
2556
+ return oe(t, re), oe(l, re, { immediate: !0 }), De(_t, c), {
2539
2557
  tabRef: d,
2540
2558
  tabs: r,
2541
2559
  showTabs: x,
@@ -2551,20 +2569,20 @@ function zo(a, t, e, n, s) {
2551
2569
  activeTab: C,
2552
2570
  dropdownTabs: V,
2553
2571
  removeAllTabs: H,
2554
- removeOtherTabs: ae,
2572
+ removeOtherTabs: se,
2555
2573
  moveToShow: xe
2556
2574
  };
2557
2575
  }
2558
2576
  function So(a) {
2559
- const t = /* @__PURE__ */ new Map(), e = $([]), n = Ye({}), s = {}, { updateTab: l, isCurrentTab: i, activeHome: u, tabs: r } = a, d = (g, I) => {
2577
+ const e = /* @__PURE__ */ new Map(), t = $([]), n = Ye({}), s = {}, { updateTab: l, isCurrentTab: i, activeHome: c, tabs: r } = a, d = (g, I) => {
2560
2578
  const C = I.fullPath;
2561
- if (t.has(C))
2562
- return t.get(C);
2579
+ if (e.has(C))
2580
+ return e.get(C);
2563
2581
  {
2564
2582
  const F = pt(C), X = {
2565
2583
  name: F,
2566
2584
  setup() {
2567
- const ee = y(() => n[C] || document.body), te = y(() => !n[C]), j = y(() => !e.value.includes(F));
2585
+ const ee = y(() => n[C] || document.body), te = y(() => !n[C]), j = y(() => !t.value.includes(F));
2568
2586
  return De(
2569
2587
  sn,
2570
2588
  Bt({ ...I })
@@ -2578,24 +2596,24 @@ function So(a) {
2578
2596
  ) : null;
2579
2597
  }
2580
2598
  };
2581
- return t.set(C, X), X;
2599
+ return e.set(C, X), X;
2582
2600
  }
2583
- }, f = (g) => {
2601
+ }, m = (g) => {
2584
2602
  g.dialog = void 0, delete n[g.url];
2585
2603
  const I = s[g.id];
2586
2604
  I && (I.destroy(), delete s[g.id], l(g));
2587
2605
  }, h = (g = []) => {
2588
2606
  g.forEach((I) => {
2589
- f(I);
2607
+ m(I);
2590
2608
  });
2591
2609
  }, x = async (g) => {
2592
2610
  g.dialog = {
2593
2611
  ...g.dialog,
2594
2612
  onMinimized: () => {
2595
- f(g);
2613
+ m(g);
2596
2614
  },
2597
2615
  onClose: async () => {
2598
- f(g), r.value = r.value.filter((C) => C.id !== g.id);
2616
+ m(g), r.value = r.value.filter((C) => C.id !== g.id);
2599
2617
  }
2600
2618
  }, l(g);
2601
2619
  const I = $e({
@@ -2609,11 +2627,11 @@ function So(a) {
2609
2627
  n[g.url] = C.refs.panelRef?.bodyRef?.$el;
2610
2628
  }
2611
2629
  });
2612
- return await le(), i(g) && u(), s[g.id] = I, I;
2630
+ return await le(), i(g) && c(), s[g.id] = I, I;
2613
2631
  }, V = async (g) => {
2614
- e.value = [g.name], await le(), e.value = [];
2632
+ t.value = [g.name], await le(), t.value = [];
2615
2633
  }, k = async (g) => {
2616
- e.value = g.map((I) => I.name), await le(), e.value = [];
2634
+ t.value = g.map((I) => I.name), await le(), t.value = [];
2617
2635
  }, _ = (g) => (g.preventDefault(), !1), E = (g) => {
2618
2636
  if (g.dataTransfer) {
2619
2637
  const I = g.dataTransfer.getData("tab"), C = r.value.find((F) => F.id === I);
@@ -2626,14 +2644,14 @@ function So(a) {
2626
2644
  }
2627
2645
  }
2628
2646
  }, B = (g) => !!n[g];
2629
- return ye(document, "dragover", _), ye(document, "drop", E), {
2647
+ return be(document, "dragover", _), be(document, "drop", E), {
2630
2648
  createView: d,
2631
2649
  openDialog: x,
2632
2650
  refresh: V,
2633
- exclude: e,
2651
+ exclude: t,
2634
2652
  cleanCache: k,
2635
2653
  hasDialog: B,
2636
- closeDialog: f,
2654
+ closeDialog: m,
2637
2655
  closeDialogs: h
2638
2656
  };
2639
2657
  }
@@ -2642,8 +2660,8 @@ const Co = /* @__PURE__ */ D({
2642
2660
  __name: "Mask",
2643
2661
  props: _o,
2644
2662
  emits: ["select", "actionClick", "actionCommand"],
2645
- setup(a, { emit: t }) {
2646
- const e = a, n = ko(e), { collapsed: s, keyword: l, favorite: i } = wo(), { menus: u, favorites: r, flatMenus: d, active: f, select: h, toggleFavorite: x } = xo(e, t), {
2663
+ setup(a, { emit: e }) {
2664
+ const t = a, n = ko(t), { collapsed: s, keyword: l, favorite: i } = wo(), { menus: c, favorites: r, flatMenus: d, active: m, select: h, toggleFavorite: x } = xo(t, e), {
2647
2665
  tabRef: V,
2648
2666
  showTabs: k,
2649
2667
  currentTab: _,
@@ -2657,7 +2675,7 @@ const Co = /* @__PURE__ */ D({
2657
2675
  removeOtherTabs: ee,
2658
2676
  dropdownTabs: te,
2659
2677
  moveToShow: j
2660
- } = zo(e, t, d, f, n), { createView: H, openDialog: ae, refresh: xe, exclude: re, cleanCache: w, closeDialogs: S } = So({
2678
+ } = zo(t, e, d, m, n), { createView: H, openDialog: se, refresh: xe, exclude: re, cleanCache: w, closeDialogs: S } = So({
2661
2679
  tabs: g,
2662
2680
  updateTab: I,
2663
2681
  isCurrentTab: C,
@@ -2667,24 +2685,24 @@ const Co = /* @__PURE__ */ D({
2667
2685
  }, ze = async () => {
2668
2686
  const P = await X();
2669
2687
  P && (S(P), await w(P));
2670
- }, de = async () => {
2688
+ }, fe = async () => {
2671
2689
  const P = await ee();
2672
2690
  P && (S(P), await w(P));
2673
2691
  }, Se = (P) => {
2674
- t("actionClick", P);
2692
+ e("actionClick", P);
2675
2693
  }, Ce = (P, Z) => {
2676
- t("actionCommand", P, Z);
2694
+ e("actionCommand", P, Z);
2677
2695
  };
2678
2696
  return De(wt, {
2679
2697
  tabs: g,
2680
2698
  flatMenus: d,
2681
2699
  favorites: r,
2682
2700
  updateTab: I,
2683
- active: f,
2701
+ active: m,
2684
2702
  currentTab: _
2685
- }), (P, Z) => (c(), m(o(M), { class: "x-mask" }, {
2703
+ }), (P, Z) => (u(), f(o(M), { class: "x-mask" }, {
2686
2704
  default: p(() => [
2687
- e.disabled ? (c(), m(Ze, {
2705
+ t.disabled ? (u(), f(Ze, {
2688
2706
  key: 1,
2689
2707
  createView: o(H),
2690
2708
  exclude: o(re)
@@ -2693,12 +2711,12 @@ const Co = /* @__PURE__ */ D({
2693
2711
  P.$slots.default ? z(P.$slots, "default", { key: 0 }) : v("", !0)
2694
2712
  ]),
2695
2713
  _: 3
2696
- }, 8, ["createView", "exclude"])) : (c(), A(q, { key: 0 }, [
2714
+ }, 8, ["createView", "exclude"])) : (u(), A(q, { key: 0 }, [
2697
2715
  b(oo, { collapsed: o(s) }, {
2698
2716
  brand: p(() => [
2699
2717
  b(io, {
2700
- logo: e.logo,
2701
- title: e.title,
2718
+ logo: t.logo,
2719
+ title: t.title,
2702
2720
  url: o(n).url,
2703
2721
  collapsed: o(s)
2704
2722
  }, null, 8, ["logo", "title", "url", "collapsed"])
@@ -2706,11 +2724,11 @@ const Co = /* @__PURE__ */ D({
2706
2724
  default: p(() => [
2707
2725
  b(ao, {
2708
2726
  collasped: o(s),
2709
- "onUpdate:collasped": Z[0] || (Z[0] = (ce) => ge(s) ? s.value = ce : null),
2727
+ "onUpdate:collasped": Z[0] || (Z[0] = (ce) => ve(s) ? s.value = ce : null),
2710
2728
  favorite: o(i),
2711
- "onUpdate:favorite": Z[1] || (Z[1] = (ce) => ge(i) ? i.value = ce : null),
2729
+ "onUpdate:favorite": Z[1] || (Z[1] = (ce) => ve(i) ? i.value = ce : null),
2712
2730
  keyword: o(l),
2713
- "onUpdate:keyword": Z[2] || (Z[2] = (ce) => ge(l) ? l.value = ce : null)
2731
+ "onUpdate:keyword": Z[2] || (Z[2] = (ce) => ve(l) ? l.value = ce : null)
2714
2732
  }, null, 8, ["collasped", "favorite", "keyword"]),
2715
2733
  b(ro, {
2716
2734
  collapse: o(s),
@@ -2718,8 +2736,8 @@ const Co = /* @__PURE__ */ D({
2718
2736
  favorite: o(i),
2719
2737
  favorites: o(r),
2720
2738
  flatMenus: o(d),
2721
- menus: o(u),
2722
- active: o(f),
2739
+ menus: o(c),
2740
+ active: o(m),
2723
2741
  onSelect: o(h)
2724
2742
  }, null, 8, ["collapse", "keyword", "favorite", "favorites", "flatMenus", "menus", "active", "onSelect"])
2725
2743
  ]),
@@ -2728,6 +2746,7 @@ const Co = /* @__PURE__ */ D({
2728
2746
  b(o(M), {
2729
2747
  class: "x-mask__main",
2730
2748
  grow: "",
2749
+ shrink: "",
2731
2750
  flex: "",
2732
2751
  direction: "column"
2733
2752
  }, {
@@ -2748,14 +2767,14 @@ const Co = /* @__PURE__ */ D({
2748
2767
  onClick: o(E),
2749
2768
  onToggleFavorite: o(x),
2750
2769
  onRemove: T,
2751
- onDialog: o(ae),
2770
+ onDialog: o(se),
2752
2771
  onRefresh: o(xe)
2753
2772
  }, null, 8, ["favorites", "tabs", "home", "value", "onClick", "onToggleFavorite", "onDialog", "onRefresh"]),
2754
2773
  b(vo, {
2755
2774
  tabs: o(te),
2756
- actions: e.actions,
2757
- theme: e.theme,
2758
- onCloseOtherTabs: de,
2775
+ actions: t.actions,
2776
+ theme: t.theme,
2777
+ onCloseOtherTabs: fe,
2759
2778
  onCloseAllTabs: ze,
2760
2779
  onCloseTab: T,
2761
2780
  onClickTab: o(j),
@@ -2764,7 +2783,7 @@ const Co = /* @__PURE__ */ D({
2764
2783
  }, {
2765
2784
  default: p(() => [
2766
2785
  b(yo, {
2767
- avatar: e.avatar
2786
+ avatar: t.avatar
2768
2787
  }, et({ _: 2 }, [
2769
2788
  P.$slots.user ? {
2770
2789
  name: "default",
@@ -2799,19 +2818,19 @@ const Co = /* @__PURE__ */ D({
2799
2818
  }
2800
2819
  });
2801
2820
  function Oo(a = {}) {
2802
- const t = Ve(), e = je(_t, null), n = je(wt, null);
2803
- if (e) {
2821
+ const e = Ve(), t = je(_t, null), n = je(wt, null);
2822
+ if (t) {
2804
2823
  const l = typeof a == "function" ? a : async () => a;
2805
- e[t.fullPath] = l;
2824
+ t[e.fullPath] = l;
2806
2825
  }
2807
2826
  return {
2808
- tab: y(() => n ? n.tabs.value.find((l) => l.url === t.fullPath) : null),
2827
+ tab: y(() => n ? n.tabs.value.find((l) => l.url === e.fullPath) : null),
2809
2828
  mask: n
2810
2829
  };
2811
2830
  }
2812
2831
  const To = [
2813
2832
  xn,
2814
- oe,
2833
+ ae,
2815
2834
  G,
2816
2835
  Vn,
2817
2836
  W,
@@ -2821,7 +2840,7 @@ const To = [
2821
2840
  vt,
2822
2841
  bt,
2823
2842
  Co
2824
- ], jo = "0.6.2", Mo = hn(To), No = Mo.install;
2843
+ ], jo = "0.6.4", Mo = hn(To), No = Mo.install;
2825
2844
  export {
2826
2845
  We as Draggable,
2827
2846
  He as INSTALLED_KEY,
@@ -2835,7 +2854,7 @@ export {
2835
2854
  M as XContainer,
2836
2855
  bt as XDialog,
2837
2856
  ht as XHeader,
2838
- oe as XIcon,
2857
+ ae as XIcon,
2839
2858
  Co as XMask,
2840
2859
  G as XMenu,
2841
2860
  vt as XPanel,
@@ -2858,10 +2877,10 @@ export {
2858
2877
  _o as maskProps,
2859
2878
  Ro as omit,
2860
2879
  Wn as panelProps,
2861
- pe as parseSize,
2880
+ me as parseSize,
2862
2881
  $o as pick,
2863
2882
  Pe as useDisabled,
2864
- be as useIcon,
2883
+ _e as useIcon,
2865
2884
  Fn as useIconProps,
2866
2885
  Qn as vDraggable,
2867
2886
  yt as vResizable,