@vtj/ui 0.6.6 → 0.6.7

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