@vtj/ui 0.6.6 → 0.6.8

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,11 +1,11 @@
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
- import { useRouter as ke, useRoute as Ve, RouterView as it, routeLocationKey as sn } from "vue-router";
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 be, useElementSize as rt, useDark as fn } from "@vueuse/core";
7
- import { isEqual as ct, isObject as ut, uid as dt, arrayToMap as mn, isUrl as gn, upperFirstCamelCase as pt } from "@vtj/utils";
8
- function Xe(a) {
1
+ import { defineComponent as B, openBlock as u, createElementBlock as D, renderSlot as x, createElementVNode as $, unref as o, toDisplayString as O, createVNode as b, withCtx as d, createTextVNode as N, createBlock as f, createCommentVNode as v, useAttrs as Ye, getCurrentInstance as pe, computed as y, markRaw as Ae, normalizeClass as X, resolveDynamicComponent as Y, mergeProps as Q, Fragment as q, renderList as we, isVNode as St, h as K, toRef as ye, useSlots as Ct, normalizeStyle as Ee, ref as R, normalizeProps as De, guardReactiveProps as Pe, effectScope as Ge, watch as oe, reactive as qe, onMounted as Tt, onUnmounted as Mt, watchEffect as et, nextTick as le, Teleport as tt, withDirectives as L, createSlots as nt, render as je, vShow as J, isRef as ve, withModifiers as Et, KeepAlive as It, shallowRef as Ne, provide as Ve, toRaw as Bt, inject as Xe } from "vue";
2
+ import { ElDivider as ue, ElButton as de, ElIcon as At, ElSubMenu as Dt, ElBadge as Ie, ElMenuItem as Pt, ElMenu as Vt, ElContainer as Ue, ElHeader as $t, ElAside as Rt, ElMain as Ft, ElFooter as Ot, ElDropdown as jt, ElDropdownMenu as Nt, ElDropdownItem as Xt, ElTooltip as Ut, ElSwitch as ot, ElInput as Ht, ElEmpty as Lt, ElTabs as Wt, ElTabPane as He, ElPopover as at, ElAvatar as Qt, ElMessageBox as Te, ElFormItem as Zt, ElForm as Jt } from "element-plus";
3
+ import { VideoPlay as Kt, Document as ne, Menu as st, ArrowRight as Yt, StarFilled as lt, Search as Be, Close as it, Expand as Gt, Fold as qt, Star as rt, Refresh as en, CopyDocument as tn, Moon as nn, Sunny as on, MoreFilled as an, UserFilled as sn, HomeFilled as ln } from "@element-plus/icons-vue";
4
+ import { useRouter as ke, useRoute as $e, RouterView as ct, routeLocationKey as rn } from "vue-router";
5
+ import { Minimize as cn, Popup as un, Maximize as dn, RawClose as pn } from "@vtj/icons";
6
+ import { useDraggable as fn, useMouseInElement as mn, useEventListener as be, useElementSize as ut, useDark as gn } from "@vueuse/core";
7
+ import { isEqual as dt, isObject as pt, uid as ft, arrayToMap as hn, isUrl as vn, upperFirstCamelCase as mt } from "@vtj/utils";
8
+ function Le(a) {
9
9
  return typeof a == "string" ? a : `${a}px`;
10
10
  }
11
11
  function me(a = 0, e) {
@@ -17,30 +17,32 @@ function me(a = 0, e) {
17
17
  }
18
18
  return Number.parseInt(a);
19
19
  }
20
- function Ro(a, e) {
20
+ function Oo(a, e) {
21
21
  const t = {};
22
22
  return Object.keys(a).forEach((n) => {
23
23
  e.includes(n) || (t[n] = a[n]);
24
24
  }), t;
25
25
  }
26
- function $o(a, e) {
26
+ function jo(a, e) {
27
27
  const t = {};
28
28
  return Object.keys(a).forEach((n) => {
29
29
  e.includes(n) && (t[n] = a[n]);
30
30
  }), t;
31
31
  }
32
- const Fo = () => {
33
- }, He = Symbol("INSTALLED_KEY"), hn = (a = []) => ({
32
+ const No = () => {
33
+ }, We = Symbol("INSTALLED_KEY"), yn = (a = []) => ({
34
34
  install: (t) => {
35
- t[He] || (t[He] = !0, a.forEach((n) => t.component(n.name, n)));
35
+ t[We] || (t[We] = !0, a.forEach((n) => {
36
+ n.name && t.component(n.name, n);
37
+ }));
36
38
  }
37
- }), ft = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAQd0lEQVR4nO2dCXRVxRnHf/clIPsekBgIS1hFdqVoZbGLFNTWWgQ3bLVurRYJcTuntbW22qooKKWl2toWquygIFa01doqmBBWWcomIkhACLIKyXvcnu/eefiSNzd57y4vAfI/553wuPfNzJ3/nW9m/t83M4Yx6iTVGOlAC6AD0Bs4F2gGtFT/lmtNgLpABDgMFAN7gCJgH3AQ2ACsAz5V91RbpFfDguUAg4EewBCgLdAQqJXAb5sD7RyuHVGfpcBy4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AElFTkSuQmCC", vn = { class: "x-startup" }, yn = { class: "brand" }, bn = ["src"], _n = /* @__PURE__ */ R("h3", null, [
39
+ }), gt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAQd0lEQVR4nO2dCXRVxRnHf/clIPsekBgIS1hFdqVoZbGLFNTWWgQ3bLVurRYJcTuntbW22qooKKWl2toWquygIFa01doqmBBWWcomIkhACLIKyXvcnu/eefiSNzd57y4vAfI/553wuPfNzJ3/nW9m/t83M4Yx6iTVGOlAC6AD0Bs4F2gGtFT/lmtNgLpABDgMFAN7gCJgH3AQ2ACsAz5V91RbpFfDguUAg4EewBCgLdAQqJXAb5sD7RyuHVGfpcBy4AOgADjkc/k9obq0kP7AN4CrgK7qrQ8aJrALeAt4Q/3dV7XVULWEtAauBq5ThNSpqoIo7AReBWYA/6mqQlQFId2AW4HRwHmpzjwBSMv5N/BHYAHwRSozTyUhQsS9iohGqcrUI1YDE4GXgROpyDAVhMiIKBe4I0V9QxCQgcCvgdeCzigUcPo/BN4HHjiNyRAMBBYBs4BOQWYUFCFdgIXA80DHgPKoCowE3gHuCirvIAj5AfAmcEUAaVcHZAJTgHlqjuQr/CREJm/PAH8G2pyWVZ0crlbzl8v8TNQvQrLVGP5en9I7XdBV9S0/9qu8fhDSC1isZI6zEaKjTQYe8aM+vSZwqeq8u5+lZMTiYeA5oLaXRLwQMhSYe5b0F4niR8BUL6S4VXsvAWYCGZ6Kf2bi+8oVcDuQ9KzbTQvpqQS4GjKcIVrdU25+mCwhbZWuk+WhsGcLxgEPJvusyRAi84xpNR14UhD9a1QyP0iGkEeBQcGV/YyE1O+zwPnJ/CARSEc1NrBin9kQtftFoHEiT5kIIeLj/s3ZXqsecSHwUCJJVEZIGjAJaFXVT3QG4D7ga5U9RmWEiHI7/GyvSZ8QUkPhhhUlVxEhLZUcUAP/ILFld7slJK9GFgkEuRXEjjkSIh6/O0+fZzyt0EK5tLVwIiSvMltXA0+4yWluoiO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8akXwmxBUWOpDyqauCiD9qkSJImGo187bCUEQEsUSdbz3A3426SrEEhUiJWbqQFDFCJIQgewK8oTacfN36vvpBmnl10s8uCyFD7rsujCgINFDnTl+bex+59UUMtP+vQr40AYkBIFUExKFbFl5gzqLKacqCuCAQ6pveEGZqNQe8VKFhEQhiwwuA66RXVj93JAzCRxTSwJmqWBzX5aJu0VVExILWZ4vCwQuVvY6M9EDfZNERAmABao1vKP6iWpREdWJkFjUUgHfMhjopD79Vb9TW20YWdlChOPK5JSoRflr1NLjfDVfcr8LUoDwed8c3yCzYFmUIB9BM3U6prQi+UjrkY9s4CnXZGdu0dWkD5CwJZFwxO0sw20JLJCFdPIJfKmFJwD/B4g2wB0X86iqAAAAAElFTkSuQmCC", bn = { class: "x-startup" }, _n = { class: "brand" }, wn = ["src"], kn = /* @__PURE__ */ $("h3", null, [
38
40
  /* @__PURE__ */ N("基于 "),
39
- /* @__PURE__ */ R("span", null, "Vue3 + TypeScript"),
41
+ /* @__PURE__ */ $("span", null, "Vue3 + TypeScript"),
40
42
  /* @__PURE__ */ N(" 的低代码设计器引擎")
41
- ], -1), wn = { class: "btn" }, kn = /* @__PURE__ */ R("div", { class: "ba" }, [
42
- /* @__PURE__ */ R("a", { href: "http://beian.miit.gov.cn/" }, "粤ICP备2023104074号")
43
- ], -1), xn = /* @__PURE__ */ D({
43
+ ], -1), xn = { class: "btn" }, zn = /* @__PURE__ */ $("div", { class: "ba" }, [
44
+ /* @__PURE__ */ $("a", { href: "http://beian.miit.gov.cn/" }, "粤ICP备2023104074号")
45
+ ], -1), Sn = /* @__PURE__ */ B({
44
46
  name: "XStartup",
45
47
  __name: "Startup",
46
48
  props: {
@@ -54,24 +56,24 @@ const Fo = () => {
54
56
  }, n = () => {
55
57
  e.example && e.example(e.link);
56
58
  };
57
- return (s, l) => (u(), A("div", vn, [
58
- z(s.$slots, "default", {}, () => [
59
- R("div", null, [
60
- R("div", yn, [
61
- R("img", { src: o(ft) }, null, 8, bn),
62
- R("h1", null, O(e.text), 1)
59
+ return (s, l) => (u(), D("div", bn, [
60
+ x(s.$slots, "default", {}, () => [
61
+ $("div", null, [
62
+ $("div", _n, [
63
+ $("img", { src: o(gt) }, null, 8, wn),
64
+ $("h1", null, O(e.text), 1)
63
65
  ]),
64
66
  b(o(ue)),
65
- _n,
66
- R("div", wn, [
67
+ kn,
68
+ $("div", xn, [
67
69
  b(o(de), {
68
70
  onClick: t,
69
71
  type: "primary",
70
72
  round: "",
71
73
  size: "large",
72
- icon: o(Zt)
74
+ icon: o(Kt)
73
75
  }, {
74
- default: p(() => [
76
+ default: d(() => [
75
77
  N(" 立即开始体验 ")
76
78
  ]),
77
79
  _: 1
@@ -84,7 +86,7 @@ const Fo = () => {
84
86
  size: "large",
85
87
  icon: o(ne)
86
88
  }, {
87
- default: p(() => [
89
+ default: d(() => [
88
90
  N(" 加载示例项目 ")
89
91
  ]),
90
92
  _: 1
@@ -92,15 +94,15 @@ const Fo = () => {
92
94
  ])
93
95
  ])
94
96
  ]),
95
- kn
97
+ zn
96
98
  ]));
97
99
  }
98
100
  });
99
- const zn = {
101
+ const Cn = {
100
102
  default: 14,
101
103
  small: 12,
102
104
  large: 18
103
- }, Sn = {
105
+ }, Tn = {
104
106
  icon: {
105
107
  type: [String, Object]
106
108
  },
@@ -114,12 +116,12 @@ const zn = {
114
116
  src: {
115
117
  type: String
116
118
  }
117
- }, Cn = ["src"], ae = /* @__PURE__ */ D({
119
+ }, Mn = ["src"], ae = /* @__PURE__ */ B({
118
120
  name: "XIcon",
119
121
  __name: "Icon",
120
- props: Sn,
122
+ props: Tn,
121
123
  setup(a) {
122
- const e = a, t = Je(), n = pe(), s = y(() => {
124
+ const e = a, t = Ye(), n = pe(), s = y(() => {
123
125
  if (!e.icon)
124
126
  return null;
125
127
  const c = n?.appContext.app;
@@ -129,31 +131,31 @@ const zn = {
129
131
  "is-pointer": !!t.onClick
130
132
  };
131
133
  return !s.value && e.icon && (c[e.icon] = !0), c;
132
- }), i = y(() => typeof e.size == "number" ? e.size : zn[e.size] ?? void 0);
134
+ }), i = y(() => typeof e.size == "number" ? e.size : Cn[e.size] ?? void 0);
133
135
  return (c, r) => (u(), f(o(At), {
134
- class: U(["x-icon", l.value]),
136
+ class: X(["x-icon", l.value]),
135
137
  color: e.color,
136
138
  size: i.value
137
139
  }, {
138
- default: p(() => [
139
- z(c.$slots, "default", {}, () => [
140
+ default: d(() => [
141
+ x(c.$slots, "default", {}, () => [
140
142
  s.value ? (u(), f(Y(s.value), { key: 0 })) : v("", !0),
141
- e.src ? (u(), A("img", {
143
+ e.src ? (u(), D("img", {
142
144
  key: 1,
143
145
  src: e.src
144
- }, null, 8, Cn)) : v("", !0)
146
+ }, null, 8, Mn)) : v("", !0)
145
147
  ])
146
148
  ]),
147
149
  _: 3
148
150
  }, 8, ["class", "color", "size"]));
149
151
  }
150
- }), Tn = { class: "x-menu__wrapper" }, Mn = {
152
+ }), En = { class: "x-menu__wrapper" }, In = {
151
153
  key: 1,
152
154
  class: "x-menu__title"
153
- }, En = /* @__PURE__ */ R("i", null, null, -1), In = {
155
+ }, Bn = /* @__PURE__ */ $("i", null, null, -1), An = {
154
156
  key: 0,
155
157
  class: "x-menu__title"
156
- }, Bn = /* @__PURE__ */ R("i", null, null, -1), mt = /* @__PURE__ */ D({
158
+ }, Dn = /* @__PURE__ */ $("i", null, null, -1), ht = /* @__PURE__ */ B({
157
159
  inheritAttrs: !1,
158
160
  name: "XMenuItem",
159
161
  __name: "MenuItem",
@@ -173,26 +175,26 @@ const zn = {
173
175
  }, e.subMenu, {
174
176
  index: String(e.item.id)
175
177
  }), {
176
- title: p(() => [
177
- R("div", Tn, [
178
+ title: d(() => [
179
+ $("div", En, [
178
180
  e.item.icon ? (u(), f(o(ae), {
179
181
  key: 0,
180
182
  icon: n(e.item.icon)
181
183
  }, null, 8, ["icon"])) : v("", !0),
182
- e.item.title ? (u(), A("span", Mn, O(e.item.title), 1)) : v("", !0),
184
+ e.item.title ? (u(), D("span", In, O(e.item.title), 1)) : v("", !0),
183
185
  e.item.badge ? (u(), f(o(Ie), Q({
184
186
  key: 2,
185
187
  class: "x-menu__badge"
186
188
  }, s(e.item.badge)), {
187
- default: p(() => [
188
- En
189
+ default: d(() => [
190
+ Bn
189
191
  ]),
190
192
  _: 1
191
193
  }, 16)) : v("", !0)
192
194
  ])
193
195
  ]),
194
- default: p(() => [
195
- (u(!0), A(q, null, we(l(e.item.children), (r) => (u(), f(o(mt), {
196
+ default: d(() => [
197
+ (u(!0), D(q, null, we(l(e.item.children), (r) => (u(), f(o(ht), {
196
198
  key: r.id,
197
199
  item: r,
198
200
  subMenu: e.subMenu,
@@ -200,24 +202,24 @@ const zn = {
200
202
  }, null, 8, ["item", "subMenu", "defaultIcon"]))), 128))
201
203
  ]),
202
204
  _: 1
203
- }, 16, ["disabled", "index"])) : (u(), f(o(Vt), {
205
+ }, 16, ["disabled", "index"])) : (u(), f(o(Pt), {
204
206
  key: 1,
205
207
  index: String(e.item.id),
206
208
  disabled: e.item.disabled
207
209
  }, {
208
- title: p(() => [
209
- e.item.title ? (u(), A("span", In, O(e.item.title), 1)) : v("", !0),
210
+ title: d(() => [
211
+ e.item.title ? (u(), D("span", An, O(e.item.title), 1)) : v("", !0),
210
212
  e.item.badge ? (u(), f(o(Ie), Q({
211
213
  key: 1,
212
214
  class: "x-menu__badge"
213
215
  }, s(e.item.badge)), {
214
- default: p(() => [
215
- Bn
216
+ default: d(() => [
217
+ Dn
216
218
  ]),
217
219
  _: 1
218
220
  }, 16)) : v("", !0)
219
221
  ]),
220
- default: p(() => [
222
+ default: d(() => [
221
223
  e.item.icon ? (u(), f(o(ae), {
222
224
  key: 0,
223
225
  icon: n(e.item.icon)
@@ -226,7 +228,7 @@ const zn = {
226
228
  _: 1
227
229
  }, 8, ["index", "disabled"]));
228
230
  }
229
- }), G = /* @__PURE__ */ D({
231
+ }), G = /* @__PURE__ */ B({
230
232
  inheritAttrs: !1,
231
233
  name: "XMenu",
232
234
  __name: "Menu",
@@ -238,14 +240,14 @@ const zn = {
238
240
  emits: ["select"],
239
241
  setup(a, { emit: e }) {
240
242
  const t = a, n = y(() => t.data.filter((i) => !i.hidden)), s = (i, c) => {
241
- const r = (d, m = []) => {
243
+ const r = (p, m = []) => {
242
244
  for (const h of m) {
243
- if (h.id.toString() === d.toString())
245
+ if (h.id.toString() === p.toString())
244
246
  return h;
245
247
  if (h.children?.length) {
246
- const x = r(d, h.children);
247
- if (x)
248
- return x;
248
+ const z = r(p, h.children);
249
+ if (z)
250
+ return z;
249
251
  }
250
252
  }
251
253
  };
@@ -254,10 +256,10 @@ const zn = {
254
256
  const c = s(n.value, i);
255
257
  c && e("select", c);
256
258
  };
257
- return (i, c) => (u(), f(o(Pt), Q({ class: "x-menu" }, i.$attrs, { onSelect: l }), {
258
- default: p(() => [
259
- (u(!0), A(q, null, we(n.value, (r) => (u(), f(o(mt), {
260
- item: { ...r, icon: r.icon || o(ot) },
259
+ return (i, c) => (u(), f(o(Vt), Q({ class: "x-menu" }, i.$attrs, { onSelect: l }), {
260
+ default: d(() => [
261
+ (u(!0), D(q, null, we(n.value, (r) => (u(), f(o(ht), {
262
+ item: { ...r, icon: r.icon || o(st) },
261
263
  defaultIcon: t.defaultIcon,
262
264
  subMenu: t.subMenu
263
265
  }, null, 8, ["item", "defaultIcon", "subMenu"]))), 256))
@@ -265,7 +267,7 @@ const zn = {
265
267
  _: 1
266
268
  }, 16));
267
269
  }
268
- }), An = { class: "x-simple-mask__brand" }, Dn = { class: "x-simple-mask__aciton" }, Vn = /* @__PURE__ */ D({
270
+ }), Pn = { class: "x-simple-mask__brand" }, Vn = { class: "x-simple-mask__aciton" }, $n = /* @__PURE__ */ B({
269
271
  name: "XSimpleMask",
270
272
  __name: "SimpleMask",
271
273
  props: {
@@ -277,42 +279,42 @@ const zn = {
277
279
  menu: {}
278
280
  },
279
281
  setup(a, { expose: e }) {
280
- const t = a, n = ke(), s = Ve(), l = y(() => s.params.id), i = () => {
282
+ const t = a, n = ke(), s = $e(), l = y(() => s.params.id), i = () => {
281
283
  const r = t.project.home;
282
284
  r && n.push(r);
283
285
  }, c = (r) => {
284
- const d = r?.id;
285
- if (d) {
286
- const h = `${t.preview ? "/preview" : t.project.page}/${d}`;
286
+ const p = r?.id;
287
+ if (p) {
288
+ const h = `${t.preview ? "/preview" : t.project.page}/${p}`;
287
289
  n.push(h);
288
290
  }
289
291
  };
290
292
  return e({
291
293
  goHome: i
292
- }), (r, d) => (u(), f(o(Ne), { class: "x-simple-mask" }, {
293
- default: p(() => [
294
- b(o(Rt), { class: "x-simple-mask__header" }, {
295
- default: p(() => [
296
- R("div", An, [
297
- R("span", {
294
+ }), (r, p) => (u(), f(o(Ue), { class: "x-simple-mask" }, {
295
+ default: d(() => [
296
+ b(o($t), { class: "x-simple-mask__header" }, {
297
+ default: d(() => [
298
+ $("div", Pn, [
299
+ $("span", {
298
300
  class: "x-simple-mask__logo",
299
301
  onClick: i
300
302
  }, [
301
- z(r.$slots, "logo", {}, () => [
303
+ x(r.$slots, "logo", {}, () => [
302
304
  N(O(t.project.name), 1)
303
305
  ])
304
306
  ])
305
307
  ]),
306
- R("div", Dn, [
307
- z(r.$slots, "action")
308
+ $("div", Vn, [
309
+ x(r.$slots, "action")
308
310
  ])
309
311
  ]),
310
312
  _: 3
311
313
  }),
312
- b(o(Ne), null, {
313
- default: p(() => [
314
- b(o($t), { class: "x-simple-mask__aside" }, {
315
- default: p(() => [
314
+ b(o(Ue), null, {
315
+ default: d(() => [
316
+ b(o(Rt), { class: "x-simple-mask__aside" }, {
317
+ default: d(() => [
316
318
  b(o(G), Q(t.menu, {
317
319
  "default-active": l.value,
318
320
  onSelect: c
@@ -321,9 +323,9 @@ const zn = {
321
323
  _: 1
322
324
  }),
323
325
  b(o(Ft), { class: "x-simple-mask__main" }, {
324
- default: p(() => [
325
- z(r.$slots, "default", {}, () => [
326
- b(o(it))
326
+ default: d(() => [
327
+ x(r.$slots, "default", {}, () => [
328
+ b(o(ct))
327
329
  ])
328
330
  ]),
329
331
  _: 3
@@ -336,8 +338,8 @@ const zn = {
336
338
  class: "x-simple-mask__footer",
337
339
  height: "40px"
338
340
  }, {
339
- default: p(() => [
340
- z(r.$slots, "footer")
341
+ default: d(() => [
342
+ x(r.$slots, "footer")
341
343
  ]),
342
344
  _: 3
343
345
  })) : v("", !0)
@@ -345,7 +347,7 @@ const zn = {
345
347
  _: 3
346
348
  }));
347
349
  }
348
- }), gt = {
350
+ }), vt = {
349
351
  /**
350
352
  * 动作名称标识
351
353
  */
@@ -441,21 +443,21 @@ const zn = {
441
443
  type: Boolean
442
444
  }
443
445
  };
444
- function Pn(a) {
446
+ function Rn(a) {
445
447
  return y(() => {
446
448
  const e = a.tooltip;
447
449
  if (e)
448
450
  return typeof e == "string" ? { content: e } : e;
449
451
  });
450
452
  }
451
- function Rn(a) {
453
+ function Fn(a) {
452
454
  return y(() => {
453
455
  const e = a.badge;
454
456
  if (e)
455
457
  return typeof e == "object" ? e : { value: e };
456
458
  });
457
459
  }
458
- function $n(a) {
460
+ function On(a) {
459
461
  return y(() => {
460
462
  const { dropdown: e, menus: t } = a;
461
463
  if (t && t.length > 0)
@@ -465,12 +467,12 @@ function $n(a) {
465
467
  );
466
468
  });
467
469
  }
468
- function Fn(a) {
470
+ function jn(a) {
469
471
  const e = pe();
470
472
  return y(() => {
471
473
  const t = o(a);
472
474
  if (t)
473
- if (typeof t == "string" || t.setup || t.render || xt(t)) {
475
+ if (typeof t == "string" || t.setup || t.render || St(t)) {
474
476
  const n = e?.appContext.app;
475
477
  return {
476
478
  icon: typeof t == "string" && n?.component(t) || t
@@ -481,21 +483,21 @@ function Fn(a) {
481
483
  });
482
484
  }
483
485
  function _e(a) {
484
- const e = Fn(a);
485
- return e.value ? Ae(D({ render: () => K(ae, e.value) })) : null;
486
+ const e = jn(a);
487
+ return e.value ? Ae(B({ render: () => K(ae, e.value) })) : null;
486
488
  }
487
- function Pe(a, e) {
489
+ function Re(a, e) {
488
490
  return y(() => {
489
491
  const t = o(a);
490
492
  return typeof t == "function" ? t(e) : !!t;
491
493
  });
492
494
  }
493
- const On = { key: 0 }, jn = /* @__PURE__ */ D({
495
+ const Nn = { key: 0 }, Xn = /* @__PURE__ */ B({
494
496
  __name: "Trigger",
495
- props: gt,
497
+ props: vt,
496
498
  emits: ["click"],
497
499
  setup(a, { emit: e }) {
498
- const t = a, n = _e(ye(t, "icon")), s = Pe(ye(t, "disabled")), l = y(() => ({
500
+ const t = a, n = _e(ye(t, "icon")), s = Re(ye(t, "disabled")), l = y(() => ({
499
501
  [`is-${t.mode}`]: !!t.mode,
500
502
  [`is-${t.type}`]: !!t.type,
501
503
  [`is-${t.size}`]: !!t.size && t.size !== "default",
@@ -512,33 +514,33 @@ const On = { key: 0 }, jn = /* @__PURE__ */ D({
512
514
  size: t.size,
513
515
  disabled: o(s)
514
516
  }, t.button, { onClick: i }), {
515
- default: p(() => [
517
+ default: d(() => [
516
518
  N(O(c.label), 1)
517
519
  ]),
518
520
  _: 1
519
- }, 16, ["icon", "type", "size", "disabled"])) : (u(), A("div", {
521
+ }, 16, ["icon", "type", "size", "disabled"])) : (u(), D("div", {
520
522
  key: 1,
521
- class: U(["x-action__inner", l.value]),
523
+ class: X(["x-action__inner", l.value]),
522
524
  onClick: i
523
525
  }, [
524
526
  (u(), f(Y(o(n)))),
525
- c.label ? (u(), A("span", On, O(c.label), 1)) : v("", !0)
527
+ c.label ? (u(), D("span", Nn, O(c.label), 1)) : v("", !0)
526
528
  ], 2));
527
529
  }
528
- }), W = /* @__PURE__ */ D({
530
+ }), W = /* @__PURE__ */ B({
529
531
  name: "XAction",
530
532
  __name: "Action",
531
- props: gt,
533
+ props: vt,
532
534
  emits: ["click", "command"],
533
535
  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(() => ({
536
+ const t = a, n = Ct(), s = Rn(t), l = Fn(t), i = On(t), c = Re(ye(t, "disabled")), r = y(() => ({
535
537
  [`x-action--${t.mode}`]: !!t.mode
536
- })), d = () => {
538
+ })), p = () => {
537
539
  e("click", t);
538
540
  }, m = (_) => {
539
- const E = t.menus?.find((B) => B.command === _);
541
+ const E = t.menus?.find((A) => A.command === _);
540
542
  E && e("command", E);
541
- }, h = (_) => K(Ie, l.value, () => [].concat(_)), x = (_) => K(
543
+ }, h = (_) => K(Ie, l.value, () => [].concat(_)), z = (_) => K(
542
544
  jt,
543
545
  { ...i.value, disabled: c.value, onCommand: m },
544
546
  {
@@ -547,26 +549,26 @@ const On = { key: 0 }, jn = /* @__PURE__ */ D({
547
549
  K(
548
550
  Nt,
549
551
  () => (t.menus || []).map((E) => K(
550
- Ut,
552
+ Xt,
551
553
  E,
552
554
  () => n.item ? n.item({ item: E }) : E.label
553
555
  ))
554
556
  )
555
557
  ]
556
558
  }
557
- ), V = (_) => K(Xt, { ...s.value, disabled: c.value }, () => [
559
+ ), P = (_) => K(Ut, { ...s.value, disabled: c.value }, () => [
558
560
  _
559
561
  ]), k = y(() => {
560
- let _ = n.default ? n.default()[0] : K(Ae(jn), { ...t, onClick: d });
561
- return l.value && (_ = h(_)), i.value && (_ = x(_)), s.value && (_ = V(_)), _;
562
+ let _ = n.default ? n.default()[0] : K(Ae(Xn), { ...t, onClick: p });
563
+ return l.value && (_ = h(_)), i.value && (_ = z(_)), s.value && (_ = P(_)), _;
562
564
  });
563
- return (_, E) => (u(), A("div", {
564
- class: U(["x-action", r.value])
565
+ return (_, E) => (u(), D("div", {
566
+ class: X(["x-action", r.value])
565
567
  }, [
566
568
  (u(), f(Y(k.value)))
567
569
  ], 2));
568
570
  }
569
- }), Nn = {
571
+ }), Un = {
570
572
  /**
571
573
  * 动作项
572
574
  */
@@ -637,10 +639,10 @@ const On = { key: 0 }, jn = /* @__PURE__ */ D({
637
639
  button: {
638
640
  type: Object
639
641
  }
640
- }, Re = /* @__PURE__ */ D({
642
+ }, Fe = /* @__PURE__ */ B({
641
643
  name: "XActionBar",
642
644
  __name: "ActionBar",
643
- props: Nn,
645
+ props: Un,
644
646
  emits: ["click", "command"],
645
647
  setup(a, { emit: e }) {
646
648
  const t = a, n = y(() => (t.items || []).map((i) => i === "|" ? i : {
@@ -662,8 +664,8 @@ const On = { key: 0 }, jn = /* @__PURE__ */ D({
662
664
  class: "x-action-bar",
663
665
  align: "center"
664
666
  }, {
665
- default: p(() => [
666
- (u(!0), A(q, null, we(n.value, (r) => (u(), A(q, null, [
667
+ default: d(() => [
668
+ (u(!0), D(q, null, we(n.value, (r) => (u(), D(q, null, [
667
669
  r === "|" ? (u(), f(o(ue), {
668
670
  key: 0,
669
671
  direction: "vertical",
@@ -677,17 +679,17 @@ const On = { key: 0 }, jn = /* @__PURE__ */ D({
677
679
  background: t.background,
678
680
  button: t.button,
679
681
  dropdown: t.dropdown,
680
- disabled: o(Pe)(t.disabled, r).value
682
+ disabled: o(Re)(t.disabled, r).value
681
683
  }, r, {
682
684
  onClick: s,
683
- onCommand: (d) => l(r, d)
685
+ onCommand: (p) => l(r, p)
684
686
  }), null, 16, ["mode", "size", "type", "circle", "background", "button", "dropdown", "disabled", "onCommand"]))
685
687
  ], 64))), 256))
686
688
  ]),
687
689
  _: 1
688
690
  }));
689
691
  }
690
- }), Un = {
692
+ }), Hn = {
691
693
  /**
692
694
  * 组件渲染html标签
693
695
  */
@@ -796,10 +798,10 @@ const On = { key: 0 }, jn = /* @__PURE__ */ D({
796
798
  type: Boolean,
797
799
  default: !1
798
800
  }
799
- }, M = /* @__PURE__ */ D({
801
+ }, M = /* @__PURE__ */ B({
800
802
  name: "XContainer",
801
803
  __name: "Container",
802
- props: Un,
804
+ props: Hn,
803
805
  setup(a) {
804
806
  const e = a, t = pe(), n = y(() => {
805
807
  const i = t?.parent;
@@ -824,21 +826,21 @@ const On = { key: 0 }, jn = /* @__PURE__ */ D({
824
826
  })), l = y(() => {
825
827
  const { width: i, height: c, fit: r } = e;
826
828
  return r ? null : {
827
- width: i ? Xe(i) : void 0,
828
- height: c ? Xe(c) : void 0
829
+ width: i ? Le(i) : void 0,
830
+ height: c ? Le(c) : void 0
829
831
  };
830
832
  });
831
833
  return (i, c) => (u(), f(Y(e.tag), {
832
- class: U(["x-container", s.value]),
834
+ class: X(["x-container", s.value]),
833
835
  style: Ee(l.value)
834
836
  }, {
835
- default: p(() => [
836
- z(i.$slots, "default")
837
+ default: d(() => [
838
+ x(i.$slots, "default")
837
839
  ]),
838
840
  _: 3
839
841
  }, 8, ["class", "style"]));
840
842
  }
841
- }), Xn = {
843
+ }), Ln = {
842
844
  size: {
843
845
  type: String,
844
846
  default: "default"
@@ -859,65 +861,65 @@ const On = { key: 0 }, jn = /* @__PURE__ */ D({
859
861
  more: {
860
862
  type: Boolean
861
863
  }
862
- }, Hn = {
864
+ }, Wn = {
863
865
  key: 2,
864
866
  class: "x-header__subtitle"
865
- }, Ln = {
867
+ }, Qn = {
866
868
  key: 0,
867
869
  class: "x-header__actions"
868
- }, ht = /* @__PURE__ */ D({
870
+ }, yt = /* @__PURE__ */ B({
869
871
  name: "XHeader",
870
872
  inheritAttrs: !1,
871
873
  __name: "Header",
872
- props: Xn,
874
+ props: Ln,
873
875
  setup(a) {
874
- const e = a, t = Je(), n = _e(ye(e, "icon")), s = y(() => ({
876
+ const e = a, t = Ye(), n = _e(ye(e, "icon")), s = y(() => ({
875
877
  [`is-size-${e.size}`]: !!e.size && e.size !== "default",
876
878
  "is-border": e.border,
877
879
  "is-pointer": !!t.onClick
878
880
  }));
879
881
  return (l, i) => (u(), f(o(M), {
880
- class: U(["x-header", s.value]),
882
+ class: X(["x-header", s.value]),
881
883
  justify: "space-between",
882
884
  align: "center"
883
885
  }, {
884
- default: p(() => [
886
+ default: d(() => [
885
887
  b(o(M), {
886
888
  align: "center",
887
- class: U(["x-header__wrapper", s.value]),
889
+ class: X(["x-header__wrapper", s.value]),
888
890
  grow: ""
889
891
  }, {
890
- default: p(() => [
892
+ default: d(() => [
891
893
  o(n) ? (u(), f(Y(o(n)), {
892
894
  key: 0,
893
895
  class: "x-header__icon"
894
896
  })) : v("", !0),
895
- R("span", Q({ class: "x-header__content" }, l.$attrs), [
896
- z(l.$slots, "default", {}, () => [
897
+ $("span", Q({ class: "x-header__content" }, l.$attrs), [
898
+ x(l.$slots, "default", {}, () => [
897
899
  N(O(e.content), 1)
898
900
  ])
899
901
  ], 16),
900
902
  e.more ? (u(), f(o(ae), {
901
903
  key: 1,
902
904
  class: "x-header__more",
903
- icon: o(Jt)
905
+ icon: o(Yt)
904
906
  }, null, 8, ["icon"])) : v("", !0),
905
- e.subtitle || l.$slots.subtitle ? (u(), A("span", Hn, [
906
- z(l.$slots, "subtitle", {}, () => [
907
+ e.subtitle || l.$slots.subtitle ? (u(), D("span", Wn, [
908
+ x(l.$slots, "subtitle", {}, () => [
907
909
  N(O(e.subtitle), 1)
908
910
  ])
909
911
  ])) : v("", !0)
910
912
  ]),
911
913
  _: 3
912
914
  }, 8, ["class"]),
913
- l.$slots.actions ? (u(), A("div", Ln, [
914
- z(l.$slots, "actions")
915
+ l.$slots.actions ? (u(), D("div", Qn, [
916
+ x(l.$slots, "actions")
915
917
  ])) : v("", !0)
916
918
  ]),
917
919
  _: 3
918
920
  }, 8, ["class"]));
919
921
  }
920
- }), Wn = {
922
+ }), Zn = {
921
923
  /**
922
924
  * 宽高自适应
923
925
  */
@@ -989,12 +991,12 @@ const On = { key: 0 }, jn = /* @__PURE__ */ D({
989
991
  footer: {
990
992
  type: Object
991
993
  }
992
- }, vt = /* @__PURE__ */ D({
994
+ }, bt = /* @__PURE__ */ B({
993
995
  name: "XPanel",
994
996
  __name: "Panel",
995
- props: Wn,
997
+ props: Zn,
996
998
  setup(a, { expose: e }) {
997
- const t = a, n = $(), s = y(() => ({
999
+ const t = a, n = R(), s = y(() => ({
998
1000
  "x-panel--card": !!t.card,
999
1001
  "x-panel--default": !t.card,
1000
1002
  [`is-${t.size}`]: !!t.size && t.size !== "default",
@@ -1011,26 +1013,26 @@ const On = { key: 0 }, jn = /* @__PURE__ */ D({
1011
1013
  return e({
1012
1014
  bodyRef: n
1013
1015
  }), (c, r) => (u(), f(o(M), {
1014
- class: U(["x-panel", s.value]),
1016
+ class: X(["x-panel", s.value]),
1015
1017
  direction: "column",
1016
1018
  fit: t.fit,
1017
1019
  width: t.width,
1018
1020
  height: t.height
1019
1021
  }, {
1020
- default: p(() => [
1022
+ default: d(() => [
1021
1023
  l.value ? (u(), f(o(M), {
1022
1024
  key: 0,
1023
1025
  flex: !1,
1024
1026
  class: "x-panel__header"
1025
1027
  }, {
1026
- default: p(() => [
1027
- z(c.$slots, "header", {}, () => [
1028
- b(o(ht), St(Ct(l.value)), {
1029
- default: p(() => [
1030
- z(c.$slots, "title")
1028
+ default: d(() => [
1029
+ x(c.$slots, "header", {}, () => [
1030
+ b(o(yt), De(Pe(l.value)), {
1031
+ default: d(() => [
1032
+ x(c.$slots, "title")
1031
1033
  ]),
1032
- actions: p(() => [
1033
- z(c.$slots, "actions")
1034
+ actions: d(() => [
1035
+ x(c.$slots, "actions")
1034
1036
  ]),
1035
1037
  _: 3
1036
1038
  }, 16)
@@ -1047,8 +1049,8 @@ const On = { key: 0 }, jn = /* @__PURE__ */ D({
1047
1049
  padding: "",
1048
1050
  class: "x-panel__body"
1049
1051
  }, t.body), {
1050
- default: p(() => [
1051
- z(c.$slots, "default")
1052
+ default: d(() => [
1053
+ x(c.$slots, "default")
1052
1054
  ]),
1053
1055
  _: 3
1054
1056
  }, 16, ["overflow"]),
@@ -1058,8 +1060,8 @@ const On = { key: 0 }, jn = /* @__PURE__ */ D({
1058
1060
  padding: "",
1059
1061
  class: "x-panel__footer"
1060
1062
  }, t.footer), {
1061
- default: p(() => [
1062
- z(c.$slots, "footer")
1063
+ default: d(() => [
1064
+ x(c.$slots, "footer")
1063
1065
  ]),
1064
1066
  _: 3
1065
1067
  }, 16)) : v("", !0)
@@ -1067,10 +1069,10 @@ const On = { key: 0 }, jn = /* @__PURE__ */ D({
1067
1069
  _: 3
1068
1070
  }, 8, ["class", "fit", "width", "height"]));
1069
1071
  }
1070
- }), Le = "user-select-none";
1071
- class We {
1072
+ }), Qe = "user-select-none";
1073
+ class Ze {
1072
1074
  constructor(e, t = {}) {
1073
- this.el = e, this.options = t, this.scope = Ke(), this.scope.run(() => {
1075
+ this.el = e, this.options = t, this.scope = Ge(), this.scope.run(() => {
1074
1076
  this.init();
1075
1077
  });
1076
1078
  }
@@ -1089,34 +1091,34 @@ class We {
1089
1091
  if (n)
1090
1092
  return;
1091
1093
  let c = null;
1092
- const r = this.getHandle(), d = this.getTarget();
1094
+ const r = this.getHandle(), p = this.getTarget();
1093
1095
  let m = e.getBoundingClientRect(), h = null;
1094
- const { x, y: V } = dn(e, {
1096
+ const { x: z, y: P } = fn(e, {
1095
1097
  initialValue: { x: m.x, y: m.y },
1096
1098
  ...t,
1097
1099
  handle: r,
1098
1100
  onStart: (k, _) => {
1099
- document.body.classList.add(Le), clearTimeout(c), c = setTimeout(() => {
1100
- this.dragging = !0, m = e.getBoundingClientRect(), h = d?.getBoundingClientRect(), l && l(k, _);
1101
+ document.body.classList.add(Qe), clearTimeout(c), c = setTimeout(() => {
1102
+ this.dragging = !0, m = e.getBoundingClientRect(), h = p?.getBoundingClientRect(), l && l(k, _);
1101
1103
  }, s);
1102
1104
  },
1103
1105
  onEnd: (k, _) => {
1104
- if (clearTimeout(c), document.body.classList.remove(Le), this.dragging && h) {
1106
+ if (clearTimeout(c), document.body.classList.remove(Qe), this.dragging && h) {
1105
1107
  this.dragging = !1;
1106
- const { x: E, y: B } = k, g = this.getPosition(h, m, E, B);
1108
+ const { x: E, y: A } = k, g = this.getPosition(h, m, E, A);
1107
1109
  i && i(g, _), h = null;
1108
1110
  }
1109
1111
  }
1110
1112
  });
1111
- oe([x, V], () => {
1113
+ oe([z, P], () => {
1112
1114
  if (this.dragging && h) {
1113
- const k = this.getPosition(h, m, x.value, V.value);
1115
+ const k = this.getPosition(h, m, z.value, P.value);
1114
1116
  e.style.left = `${k.x}px`, e.style.top = `${k.y}px`;
1115
1117
  }
1116
1118
  });
1117
1119
  }
1118
1120
  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));
1121
+ const { edge: l = 50 } = this.options, i = -t.width + l, c = e.width - l, r = 0, p = e.height - l, m = Math.min(c, Math.max(n, i)), h = Math.min(p, Math.max(s, r));
1120
1122
  return {
1121
1123
  x: m,
1122
1124
  y: h
@@ -1126,30 +1128,30 @@ class We {
1126
1128
  this.scope.stop();
1127
1129
  }
1128
1130
  }
1129
- const Qn = {
1131
+ const Jn = {
1130
1132
  mounted(a, e) {
1131
- const t = e.value || {}, n = new We(a, t);
1133
+ const t = e.value || {}, n = new Ze(a, t);
1132
1134
  a.__draggable__ = n;
1133
1135
  },
1134
1136
  updated(a, e) {
1135
1137
  const t = e.value || {};
1136
1138
  let n = a.__draggable__;
1137
- n && !ct(n.options, t) && (n.destory(), a.__draggable__ = new We(a, t));
1139
+ n && !dt(n.options, t) && (n.destory(), a.__draggable__ = new Ze(a, t));
1138
1140
  },
1139
1141
  unmounted(a) {
1140
1142
  const e = a.__draggable__;
1141
1143
  e && (e.destory(), a.__draggable__ = null);
1142
1144
  }
1143
1145
  }, Me = "user-select-none";
1144
- class Qe {
1146
+ class Je {
1145
1147
  constructor(e, t = {}) {
1146
- this.el = e, this.options = t, this.scope = Ke(), this.scope.run(() => {
1148
+ this.el = e, this.options = t, this.scope = Ge(), this.scope.run(() => {
1147
1149
  this.init();
1148
1150
  });
1149
1151
  }
1150
1152
  scope;
1151
- resizing = $(!1);
1152
- direction = $("");
1153
+ resizing = R(!1);
1154
+ direction = R("");
1153
1155
  MIE = null;
1154
1156
  cleanMousedown;
1155
1157
  cleanMouseup;
@@ -1157,7 +1159,7 @@ class Qe {
1157
1159
  const { el: e, options: t } = this, { disabled: n, onStart: s, onEnd: l } = t;
1158
1160
  if (n)
1159
1161
  return;
1160
- this.MIE = pn(e), this.cleanMousedown = be(document, "mousedown", () => {
1162
+ this.MIE = mn(e), this.cleanMousedown = be(document, "mousedown", () => {
1161
1163
  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
1164
  }), this.cleanMouseup = be(document, "mouseup", () => {
1163
1165
  this.resizing.value && this.direction?.value && this.MIE && (e.classList.remove(
@@ -1165,8 +1167,8 @@ class Qe {
1165
1167
  `is-${this.direction.value}-resizing`
1166
1168
  ), l && l(this.direction.value, this.MIE)), this.resizing.value = !1;
1167
1169
  }), oe(this.direction, (r) => {
1168
- const d = document.body;
1169
- d.style.cursor = r ? `${r}-resize` : "", r ? d.classList.add(Me) : d.classList.remove(Me);
1170
+ const p = document.body;
1171
+ p.style.cursor = r ? `${r}-resize` : "", r ? p.classList.add(Me) : p.classList.remove(Me);
1170
1172
  });
1171
1173
  const { x: i, y: c } = this.MIE;
1172
1174
  oe([i, c], () => {
@@ -1177,23 +1179,23 @@ class Qe {
1177
1179
  const { MIE: e, direction: t, resizing: n, options: s, el: l } = this, i = t?.value || "";
1178
1180
  if (!e || !n.value || !i)
1179
1181
  return;
1180
- const { x: c, y: r, elementX: d, elementY: m, elementHeight: h, elementWidth: x } = e, { onResizing: V } = s, {
1182
+ const { x: c, y: r, elementX: p, elementY: m, elementHeight: h, elementWidth: z } = e, { onResizing: P } = s, {
1181
1183
  minWidth: k = 0,
1182
1184
  minHeight: _ = 0,
1183
1185
  maxWidth: E = 99999,
1184
- maxHeight: B = 99999
1186
+ maxHeight: A = 99999
1185
1187
  } = s;
1186
1188
  if (i.includes("e")) {
1187
- const g = Math.min(Math.max(d.value, k), E);
1189
+ const g = Math.min(Math.max(p.value, k), E);
1188
1190
  l.style.width = `${g}px`;
1189
1191
  }
1190
1192
  if (i.includes("s")) {
1191
- const g = Math.min(Math.max(m.value, _), B);
1193
+ const g = Math.min(Math.max(m.value, _), A);
1192
1194
  l.style.height = `${g}px`;
1193
1195
  }
1194
1196
  if (i.includes("w")) {
1195
1197
  const g = Math.min(
1196
- Math.max(x.value - d.value, k),
1198
+ Math.max(z.value - p.value, k),
1197
1199
  E
1198
1200
  );
1199
1201
  l.style.width = `${g}px`, l.style.left = `${c.value}px`;
@@ -1201,11 +1203,11 @@ class Qe {
1201
1203
  if (i.includes("n")) {
1202
1204
  const g = Math.min(
1203
1205
  Math.max(h.value - m.value, _),
1204
- B
1206
+ A
1205
1207
  );
1206
1208
  this.el.style.height = `${g}px`, this.el.style.top = `${r.value}px`;
1207
1209
  }
1208
- V && V(i, e);
1210
+ P && P(i, e);
1209
1211
  }
1210
1212
  getDirection() {
1211
1213
  if (!this.MIE)
@@ -1222,21 +1224,21 @@ class Qe {
1222
1224
  e.style.cursor = "", e.classList.remove(Me), this.cleanMousedown && this.cleanMousedown(), this.cleanMouseup && this.cleanMouseup(), this.MIE?.stop(), this.scope.stop();
1223
1225
  }
1224
1226
  }
1225
- const yt = {
1227
+ const _t = {
1226
1228
  mounted(a, e) {
1227
- const t = e.value || {}, n = new Qe(a, t);
1229
+ const t = e.value || {}, n = new Je(a, t);
1228
1230
  a.__resizable__ = n;
1229
1231
  },
1230
1232
  updated(a, e) {
1231
1233
  const t = e.value || {};
1232
1234
  let n = a.__resizable__;
1233
- n && !ct(n.options, t) && (n.destory(), a.__resizable__ = new Qe(a, t));
1235
+ n && !dt(n.options, t) && (n.destory(), a.__resizable__ = new Je(a, t));
1234
1236
  },
1235
1237
  unmounted(a) {
1236
1238
  const e = a.__resizable__;
1237
1239
  e && (e.destory(), a.__resizable__ = null);
1238
1240
  }
1239
- }, Zn = {
1241
+ }, Kn = {
1240
1242
  modelValue: {
1241
1243
  type: Boolean,
1242
1244
  default: !0
@@ -1322,8 +1324,8 @@ const yt = {
1322
1324
  }
1323
1325
  };
1324
1326
  let ie = 1e3;
1325
- function Jn(a, e) {
1326
- const { width: t, height: n } = rt(e), s = Ye({
1327
+ function Yn(a, e) {
1328
+ const { width: t, height: n } = ut(e), s = qe({
1327
1329
  mode: a.mode || "normal",
1328
1330
  wrapperWidth: 0,
1329
1331
  wrapperHeight: 0,
@@ -1346,14 +1348,14 @@ function Jn(a, e) {
1346
1348
  minimized: y(() => s.mode === "minimized")
1347
1349
  };
1348
1350
  }
1349
- function Kn(a, e) {
1351
+ function Gn(a, e) {
1350
1352
  const t = y(() => {
1351
- const { width: i, height: c, top: r, left: d, zIndex: m } = e;
1353
+ const { width: i, height: c, top: r, left: p, zIndex: m } = e;
1352
1354
  return {
1353
1355
  width: `${i}px`,
1354
1356
  height: `${c}px`,
1355
1357
  top: `${r}px`,
1356
- left: `${d}px`,
1358
+ left: `${p}px`,
1357
1359
  zIndex: m
1358
1360
  };
1359
1361
  }), n = y(() => ({
@@ -1375,7 +1377,7 @@ function Kn(a, e) {
1375
1377
  modalStyle: l
1376
1378
  };
1377
1379
  }
1378
- function Yn(a, e, t) {
1380
+ function qn(a, e, t) {
1379
1381
  const n = (m) => {
1380
1382
  e.mode = m, ["maximized", "minimized", "normal"].includes(m) && t(m), t("modeChange", m);
1381
1383
  }, s = async () => {
@@ -1395,11 +1397,11 @@ function Yn(a, e, t) {
1395
1397
  }
1396
1398
  };
1397
1399
  }
1398
- function Gn(a, e, t, n) {
1400
+ function eo(a, e, t, n) {
1399
1401
  return y(() => {
1400
1402
  const s = typeof a.draggable == "boolean" ? !a.draggable : !!a.draggable?.disabled;
1401
1403
  return {
1402
- ...ut(a.draggable) ? a.draggable : {},
1404
+ ...pt(a.draggable) ? a.draggable : {},
1403
1405
  disabled: s,
1404
1406
  target: n,
1405
1407
  selector: ".x-panel__header",
@@ -1418,13 +1420,13 @@ function Gn(a, e, t, n) {
1418
1420
  };
1419
1421
  });
1420
1422
  }
1421
- function qn(a, e, t) {
1423
+ function to(a, e, t) {
1422
1424
  return y(() => {
1423
1425
  const n = typeof a.resizable == "boolean" ? !a.resizable : !!a.resizable?.disabled;
1424
1426
  return {
1425
1427
  minWidth: 200,
1426
1428
  minHeight: 150,
1427
- ...ut(a.resizable) ? a.resizable : {},
1429
+ ...pt(a.resizable) ? a.resizable : {},
1428
1430
  disabled: n,
1429
1431
  dirs: ["e", "s", "w"],
1430
1432
  onStart(s, l) {
@@ -1439,7 +1441,7 @@ function qn(a, e, t) {
1439
1441
  };
1440
1442
  });
1441
1443
  }
1442
- function eo(a, e) {
1444
+ function no(a, e) {
1443
1445
  const t = a.componentInstance;
1444
1446
  if (!t)
1445
1447
  return;
@@ -1453,48 +1455,48 @@ function eo(a, e) {
1453
1455
  componentInstance: t
1454
1456
  };
1455
1457
  }
1456
- const to = ["src"], bt = /* @__PURE__ */ D({
1458
+ const oo = ["src"], wt = /* @__PURE__ */ B({
1457
1459
  name: "XDialog",
1458
1460
  __name: "Dialog",
1459
- props: Zn,
1461
+ props: Kn,
1460
1462
  emits: ["update:modelValue", "open", "close", "destroy", "maximized", "minimized", "normal", "modeChange", "dragStart", "dragging", "dragEnd", "resizeStart", "resizeEnd", "resizing", "submit", "cancel"],
1461
1463
  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(
1464
+ const n = a, s = pe(), l = R(), i = R(), { state: c, maximized: r, minimized: p, normal: m } = Yn(n, l), { styles: h, classes: z, wrapperClass: P, modalStyle: k } = Gn(n, c), { changeMode: _, active: E, close: A, show: g, hide: I, submit: C, cancel: F } = qn(
1463
1465
  n,
1464
1466
  c,
1465
1467
  t
1466
- ), X = Gn(n, c, t, l), ee = qn(n, c, t), te = eo(n, i);
1467
- return Ge(async () => {
1468
+ ), U = eo(n, c, t, l), ee = to(n, c, t), te = no(n, i);
1469
+ return et(async () => {
1468
1470
  n.modelValue && (await le(), s && t("open", s));
1469
1471
  }), e({
1470
1472
  panelRef: i,
1471
1473
  state: c,
1472
1474
  maximized: r,
1473
- minimized: d,
1475
+ minimized: p,
1474
1476
  changeMode: _,
1475
1477
  show: g,
1476
1478
  hide: I,
1477
1479
  submit: C,
1478
1480
  cancel: F,
1479
1481
  componentInstance: te
1480
- }), (j, H) => n.modelValue ? (u(), f(qe, {
1482
+ }), (j, H) => n.modelValue ? (u(), f(tt, {
1481
1483
  key: 0,
1482
1484
  to: "body"
1483
1485
  }, [
1484
- R("div", {
1486
+ $("div", {
1485
1487
  ref_key: "wrapper",
1486
1488
  ref: l,
1487
- class: U(["x-dialog__wrapper", o(V)])
1489
+ class: X(["x-dialog__wrapper", o(P)])
1488
1490
  }, [
1489
- n.modal ? (u(), A("div", {
1491
+ n.modal ? (u(), D("div", {
1490
1492
  key: 0,
1491
1493
  class: "x-dialog__modal",
1492
1494
  style: Ee(o(k))
1493
1495
  }, null, 4)) : v("", !0),
1494
- L((u(), f(o(vt), {
1496
+ L((u(), f(o(bt), {
1495
1497
  ref_key: "panelRef",
1496
1498
  ref: i,
1497
- class: U(["x-dialog", o(x)]),
1499
+ class: X(["x-dialog", o(z)]),
1498
1500
  card: "",
1499
1501
  shadow: "always",
1500
1502
  header: { icon: n.icon, subtitle: n.subtitle },
@@ -1505,25 +1507,25 @@ const to = ["src"], bt = /* @__PURE__ */ D({
1505
1507
  size: n.size,
1506
1508
  body: { padding: n.bodyPadding },
1507
1509
  onClick: o(E)
1508
- }, et({
1509
- title: p(() => [
1510
+ }, nt({
1511
+ title: d(() => [
1510
1512
  N(O(n.title), 1)
1511
1513
  ]),
1512
- actions: p(() => [
1513
- z(j.$slots, "actions"),
1514
+ actions: d(() => [
1515
+ x(j.$slots, "actions"),
1514
1516
  n.minimizable ? (u(), f(o(W), {
1515
1517
  key: 0,
1516
- icon: o(ln),
1518
+ icon: o(cn),
1517
1519
  size: n.size,
1518
1520
  mode: "icon",
1519
1521
  type: "primary",
1520
1522
  background: "hover",
1521
1523
  onClick: H[0] || (H[0] = (se) => o(_)("minimized"))
1522
1524
  }, null, 8, ["icon", "size"])) : v("", !0),
1523
- n.maximizable ? (u(), A(q, { key: 1 }, [
1525
+ n.maximizable ? (u(), D(q, { key: 1 }, [
1524
1526
  o(m) ? (u(), f(o(W), {
1525
1527
  key: 1,
1526
- icon: o(cn),
1528
+ icon: o(dn),
1527
1529
  size: n.size,
1528
1530
  mode: "icon",
1529
1531
  type: "primary",
@@ -1531,7 +1533,7 @@ const to = ["src"], bt = /* @__PURE__ */ D({
1531
1533
  onClick: H[2] || (H[2] = (se) => o(_)("maximized"))
1532
1534
  }, null, 8, ["icon", "size"])) : (u(), f(o(W), {
1533
1535
  key: 0,
1534
- icon: o(rn),
1536
+ icon: o(un),
1535
1537
  size: n.size,
1536
1538
  mode: "icon",
1537
1539
  type: "primary",
@@ -1541,46 +1543,46 @@ const to = ["src"], bt = /* @__PURE__ */ D({
1541
1543
  ], 64)) : v("", !0),
1542
1544
  n.closable ? (u(), f(o(W), {
1543
1545
  key: 2,
1544
- icon: o(un),
1546
+ icon: o(pn),
1545
1547
  size: n.size,
1546
1548
  mode: "icon",
1547
1549
  type: "danger",
1548
1550
  background: "hover",
1549
- onClick: o(B)
1551
+ onClick: o(A)
1550
1552
  }, null, 8, ["icon", "size", "onClick"])) : v("", !0)
1551
1553
  ]),
1552
- default: p(() => [
1553
- z(j.$slots, "default", {}, () => [
1554
+ default: d(() => [
1555
+ x(j.$slots, "default", {}, () => [
1554
1556
  n.content ? (u(), f(Y(n.content), { key: 0 })) : v("", !0),
1555
- n.src ? (u(), A("iframe", {
1557
+ n.src ? (u(), D("iframe", {
1556
1558
  key: 1,
1557
1559
  src: n.src,
1558
1560
  class: "x-dialog__frame"
1559
- }, null, 8, to)) : v("", !0)
1561
+ }, null, 8, oo)) : v("", !0)
1560
1562
  ])
1561
1563
  ]),
1562
1564
  _: 2
1563
1565
  }, [
1564
1566
  n.cancel || n.submit || j.$slots.footer || j.$slots.extra || j.$slots.handle ? {
1565
1567
  name: "footer",
1566
- fn: p(() => [
1567
- z(j.$slots, "footer", {}, () => [
1568
+ fn: d(() => [
1569
+ x(j.$slots, "footer", {}, () => [
1568
1570
  b(o(M), null, {
1569
- default: p(() => [
1570
- z(j.$slots, "extra")
1571
+ default: d(() => [
1572
+ x(j.$slots, "extra")
1571
1573
  ]),
1572
1574
  _: 3
1573
1575
  }),
1574
1576
  b(o(M), null, {
1575
- default: p(() => [
1576
- z(j.$slots, "handle"),
1577
+ default: d(() => [
1578
+ x(j.$slots, "handle"),
1577
1579
  n.cancel ? (u(), f(o(de), {
1578
1580
  key: 0,
1579
1581
  type: "default",
1580
1582
  size: n.size,
1581
1583
  onClick: o(F)
1582
1584
  }, {
1583
- default: p(() => [
1585
+ default: d(() => [
1584
1586
  N(O(typeof n.cancel == "string" ? n.cancel : "取消"), 1)
1585
1587
  ]),
1586
1588
  _: 1
@@ -1591,7 +1593,7 @@ const to = ["src"], bt = /* @__PURE__ */ D({
1591
1593
  size: n.size,
1592
1594
  onClick: o(C)
1593
1595
  }, {
1594
- default: p(() => [
1596
+ default: d(() => [
1595
1597
  N(O(typeof n.submit == "string" ? n.cancel : "确定"), 1)
1596
1598
  ]),
1597
1599
  _: 1
@@ -1604,18 +1606,18 @@ const to = ["src"], bt = /* @__PURE__ */ D({
1604
1606
  key: "0"
1605
1607
  } : void 0
1606
1608
  ]), 1032, ["header", "class", "style", "size", "body", "onClick"])), [
1607
- [o(Qn), o(X)],
1608
- [o(yt), o(ee)]
1609
+ [o(Jn), o(U)],
1610
+ [o(_t), o(ee)]
1609
1611
  ])
1610
1612
  ], 2)
1611
1613
  ])) : v("", !0);
1612
1614
  }
1613
1615
  });
1614
- function $e(a, e) {
1615
- const t = document.createElement("div"), n = b(bt, a);
1616
- n.appContext = e ?? $e._context, Fe(n, t);
1616
+ function Oe(a, e) {
1617
+ const t = document.createElement("div"), n = b(wt, a);
1618
+ n.appContext = e ?? Oe._context, je(n, t);
1617
1619
  const s = () => {
1618
- Fe(null, t), t.parentNode?.removeChild(t);
1620
+ je(null, t), t.parentNode?.removeChild(t);
1619
1621
  };
1620
1622
  return n.props.onDestroy = () => {
1621
1623
  s();
@@ -1624,7 +1626,7 @@ function $e(a, e) {
1624
1626
  destroy: s
1625
1627
  };
1626
1628
  }
1627
- const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -1), oo = /* @__PURE__ */ D({
1629
+ const ao = /* @__PURE__ */ $("div", { class: "x-mask-sidebar__helper" }, null, -1), so = /* @__PURE__ */ B({
1628
1630
  __name: "Sidebar",
1629
1631
  props: {
1630
1632
  collapsed: { type: Boolean }
@@ -1632,13 +1634,13 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
1632
1634
  setup(a) {
1633
1635
  const e = a;
1634
1636
  return (t, n) => L((u(), f(o(M), {
1635
- class: U(["x-mask-sidebar", { "is-collapsed": e.collapsed }]),
1637
+ class: X(["x-mask-sidebar", { "is-collapsed": e.collapsed }]),
1636
1638
  grow: !1,
1637
1639
  flex: "",
1638
1640
  direction: "column"
1639
1641
  }, {
1640
- default: p(() => [
1641
- z(t.$slots, "brand"),
1642
+ default: d(() => [
1643
+ x(t.$slots, "brand"),
1642
1644
  b(o(M), {
1643
1645
  class: "x-mask-sidebar__wrapper",
1644
1646
  flex: "",
@@ -1647,16 +1649,16 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
1647
1649
  justify: "space-between",
1648
1650
  align: "center"
1649
1651
  }, {
1650
- default: p(() => [
1651
- z(t.$slots, "default"),
1652
- no
1652
+ default: d(() => [
1653
+ x(t.$slots, "default"),
1654
+ ao
1653
1655
  ]),
1654
1656
  _: 3
1655
1657
  })
1656
1658
  ]),
1657
1659
  _: 3
1658
1660
  }, 8, ["class"])), [
1659
- [o(yt), {
1661
+ [o(_t), {
1660
1662
  dirs: ["e"],
1661
1663
  disabled: e.collapsed,
1662
1664
  maxWidth: 500,
@@ -1664,7 +1666,7 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
1664
1666
  }]
1665
1667
  ]);
1666
1668
  }
1667
- }), ao = /* @__PURE__ */ D({
1669
+ }), lo = /* @__PURE__ */ B({
1668
1670
  __name: "SwitchBar",
1669
1671
  props: {
1670
1672
  collasped: { type: Boolean, default: !1 },
@@ -1677,51 +1679,51 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
1677
1679
  "update:favorite"
1678
1680
  ],
1679
1681
  setup(a, { emit: e }) {
1680
- const t = a, n = $(!1), s = $(""), l = $(!1), i = () => {
1682
+ const t = a, n = R(!1), s = R(""), l = R(!1), i = () => {
1681
1683
  n.value = !0;
1682
1684
  }, c = () => {
1683
1685
  s.value = "", n.value = !1, e("update:keyword", s.value);
1684
1686
  }, r = () => {
1685
1687
  e("update:collasped", !t.collasped);
1686
- }, d = () => {
1688
+ }, p = () => {
1687
1689
  e("update:keyword", s.value);
1688
1690
  }, m = () => {
1689
1691
  e("update:favorite", l.value);
1690
1692
  };
1691
- return (h, x) => (u(), f(o(M), {
1693
+ return (h, z) => (u(), f(o(M), {
1692
1694
  class: "x-mask-switch-bar",
1693
1695
  justify: "space-between",
1694
1696
  align: "center"
1695
1697
  }, {
1696
- default: p(() => [
1698
+ default: d(() => [
1697
1699
  t.collasped ? v("", !0) : (u(), f(o(M), {
1698
1700
  key: 0,
1699
1701
  class: "x-mask-switch-bar__left",
1700
1702
  grow: ""
1701
1703
  }, {
1702
- default: p(() => [
1703
- n.value ? v("", !0) : (u(), f(o(tt), {
1704
+ default: d(() => [
1705
+ n.value ? v("", !0) : (u(), f(o(ot), {
1704
1706
  key: 0,
1705
1707
  modelValue: l.value,
1706
- "onUpdate:modelValue": x[0] || (x[0] = (V) => l.value = V),
1708
+ "onUpdate:modelValue": z[0] || (z[0] = (P) => l.value = P),
1707
1709
  class: "x-mask-switch-bar__switch",
1708
- "active-icon": o(at),
1709
- "inactive-icon": o(ot),
1710
+ "active-icon": o(lt),
1711
+ "inactive-icon": o(st),
1710
1712
  onChange: m
1711
1713
  }, null, 8, ["modelValue", "active-icon", "inactive-icon"])),
1712
1714
  n.value ? (u(), f(o(Ht), {
1713
1715
  key: 1,
1714
1716
  modelValue: s.value,
1715
- "onUpdate:modelValue": x[1] || (x[1] = (V) => s.value = V),
1717
+ "onUpdate:modelValue": z[1] || (z[1] = (P) => s.value = P),
1716
1718
  class: "x-mask-switch-bar__input",
1717
1719
  size: "small",
1718
1720
  placeholder: "请输入查询关键字",
1719
- onInput: d,
1721
+ onInput: p,
1720
1722
  "prefix-icon": o(Be)
1721
1723
  }, {
1722
- suffix: p(() => [
1724
+ suffix: d(() => [
1723
1725
  b(o(ae), {
1724
- icon: o(st),
1726
+ icon: o(it),
1725
1727
  onClick: c
1726
1728
  }, null, 8, ["icon"])
1727
1729
  ]),
@@ -1731,12 +1733,12 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
1731
1733
  _: 1
1732
1734
  })),
1733
1735
  b(o(M), {
1734
- class: U(["x-mask-switch-bar__right", { "is-collasped": t.collasped }]),
1736
+ class: X(["x-mask-switch-bar__right", { "is-collasped": t.collasped }]),
1735
1737
  flex: "",
1736
1738
  align: "center",
1737
1739
  justify: "center"
1738
1740
  }, {
1739
- default: p(() => [
1741
+ default: d(() => [
1740
1742
  !n.value && !t.collasped ? (u(), f(o(W), {
1741
1743
  key: 0,
1742
1744
  icon: o(Be),
@@ -1748,7 +1750,7 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
1748
1750
  }, null, 8, ["icon"])) : v("", !0),
1749
1751
  t.collasped ? (u(), f(o(W), {
1750
1752
  key: 1,
1751
- icon: o(Kt),
1753
+ icon: o(Gt),
1752
1754
  mode: "icon",
1753
1755
  size: "default",
1754
1756
  background: "hover",
@@ -1757,7 +1759,7 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
1757
1759
  }, null, 8, ["icon"])) : v("", !0),
1758
1760
  t.collasped ? v("", !0) : (u(), f(o(W), {
1759
1761
  key: 2,
1760
- icon: o(Yt),
1762
+ icon: o(qt),
1761
1763
  mode: "icon",
1762
1764
  size: "default",
1763
1765
  background: "hover",
@@ -1771,7 +1773,7 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
1771
1773
  _: 1
1772
1774
  }));
1773
1775
  }
1774
- }), so = ["src"], lo = { key: 0 }, io = /* @__PURE__ */ D({
1776
+ }), io = ["src"], ro = { key: 0 }, co = /* @__PURE__ */ B({
1775
1777
  __name: "Brand",
1776
1778
  props: {
1777
1779
  collapsed: { type: Boolean, default: !1 },
@@ -1784,10 +1786,10 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
1784
1786
  e.url && t.push(e.url);
1785
1787
  };
1786
1788
  return (s, l) => (u(), f(o(M), {
1787
- class: U(["x-mask-brand", { "is-collapsed": e.collapsed }]),
1789
+ class: X(["x-mask-brand", { "is-collapsed": e.collapsed }]),
1788
1790
  align: "center"
1789
1791
  }, {
1790
- default: p(() => [
1792
+ default: d(() => [
1791
1793
  b(o(M), {
1792
1794
  class: "x-mask-brand__logo",
1793
1795
  flex: "",
@@ -1795,12 +1797,12 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
1795
1797
  align: "center",
1796
1798
  onClick: n
1797
1799
  }, {
1798
- default: p(() => [
1799
- z(s.$slots, "logo", {}, () => [
1800
- e.logo ? (u(), A("img", {
1800
+ default: d(() => [
1801
+ x(s.$slots, "logo", {}, () => [
1802
+ e.logo ? (u(), D("img", {
1801
1803
  key: 0,
1802
1804
  src: e.logo
1803
- }, null, 8, so)) : v("", !0)
1805
+ }, null, 8, io)) : v("", !0)
1804
1806
  ])
1805
1807
  ]),
1806
1808
  _: 3
@@ -1810,9 +1812,9 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
1810
1812
  flex: "",
1811
1813
  align: "center"
1812
1814
  }, {
1813
- default: p(() => [
1814
- e.title ? (u(), A("span", lo, [
1815
- z(s.$slots, "title", {}, () => [
1815
+ default: d(() => [
1816
+ e.title ? (u(), D("span", ro, [
1817
+ x(s.$slots, "title", {}, () => [
1816
1818
  N(O(e.title), 1)
1817
1819
  ])
1818
1820
  ])) : v("", !0)
@@ -1823,7 +1825,7 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
1823
1825
  _: 3
1824
1826
  }, 8, ["class"]));
1825
1827
  }
1826
- }), ge = "__favorites__", he = "__search__", ro = /* @__PURE__ */ D({
1828
+ }), ge = "__favorites__", he = "__search__", uo = /* @__PURE__ */ B({
1827
1829
  __name: "Menu",
1828
1830
  props: {
1829
1831
  collapse: { type: Boolean, default: !1 },
@@ -1840,7 +1842,7 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
1840
1842
  {
1841
1843
  id: ge,
1842
1844
  title: "收藏",
1843
- icon: lt,
1845
+ icon: rt,
1844
1846
  children: t.favorites?.length ? t.favorites : [
1845
1847
  {
1846
1848
  id: ge + "empty",
@@ -1850,13 +1852,13 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
1850
1852
  ]
1851
1853
  }
1852
1854
  ]), i = y(() => {
1853
- const r = (t.keyword || "").trim(), d = r ? (t.flatMenus || []).filter((m) => m.title?.includes(r)) : [];
1855
+ const r = (t.keyword || "").trim(), p = r ? (t.flatMenus || []).filter((m) => m.title?.includes(r)) : [];
1854
1856
  return [
1855
1857
  {
1856
1858
  id: he,
1857
1859
  title: "搜索",
1858
1860
  icon: Be,
1859
- children: d?.length ? d : [
1861
+ children: p?.length ? p : [
1860
1862
  {
1861
1863
  id: he + "empty",
1862
1864
  disabled: !0,
@@ -1868,14 +1870,14 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
1868
1870
  }), c = (r) => {
1869
1871
  e("select", r);
1870
1872
  };
1871
- return (r, d) => (u(), A(q, null, [
1873
+ return (r, p) => (u(), D(q, null, [
1872
1874
  L(b(o(M), {
1873
1875
  class: "x-mask-menu",
1874
1876
  grow: "",
1875
1877
  flex: !1,
1876
1878
  overflow: "auto"
1877
1879
  }, {
1878
- default: p(() => [
1880
+ default: d(() => [
1879
1881
  L(b(o(G), {
1880
1882
  subMenu: {
1881
1883
  popperClass: "x-mask-menu-popper",
@@ -1921,7 +1923,7 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
1921
1923
  flex: !1,
1922
1924
  overflow: "auto"
1923
1925
  }, {
1924
- default: p(() => [
1926
+ default: d(() => [
1925
1927
  L(b(o(G), {
1926
1928
  class: "x-mask-menu__favorites",
1927
1929
  subMenu: {
@@ -1970,7 +1972,7 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
1970
1972
  flex: !1,
1971
1973
  overflow: "auto"
1972
1974
  }, {
1973
- default: p(() => [
1975
+ default: d(() => [
1974
1976
  L(b(o(G), {
1975
1977
  class: "x-mask-menu__search",
1976
1978
  subMenu: {
@@ -2014,7 +2016,7 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
2014
2016
  ]) : v("", !0)
2015
2017
  ], 64));
2016
2018
  }
2017
- }), co = { class: "x-mask-tabs__trigger" }, uo = { key: 1 }, po = ["onDragstart", "onDragend"], fo = { key: 1 }, mo = /* @__PURE__ */ D({
2019
+ }), po = { class: "x-mask-tabs__trigger" }, fo = { key: 1 }, mo = ["onDragstart", "onDragend"], go = { key: 1 }, ho = /* @__PURE__ */ B({
2018
2020
  __name: "Tabs",
2019
2021
  props: {
2020
2022
  tabs: {},
@@ -2025,62 +2027,62 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
2025
2027
  },
2026
2028
  emits: ["click", "remove", "refresh", "toggleFavorite", "dialog"],
2027
2029
  setup(a, { emit: e }) {
2028
- const t = a, n = (d) => {
2030
+ const t = a, n = (p) => {
2029
2031
  const m = !!t.favorites.find(
2030
- (h) => h === d.menu || h.id === d.menu?.id
2032
+ (h) => h === p.menu || h.id === p.menu?.id
2031
2033
  );
2032
2034
  return [
2033
2035
  {
2034
- icon: Gt,
2036
+ icon: en,
2035
2037
  label: "刷新",
2036
2038
  name: "refresh",
2037
- value: d
2039
+ value: p
2038
2040
  },
2039
2041
  "|",
2040
2042
  {
2041
- icon: m ? at : lt,
2043
+ icon: m ? lt : rt,
2042
2044
  label: "收藏",
2043
2045
  name: "favorite",
2044
- value: d.menu,
2045
- disabled: !d.menu
2046
+ value: p.menu,
2047
+ disabled: !p.menu
2046
2048
  },
2047
2049
  "|",
2048
2050
  {
2049
- icon: qt,
2051
+ icon: tn,
2050
2052
  label: "弹窗",
2051
2053
  name: "dialog",
2052
- value: d
2054
+ value: p
2053
2055
  }
2054
2056
  ];
2055
- }, s = (d) => {
2056
- const m = d.paneName;
2057
+ }, s = (p) => {
2058
+ const m = p.paneName;
2057
2059
  if (m === t.home.id) {
2058
2060
  e("click", t.home);
2059
2061
  return;
2060
2062
  }
2061
- const h = t.tabs.find((x) => x.id === m);
2063
+ const h = t.tabs.find((z) => z.id === m);
2062
2064
  h && e("click", h);
2063
- }, l = (d) => {
2064
- const m = t.tabs.find((h) => h.id === d);
2065
+ }, l = (p) => {
2066
+ const m = t.tabs.find((h) => h.id === p);
2065
2067
  m && e("remove", m);
2066
- }, i = (d) => {
2067
- switch (d.name) {
2068
+ }, i = (p) => {
2069
+ switch (p.name) {
2068
2070
  case "refresh":
2069
- e("refresh", d.value);
2071
+ e("refresh", p.value);
2070
2072
  break;
2071
2073
  case "favorite":
2072
- e("toggleFavorite", d.value);
2074
+ e("toggleFavorite", p.value);
2073
2075
  break;
2074
2076
  case "dialog":
2075
- e("dialog", d.value);
2077
+ e("dialog", p.value);
2076
2078
  break;
2077
2079
  }
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) => {
2080
+ }, c = (p, m) => {
2081
+ m.dataTransfer && (m.dataTransfer.setData("tab", p.id), m.target && m.target.classList.add("is-dagging"));
2082
+ }, r = (p, m) => {
2081
2083
  m.target && m.target.classList.remove("is-dagging");
2082
2084
  };
2083
- return (d, m) => (u(), f(o(M), {
2085
+ return (p, m) => (u(), f(o(M), {
2084
2086
  ref: "tabsRef",
2085
2087
  class: "x-mask-tabs",
2086
2088
  height: "100%",
@@ -2089,53 +2091,53 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
2089
2091
  justify: "flex-end",
2090
2092
  direction: "column"
2091
2093
  }, {
2092
- default: p(() => [
2094
+ default: d(() => [
2093
2095
  b(o(Wt), {
2094
2096
  type: "card",
2095
2097
  "model-value": t.value,
2096
2098
  onTabRemove: l,
2097
2099
  onTabClick: s
2098
2100
  }, {
2099
- default: p(() => [
2100
- t.home ? (u(), f(o(Ue), {
2101
+ default: d(() => [
2102
+ t.home ? (u(), f(o(He), {
2101
2103
  key: 0,
2102
2104
  name: t.home.id
2103
2105
  }, {
2104
- label: p(() => [
2105
- R("div", co, [
2106
+ label: d(() => [
2107
+ $("div", po, [
2106
2108
  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)
2109
+ t.home.title ? (u(), D("span", fo, O(t.home.title), 1)) : v("", !0)
2108
2110
  ])
2109
2111
  ]),
2110
2112
  _: 1
2111
2113
  }, 8, ["name"])) : v("", !0),
2112
- (u(!0), A(q, null, we(t.tabs, (h) => (u(), f(o(Ue), {
2114
+ (u(!0), D(q, null, we(t.tabs, (h) => (u(), f(o(He), {
2113
2115
  key: h.id,
2114
2116
  name: h.id,
2115
2117
  lazy: "",
2116
2118
  closable: ""
2117
2119
  }, {
2118
- label: p(() => [
2119
- b(o(nt), {
2120
+ label: d(() => [
2121
+ b(o(at), {
2120
2122
  "open-delay": 500,
2121
2123
  placement: "bottom",
2122
2124
  trigger: "hover",
2123
2125
  width: "200px",
2124
2126
  disabled: h.id !== t.value
2125
2127
  }, {
2126
- reference: p(() => [
2127
- R("div", {
2128
+ reference: d(() => [
2129
+ $("div", {
2128
2130
  class: "x-mask-tabs__trigger",
2129
2131
  draggable: "true",
2130
- onDragstart: (x) => c(h, x),
2131
- onDragend: (x) => r(h, x)
2132
+ onDragstart: (z) => c(h, z),
2133
+ onDragend: (z) => r(h, z)
2132
2134
  }, [
2133
2135
  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)
2135
- ], 40, po)
2136
+ h.title ? (u(), D("span", go, O(h.title), 1)) : v("", !0)
2137
+ ], 40, mo)
2136
2138
  ]),
2137
- default: p(() => [
2138
- b(o(Re), {
2139
+ default: d(() => [
2140
+ b(o(Fe), {
2139
2141
  items: n(h),
2140
2142
  mode: "text",
2141
2143
  size: "small",
@@ -2155,20 +2157,20 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
2155
2157
  _: 1
2156
2158
  }, 512));
2157
2159
  }
2158
- }), go = /* @__PURE__ */ D({
2160
+ }), vo = /* @__PURE__ */ B({
2159
2161
  __name: "ThemeSwitch",
2160
2162
  setup(a) {
2161
- const e = fn();
2162
- return (t, n) => (u(), f(o(tt), {
2163
+ const e = gn();
2164
+ return (t, n) => (u(), f(o(ot), {
2163
2165
  class: "x-mask-theme-switch",
2164
2166
  modelValue: o(e),
2165
2167
  "onUpdate:modelValue": n[0] || (n[0] = (s) => ve(e) ? e.value = s : null),
2166
2168
  size: "default",
2167
- "active-action-icon": o(en),
2168
- "inactive-action-icon": o(tn)
2169
+ "active-action-icon": o(nn),
2170
+ "inactive-action-icon": o(on)
2169
2171
  }, null, 8, ["modelValue", "active-action-icon", "inactive-action-icon"]));
2170
2172
  }
2171
- }), ho = { class: "x-mask-toolbar__menu-item" }, vo = /* @__PURE__ */ D({
2173
+ }), yo = { class: "x-mask-toolbar__menu-item" }, bo = /* @__PURE__ */ B({
2172
2174
  __name: "Toolbar",
2173
2175
  props: {
2174
2176
  tabs: { default: () => [] },
@@ -2185,10 +2187,10 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
2185
2187
  ],
2186
2188
  setup(a, { emit: e }) {
2187
2189
  const t = a, n = y(() => {
2188
- const r = t.tabs.map((d, m) => ({
2190
+ const r = t.tabs.map((p, m) => ({
2189
2191
  divided: m === 0,
2190
- label: d.title,
2191
- command: d
2192
+ label: p.title,
2193
+ command: p
2192
2194
  }));
2193
2195
  return [
2194
2196
  {
@@ -2217,16 +2219,16 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
2217
2219
  }
2218
2220
  }, i = (r) => {
2219
2221
  e("actionClick", r);
2220
- }, c = (r, d) => {
2221
- e("actionCommand", r, d);
2222
+ }, c = (r, p) => {
2223
+ e("actionCommand", r, p);
2222
2224
  };
2223
- return (r, d) => (u(), f(o(M), {
2225
+ return (r, p) => (u(), f(o(M), {
2224
2226
  class: "x-mask-toolbar",
2225
2227
  align: "center"
2226
2228
  }, {
2227
- default: p(() => [
2229
+ default: d(() => [
2228
2230
  b(o(W), {
2229
- icon: o(nn),
2231
+ icon: o(an),
2230
2232
  menus: n.value,
2231
2233
  dropdown: { size: "small" },
2232
2234
  mode: "icon",
@@ -2234,20 +2236,20 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
2234
2236
  background: "hover",
2235
2237
  onCommand: l
2236
2238
  }, {
2237
- item: p(({ item: m }) => [
2238
- R("span", ho, [
2239
+ item: d(({ item: m }) => [
2240
+ $("span", yo, [
2239
2241
  N(O(m.label) + " ", 1),
2240
2242
  ["other", "all"].includes(m.command) ? v("", !0) : (u(), f(o(ae), {
2241
2243
  key: 0,
2242
2244
  onClick: Et((h) => s(m), ["stop"]),
2243
- icon: o(st)
2245
+ icon: o(it)
2244
2246
  }, null, 8, ["onClick", "icon"]))
2245
2247
  ])
2246
2248
  ]),
2247
2249
  _: 1
2248
2250
  }, 8, ["icon", "menus"]),
2249
2251
  b(o(ue), { direction: "vertical" }),
2250
- t.actions ? (u(), f(o(Re), {
2252
+ t.actions ? (u(), f(o(Fe), {
2251
2253
  key: 0,
2252
2254
  circle: "",
2253
2255
  mode: "icon",
@@ -2261,44 +2263,44 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
2261
2263
  key: 1,
2262
2264
  direction: "vertical"
2263
2265
  })) : v("", !0),
2264
- t.theme ? (u(), f(go, { key: 2 })) : v("", !0),
2266
+ t.theme ? (u(), f(vo, { key: 2 })) : v("", !0),
2265
2267
  t.theme ? (u(), f(o(ue), {
2266
2268
  key: 3,
2267
2269
  direction: "vertical"
2268
2270
  })) : v("", !0),
2269
- z(r.$slots, "default")
2271
+ x(r.$slots, "default")
2270
2272
  ]),
2271
2273
  _: 3
2272
2274
  }));
2273
2275
  }
2274
- }), yo = /* @__PURE__ */ D({
2276
+ }), _o = /* @__PURE__ */ B({
2275
2277
  __name: "Avatar",
2276
2278
  props: {
2277
2279
  avatar: {}
2278
2280
  },
2279
2281
  setup(a) {
2280
2282
  const e = a;
2281
- return (t, n) => (u(), f(o(nt), {
2283
+ return (t, n) => (u(), f(o(at), {
2282
2284
  width: 200,
2283
2285
  "popper-class": "x-mask-avatar__popper",
2284
2286
  disabled: !t.$slots.default
2285
2287
  }, {
2286
- reference: p(() => [
2288
+ reference: d(() => [
2287
2289
  b(o(Qt), {
2288
2290
  class: "x-mask-avatar",
2289
2291
  shape: "circle",
2290
- icon: o(on),
2292
+ icon: o(sn),
2291
2293
  src: e.avatar,
2292
2294
  size: 26
2293
2295
  }, null, 8, ["icon", "src"])
2294
2296
  ]),
2295
- default: p(() => [
2296
- t.$slots.default ? z(t.$slots, "default", { key: 0 }) : v("", !0)
2297
+ default: d(() => [
2298
+ t.$slots.default ? x(t.$slots, "default", { key: 0 }) : v("", !0)
2297
2299
  ]),
2298
2300
  _: 3
2299
2301
  }, 8, ["disabled"]));
2300
2302
  }
2301
- }), Ze = /* @__PURE__ */ D({
2303
+ }), Ke = /* @__PURE__ */ B({
2302
2304
  __name: "Content",
2303
2305
  props: {
2304
2306
  createView: { type: Function },
@@ -2312,10 +2314,10 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
2312
2314
  grow: "",
2313
2315
  padding: !1
2314
2316
  }, {
2315
- default: p(() => [
2316
- z(t.$slots, "default"),
2317
- b(o(it), null, {
2318
- default: p(({ Component: s, route: l }) => [
2317
+ default: d(() => [
2318
+ x(t.$slots, "default"),
2319
+ b(o(ct), null, {
2320
+ default: d(({ Component: s, route: l }) => [
2319
2321
  (u(), f(It, {
2320
2322
  exclude: e.exclude
2321
2323
  }, [
@@ -2330,13 +2332,13 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
2330
2332
  _: 3
2331
2333
  }));
2332
2334
  }
2333
- }), bo = 140, _o = {
2335
+ }), wo = 140, ko = {
2334
2336
  /**
2335
2337
  * 系统logo
2336
2338
  */
2337
2339
  logo: {
2338
2340
  type: String,
2339
- default: ft
2341
+ default: gt
2340
2342
  },
2341
2343
  /**
2342
2344
  * 系统标题
@@ -2413,52 +2415,52 @@ const no = /* @__PURE__ */ R("div", { class: "x-mask-sidebar__helper" }, null, -
2413
2415
  removeFavorite: {
2414
2416
  type: Function
2415
2417
  }
2416
- }, _t = Symbol(), wt = Symbol();
2417
- function wo(a) {
2418
- const e = $(!1), t = $(""), n = $(!1);
2418
+ }, kt = Symbol(), xt = Symbol();
2419
+ function xo(a) {
2420
+ const e = R(!1), t = R(""), n = R(!1);
2419
2421
  return {
2420
2422
  collapsed: e,
2421
2423
  keyword: t,
2422
2424
  favorite: n
2423
2425
  };
2424
2426
  }
2425
- function ko(a) {
2426
- const e = dt();
2427
+ function zo(a) {
2428
+ const e = ft();
2427
2429
  return y(() => {
2428
2430
  const t = a.home;
2429
2431
  return Object.assign(
2430
- { id: e, url: "/", name: "MaskHome", icon: an, closable: !1 },
2432
+ { id: e, url: "/", name: "MaskHome", icon: ln, closable: !1 },
2431
2433
  typeof t == "string" ? { url: t } : t || {}
2432
2434
  );
2433
2435
  });
2434
2436
  }
2435
- function kt(a, e) {
2437
+ function zt(a, e) {
2436
2438
  let t = [];
2437
2439
  return a.forEach((n) => {
2438
- n = e ? e(n) : n, n.children ? t = t.concat(kt(n.children, e)) : t.push(n);
2440
+ n = e ? e(n) : n, n.children ? t = t.concat(zt(n.children, e)) : t.push(n);
2439
2441
  }), t;
2440
2442
  }
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) => {
2443
+ function So(a, e) {
2444
+ const t = ke(), n = Ne([]), s = Ne([]), l = y(() => zt(n.value, a.menuAdapter)), i = y(() => hn(l.value, "id")), c = R(null), r = (k) => {
2443
2445
  const _ = typeof k == "object" ? k.id : k, E = i.value.get(_);
2444
2446
  if (!E) {
2445
2447
  console.warn("找不到菜单", k);
2446
2448
  return;
2447
2449
  }
2448
- const { type: B = "route", url: g, title: I, icon: C } = E;
2450
+ const { type: A = "route", url: g, title: I, icon: C } = E;
2449
2451
  if (!g) {
2450
2452
  c.value = E, e("select", E);
2451
2453
  return;
2452
2454
  }
2453
- if (B === "route") {
2454
- gn(g) || g.startsWith("//") ? window.open(g) : (c.value = E, t.push(g).catch((F) => F));
2455
+ if (A === "route") {
2456
+ vn(g) || g.startsWith("//") ? window.open(g) : (c.value = E, t.push(g).catch((F) => F));
2455
2457
  return;
2456
2458
  }
2457
- if (B === "window") {
2459
+ if (A === "window") {
2458
2460
  window.open(g);
2459
2461
  return;
2460
2462
  }
2461
- B === "dialog" && $e({
2463
+ A === "dialog" && Oe({
2462
2464
  resizable: !0,
2463
2465
  bodyPadding: !1,
2464
2466
  width: "80%",
@@ -2467,38 +2469,38 @@ function xo(a, e) {
2467
2469
  icon: C,
2468
2470
  src: g
2469
2471
  });
2470
- }, d = async () => {
2472
+ }, p = async () => {
2471
2473
  n.value = typeof a.menus == "function" ? await a.menus() || [] : a.menus ?? [], s.value = typeof a.favorites == "function" ? await a.favorites() || [] : a.favorites ?? [];
2472
2474
  }, m = (k) => {
2473
2475
  s.value = [k, ...s.value], a.addFavorite && a.addFavorite(k);
2474
2476
  }, h = (k) => {
2475
2477
  s.value = s.value.filter((_) => _.id !== k.id), a.removeFavorite && a.removeFavorite(k);
2476
- }, x = (k) => !!s.value.find((_) => _ === k || _.id === k.id), V = (k) => {
2477
- x(k) ? h(k) : m(k);
2478
+ }, z = (k) => !!s.value.find((_) => _ === k || _.id === k.id), P = (k) => {
2479
+ z(k) ? h(k) : m(k);
2478
2480
  };
2479
- return Ge(d), {
2481
+ return et(p), {
2480
2482
  menus: n,
2481
2483
  favorites: s,
2482
2484
  flatMenus: l,
2483
2485
  active: c,
2484
2486
  select: r,
2485
- toggleFavorite: V
2487
+ toggleFavorite: P
2486
2488
  };
2487
2489
  }
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(
2490
+ function Co(a, e, t, n, s) {
2491
+ const l = $e(), i = ke(), c = {}, r = R([]), p = R(), { width: m } = ut(p), h = y(() => Math.floor(m.value / wo)), z = y(
2490
2492
  () => r.value.slice(0, h.value).filter((w) => !w.dialog)
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) => {
2493
+ ), P = 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), A = R(""), g = y(() => E(A.value)), I = (w) => {
2492
2494
  i.push(w.url).catch((S) => S);
2493
2495
  }, C = (w) => {
2494
- B.value = w.id, l.fullPath !== w.url && I(w);
2496
+ A.value = w.id, l.fullPath !== w.url && I(w);
2495
2497
  }, F = () => {
2496
2498
  I(s.value);
2497
- }, X = (w) => {
2499
+ }, U = (w) => {
2498
2500
  const S = r.value.find((T) => T.url === w.url || T.id === w.id);
2499
2501
  S ? C(S) : (r.value.unshift(w), C(w));
2500
2502
  }, ee = async (w) => {
2501
- const { url: S = l.fullPath, icon: T, title: ze = "新建标签页" } = w || {}, fe = c[S], Se = dt(), Ce = pt(S);
2503
+ const { url: S = l.fullPath, icon: T, title: ze = "新建标签页" } = w || {}, fe = c[S], Se = ft(), Ce = mt(S);
2502
2504
  return {
2503
2505
  id: Se,
2504
2506
  name: Ce,
@@ -2513,7 +2515,7 @@ function zo(a, e, t, n, s) {
2513
2515
  if (await Te.confirm("是否关闭页签", "提示", {
2514
2516
  type: "warning"
2515
2517
  }).catch((T) => !1)) {
2516
- if (r.value = r.value.filter((T) => T.id !== w.id), B.value === w.id) {
2518
+ if (r.value = r.value.filter((T) => T.id !== w.id), A.value === w.id) {
2517
2519
  const T = r.value[0];
2518
2520
  I(T || s.value);
2519
2521
  }
@@ -2537,8 +2539,8 @@ function zo(a, e, t, n, s) {
2537
2539
  type: "warning"
2538
2540
  }).catch((T) => !1))
2539
2541
  return;
2540
- const S = r.value.filter((T) => T.id !== B.value);
2541
- return r.value = r.value.filter((T) => T.id === B.value), S;
2542
+ const S = r.value.filter((T) => T.id !== A.value);
2543
+ return r.value = r.value.filter((T) => T.id === A.value), S;
2542
2544
  }, xe = (w) => {
2543
2545
  const S = r.value.filter((T) => T.id !== w.id);
2544
2546
  r.value = [w, ...S], C(w);
@@ -2546,48 +2548,48 @@ function zo(a, e, t, n, s) {
2546
2548
  await le();
2547
2549
  const w = s.value.url === l.fullPath, S = k(l.fullPath);
2548
2550
  if (w)
2549
- B.value = s.value.id;
2551
+ A.value = s.value.id;
2550
2552
  else {
2551
2553
  const T = await ee(S);
2552
- X(T);
2554
+ U(T);
2553
2555
  }
2554
2556
  await le(), n.value = S || null;
2555
2557
  };
2556
- return oe(t, re), oe(l, re, { immediate: !0 }), De(_t, c), {
2557
- tabRef: d,
2558
+ return oe(t, re), oe(l, re, { immediate: !0 }), Ve(kt, c), {
2559
+ tabRef: p,
2558
2560
  tabs: r,
2559
- showTabs: x,
2561
+ showTabs: z,
2560
2562
  currentTab: g,
2561
2563
  changeTab: I,
2562
2564
  removeTab: te,
2563
2565
  updateTab: j,
2564
- addTab: X,
2566
+ addTab: U,
2565
2567
  home: s,
2566
- tabValue: B,
2568
+ tabValue: A,
2567
2569
  isCurrentTab: _,
2568
2570
  activeHome: F,
2569
2571
  activeTab: C,
2570
- dropdownTabs: V,
2572
+ dropdownTabs: P,
2571
2573
  removeAllTabs: H,
2572
2574
  removeOtherTabs: se,
2573
2575
  moveToShow: xe
2574
2576
  };
2575
2577
  }
2576
- function So(a) {
2577
- const e = /* @__PURE__ */ new Map(), t = $([]), n = Ye({}), s = {}, { updateTab: l, isCurrentTab: i, activeHome: c, tabs: r } = a, d = (g, I) => {
2578
+ function To(a) {
2579
+ const e = /* @__PURE__ */ new Map(), t = R([]), n = qe({}), s = {}, { updateTab: l, isCurrentTab: i, activeHome: c, tabs: r } = a, p = (g, I) => {
2578
2580
  const C = I.fullPath;
2579
2581
  if (e.has(C))
2580
2582
  return e.get(C);
2581
2583
  {
2582
- const F = pt(C), X = {
2584
+ const F = mt(C), U = {
2583
2585
  name: F,
2584
2586
  setup() {
2585
2587
  const ee = y(() => n[C] || document.body), te = y(() => !n[C]), j = y(() => !t.value.includes(F));
2586
- return De(
2587
- sn,
2588
+ return Ve(
2589
+ rn,
2588
2590
  Bt({ ...I })
2589
2591
  ), () => j.value ? K(
2590
- qe,
2592
+ tt,
2591
2593
  {
2592
2594
  to: ee.value,
2593
2595
  disabled: te.value
@@ -2596,7 +2598,7 @@ function So(a) {
2596
2598
  ) : null;
2597
2599
  }
2598
2600
  };
2599
- return e.set(C, X), X;
2601
+ return e.set(C, U), U;
2600
2602
  }
2601
2603
  }, m = (g) => {
2602
2604
  g.dialog = void 0, delete n[g.url];
@@ -2606,7 +2608,7 @@ function So(a) {
2606
2608
  g.forEach((I) => {
2607
2609
  m(I);
2608
2610
  });
2609
- }, x = async (g) => {
2611
+ }, z = async (g) => {
2610
2612
  g.dialog = {
2611
2613
  ...g.dialog,
2612
2614
  onMinimized: () => {
@@ -2616,7 +2618,7 @@ function So(a) {
2616
2618
  m(g), r.value = r.value.filter((C) => C.id !== g.id);
2617
2619
  }
2618
2620
  }, l(g);
2619
- const I = $e({
2621
+ const I = Oe({
2620
2622
  title: g.title,
2621
2623
  icon: g.icon,
2622
2624
  modal: !1,
@@ -2628,7 +2630,7 @@ function So(a) {
2628
2630
  }
2629
2631
  });
2630
2632
  return await le(), i(g) && c(), s[g.id] = I, I;
2631
- }, V = async (g) => {
2633
+ }, P = async (g) => {
2632
2634
  t.value = [g.name], await le(), t.value = [];
2633
2635
  }, k = async (g) => {
2634
2636
  t.value = g.map((I) => I.name), await le(), t.value = [];
@@ -2636,93 +2638,93 @@ function So(a) {
2636
2638
  if (g.dataTransfer) {
2637
2639
  const I = g.dataTransfer.getData("tab"), C = r.value.find((F) => F.id === I);
2638
2640
  if (C) {
2639
- const { clientX: F, clientY: X } = g;
2641
+ const { clientX: F, clientY: U } = g;
2640
2642
  C.dialog = {
2641
2643
  left: F,
2642
- top: X
2643
- }, x(C);
2644
+ top: U
2645
+ }, z(C);
2644
2646
  }
2645
2647
  }
2646
- }, B = (g) => !!n[g];
2648
+ }, A = (g) => !!n[g];
2647
2649
  return be(document, "dragover", _), be(document, "drop", E), {
2648
- createView: d,
2649
- openDialog: x,
2650
- refresh: V,
2650
+ createView: p,
2651
+ openDialog: z,
2652
+ refresh: P,
2651
2653
  exclude: t,
2652
2654
  cleanCache: k,
2653
- hasDialog: B,
2655
+ hasDialog: A,
2654
2656
  closeDialog: m,
2655
2657
  closeDialogs: h
2656
2658
  };
2657
2659
  }
2658
- const Co = /* @__PURE__ */ D({
2660
+ const Mo = /* @__PURE__ */ B({
2659
2661
  name: "XMask",
2660
2662
  __name: "Mask",
2661
- props: _o,
2663
+ props: ko,
2662
2664
  emits: ["select", "actionClick", "actionCommand"],
2663
2665
  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), {
2665
- tabRef: V,
2666
+ const t = a, n = zo(t), { collapsed: s, keyword: l, favorite: i } = xo(), { menus: c, favorites: r, flatMenus: p, active: m, select: h, toggleFavorite: z } = So(t, e), {
2667
+ tabRef: P,
2666
2668
  showTabs: k,
2667
2669
  currentTab: _,
2668
2670
  changeTab: E,
2669
- removeTab: B,
2671
+ removeTab: A,
2670
2672
  tabs: g,
2671
2673
  updateTab: I,
2672
2674
  isCurrentTab: C,
2673
2675
  activeHome: F,
2674
- removeAllTabs: X,
2676
+ removeAllTabs: U,
2675
2677
  removeOtherTabs: ee,
2676
2678
  dropdownTabs: te,
2677
2679
  moveToShow: j
2678
- } = zo(t, e, d, m, n), { createView: H, openDialog: se, refresh: xe, exclude: re, cleanCache: w, closeDialogs: S } = So({
2680
+ } = Co(t, e, p, m, n), { createView: H, openDialog: se, refresh: xe, exclude: re, cleanCache: w, closeDialogs: S } = To({
2679
2681
  tabs: g,
2680
2682
  updateTab: I,
2681
2683
  isCurrentTab: C,
2682
2684
  activeHome: F
2683
- }), T = async (P) => {
2684
- await B(P) && await w([P]);
2685
+ }), T = async (V) => {
2686
+ await A(V) && await w([V]);
2685
2687
  }, ze = async () => {
2686
- const P = await X();
2687
- P && (S(P), await w(P));
2688
+ const V = await U();
2689
+ V && (S(V), await w(V));
2688
2690
  }, fe = async () => {
2689
- const P = await ee();
2690
- P && (S(P), await w(P));
2691
- }, Se = (P) => {
2692
- e("actionClick", P);
2693
- }, Ce = (P, Z) => {
2694
- e("actionCommand", P, Z);
2691
+ const V = await ee();
2692
+ V && (S(V), await w(V));
2693
+ }, Se = (V) => {
2694
+ e("actionClick", V);
2695
+ }, Ce = (V, Z) => {
2696
+ e("actionCommand", V, Z);
2695
2697
  };
2696
- return De(wt, {
2698
+ return Ve(xt, {
2697
2699
  tabs: g,
2698
- flatMenus: d,
2700
+ flatMenus: p,
2699
2701
  favorites: r,
2700
2702
  updateTab: I,
2701
2703
  active: m,
2702
2704
  currentTab: _
2703
- }), (P, Z) => (u(), f(o(M), { class: "x-mask" }, {
2704
- default: p(() => [
2705
- t.disabled ? (u(), f(Ze, {
2705
+ }), (V, Z) => (u(), f(o(M), { class: "x-mask" }, {
2706
+ default: d(() => [
2707
+ t.disabled ? (u(), f(Ke, {
2706
2708
  key: 1,
2707
2709
  createView: o(H),
2708
2710
  exclude: o(re)
2709
2711
  }, {
2710
- default: p(() => [
2711
- P.$slots.default ? z(P.$slots, "default", { key: 0 }) : v("", !0)
2712
+ default: d(() => [
2713
+ V.$slots.default ? x(V.$slots, "default", { key: 0 }) : v("", !0)
2712
2714
  ]),
2713
2715
  _: 3
2714
- }, 8, ["createView", "exclude"])) : (u(), A(q, { key: 0 }, [
2715
- b(oo, { collapsed: o(s) }, {
2716
- brand: p(() => [
2717
- b(io, {
2716
+ }, 8, ["createView", "exclude"])) : (u(), D(q, { key: 0 }, [
2717
+ b(so, { collapsed: o(s) }, {
2718
+ brand: d(() => [
2719
+ b(co, {
2718
2720
  logo: t.logo,
2719
2721
  title: t.title,
2720
2722
  url: o(n).url,
2721
2723
  collapsed: o(s)
2722
2724
  }, null, 8, ["logo", "title", "url", "collapsed"])
2723
2725
  ]),
2724
- default: p(() => [
2725
- b(ao, {
2726
+ default: d(() => [
2727
+ b(lo, {
2726
2728
  collasped: o(s),
2727
2729
  "onUpdate:collasped": Z[0] || (Z[0] = (ce) => ve(s) ? s.value = ce : null),
2728
2730
  favorite: o(i),
@@ -2730,12 +2732,12 @@ const Co = /* @__PURE__ */ D({
2730
2732
  keyword: o(l),
2731
2733
  "onUpdate:keyword": Z[2] || (Z[2] = (ce) => ve(l) ? l.value = ce : null)
2732
2734
  }, null, 8, ["collasped", "favorite", "keyword"]),
2733
- b(ro, {
2735
+ b(uo, {
2734
2736
  collapse: o(s),
2735
2737
  keyword: o(l),
2736
2738
  favorite: o(i),
2737
2739
  favorites: o(r),
2738
- flatMenus: o(d),
2740
+ flatMenus: o(p),
2739
2741
  menus: o(c),
2740
2742
  active: o(m),
2741
2743
  onSelect: o(h)
@@ -2750,27 +2752,27 @@ const Co = /* @__PURE__ */ D({
2750
2752
  flex: "",
2751
2753
  direction: "column"
2752
2754
  }, {
2753
- default: p(() => [
2755
+ default: d(() => [
2754
2756
  b(o(M), {
2755
2757
  class: "x-mask-topbar",
2756
2758
  justify: "space-between",
2757
2759
  align: "center"
2758
2760
  }, {
2759
- default: p(() => [
2760
- b(mo, {
2761
+ default: d(() => [
2762
+ b(ho, {
2761
2763
  ref_key: "tabRef",
2762
- ref: V,
2764
+ ref: P,
2763
2765
  favorites: o(r),
2764
2766
  tabs: o(k),
2765
2767
  home: o(n),
2766
2768
  value: o(_)?.id,
2767
2769
  onClick: o(E),
2768
- onToggleFavorite: o(x),
2770
+ onToggleFavorite: o(z),
2769
2771
  onRemove: T,
2770
2772
  onDialog: o(se),
2771
2773
  onRefresh: o(xe)
2772
2774
  }, null, 8, ["favorites", "tabs", "home", "value", "onClick", "onToggleFavorite", "onDialog", "onRefresh"]),
2773
- b(vo, {
2775
+ b(bo, {
2774
2776
  tabs: o(te),
2775
2777
  actions: t.actions,
2776
2778
  theme: t.theme,
@@ -2781,14 +2783,14 @@ const Co = /* @__PURE__ */ D({
2781
2783
  onActionClick: Se,
2782
2784
  onActionCommand: Ce
2783
2785
  }, {
2784
- default: p(() => [
2785
- b(yo, {
2786
+ default: d(() => [
2787
+ b(_o, {
2786
2788
  avatar: t.avatar
2787
- }, et({ _: 2 }, [
2788
- P.$slots.user ? {
2789
+ }, nt({ _: 2 }, [
2790
+ V.$slots.user ? {
2789
2791
  name: "default",
2790
- fn: p(() => [
2791
- z(P.$slots, "user")
2792
+ fn: d(() => [
2793
+ x(V.$slots, "user")
2792
2794
  ]),
2793
2795
  key: "0"
2794
2796
  } : void 0
@@ -2799,12 +2801,12 @@ const Co = /* @__PURE__ */ D({
2799
2801
  ]),
2800
2802
  _: 3
2801
2803
  }),
2802
- b(Ze, {
2804
+ b(Ke, {
2803
2805
  createView: o(H),
2804
2806
  exclude: o(re)
2805
2807
  }, {
2806
- default: p(() => [
2807
- P.$slots.default ? z(P.$slots, "default", { key: 0 }) : v("", !0)
2808
+ default: d(() => [
2809
+ V.$slots.default ? x(V.$slots, "default", { key: 0 }) : v("", !0)
2808
2810
  ]),
2809
2811
  _: 3
2810
2812
  }, 8, ["createView", "exclude"])
@@ -2817,8 +2819,8 @@ const Co = /* @__PURE__ */ D({
2817
2819
  }));
2818
2820
  }
2819
2821
  });
2820
- function Oo(a = {}) {
2821
- const e = Ve(), t = je(_t, null), n = je(wt, null);
2822
+ function Xo(a = {}) {
2823
+ const e = $e(), t = Xe(kt, null), n = Xe(xt, null);
2822
2824
  if (t) {
2823
2825
  const l = typeof a == "function" ? a : async () => a;
2824
2826
  t[e.fullPath] = l;
@@ -2828,61 +2830,89 @@ function Oo(a = {}) {
2828
2830
  mask: n
2829
2831
  };
2830
2832
  }
2831
- const To = [
2832
- xn,
2833
+ const Eo = /* @__PURE__ */ B({
2834
+ __name: "Field",
2835
+ setup(a) {
2836
+ return (e, t) => (u(), f(o(Zt), De(Pe(e.$attrs)), {
2837
+ default: d(() => [
2838
+ x(e.$slots, "default")
2839
+ ]),
2840
+ _: 3
2841
+ }, 16));
2842
+ }
2843
+ }), Uo = {
2844
+ editor: {
2845
+ type: [String, Object]
2846
+ }
2847
+ }, Ho = /* @__PURE__ */ B({
2848
+ __name: "Form",
2849
+ setup(a) {
2850
+ return (e, t) => (u(), f(o(Jt), De(Pe(e.$attrs)), {
2851
+ default: d(() => [
2852
+ x(e.$slots, "default")
2853
+ ]),
2854
+ _: 3
2855
+ }, 16));
2856
+ }
2857
+ }), Io = [
2858
+ Sn,
2833
2859
  ae,
2834
2860
  G,
2835
- Vn,
2861
+ $n,
2836
2862
  W,
2837
- Re,
2863
+ Fe,
2838
2864
  M,
2839
- ht,
2840
- vt,
2865
+ yt,
2841
2866
  bt,
2842
- Co
2843
- ], jo = "0.6.6", Mo = hn(To), No = Mo.install;
2867
+ wt,
2868
+ Mo,
2869
+ Eo
2870
+ ], Lo = "0.6.8", Bo = yn(Io), Wo = Bo.install;
2844
2871
  export {
2845
- We as Draggable,
2846
- He as INSTALLED_KEY,
2847
- wt as MASK_KEY,
2848
- Fo as NOOP,
2849
- Qe as Resizable,
2850
- _t as TAB_CREATORS_KEY,
2851
- bo as TAB_ITEM_WIDTH,
2872
+ Ze as Draggable,
2873
+ We as INSTALLED_KEY,
2874
+ xt as MASK_KEY,
2875
+ No as NOOP,
2876
+ Je as Resizable,
2877
+ kt as TAB_CREATORS_KEY,
2878
+ wo as TAB_ITEM_WIDTH,
2852
2879
  W as XAction,
2853
- Re as XActionBar,
2880
+ Fe as XActionBar,
2854
2881
  M as XContainer,
2855
- bt as XDialog,
2856
- ht as XHeader,
2882
+ wt as XDialog,
2883
+ Eo as XField,
2884
+ Ho as XForm,
2885
+ yt as XHeader,
2857
2886
  ae as XIcon,
2858
- Co as XMask,
2887
+ Mo as XMask,
2859
2888
  G as XMenu,
2860
- vt as XPanel,
2861
- Vn as XSimpleMask,
2862
- xn as XStartup,
2863
- Nn as actionBarProps,
2864
- gt as actionProps,
2865
- To as components,
2866
- Un as containerProps,
2867
- $e as createDialog,
2868
- No as default,
2869
- Oo as defineTab,
2870
- Zn as dialogProps,
2871
- Xe as getSizeValue,
2872
- Xn as headerProps,
2873
- Sn as iconProps,
2874
- zn as iconSizeMap,
2875
- No as install,
2876
- hn as makeInstaller,
2877
- _o as maskProps,
2878
- Ro as omit,
2879
- Wn as panelProps,
2889
+ bt as XPanel,
2890
+ $n as XSimpleMask,
2891
+ Sn as XStartup,
2892
+ Un as actionBarProps,
2893
+ vt as actionProps,
2894
+ Io as components,
2895
+ Hn as containerProps,
2896
+ Oe as createDialog,
2897
+ Wo as default,
2898
+ Xo as defineTab,
2899
+ Kn as dialogProps,
2900
+ Uo as fieldProps,
2901
+ Le as getSizeValue,
2902
+ Ln as headerProps,
2903
+ Tn as iconProps,
2904
+ Cn as iconSizeMap,
2905
+ Wo as install,
2906
+ yn as makeInstaller,
2907
+ ko as maskProps,
2908
+ Oo as omit,
2909
+ Zn as panelProps,
2880
2910
  me as parseSize,
2881
- $o as pick,
2882
- Pe as useDisabled,
2911
+ jo as pick,
2912
+ Re as useDisabled,
2883
2913
  _e as useIcon,
2884
- Fn as useIconProps,
2885
- Qn as vDraggable,
2886
- yt as vResizable,
2887
- jo as version
2914
+ jn as useIconProps,
2915
+ Jn as vDraggable,
2916
+ _t as vResizable,
2917
+ Lo as version
2888
2918
  };