@vtj/ui 0.6.9 → 0.6.11

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 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) {
1
+ import { defineComponent as B, openBlock as u, createElementBlock as V, renderSlot as z, createElementVNode as $, unref as o, toDisplayString as O, createVNode as b, withCtx as d, createTextVNode as N, createBlock as f, createCommentVNode as y, useAttrs as Ge, getCurrentInstance as pe, computed as v, markRaw as Pe, normalizeClass as U, resolveDynamicComponent as Z, mergeProps as X, Fragment as q, renderList as ke, isVNode as Mt, h as Y, toRef as ve, useSlots as Et, normalizeStyle as be, ref as R, normalizeProps as qe, guardReactiveProps as et, effectScope as tt, watch as ee, reactive as nt, onMounted as It, onUnmounted as Bt, watchEffect as ot, nextTick as le, Teleport as at, withDirectives as W, createSlots as $e, render as Xe, vShow as K, isRef as ye, withModifiers as At, KeepAlive as Dt, shallowRef as Ue, provide as Re, toRaw as Vt, inject as Be } from "vue";
2
+ import { ElDivider as ue, ElButton as de, ElIcon as Pt, ElSubMenu as $t, ElBadge as Ae, ElMenuItem as Rt, ElMenu as Ft, ElContainer as He, ElHeader as Ot, ElAside as jt, ElMain as Nt, ElFooter as Xt, ElDropdown as Ut, ElDropdownMenu as Ht, ElDropdownItem as Lt, ElTooltip as st, ElSwitch as lt, ElInput as De, ElEmpty as Wt, ElTabs as Qt, ElTabPane as Le, ElPopover as it, ElAvatar as Zt, ElMessageBox as Me, ElSelect as Jt, ElOption as Kt, formContextKey as Yt, ElFormItem as Gt, ElForm as qt } from "element-plus";
3
+ import { VideoPlay as en, Document as ae, Menu as rt, ArrowRight as tn, StarFilled as ct, Search as Ve, Close as ut, Expand as nn, Fold as on, Star as dt, Refresh as an, CopyDocument as sn, Moon as ln, Sunny as rn, MoreFilled as cn, UserFilled as un, HomeFilled as dn, WarningFilled as pn } from "@element-plus/icons-vue";
4
+ import { useRouter as xe, useRoute as Fe, RouterView as pt, routeLocationKey as fn } from "vue-router";
5
+ import { Minimize as mn, Popup as gn, Maximize as hn, RawClose as yn } from "@vtj/icons";
6
+ import { useDraggable as vn, useMouseInElement as bn, useEventListener as _e, useElementSize as ft, useDark as _n } from "@vueuse/core";
7
+ import { isEqual as mt, isObject as gt, uid as ht, arrayToMap as wn, isUrl as kn, upperFirstCamelCase as yt, merge as xn } from "@vtj/utils";
8
+ function We(a) {
9
9
  return typeof a == "string" ? a : `${a}px`;
10
10
  }
11
11
  function me(a = 0, e) {
@@ -17,32 +17,32 @@ function me(a = 0, e) {
17
17
  }
18
18
  return Number.parseInt(a);
19
19
  }
20
- function Oo(a, e) {
20
+ function Zo(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 jo(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 No = () => {
33
- }, We = Symbol("INSTALLED_KEY"), yn = (a = []) => ({
32
+ const Ko = () => {
33
+ }, Qe = Symbol("INSTALLED_KEY"), zn = (a = []) => ({
34
34
  install: (t) => {
35
- t[We] || (t[We] = !0, a.forEach((n) => {
35
+ t[Qe] || (t[Qe] = !0, a.forEach((n) => {
36
36
  n.name && t.component(n.name, n);
37
37
  }));
38
38
  }
39
- }), gt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAQd0lEQVR4nO2dCXRVxRnHf/clIPsekBgIS1hFdqVoZbGLFNTWWgQ3bLVurRYJcTuntbW22qooKKWl2toWquygIFa01doqmBBWWcomIkhACLIKyXvcnu/eefiSNzd57y4vAfI/553wuPfNzJ3/nW9m/t83M4Yx6iTVGOlAC6AD0Bs4F2gGtFT/lmtNgLpABDgMFAN7gCJgH3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Gdu0dWkD5CwJZFwxO0sw20JLJCFdPIJfKmFJwD/B4g2wB0X86iqAAAAAElFTkSuQmCC", bn = { class: "x-startup" }, _n = { class: "brand" }, wn = ["src"], kn = /* @__PURE__ */ $("h3", null, [
39
+ }), vt = "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/ILFld7sl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+P756htprN9zHN6oxSdU7hdZ7WaZaD3wfcS6TUN1SLOZN9KavVxpW/dXO8akXwmxBUWOpDyqauCiD9qkSJImGo187bCUEQEsUSdbz3A3426SrEEhUiJWbqQFDFCJIQgewK8oTacfN36vvpBmnl10s8uCyFD7rsujCgINFDnTl+bex+59UUMtP+vQr40AYkBIFUExKFbFl5gzqLKacqCuCAQ6pveEGZqNQe8VKFhEQhiwwuA66RXVj93JAzCRxTSwJmqWBzX5aJu0VVExILWZ4vCwQuVvY6M9EDfZNERAmABao1vKP6iWpREdWJkFjUUgHfMhjopD79Vb9TW20YWdlChOPK5JSoRflr1NLjfDVfcr8LUoDwed8c3yCzYFmUIB9BM3U6prQi+UjrkY9s4CnXZGdu0dWkD5CwJZFwxO0sw20JLJCFdPIJfKmFJwD/B4g2wB0X86iqAAAAAElFTkSuQmCC", Sn = { class: "x-startup" }, Cn = { class: "brand" }, Tn = ["src"], Mn = /* @__PURE__ */ $("h3", null, [
40
40
  /* @__PURE__ */ N("基于 "),
41
41
  /* @__PURE__ */ $("span", null, "Vue3 + TypeScript"),
42
42
  /* @__PURE__ */ N(" 的低代码设计器引擎")
43
- ], -1), xn = { class: "btn" }, zn = /* @__PURE__ */ $("div", { class: "ba" }, [
43
+ ], -1), En = { class: "btn" }, In = /* @__PURE__ */ $("div", { class: "ba" }, [
44
44
  /* @__PURE__ */ $("a", { href: "http://beian.miit.gov.cn/" }, "粤ICP备2023104074号")
45
- ], -1), Sn = /* @__PURE__ */ B({
45
+ ], -1), Bn = /* @__PURE__ */ B({
46
46
  name: "XStartup",
47
47
  __name: "Startup",
48
48
  props: {
@@ -56,22 +56,22 @@ const No = () => {
56
56
  }, n = () => {
57
57
  e.example && e.example(e.link);
58
58
  };
59
- return (s, l) => (u(), D("div", bn, [
60
- x(s.$slots, "default", {}, () => [
59
+ return (s, l) => (u(), V("div", Sn, [
60
+ z(s.$slots, "default", {}, () => [
61
61
  $("div", null, [
62
- $("div", _n, [
63
- $("img", { src: o(gt) }, null, 8, wn),
62
+ $("div", Cn, [
63
+ $("img", { src: o(vt) }, null, 8, Tn),
64
64
  $("h1", null, O(e.text), 1)
65
65
  ]),
66
66
  b(o(ue)),
67
- kn,
68
- $("div", xn, [
67
+ Mn,
68
+ $("div", En, [
69
69
  b(o(de), {
70
70
  onClick: t,
71
71
  type: "primary",
72
72
  round: "",
73
73
  size: "large",
74
- icon: o(Kt)
74
+ icon: o(en)
75
75
  }, {
76
76
  default: d(() => [
77
77
  N(" 立即开始体验 ")
@@ -84,25 +84,25 @@ const No = () => {
84
84
  type: "default",
85
85
  round: "",
86
86
  size: "large",
87
- icon: o(ne)
87
+ icon: o(ae)
88
88
  }, {
89
89
  default: d(() => [
90
90
  N(" 加载示例项目 ")
91
91
  ]),
92
92
  _: 1
93
- }, 8, ["icon"])) : v("", !0)
93
+ }, 8, ["icon"])) : y("", !0)
94
94
  ])
95
95
  ])
96
96
  ]),
97
- zn
97
+ In
98
98
  ]));
99
99
  }
100
100
  });
101
- const Cn = {
101
+ const An = {
102
102
  default: 14,
103
103
  small: 12,
104
104
  large: 18
105
- }, Tn = {
105
+ }, Dn = {
106
106
  icon: {
107
107
  type: [String, Object]
108
108
  },
@@ -116,46 +116,46 @@ const Cn = {
116
116
  src: {
117
117
  type: String
118
118
  }
119
- }, Mn = ["src"], ae = /* @__PURE__ */ B({
119
+ }, Vn = ["src"], te = /* @__PURE__ */ B({
120
120
  name: "XIcon",
121
121
  __name: "Icon",
122
- props: Tn,
122
+ props: Dn,
123
123
  setup(a) {
124
- const e = a, t = Ye(), n = pe(), s = y(() => {
124
+ const e = a, t = Ge(), n = pe(), s = v(() => {
125
125
  if (!e.icon)
126
126
  return null;
127
127
  const c = n?.appContext.app;
128
- return typeof e.icon == "object" ? Ae(e.icon) : c?.component(e.icon) || e.icon;
129
- }), l = y(() => {
128
+ return typeof e.icon == "object" ? Pe(e.icon) : c?.component(e.icon) || e.icon;
129
+ }), l = v(() => {
130
130
  const c = {
131
131
  "is-pointer": !!t.onClick
132
132
  };
133
133
  return !s.value && e.icon && (c[e.icon] = !0), c;
134
- }), i = y(() => typeof e.size == "number" ? e.size : Cn[e.size] ?? void 0);
135
- return (c, r) => (u(), f(o(At), {
136
- class: X(["x-icon", l.value]),
134
+ }), i = v(() => typeof e.size == "number" ? e.size : An[e.size] ?? void 0);
135
+ return (c, r) => (u(), f(o(Pt), {
136
+ class: U(["x-icon", l.value]),
137
137
  color: e.color,
138
138
  size: i.value
139
139
  }, {
140
140
  default: d(() => [
141
- x(c.$slots, "default", {}, () => [
142
- s.value ? (u(), f(Y(s.value), { key: 0 })) : v("", !0),
143
- e.src ? (u(), D("img", {
141
+ z(c.$slots, "default", {}, () => [
142
+ s.value ? (u(), f(Z(s.value), { key: 0 })) : y("", !0),
143
+ e.src ? (u(), V("img", {
144
144
  key: 1,
145
145
  src: e.src
146
- }, null, 8, Mn)) : v("", !0)
146
+ }, null, 8, Vn)) : y("", !0)
147
147
  ])
148
148
  ]),
149
149
  _: 3
150
150
  }, 8, ["class", "color", "size"]));
151
151
  }
152
- }), En = { class: "x-menu__wrapper" }, In = {
152
+ }), Pn = { class: "x-menu__wrapper" }, $n = {
153
153
  key: 1,
154
154
  class: "x-menu__title"
155
- }, Bn = /* @__PURE__ */ $("i", null, null, -1), An = {
155
+ }, Rn = /* @__PURE__ */ $("i", null, null, -1), Fn = {
156
156
  key: 0,
157
157
  class: "x-menu__title"
158
- }, Dn = /* @__PURE__ */ $("i", null, null, -1), ht = /* @__PURE__ */ B({
158
+ }, On = /* @__PURE__ */ $("i", null, null, -1), bt = /* @__PURE__ */ B({
159
159
  inheritAttrs: !1,
160
160
  name: "XMenuItem",
161
161
  __name: "MenuItem",
@@ -169,32 +169,32 @@ const Cn = {
169
169
  if (i)
170
170
  return typeof i == "string" && (t?.appContext.app?.component(i) || e.defaultIcon) || i;
171
171
  }, s = (i) => typeof i == "object" ? i : { value: i }, l = (i = []) => i.filter((c) => !c.hidden);
172
- return (i, c) => e.item.children ? (u(), f(o(Dt), Q({
172
+ return (i, c) => e.item.children ? (u(), f(o($t), X({
173
173
  key: 0,
174
174
  disabled: e.item.disabled
175
175
  }, e.subMenu, {
176
176
  index: String(e.item.id)
177
177
  }), {
178
178
  title: d(() => [
179
- $("div", En, [
180
- e.item.icon ? (u(), f(o(ae), {
179
+ $("div", Pn, [
180
+ e.item.icon ? (u(), f(o(te), {
181
181
  key: 0,
182
182
  icon: n(e.item.icon)
183
- }, null, 8, ["icon"])) : v("", !0),
184
- e.item.title ? (u(), D("span", In, O(e.item.title), 1)) : v("", !0),
185
- e.item.badge ? (u(), f(o(Ie), Q({
183
+ }, null, 8, ["icon"])) : y("", !0),
184
+ e.item.title ? (u(), V("span", $n, O(e.item.title), 1)) : y("", !0),
185
+ e.item.badge ? (u(), f(o(Ae), X({
186
186
  key: 2,
187
187
  class: "x-menu__badge"
188
188
  }, s(e.item.badge)), {
189
189
  default: d(() => [
190
- Bn
190
+ Rn
191
191
  ]),
192
192
  _: 1
193
- }, 16)) : v("", !0)
193
+ }, 16)) : y("", !0)
194
194
  ])
195
195
  ]),
196
196
  default: d(() => [
197
- (u(!0), D(q, null, we(l(e.item.children), (r) => (u(), f(o(ht), {
197
+ (u(!0), V(q, null, ke(l(e.item.children), (r) => (u(), f(o(bt), {
198
198
  key: r.id,
199
199
  item: r,
200
200
  subMenu: e.subMenu,
@@ -202,28 +202,28 @@ const Cn = {
202
202
  }, null, 8, ["item", "subMenu", "defaultIcon"]))), 128))
203
203
  ]),
204
204
  _: 1
205
- }, 16, ["disabled", "index"])) : (u(), f(o(Pt), {
205
+ }, 16, ["disabled", "index"])) : (u(), f(o(Rt), {
206
206
  key: 1,
207
207
  index: String(e.item.id),
208
208
  disabled: e.item.disabled
209
209
  }, {
210
210
  title: d(() => [
211
- e.item.title ? (u(), D("span", An, O(e.item.title), 1)) : v("", !0),
212
- e.item.badge ? (u(), f(o(Ie), Q({
211
+ e.item.title ? (u(), V("span", Fn, O(e.item.title), 1)) : y("", !0),
212
+ e.item.badge ? (u(), f(o(Ae), X({
213
213
  key: 1,
214
214
  class: "x-menu__badge"
215
215
  }, s(e.item.badge)), {
216
216
  default: d(() => [
217
- Dn
217
+ On
218
218
  ]),
219
219
  _: 1
220
- }, 16)) : v("", !0)
220
+ }, 16)) : y("", !0)
221
221
  ]),
222
222
  default: d(() => [
223
- e.item.icon ? (u(), f(o(ae), {
223
+ e.item.icon ? (u(), f(o(te), {
224
224
  key: 0,
225
225
  icon: n(e.item.icon)
226
- }, null, 8, ["icon"])) : v("", !0)
226
+ }, null, 8, ["icon"])) : y("", !0)
227
227
  ]),
228
228
  _: 1
229
229
  }, 8, ["index", "disabled"]));
@@ -239,15 +239,15 @@ const Cn = {
239
239
  },
240
240
  emits: ["select"],
241
241
  setup(a, { emit: e }) {
242
- const t = a, n = y(() => t.data.filter((i) => !i.hidden)), s = (i, c) => {
242
+ const t = a, n = v(() => t.data.filter((i) => !i.hidden)), s = (i, c) => {
243
243
  const r = (p, m = []) => {
244
244
  for (const h of m) {
245
245
  if (h.id.toString() === p.toString())
246
246
  return h;
247
247
  if (h.children?.length) {
248
- const z = r(p, h.children);
249
- if (z)
250
- return z;
248
+ const k = r(p, h.children);
249
+ if (k)
250
+ return k;
251
251
  }
252
252
  }
253
253
  };
@@ -256,10 +256,10 @@ const Cn = {
256
256
  const c = s(n.value, i);
257
257
  c && e("select", c);
258
258
  };
259
- return (i, c) => (u(), f(o(Vt), Q({ class: "x-menu" }, i.$attrs, { onSelect: l }), {
259
+ return (i, c) => (u(), f(o(Ft), X({ class: "x-menu" }, i.$attrs, { onSelect: l }), {
260
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
+ (u(!0), V(q, null, ke(n.value, (r) => (u(), f(o(bt), {
262
+ item: { ...r, icon: r.icon || o(rt) },
263
263
  defaultIcon: t.defaultIcon,
264
264
  subMenu: t.subMenu
265
265
  }, null, 8, ["item", "defaultIcon", "subMenu"]))), 256))
@@ -267,7 +267,7 @@ const Cn = {
267
267
  _: 1
268
268
  }, 16));
269
269
  }
270
- }), Pn = { class: "x-simple-mask__brand" }, Vn = { class: "x-simple-mask__aciton" }, $n = /* @__PURE__ */ B({
270
+ }), jn = { class: "x-simple-mask__brand" }, Nn = { class: "x-simple-mask__aciton" }, Xn = /* @__PURE__ */ B({
271
271
  name: "XSimpleMask",
272
272
  __name: "SimpleMask",
273
273
  props: {
@@ -279,7 +279,7 @@ const Cn = {
279
279
  menu: {}
280
280
  },
281
281
  setup(a, { expose: e }) {
282
- const t = a, n = ke(), s = $e(), l = y(() => s.params.id), i = () => {
282
+ const t = a, n = xe(), s = Fe(), l = v(() => s.params.id), i = () => {
283
283
  const r = t.project.home;
284
284
  r && n.push(r);
285
285
  }, c = (r) => {
@@ -291,41 +291,41 @@ const Cn = {
291
291
  };
292
292
  return e({
293
293
  goHome: i
294
- }), (r, p) => (u(), f(o(Ue), { class: "x-simple-mask" }, {
294
+ }), (r, p) => (u(), f(o(He), { class: "x-simple-mask" }, {
295
295
  default: d(() => [
296
- b(o($t), { class: "x-simple-mask__header" }, {
296
+ b(o(Ot), { class: "x-simple-mask__header" }, {
297
297
  default: d(() => [
298
- $("div", Pn, [
298
+ $("div", jn, [
299
299
  $("span", {
300
300
  class: "x-simple-mask__logo",
301
301
  onClick: i
302
302
  }, [
303
- x(r.$slots, "logo", {}, () => [
303
+ z(r.$slots, "logo", {}, () => [
304
304
  N(O(t.project.name), 1)
305
305
  ])
306
306
  ])
307
307
  ]),
308
- $("div", Vn, [
309
- x(r.$slots, "action")
308
+ $("div", Nn, [
309
+ z(r.$slots, "action")
310
310
  ])
311
311
  ]),
312
312
  _: 3
313
313
  }),
314
- b(o(Ue), null, {
314
+ b(o(He), null, {
315
315
  default: d(() => [
316
- b(o(Rt), { class: "x-simple-mask__aside" }, {
316
+ b(o(jt), { class: "x-simple-mask__aside" }, {
317
317
  default: d(() => [
318
- b(o(G), Q(t.menu, {
318
+ b(o(G), X(t.menu, {
319
319
  "default-active": l.value,
320
320
  onSelect: c
321
321
  }), null, 16, ["default-active"])
322
322
  ]),
323
323
  _: 1
324
324
  }),
325
- b(o(Ft), { class: "x-simple-mask__main" }, {
325
+ b(o(Nt), { class: "x-simple-mask__main" }, {
326
326
  default: d(() => [
327
- x(r.$slots, "default", {}, () => [
328
- b(o(ct))
327
+ z(r.$slots, "default", {}, () => [
328
+ b(o(pt))
329
329
  ])
330
330
  ]),
331
331
  _: 3
@@ -333,21 +333,21 @@ const Cn = {
333
333
  ]),
334
334
  _: 3
335
335
  }),
336
- r.$slots.footer ? (u(), f(o(Ot), {
336
+ r.$slots.footer ? (u(), f(o(Xt), {
337
337
  key: 0,
338
338
  class: "x-simple-mask__footer",
339
339
  height: "40px"
340
340
  }, {
341
341
  default: d(() => [
342
- x(r.$slots, "footer")
342
+ z(r.$slots, "footer")
343
343
  ]),
344
344
  _: 3
345
- })) : v("", !0)
345
+ })) : y("", !0)
346
346
  ]),
347
347
  _: 3
348
348
  }));
349
349
  }
350
- }), vt = {
350
+ }), _t = {
351
351
  /**
352
352
  * 动作名称标识
353
353
  */
@@ -443,22 +443,22 @@ const Cn = {
443
443
  type: Boolean
444
444
  }
445
445
  };
446
- function Rn(a) {
447
- return y(() => {
446
+ function Un(a) {
447
+ return v(() => {
448
448
  const e = a.tooltip;
449
449
  if (e)
450
450
  return typeof e == "string" ? { content: e } : e;
451
451
  });
452
452
  }
453
- function Fn(a) {
454
- return y(() => {
453
+ function Hn(a) {
454
+ return v(() => {
455
455
  const e = a.badge;
456
456
  if (e)
457
457
  return typeof e == "object" ? e : { value: e };
458
458
  });
459
459
  }
460
- function On(a) {
461
- return y(() => {
460
+ function Ln(a) {
461
+ return v(() => {
462
462
  const { dropdown: e, menus: t } = a;
463
463
  if (t && t.length > 0)
464
464
  return Object.assign(
@@ -467,12 +467,12 @@ function On(a) {
467
467
  );
468
468
  });
469
469
  }
470
- function jn(a) {
470
+ function Wn(a) {
471
471
  const e = pe();
472
- return y(() => {
472
+ return v(() => {
473
473
  const t = o(a);
474
474
  if (t)
475
- if (typeof t == "string" || t.setup || t.render || St(t)) {
475
+ if (typeof t == "string" || t.setup || t.render || Mt(t)) {
476
476
  const n = e?.appContext.app;
477
477
  return {
478
478
  icon: typeof t == "string" && n?.component(t) || t
@@ -482,22 +482,22 @@ function jn(a) {
482
482
  return null;
483
483
  });
484
484
  }
485
- function _e(a) {
486
- const e = jn(a);
487
- return e.value ? Ae(B({ render: () => K(ae, e.value) })) : null;
485
+ function we(a) {
486
+ const e = Wn(a);
487
+ return e.value ? Pe(B({ render: () => Y(te, e.value) })) : null;
488
488
  }
489
- function Re(a, e) {
490
- return y(() => {
489
+ function Oe(a, e) {
490
+ return v(() => {
491
491
  const t = o(a);
492
492
  return typeof t == "function" ? t(e) : !!t;
493
493
  });
494
494
  }
495
- const Nn = { key: 0 }, Xn = /* @__PURE__ */ B({
495
+ const Qn = { key: 0 }, Zn = /* @__PURE__ */ B({
496
496
  __name: "Trigger",
497
- props: vt,
497
+ props: _t,
498
498
  emits: ["click"],
499
499
  setup(a, { emit: e }) {
500
- const t = a, n = _e(ye(t, "icon")), s = Re(ye(t, "disabled")), l = y(() => ({
500
+ const t = a, n = we(ve(t, "icon")), s = Oe(ve(t, "disabled")), l = v(() => ({
501
501
  [`is-${t.mode}`]: !!t.mode,
502
502
  [`is-${t.type}`]: !!t.type,
503
503
  [`is-${t.size}`]: !!t.size && t.size !== "default",
@@ -507,7 +507,7 @@ const Nn = { key: 0 }, Xn = /* @__PURE__ */ B({
507
507
  })), i = () => {
508
508
  e("click");
509
509
  };
510
- return (c, r) => t.mode === "button" ? (u(), f(o(de), Q({
510
+ return (c, r) => t.mode === "button" ? (u(), f(o(de), X({
511
511
  key: 0,
512
512
  icon: o(n),
513
513
  type: t.type,
@@ -518,57 +518,57 @@ const Nn = { key: 0 }, Xn = /* @__PURE__ */ B({
518
518
  N(O(c.label), 1)
519
519
  ]),
520
520
  _: 1
521
- }, 16, ["icon", "type", "size", "disabled"])) : (u(), D("div", {
521
+ }, 16, ["icon", "type", "size", "disabled"])) : (u(), V("div", {
522
522
  key: 1,
523
- class: X(["x-action__inner", l.value]),
523
+ class: U(["x-action__inner", l.value]),
524
524
  onClick: i
525
525
  }, [
526
- (u(), f(Y(o(n)))),
527
- c.label ? (u(), D("span", Nn, O(c.label), 1)) : v("", !0)
526
+ (u(), f(Z(o(n)))),
527
+ c.label ? (u(), V("span", Qn, O(c.label), 1)) : y("", !0)
528
528
  ], 2));
529
529
  }
530
- }), W = /* @__PURE__ */ B({
530
+ }), Q = /* @__PURE__ */ B({
531
531
  name: "XAction",
532
532
  __name: "Action",
533
- props: vt,
533
+ props: _t,
534
534
  emits: ["click", "command"],
535
535
  setup(a, { emit: e }) {
536
- const t = a, n = Ct(), s = Rn(t), l = Fn(t), i = On(t), c = Re(ye(t, "disabled")), r = y(() => ({
536
+ const t = a, n = Et(), s = Un(t), l = Hn(t), i = Ln(t), c = Oe(ve(t, "disabled")), r = v(() => ({
537
537
  [`x-action--${t.mode}`]: !!t.mode
538
538
  })), p = () => {
539
539
  e("click", t);
540
- }, m = (_) => {
541
- const E = t.menus?.find((A) => A.command === _);
540
+ }, m = (w) => {
541
+ const E = t.menus?.find((D) => D.command === w);
542
542
  E && e("command", E);
543
- }, h = (_) => K(Ie, l.value, () => [].concat(_)), z = (_) => K(
544
- jt,
543
+ }, h = (w) => Y(Ae, l.value, () => [].concat(w)), k = (w) => Y(
544
+ Ut,
545
545
  { ...i.value, disabled: c.value, onCommand: m },
546
546
  {
547
- default: () => [_],
547
+ default: () => [w],
548
548
  dropdown: () => [
549
- K(
550
- Nt,
551
- () => (t.menus || []).map((E) => K(
552
- Xt,
549
+ Y(
550
+ Ht,
551
+ () => (t.menus || []).map((E) => Y(
552
+ Lt,
553
553
  E,
554
554
  () => n.item ? n.item({ item: E }) : E.label
555
555
  ))
556
556
  )
557
557
  ]
558
558
  }
559
- ), P = (_) => K(Ut, { ...s.value, disabled: c.value }, () => [
560
- _
561
- ]), k = y(() => {
562
- let _ = n.default ? n.default()[0] : K(Ae(Xn), { ...t, onClick: p });
563
- return l.value && (_ = h(_)), i.value && (_ = z(_)), s.value && (_ = P(_)), _;
559
+ ), A = (w) => Y(st, { ...s.value, disabled: c.value }, () => [
560
+ w
561
+ ]), _ = v(() => {
562
+ let w = n.default ? n.default()[0] : Y(Pe(Zn), { ...t, onClick: p });
563
+ return l.value && (w = h(w)), i.value && (w = k(w)), s.value && (w = A(w)), w;
564
564
  });
565
- return (_, E) => (u(), D("div", {
566
- class: X(["x-action", r.value])
565
+ return (w, E) => (u(), V("div", {
566
+ class: U(["x-action", r.value])
567
567
  }, [
568
- (u(), f(Y(k.value)))
568
+ (u(), f(Z(_.value)))
569
569
  ], 2));
570
570
  }
571
- }), Un = {
571
+ }), Jn = {
572
572
  /**
573
573
  * 动作项
574
574
  */
@@ -639,13 +639,13 @@ const Nn = { key: 0 }, Xn = /* @__PURE__ */ B({
639
639
  button: {
640
640
  type: Object
641
641
  }
642
- }, Fe = /* @__PURE__ */ B({
642
+ }, je = /* @__PURE__ */ B({
643
643
  name: "XActionBar",
644
644
  __name: "ActionBar",
645
- props: Un,
645
+ props: Jn,
646
646
  emits: ["click", "command"],
647
647
  setup(a, { emit: e }) {
648
- const t = a, n = y(() => (t.items || []).map((i) => i === "|" ? i : {
648
+ const t = a, n = v(() => (t.items || []).map((i) => i === "|" ? i : {
649
649
  ...i,
650
650
  badge: i.badge ? {
651
651
  ...t.badge,
@@ -665,12 +665,12 @@ const Nn = { key: 0 }, Xn = /* @__PURE__ */ B({
665
665
  align: "center"
666
666
  }, {
667
667
  default: d(() => [
668
- (u(!0), D(q, null, we(n.value, (r) => (u(), D(q, null, [
668
+ (u(!0), V(q, null, ke(n.value, (r) => (u(), V(q, null, [
669
669
  r === "|" ? (u(), f(o(ue), {
670
670
  key: 0,
671
671
  direction: "vertical",
672
672
  class: "x-action-bar__divider"
673
- })) : (u(), f(o(W), Q({
673
+ })) : (u(), f(o(Q), X({
674
674
  key: 1,
675
675
  mode: t.mode,
676
676
  size: t.size,
@@ -679,7 +679,7 @@ const Nn = { key: 0 }, Xn = /* @__PURE__ */ B({
679
679
  background: t.background,
680
680
  button: t.button,
681
681
  dropdown: t.dropdown,
682
- disabled: o(Re)(t.disabled, r).value
682
+ disabled: o(Oe)(t.disabled, r).value
683
683
  }, r, {
684
684
  onClick: s,
685
685
  onCommand: (p) => l(r, p)
@@ -689,7 +689,7 @@ const Nn = { key: 0 }, Xn = /* @__PURE__ */ B({
689
689
  _: 1
690
690
  }));
691
691
  }
692
- }), Hn = {
692
+ }), Kn = {
693
693
  /**
694
694
  * 组件渲染html标签
695
695
  */
@@ -801,15 +801,15 @@ const Nn = { key: 0 }, Xn = /* @__PURE__ */ B({
801
801
  }, M = /* @__PURE__ */ B({
802
802
  name: "XContainer",
803
803
  __name: "Container",
804
- props: Hn,
804
+ props: Kn,
805
805
  setup(a) {
806
- const e = a, t = pe(), n = y(() => {
806
+ const e = a, t = pe(), n = v(() => {
807
807
  const i = t?.parent;
808
808
  if (!i)
809
809
  return !1;
810
810
  const c = i.proxy;
811
811
  return c.$options.name === "XContainer" || !!c.flex;
812
- }), s = y(() => ({
812
+ }), s = v(() => ({
813
813
  "is-fit": e.fit,
814
814
  "is-flex": e.flex && !e.inline,
815
815
  "is-inline-flex": e.flex && e.inline,
@@ -823,24 +823,24 @@ const Nn = { key: 0 }, Xn = /* @__PURE__ */ B({
823
823
  [`is-align-self-${e.alignSelf}`]: n.value && e.alignSelf !== "auto",
824
824
  [`is-overflow-${e.overflow}`]: !!e.overflow,
825
825
  "is-padding": !!e.padding
826
- })), l = y(() => {
826
+ })), l = v(() => {
827
827
  const { width: i, height: c, fit: r } = e;
828
828
  return r ? null : {
829
- width: i ? Le(i) : void 0,
830
- height: c ? Le(c) : void 0
829
+ width: i ? We(i) : void 0,
830
+ height: c ? We(c) : void 0
831
831
  };
832
832
  });
833
- return (i, c) => (u(), f(Y(e.tag), {
834
- class: X(["x-container", s.value]),
835
- style: Ee(l.value)
833
+ return (i, c) => (u(), f(Z(e.tag), {
834
+ class: U(["x-container", s.value]),
835
+ style: be(l.value)
836
836
  }, {
837
837
  default: d(() => [
838
- x(i.$slots, "default")
838
+ z(i.$slots, "default")
839
839
  ]),
840
840
  _: 3
841
841
  }, 8, ["class", "style"]));
842
842
  }
843
- }), Ln = {
843
+ }), Yn = {
844
844
  size: {
845
845
  type: String,
846
846
  default: "default"
@@ -861,65 +861,65 @@ const Nn = { key: 0 }, Xn = /* @__PURE__ */ B({
861
861
  more: {
862
862
  type: Boolean
863
863
  }
864
- }, Wn = {
864
+ }, Gn = {
865
865
  key: 2,
866
866
  class: "x-header__subtitle"
867
- }, Qn = {
867
+ }, qn = {
868
868
  key: 0,
869
869
  class: "x-header__actions"
870
- }, yt = /* @__PURE__ */ B({
870
+ }, wt = /* @__PURE__ */ B({
871
871
  name: "XHeader",
872
872
  inheritAttrs: !1,
873
873
  __name: "Header",
874
- props: Ln,
874
+ props: Yn,
875
875
  setup(a) {
876
- const e = a, t = Ye(), n = _e(ye(e, "icon")), s = y(() => ({
876
+ const e = a, t = Ge(), n = we(ve(e, "icon")), s = v(() => ({
877
877
  [`is-size-${e.size}`]: !!e.size && e.size !== "default",
878
878
  "is-border": e.border,
879
879
  "is-pointer": !!t.onClick
880
880
  }));
881
881
  return (l, i) => (u(), f(o(M), {
882
- class: X(["x-header", s.value]),
882
+ class: U(["x-header", s.value]),
883
883
  justify: "space-between",
884
884
  align: "center"
885
885
  }, {
886
886
  default: d(() => [
887
887
  b(o(M), {
888
888
  align: "center",
889
- class: X(["x-header__wrapper", s.value]),
889
+ class: U(["x-header__wrapper", s.value]),
890
890
  grow: ""
891
891
  }, {
892
892
  default: d(() => [
893
- o(n) ? (u(), f(Y(o(n)), {
893
+ o(n) ? (u(), f(Z(o(n)), {
894
894
  key: 0,
895
895
  class: "x-header__icon"
896
- })) : v("", !0),
897
- $("span", Q({ class: "x-header__content" }, l.$attrs), [
898
- x(l.$slots, "default", {}, () => [
896
+ })) : y("", !0),
897
+ $("span", X({ class: "x-header__content" }, l.$attrs), [
898
+ z(l.$slots, "default", {}, () => [
899
899
  N(O(e.content), 1)
900
900
  ])
901
901
  ], 16),
902
- e.more ? (u(), f(o(ae), {
902
+ e.more ? (u(), f(o(te), {
903
903
  key: 1,
904
904
  class: "x-header__more",
905
- icon: o(Yt)
906
- }, null, 8, ["icon"])) : v("", !0),
907
- e.subtitle || l.$slots.subtitle ? (u(), D("span", Wn, [
908
- x(l.$slots, "subtitle", {}, () => [
905
+ icon: o(tn)
906
+ }, null, 8, ["icon"])) : y("", !0),
907
+ e.subtitle || l.$slots.subtitle ? (u(), V("span", Gn, [
908
+ z(l.$slots, "subtitle", {}, () => [
909
909
  N(O(e.subtitle), 1)
910
910
  ])
911
- ])) : v("", !0)
911
+ ])) : y("", !0)
912
912
  ]),
913
913
  _: 3
914
914
  }, 8, ["class"]),
915
- l.$slots.actions ? (u(), D("div", Qn, [
916
- x(l.$slots, "actions")
917
- ])) : v("", !0)
915
+ l.$slots.actions ? (u(), V("div", qn, [
916
+ z(l.$slots, "actions")
917
+ ])) : y("", !0)
918
918
  ]),
919
919
  _: 3
920
920
  }, 8, ["class"]));
921
921
  }
922
- }), Zn = {
922
+ }), eo = {
923
923
  /**
924
924
  * 宽高自适应
925
925
  */
@@ -991,29 +991,29 @@ const Nn = { key: 0 }, Xn = /* @__PURE__ */ B({
991
991
  footer: {
992
992
  type: Object
993
993
  }
994
- }, bt = /* @__PURE__ */ B({
994
+ }, kt = /* @__PURE__ */ B({
995
995
  name: "XPanel",
996
996
  __name: "Panel",
997
- props: Zn,
997
+ props: eo,
998
998
  setup(a, { expose: e }) {
999
- const t = a, n = R(), s = y(() => ({
999
+ const t = a, n = R(), s = v(() => ({
1000
1000
  "x-panel--card": !!t.card,
1001
1001
  "x-panel--default": !t.card,
1002
1002
  [`is-${t.size}`]: !!t.size && t.size !== "default",
1003
1003
  "is-border": !!t.border,
1004
1004
  "is-radius": !!t.radius,
1005
1005
  [`is-shadow-${t.shadow}`]: !!t.shadow && t.shadow !== "none"
1006
- })), l = y(() => t.header === null ? null : typeof t.header == "string" ? {
1006
+ })), l = v(() => t.header === null ? null : typeof t.header == "string" ? {
1007
1007
  content: t.header,
1008
1008
  size: t.size
1009
1009
  } : {
1010
1010
  ...t.header,
1011
1011
  size: t.size
1012
- }), i = y(() => t.fit || t.height ? "auto" : void 0);
1012
+ }), i = v(() => t.fit || t.height ? "auto" : void 0);
1013
1013
  return e({
1014
1014
  bodyRef: n
1015
1015
  }), (c, r) => (u(), f(o(M), {
1016
- class: X(["x-panel", s.value]),
1016
+ class: U(["x-panel", s.value]),
1017
1017
  direction: "column",
1018
1018
  fit: t.fit,
1019
1019
  width: t.width,
@@ -1026,21 +1026,21 @@ const Nn = { key: 0 }, Xn = /* @__PURE__ */ B({
1026
1026
  class: "x-panel__header"
1027
1027
  }, {
1028
1028
  default: d(() => [
1029
- x(c.$slots, "header", {}, () => [
1030
- b(o(yt), De(Pe(l.value)), {
1029
+ z(c.$slots, "header", {}, () => [
1030
+ b(o(wt), qe(et(l.value)), {
1031
1031
  default: d(() => [
1032
- x(c.$slots, "title")
1032
+ z(c.$slots, "title")
1033
1033
  ]),
1034
1034
  actions: d(() => [
1035
- x(c.$slots, "actions")
1035
+ z(c.$slots, "actions")
1036
1036
  ]),
1037
1037
  _: 3
1038
1038
  }, 16)
1039
1039
  ])
1040
1040
  ]),
1041
1041
  _: 3
1042
- })) : v("", !0),
1043
- b(o(M), Q({
1042
+ })) : y("", !0),
1043
+ b(o(M), X({
1044
1044
  ref_key: "bodyRef",
1045
1045
  ref: n,
1046
1046
  flex: !1,
@@ -1050,29 +1050,29 @@ const Nn = { key: 0 }, Xn = /* @__PURE__ */ B({
1050
1050
  class: "x-panel__body"
1051
1051
  }, t.body), {
1052
1052
  default: d(() => [
1053
- x(c.$slots, "default")
1053
+ z(c.$slots, "default")
1054
1054
  ]),
1055
1055
  _: 3
1056
1056
  }, 16, ["overflow"]),
1057
- c.$slots.footer ? (u(), f(o(M), Q({
1057
+ c.$slots.footer ? (u(), f(o(M), X({
1058
1058
  key: 1,
1059
1059
  flex: !1,
1060
1060
  padding: "",
1061
1061
  class: "x-panel__footer"
1062
1062
  }, t.footer), {
1063
1063
  default: d(() => [
1064
- x(c.$slots, "footer")
1064
+ z(c.$slots, "footer")
1065
1065
  ]),
1066
1066
  _: 3
1067
- }, 16)) : v("", !0)
1067
+ }, 16)) : y("", !0)
1068
1068
  ]),
1069
1069
  _: 3
1070
1070
  }, 8, ["class", "fit", "width", "height"]));
1071
1071
  }
1072
- }), Qe = "user-select-none";
1073
- class Ze {
1072
+ }), Ze = "user-select-none";
1073
+ class Je {
1074
1074
  constructor(e, t = {}) {
1075
- this.el = e, this.options = t, this.scope = Ge(), this.scope.run(() => {
1075
+ this.el = e, this.options = t, this.scope = tt(), this.scope.run(() => {
1076
1076
  this.init();
1077
1077
  });
1078
1078
  }
@@ -1093,27 +1093,27 @@ class Ze {
1093
1093
  let c = null;
1094
1094
  const r = this.getHandle(), p = this.getTarget();
1095
1095
  let m = e.getBoundingClientRect(), h = null;
1096
- const { x: z, y: P } = fn(e, {
1096
+ const { x: k, y: A } = vn(e, {
1097
1097
  initialValue: { x: m.x, y: m.y },
1098
1098
  ...t,
1099
1099
  handle: r,
1100
- onStart: (k, _) => {
1101
- document.body.classList.add(Qe), clearTimeout(c), c = setTimeout(() => {
1102
- this.dragging = !0, m = e.getBoundingClientRect(), h = p?.getBoundingClientRect(), l && l(k, _);
1100
+ onStart: (_, w) => {
1101
+ document.body.classList.add(Ze), clearTimeout(c), c = setTimeout(() => {
1102
+ this.dragging = !0, m = e.getBoundingClientRect(), h = p?.getBoundingClientRect(), l && l(_, w);
1103
1103
  }, s);
1104
1104
  },
1105
- onEnd: (k, _) => {
1106
- if (clearTimeout(c), document.body.classList.remove(Qe), this.dragging && h) {
1105
+ onEnd: (_, w) => {
1106
+ if (clearTimeout(c), document.body.classList.remove(Ze), this.dragging && h) {
1107
1107
  this.dragging = !1;
1108
- const { x: E, y: A } = k, g = this.getPosition(h, m, E, A);
1109
- i && i(g, _), h = null;
1108
+ const { x: E, y: D } = _, g = this.getPosition(h, m, E, D);
1109
+ i && i(g, w), h = null;
1110
1110
  }
1111
1111
  }
1112
1112
  });
1113
- oe([z, P], () => {
1113
+ ee([k, A], () => {
1114
1114
  if (this.dragging && h) {
1115
- const k = this.getPosition(h, m, z.value, P.value);
1116
- e.style.left = `${k.x}px`, e.style.top = `${k.y}px`;
1115
+ const _ = this.getPosition(h, m, k.value, A.value);
1116
+ e.style.left = `${_.x}px`, e.style.top = `${_.y}px`;
1117
1117
  }
1118
1118
  });
1119
1119
  }
@@ -1128,24 +1128,24 @@ class Ze {
1128
1128
  this.scope.stop();
1129
1129
  }
1130
1130
  }
1131
- const Jn = {
1131
+ const to = {
1132
1132
  mounted(a, e) {
1133
- const t = e.value || {}, n = new Ze(a, t);
1133
+ const t = e.value || {}, n = new Je(a, t);
1134
1134
  a.__draggable__ = n;
1135
1135
  },
1136
1136
  updated(a, e) {
1137
1137
  const t = e.value || {};
1138
1138
  let n = a.__draggable__;
1139
- n && !dt(n.options, t) && (n.destory(), a.__draggable__ = new Ze(a, t));
1139
+ n && !mt(n.options, t) && (n.destory(), a.__draggable__ = new Je(a, t));
1140
1140
  },
1141
1141
  unmounted(a) {
1142
1142
  const e = a.__draggable__;
1143
1143
  e && (e.destory(), a.__draggable__ = null);
1144
1144
  }
1145
- }, Me = "user-select-none";
1146
- class Je {
1145
+ }, Ee = "user-select-none";
1146
+ class Ke {
1147
1147
  constructor(e, t = {}) {
1148
- this.el = e, this.options = t, this.scope = Ge(), this.scope.run(() => {
1148
+ this.el = e, this.options = t, this.scope = tt(), this.scope.run(() => {
1149
1149
  this.init();
1150
1150
  });
1151
1151
  }
@@ -1159,19 +1159,19 @@ class Je {
1159
1159
  const { el: e, options: t } = this, { disabled: n, onStart: s, onEnd: l } = t;
1160
1160
  if (n)
1161
1161
  return;
1162
- this.MIE = mn(e), this.cleanMousedown = be(document, "mousedown", () => {
1162
+ this.MIE = bn(e), this.cleanMousedown = _e(document, "mousedown", () => {
1163
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));
1164
- }), this.cleanMouseup = be(document, "mouseup", () => {
1164
+ }), this.cleanMouseup = _e(document, "mouseup", () => {
1165
1165
  this.resizing.value && this.direction?.value && this.MIE && (e.classList.remove(
1166
1166
  "is-resizing",
1167
1167
  `is-${this.direction.value}-resizing`
1168
1168
  ), l && l(this.direction.value, this.MIE)), this.resizing.value = !1;
1169
- }), oe(this.direction, (r) => {
1169
+ }), ee(this.direction, (r) => {
1170
1170
  const p = document.body;
1171
- p.style.cursor = r ? `${r}-resize` : "", r ? p.classList.add(Me) : p.classList.remove(Me);
1171
+ p.style.cursor = r ? `${r}-resize` : "", r ? p.classList.add(Ee) : p.classList.remove(Ee);
1172
1172
  });
1173
1173
  const { x: i, y: c } = this.MIE;
1174
- oe([i, c], () => {
1174
+ ee([i, c], () => {
1175
1175
  this.resizing.value ? this.resize() : this.direction.value = this.getDirection();
1176
1176
  });
1177
1177
  }
@@ -1179,35 +1179,35 @@ class Je {
1179
1179
  const { MIE: e, direction: t, resizing: n, options: s, el: l } = this, i = t?.value || "";
1180
1180
  if (!e || !n.value || !i)
1181
1181
  return;
1182
- const { x: c, y: r, elementX: p, elementY: m, elementHeight: h, elementWidth: z } = e, { onResizing: P } = s, {
1183
- minWidth: k = 0,
1184
- minHeight: _ = 0,
1182
+ const { x: c, y: r, elementX: p, elementY: m, elementHeight: h, elementWidth: k } = e, { onResizing: A } = s, {
1183
+ minWidth: _ = 0,
1184
+ minHeight: w = 0,
1185
1185
  maxWidth: E = 99999,
1186
- maxHeight: A = 99999
1186
+ maxHeight: D = 99999
1187
1187
  } = s;
1188
1188
  if (i.includes("e")) {
1189
- const g = Math.min(Math.max(p.value, k), E);
1189
+ const g = Math.min(Math.max(p.value, _), E);
1190
1190
  l.style.width = `${g}px`;
1191
1191
  }
1192
1192
  if (i.includes("s")) {
1193
- const g = Math.min(Math.max(m.value, _), A);
1193
+ const g = Math.min(Math.max(m.value, w), D);
1194
1194
  l.style.height = `${g}px`;
1195
1195
  }
1196
1196
  if (i.includes("w")) {
1197
1197
  const g = Math.min(
1198
- Math.max(z.value - p.value, k),
1198
+ Math.max(k.value - p.value, _),
1199
1199
  E
1200
1200
  );
1201
1201
  l.style.width = `${g}px`, l.style.left = `${c.value}px`;
1202
1202
  }
1203
1203
  if (i.includes("n")) {
1204
1204
  const g = Math.min(
1205
- Math.max(h.value - m.value, _),
1206
- A
1205
+ Math.max(h.value - m.value, w),
1206
+ D
1207
1207
  );
1208
1208
  this.el.style.height = `${g}px`, this.el.style.top = `${r.value}px`;
1209
1209
  }
1210
- P && P(i, e);
1210
+ A && A(i, e);
1211
1211
  }
1212
1212
  getDirection() {
1213
1213
  if (!this.MIE)
@@ -1221,24 +1221,24 @@ class Je {
1221
1221
  }
1222
1222
  destory() {
1223
1223
  const e = document.body;
1224
- e.style.cursor = "", e.classList.remove(Me), this.cleanMousedown && this.cleanMousedown(), this.cleanMouseup && this.cleanMouseup(), this.MIE?.stop(), this.scope.stop();
1224
+ e.style.cursor = "", e.classList.remove(Ee), this.cleanMousedown && this.cleanMousedown(), this.cleanMouseup && this.cleanMouseup(), this.MIE?.stop(), this.scope.stop();
1225
1225
  }
1226
1226
  }
1227
- const _t = {
1227
+ const xt = {
1228
1228
  mounted(a, e) {
1229
- const t = e.value || {}, n = new Je(a, t);
1229
+ const t = e.value || {}, n = new Ke(a, t);
1230
1230
  a.__resizable__ = n;
1231
1231
  },
1232
1232
  updated(a, e) {
1233
1233
  const t = e.value || {};
1234
1234
  let n = a.__resizable__;
1235
- n && !dt(n.options, t) && (n.destory(), a.__resizable__ = new Je(a, t));
1235
+ n && !mt(n.options, t) && (n.destory(), a.__resizable__ = new Ke(a, t));
1236
1236
  },
1237
1237
  unmounted(a) {
1238
1238
  const e = a.__resizable__;
1239
1239
  e && (e.destory(), a.__resizable__ = null);
1240
1240
  }
1241
- }, Kn = {
1241
+ }, no = {
1242
1242
  modelValue: {
1243
1243
  type: Boolean,
1244
1244
  default: !0
@@ -1324,8 +1324,8 @@ const _t = {
1324
1324
  }
1325
1325
  };
1326
1326
  let ie = 1e3;
1327
- function Yn(a, e) {
1328
- const { width: t, height: n } = ut(e), s = qe({
1327
+ function oo(a, e) {
1328
+ const { width: t, height: n } = ft(e), s = nt({
1329
1329
  mode: a.mode || "normal",
1330
1330
  wrapperWidth: 0,
1331
1331
  wrapperHeight: 0,
@@ -1337,19 +1337,19 @@ function Yn(a, e) {
1337
1337
  dragging: !1,
1338
1338
  resizing: !1
1339
1339
  });
1340
- return oe([t, n], ([l, i]) => {
1340
+ return ee([t, n], ([l, i]) => {
1341
1341
  s.wrapperWidth = l, s.wrapperHeight = i, s.width = me(a.width, l), s.height = me(a.height, i), s.left = a.left ? me(a.left, l) - s.width / 2 : Math.max(Math.floor((l - s.width) / 2), 0), s.top = a.top ? me(a.top, i) : Math.max(Math.floor((i - s.height) / 2), 0);
1342
- }), oe(s, (l) => {
1342
+ }), ee(s, (l) => {
1343
1343
  ie = Math.max(l.zIndex, ie);
1344
1344
  }), {
1345
1345
  state: s,
1346
- normal: y(() => s.mode === "normal"),
1347
- maximized: y(() => s.mode === "maximized"),
1348
- minimized: y(() => s.mode === "minimized")
1346
+ normal: v(() => s.mode === "normal"),
1347
+ maximized: v(() => s.mode === "maximized"),
1348
+ minimized: v(() => s.mode === "minimized")
1349
1349
  };
1350
1350
  }
1351
- function Gn(a, e) {
1352
- const t = y(() => {
1351
+ function ao(a, e) {
1352
+ const t = v(() => {
1353
1353
  const { width: i, height: c, top: r, left: p, zIndex: m } = e;
1354
1354
  return {
1355
1355
  width: `${i}px`,
@@ -1358,16 +1358,16 @@ function Gn(a, e) {
1358
1358
  left: `${p}px`,
1359
1359
  zIndex: m
1360
1360
  };
1361
- }), n = y(() => ({
1361
+ }), n = v(() => ({
1362
1362
  [`is-${e.mode}`]: !!e.mode,
1363
1363
  "is-draggable": !!a.draggable,
1364
1364
  "is-resizable": !!a.resizable,
1365
1365
  "is-primary": !!a.primary
1366
- })), s = y(() => ({
1366
+ })), s = v(() => ({
1367
1367
  [`is-${e.mode}`]: !!e.mode,
1368
1368
  "is-dragging": e.dragging,
1369
1369
  "is-resizing": e.resizing
1370
- })), l = y(() => ({
1370
+ })), l = v(() => ({
1371
1371
  zIndex: e.zIndex
1372
1372
  }));
1373
1373
  return {
@@ -1377,7 +1377,7 @@ function Gn(a, e) {
1377
1377
  modalStyle: l
1378
1378
  };
1379
1379
  }
1380
- function qn(a, e, t) {
1380
+ function so(a, e, t) {
1381
1381
  const n = (m) => {
1382
1382
  e.mode = m, ["maximized", "minimized", "normal"].includes(m) && t(m), t("modeChange", m);
1383
1383
  }, s = async () => {
@@ -1397,11 +1397,11 @@ function qn(a, e, t) {
1397
1397
  }
1398
1398
  };
1399
1399
  }
1400
- function eo(a, e, t, n) {
1401
- return y(() => {
1400
+ function lo(a, e, t, n) {
1401
+ return v(() => {
1402
1402
  const s = typeof a.draggable == "boolean" ? !a.draggable : !!a.draggable?.disabled;
1403
1403
  return {
1404
- ...pt(a.draggable) ? a.draggable : {},
1404
+ ...gt(a.draggable) ? a.draggable : {},
1405
1405
  disabled: s,
1406
1406
  target: n,
1407
1407
  selector: ".x-panel__header",
@@ -1420,13 +1420,13 @@ function eo(a, e, t, n) {
1420
1420
  };
1421
1421
  });
1422
1422
  }
1423
- function to(a, e, t) {
1424
- return y(() => {
1423
+ function io(a, e, t) {
1424
+ return v(() => {
1425
1425
  const n = typeof a.resizable == "boolean" ? !a.resizable : !!a.resizable?.disabled;
1426
1426
  return {
1427
1427
  minWidth: 200,
1428
1428
  minHeight: 150,
1429
- ...pt(a.resizable) ? a.resizable : {},
1429
+ ...gt(a.resizable) ? a.resizable : {},
1430
1430
  disabled: n,
1431
1431
  dirs: ["e", "s", "w"],
1432
1432
  onStart(s, l) {
@@ -1441,124 +1441,124 @@ function to(a, e, t) {
1441
1441
  };
1442
1442
  });
1443
1443
  }
1444
- function no(a, e) {
1444
+ function ro(a, e) {
1445
1445
  const t = a.componentInstance;
1446
1446
  if (!t)
1447
1447
  return;
1448
1448
  let n = null;
1449
- return Tt(() => {
1449
+ return It(() => {
1450
1450
  const s = o(e), l = o(s?.bodyRef);
1451
1451
  n = t.$el, l && l.$el && l.$el.appendChild(n);
1452
- }), Mt(() => {
1452
+ }), Bt(() => {
1453
1453
  n && n.parentNode && n.parentNode.removeChild(n);
1454
1454
  }), {
1455
1455
  componentInstance: t
1456
1456
  };
1457
1457
  }
1458
- const oo = ["src"], wt = /* @__PURE__ */ B({
1458
+ const co = ["src"], zt = /* @__PURE__ */ B({
1459
1459
  name: "XDialog",
1460
1460
  __name: "Dialog",
1461
- props: Kn,
1461
+ props: no,
1462
1462
  emits: ["update:modelValue", "open", "close", "destroy", "maximized", "minimized", "normal", "modeChange", "dragStart", "dragging", "dragEnd", "resizeStart", "resizeEnd", "resizing", "submit", "cancel"],
1463
1463
  setup(a, { expose: e, emit: t }) {
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(
1464
+ const n = a, s = pe(), l = R(), i = R(), { state: c, maximized: r, minimized: p, normal: m } = oo(n, l), { styles: h, classes: k, wrapperClass: A, modalStyle: _ } = ao(n, c), { changeMode: w, active: E, close: D, show: g, hide: I, submit: C, cancel: F } = so(
1465
1465
  n,
1466
1466
  c,
1467
1467
  t
1468
- ), U = eo(n, c, t, l), ee = to(n, c, t), te = no(n, i);
1469
- return et(async () => {
1468
+ ), H = lo(n, c, t, l), ne = io(n, c, t), oe = ro(n, i);
1469
+ return ot(async () => {
1470
1470
  n.modelValue && (await le(), s && t("open", s));
1471
1471
  }), e({
1472
1472
  panelRef: i,
1473
1473
  state: c,
1474
1474
  maximized: r,
1475
1475
  minimized: p,
1476
- changeMode: _,
1476
+ changeMode: w,
1477
1477
  show: g,
1478
1478
  hide: I,
1479
1479
  submit: C,
1480
1480
  cancel: F,
1481
- componentInstance: te
1482
- }), (j, H) => n.modelValue ? (u(), f(tt, {
1481
+ componentInstance: oe
1482
+ }), (j, L) => n.modelValue ? (u(), f(at, {
1483
1483
  key: 0,
1484
1484
  to: "body"
1485
1485
  }, [
1486
1486
  $("div", {
1487
1487
  ref_key: "wrapper",
1488
1488
  ref: l,
1489
- class: X(["x-dialog__wrapper", o(P)])
1489
+ class: U(["x-dialog__wrapper", o(A)])
1490
1490
  }, [
1491
- n.modal ? (u(), D("div", {
1491
+ n.modal ? (u(), V("div", {
1492
1492
  key: 0,
1493
1493
  class: "x-dialog__modal",
1494
- style: Ee(o(k))
1495
- }, null, 4)) : v("", !0),
1496
- L((u(), f(o(bt), {
1494
+ style: be(o(_))
1495
+ }, null, 4)) : y("", !0),
1496
+ W((u(), f(o(kt), {
1497
1497
  ref_key: "panelRef",
1498
1498
  ref: i,
1499
- class: X(["x-dialog", o(z)]),
1499
+ class: U(["x-dialog", o(k)]),
1500
1500
  card: "",
1501
1501
  shadow: "always",
1502
1502
  header: { icon: n.icon, subtitle: n.subtitle },
1503
1503
  width: "800px",
1504
1504
  height: "600px",
1505
1505
  footer: { justify: "space-between", flex: !0, align: "center" },
1506
- style: Ee(o(h)),
1506
+ style: be(o(h)),
1507
1507
  size: n.size,
1508
1508
  body: { padding: n.bodyPadding },
1509
1509
  onClick: o(E)
1510
- }, nt({
1510
+ }, $e({
1511
1511
  title: d(() => [
1512
1512
  N(O(n.title), 1)
1513
1513
  ]),
1514
1514
  actions: d(() => [
1515
- x(j.$slots, "actions"),
1516
- n.minimizable ? (u(), f(o(W), {
1515
+ z(j.$slots, "actions"),
1516
+ n.minimizable ? (u(), f(o(Q), {
1517
1517
  key: 0,
1518
- icon: o(cn),
1518
+ icon: o(mn),
1519
1519
  size: n.size,
1520
1520
  mode: "icon",
1521
1521
  type: "primary",
1522
1522
  background: "hover",
1523
- onClick: H[0] || (H[0] = (se) => o(_)("minimized"))
1524
- }, null, 8, ["icon", "size"])) : v("", !0),
1525
- n.maximizable ? (u(), D(q, { key: 1 }, [
1526
- o(m) ? (u(), f(o(W), {
1523
+ onClick: L[0] || (L[0] = (se) => o(w)("minimized"))
1524
+ }, null, 8, ["icon", "size"])) : y("", !0),
1525
+ n.maximizable ? (u(), V(q, { key: 1 }, [
1526
+ o(m) ? (u(), f(o(Q), {
1527
1527
  key: 1,
1528
- icon: o(dn),
1528
+ icon: o(hn),
1529
1529
  size: n.size,
1530
1530
  mode: "icon",
1531
1531
  type: "primary",
1532
1532
  background: "hover",
1533
- onClick: H[2] || (H[2] = (se) => o(_)("maximized"))
1534
- }, null, 8, ["icon", "size"])) : (u(), f(o(W), {
1533
+ onClick: L[2] || (L[2] = (se) => o(w)("maximized"))
1534
+ }, null, 8, ["icon", "size"])) : (u(), f(o(Q), {
1535
1535
  key: 0,
1536
- icon: o(un),
1536
+ icon: o(gn),
1537
1537
  size: n.size,
1538
1538
  mode: "icon",
1539
1539
  type: "primary",
1540
1540
  background: "hover",
1541
- onClick: H[1] || (H[1] = (se) => o(_)("normal"))
1541
+ onClick: L[1] || (L[1] = (se) => o(w)("normal"))
1542
1542
  }, null, 8, ["icon", "size"]))
1543
- ], 64)) : v("", !0),
1544
- n.closable ? (u(), f(o(W), {
1543
+ ], 64)) : y("", !0),
1544
+ n.closable ? (u(), f(o(Q), {
1545
1545
  key: 2,
1546
- icon: o(pn),
1546
+ icon: o(yn),
1547
1547
  size: n.size,
1548
1548
  mode: "icon",
1549
1549
  type: "danger",
1550
1550
  background: "hover",
1551
- onClick: o(A)
1552
- }, null, 8, ["icon", "size", "onClick"])) : v("", !0)
1551
+ onClick: o(D)
1552
+ }, null, 8, ["icon", "size", "onClick"])) : y("", !0)
1553
1553
  ]),
1554
1554
  default: d(() => [
1555
- x(j.$slots, "default", {}, () => [
1556
- n.content ? (u(), f(Y(n.content), { key: 0 })) : v("", !0),
1557
- n.src ? (u(), D("iframe", {
1555
+ z(j.$slots, "default", {}, () => [
1556
+ n.content ? (u(), f(Z(n.content), { key: 0 })) : y("", !0),
1557
+ n.src ? (u(), V("iframe", {
1558
1558
  key: 1,
1559
1559
  src: n.src,
1560
1560
  class: "x-dialog__frame"
1561
- }, null, 8, oo)) : v("", !0)
1561
+ }, null, 8, co)) : y("", !0)
1562
1562
  ])
1563
1563
  ]),
1564
1564
  _: 2
@@ -1566,16 +1566,16 @@ const oo = ["src"], wt = /* @__PURE__ */ B({
1566
1566
  n.cancel || n.submit || j.$slots.footer || j.$slots.extra || j.$slots.handle ? {
1567
1567
  name: "footer",
1568
1568
  fn: d(() => [
1569
- x(j.$slots, "footer", {}, () => [
1569
+ z(j.$slots, "footer", {}, () => [
1570
1570
  b(o(M), null, {
1571
1571
  default: d(() => [
1572
- x(j.$slots, "extra")
1572
+ z(j.$slots, "extra")
1573
1573
  ]),
1574
1574
  _: 3
1575
1575
  }),
1576
1576
  b(o(M), null, {
1577
1577
  default: d(() => [
1578
- x(j.$slots, "handle"),
1578
+ z(j.$slots, "handle"),
1579
1579
  n.cancel ? (u(), f(o(de), {
1580
1580
  key: 0,
1581
1581
  type: "default",
@@ -1586,7 +1586,7 @@ const oo = ["src"], wt = /* @__PURE__ */ B({
1586
1586
  N(O(typeof n.cancel == "string" ? n.cancel : "取消"), 1)
1587
1587
  ]),
1588
1588
  _: 1
1589
- }, 8, ["size", "onClick"])) : v("", !0),
1589
+ }, 8, ["size", "onClick"])) : y("", !0),
1590
1590
  n.submit ? (u(), f(o(de), {
1591
1591
  key: 1,
1592
1592
  type: "primary",
@@ -1597,7 +1597,7 @@ const oo = ["src"], wt = /* @__PURE__ */ B({
1597
1597
  N(O(typeof n.submit == "string" ? n.cancel : "确定"), 1)
1598
1598
  ]),
1599
1599
  _: 1
1600
- }, 8, ["size", "onClick"])) : v("", !0)
1600
+ }, 8, ["size", "onClick"])) : y("", !0)
1601
1601
  ]),
1602
1602
  _: 3
1603
1603
  })
@@ -1606,18 +1606,18 @@ const oo = ["src"], wt = /* @__PURE__ */ B({
1606
1606
  key: "0"
1607
1607
  } : void 0
1608
1608
  ]), 1032, ["header", "class", "style", "size", "body", "onClick"])), [
1609
- [o(Jn), o(U)],
1610
- [o(_t), o(ee)]
1609
+ [o(to), o(H)],
1610
+ [o(xt), o(ne)]
1611
1611
  ])
1612
1612
  ], 2)
1613
- ])) : v("", !0);
1613
+ ])) : y("", !0);
1614
1614
  }
1615
1615
  });
1616
- function Oe(a, e) {
1617
- const t = document.createElement("div"), n = b(wt, a);
1618
- n.appContext = e ?? Oe._context, je(n, t);
1616
+ function Ne(a, e) {
1617
+ const t = document.createElement("div"), n = b(zt, a);
1618
+ n.appContext = e ?? Ne._context, Xe(n, t);
1619
1619
  const s = () => {
1620
- je(null, t), t.parentNode?.removeChild(t);
1620
+ Xe(null, t), t.parentNode?.removeChild(t);
1621
1621
  };
1622
1622
  return n.props.onDestroy = () => {
1623
1623
  s();
@@ -1626,21 +1626,21 @@ function Oe(a, e) {
1626
1626
  destroy: s
1627
1627
  };
1628
1628
  }
1629
- const ao = /* @__PURE__ */ $("div", { class: "x-mask-sidebar__helper" }, null, -1), so = /* @__PURE__ */ B({
1629
+ const uo = /* @__PURE__ */ $("div", { class: "x-mask-sidebar__helper" }, null, -1), po = /* @__PURE__ */ B({
1630
1630
  __name: "Sidebar",
1631
1631
  props: {
1632
1632
  collapsed: { type: Boolean }
1633
1633
  },
1634
1634
  setup(a) {
1635
1635
  const e = a;
1636
- return (t, n) => L((u(), f(o(M), {
1637
- class: X(["x-mask-sidebar", { "is-collapsed": e.collapsed }]),
1636
+ return (t, n) => W((u(), f(o(M), {
1637
+ class: U(["x-mask-sidebar", { "is-collapsed": e.collapsed }]),
1638
1638
  grow: !1,
1639
1639
  flex: "",
1640
1640
  direction: "column"
1641
1641
  }, {
1642
1642
  default: d(() => [
1643
- x(t.$slots, "brand"),
1643
+ z(t.$slots, "brand"),
1644
1644
  b(o(M), {
1645
1645
  class: "x-mask-sidebar__wrapper",
1646
1646
  flex: "",
@@ -1650,15 +1650,15 @@ const ao = /* @__PURE__ */ $("div", { class: "x-mask-sidebar__helper" }, null, -
1650
1650
  align: "center"
1651
1651
  }, {
1652
1652
  default: d(() => [
1653
- x(t.$slots, "default"),
1654
- ao
1653
+ z(t.$slots, "default"),
1654
+ uo
1655
1655
  ]),
1656
1656
  _: 3
1657
1657
  })
1658
1658
  ]),
1659
1659
  _: 3
1660
1660
  }, 8, ["class"])), [
1661
- [o(_t), {
1661
+ [o(xt), {
1662
1662
  dirs: ["e"],
1663
1663
  disabled: e.collapsed,
1664
1664
  maxWidth: 500,
@@ -1666,7 +1666,7 @@ const ao = /* @__PURE__ */ $("div", { class: "x-mask-sidebar__helper" }, null, -
1666
1666
  }]
1667
1667
  ]);
1668
1668
  }
1669
- }), lo = /* @__PURE__ */ B({
1669
+ }), fo = /* @__PURE__ */ B({
1670
1670
  __name: "SwitchBar",
1671
1671
  props: {
1672
1672
  collasped: { type: Boolean, default: !1 },
@@ -1690,76 +1690,76 @@ const ao = /* @__PURE__ */ $("div", { class: "x-mask-sidebar__helper" }, null, -
1690
1690
  }, m = () => {
1691
1691
  e("update:favorite", l.value);
1692
1692
  };
1693
- return (h, z) => (u(), f(o(M), {
1693
+ return (h, k) => (u(), f(o(M), {
1694
1694
  class: "x-mask-switch-bar",
1695
1695
  justify: "space-between",
1696
1696
  align: "center"
1697
1697
  }, {
1698
1698
  default: d(() => [
1699
- t.collasped ? v("", !0) : (u(), f(o(M), {
1699
+ t.collasped ? y("", !0) : (u(), f(o(M), {
1700
1700
  key: 0,
1701
1701
  class: "x-mask-switch-bar__left",
1702
1702
  grow: ""
1703
1703
  }, {
1704
1704
  default: d(() => [
1705
- n.value ? v("", !0) : (u(), f(o(ot), {
1705
+ n.value ? y("", !0) : (u(), f(o(lt), {
1706
1706
  key: 0,
1707
1707
  modelValue: l.value,
1708
- "onUpdate:modelValue": z[0] || (z[0] = (P) => l.value = P),
1708
+ "onUpdate:modelValue": k[0] || (k[0] = (A) => l.value = A),
1709
1709
  class: "x-mask-switch-bar__switch",
1710
- "active-icon": o(lt),
1711
- "inactive-icon": o(st),
1710
+ "active-icon": o(ct),
1711
+ "inactive-icon": o(rt),
1712
1712
  onChange: m
1713
1713
  }, null, 8, ["modelValue", "active-icon", "inactive-icon"])),
1714
- n.value ? (u(), f(o(Ht), {
1714
+ n.value ? (u(), f(o(De), {
1715
1715
  key: 1,
1716
1716
  modelValue: s.value,
1717
- "onUpdate:modelValue": z[1] || (z[1] = (P) => s.value = P),
1717
+ "onUpdate:modelValue": k[1] || (k[1] = (A) => s.value = A),
1718
1718
  class: "x-mask-switch-bar__input",
1719
1719
  size: "small",
1720
1720
  placeholder: "请输入查询关键字",
1721
1721
  onInput: p,
1722
- "prefix-icon": o(Be)
1722
+ "prefix-icon": o(Ve)
1723
1723
  }, {
1724
1724
  suffix: d(() => [
1725
- b(o(ae), {
1726
- icon: o(it),
1725
+ b(o(te), {
1726
+ icon: o(ut),
1727
1727
  onClick: c
1728
1728
  }, null, 8, ["icon"])
1729
1729
  ]),
1730
1730
  _: 1
1731
- }, 8, ["modelValue", "prefix-icon"])) : v("", !0)
1731
+ }, 8, ["modelValue", "prefix-icon"])) : y("", !0)
1732
1732
  ]),
1733
1733
  _: 1
1734
1734
  })),
1735
1735
  b(o(M), {
1736
- class: X(["x-mask-switch-bar__right", { "is-collasped": t.collasped }]),
1736
+ class: U(["x-mask-switch-bar__right", { "is-collasped": t.collasped }]),
1737
1737
  flex: "",
1738
1738
  align: "center",
1739
1739
  justify: "center"
1740
1740
  }, {
1741
1741
  default: d(() => [
1742
- !n.value && !t.collasped ? (u(), f(o(W), {
1742
+ !n.value && !t.collasped ? (u(), f(o(Q), {
1743
1743
  key: 0,
1744
- icon: o(Be),
1744
+ icon: o(Ve),
1745
1745
  mode: "icon",
1746
1746
  background: "hover",
1747
1747
  size: "default",
1748
1748
  circle: "",
1749
1749
  onClick: i
1750
- }, null, 8, ["icon"])) : v("", !0),
1751
- t.collasped ? (u(), f(o(W), {
1750
+ }, null, 8, ["icon"])) : y("", !0),
1751
+ t.collasped ? (u(), f(o(Q), {
1752
1752
  key: 1,
1753
- icon: o(Gt),
1753
+ icon: o(nn),
1754
1754
  mode: "icon",
1755
1755
  size: "default",
1756
1756
  background: "hover",
1757
1757
  onClick: r,
1758
1758
  circle: ""
1759
- }, null, 8, ["icon"])) : v("", !0),
1760
- t.collasped ? v("", !0) : (u(), f(o(W), {
1759
+ }, null, 8, ["icon"])) : y("", !0),
1760
+ t.collasped ? y("", !0) : (u(), f(o(Q), {
1761
1761
  key: 2,
1762
- icon: o(qt),
1762
+ icon: o(on),
1763
1763
  mode: "icon",
1764
1764
  size: "default",
1765
1765
  background: "hover",
@@ -1773,7 +1773,7 @@ const ao = /* @__PURE__ */ $("div", { class: "x-mask-sidebar__helper" }, null, -
1773
1773
  _: 1
1774
1774
  }));
1775
1775
  }
1776
- }), io = ["src"], ro = { key: 0 }, co = /* @__PURE__ */ B({
1776
+ }), mo = ["src"], go = { key: 0 }, ho = /* @__PURE__ */ B({
1777
1777
  __name: "Brand",
1778
1778
  props: {
1779
1779
  collapsed: { type: Boolean, default: !1 },
@@ -1782,11 +1782,11 @@ const ao = /* @__PURE__ */ $("div", { class: "x-mask-sidebar__helper" }, null, -
1782
1782
  url: {}
1783
1783
  },
1784
1784
  setup(a) {
1785
- const e = a, t = ke(), n = () => {
1785
+ const e = a, t = xe(), n = () => {
1786
1786
  e.url && t.push(e.url);
1787
1787
  };
1788
1788
  return (s, l) => (u(), f(o(M), {
1789
- class: X(["x-mask-brand", { "is-collapsed": e.collapsed }]),
1789
+ class: U(["x-mask-brand", { "is-collapsed": e.collapsed }]),
1790
1790
  align: "center"
1791
1791
  }, {
1792
1792
  default: d(() => [
@@ -1798,11 +1798,11 @@ const ao = /* @__PURE__ */ $("div", { class: "x-mask-sidebar__helper" }, null, -
1798
1798
  onClick: n
1799
1799
  }, {
1800
1800
  default: d(() => [
1801
- x(s.$slots, "logo", {}, () => [
1802
- e.logo ? (u(), D("img", {
1801
+ z(s.$slots, "logo", {}, () => [
1802
+ e.logo ? (u(), V("img", {
1803
1803
  key: 0,
1804
1804
  src: e.logo
1805
- }, null, 8, io)) : v("", !0)
1805
+ }, null, 8, mo)) : y("", !0)
1806
1806
  ])
1807
1807
  ]),
1808
1808
  _: 3
@@ -1813,11 +1813,11 @@ const ao = /* @__PURE__ */ $("div", { class: "x-mask-sidebar__helper" }, null, -
1813
1813
  align: "center"
1814
1814
  }, {
1815
1815
  default: d(() => [
1816
- e.title ? (u(), D("span", ro, [
1817
- x(s.$slots, "title", {}, () => [
1816
+ e.title ? (u(), V("span", go, [
1817
+ z(s.$slots, "title", {}, () => [
1818
1818
  N(O(e.title), 1)
1819
1819
  ])
1820
- ])) : v("", !0)
1820
+ ])) : y("", !0)
1821
1821
  ]),
1822
1822
  _: 3
1823
1823
  })
@@ -1825,7 +1825,7 @@ const ao = /* @__PURE__ */ $("div", { class: "x-mask-sidebar__helper" }, null, -
1825
1825
  _: 3
1826
1826
  }, 8, ["class"]));
1827
1827
  }
1828
- }), ge = "__favorites__", he = "__search__", uo = /* @__PURE__ */ B({
1828
+ }), ge = "__favorites__", he = "__search__", yo = /* @__PURE__ */ B({
1829
1829
  __name: "Menu",
1830
1830
  props: {
1831
1831
  collapse: { type: Boolean, default: !1 },
@@ -1838,11 +1838,11 @@ const ao = /* @__PURE__ */ $("div", { class: "x-mask-sidebar__helper" }, null, -
1838
1838
  },
1839
1839
  emits: ["select"],
1840
1840
  setup(a, { emit: e }) {
1841
- const t = a, n = y(() => t.menus || []), s = y(() => String(t.active?.id)), l = y(() => [
1841
+ const t = a, n = v(() => t.menus || []), s = v(() => String(t.active?.id)), l = v(() => [
1842
1842
  {
1843
1843
  id: ge,
1844
1844
  title: "收藏",
1845
- icon: rt,
1845
+ icon: dt,
1846
1846
  children: t.favorites?.length ? t.favorites : [
1847
1847
  {
1848
1848
  id: ge + "empty",
@@ -1851,13 +1851,13 @@ const ao = /* @__PURE__ */ $("div", { class: "x-mask-sidebar__helper" }, null, -
1851
1851
  }
1852
1852
  ]
1853
1853
  }
1854
- ]), i = y(() => {
1854
+ ]), i = v(() => {
1855
1855
  const r = (t.keyword || "").trim(), p = r ? (t.flatMenus || []).filter((m) => m.title?.includes(r)) : [];
1856
1856
  return [
1857
1857
  {
1858
1858
  id: he,
1859
1859
  title: "搜索",
1860
- icon: Be,
1860
+ icon: Ve,
1861
1861
  children: p?.length ? p : [
1862
1862
  {
1863
1863
  id: he + "empty",
@@ -1870,15 +1870,15 @@ const ao = /* @__PURE__ */ $("div", { class: "x-mask-sidebar__helper" }, null, -
1870
1870
  }), c = (r) => {
1871
1871
  e("select", r);
1872
1872
  };
1873
- return (r, p) => (u(), D(q, null, [
1874
- L(b(o(M), {
1873
+ return (r, p) => (u(), V(q, null, [
1874
+ W(b(o(M), {
1875
1875
  class: "x-mask-menu",
1876
1876
  grow: "",
1877
1877
  flex: !1,
1878
1878
  overflow: "auto"
1879
1879
  }, {
1880
1880
  default: d(() => [
1881
- L(b(o(G), {
1881
+ W(b(o(G), {
1882
1882
  subMenu: {
1883
1883
  popperClass: "x-mask-menu-popper",
1884
1884
  teleported: !0,
@@ -1886,45 +1886,45 @@ const ao = /* @__PURE__ */ $("div", { class: "x-mask-sidebar__helper" }, null, -
1886
1886
  hideTimeout: 200
1887
1887
  },
1888
1888
  data: n.value,
1889
- "default-icon": o(ne),
1889
+ "default-icon": o(ae),
1890
1890
  collapse: !0,
1891
1891
  "collapse-transition": !1,
1892
1892
  "default-active": s.value,
1893
1893
  onSelect: c
1894
1894
  }, null, 8, ["data", "default-icon", "default-active"]), [
1895
- [J, t.collapse]
1895
+ [K, t.collapse]
1896
1896
  ]),
1897
- L(b(o(G), {
1897
+ W(b(o(G), {
1898
1898
  subMenu: {
1899
1899
  popperClass: "x-mask-menu-popper",
1900
1900
  teleported: !0
1901
1901
  },
1902
1902
  data: n.value,
1903
- "default-icon": o(ne),
1903
+ "default-icon": o(ae),
1904
1904
  collapse: !1,
1905
1905
  "collapse-transition": !1,
1906
1906
  "default-active": s.value,
1907
1907
  onSelect: c
1908
1908
  }, null, 8, ["data", "default-icon", "default-active"]), [
1909
- [J, !t.collapse]
1909
+ [K, !t.collapse]
1910
1910
  ]),
1911
- n.value.length ? v("", !0) : (u(), f(o(Lt), {
1911
+ n.value.length ? y("", !0) : (u(), f(o(Wt), {
1912
1912
  key: 0,
1913
1913
  description: "暂无菜单数据"
1914
1914
  }))
1915
1915
  ]),
1916
1916
  _: 1
1917
1917
  }, 512), [
1918
- [J, !t.favorite && !t.keyword]
1918
+ [K, !t.favorite && !t.keyword]
1919
1919
  ]),
1920
- L(b(o(M), {
1920
+ W(b(o(M), {
1921
1921
  class: "x-mask-menu",
1922
1922
  grow: "",
1923
1923
  flex: !1,
1924
1924
  overflow: "auto"
1925
1925
  }, {
1926
1926
  default: d(() => [
1927
- L(b(o(G), {
1927
+ W(b(o(G), {
1928
1928
  class: "x-mask-menu__favorites",
1929
1929
  subMenu: {
1930
1930
  popperClass: "x-mask-menu-popper",
@@ -1933,16 +1933,16 @@ const ao = /* @__PURE__ */ $("div", { class: "x-mask-sidebar__helper" }, null, -
1933
1933
  hideTimeout: 200
1934
1934
  },
1935
1935
  data: l.value,
1936
- "default-icon": o(ne),
1936
+ "default-icon": o(ae),
1937
1937
  collapse: !0,
1938
1938
  "collapse-transition": !1,
1939
1939
  "default-active": s.value,
1940
1940
  "default-openeds": [ge],
1941
1941
  onSelect: c
1942
1942
  }, null, 8, ["data", "default-icon", "default-active", "default-openeds"]), [
1943
- [J, t.collapse]
1943
+ [K, t.collapse]
1944
1944
  ]),
1945
- L(b(o(G), {
1945
+ W(b(o(G), {
1946
1946
  class: "x-mask-menu__favorites",
1947
1947
  subMenu: {
1948
1948
  popperClass: "x-mask-menu-popper",
@@ -1951,21 +1951,21 @@ const ao = /* @__PURE__ */ $("div", { class: "x-mask-sidebar__helper" }, null, -
1951
1951
  hideTimeout: 200
1952
1952
  },
1953
1953
  data: l.value,
1954
- "default-icon": o(ne),
1954
+ "default-icon": o(ae),
1955
1955
  collapse: !1,
1956
1956
  "collapse-transition": !1,
1957
1957
  "default-active": s.value,
1958
1958
  "default-openeds": [ge],
1959
1959
  onSelect: c
1960
1960
  }, null, 8, ["data", "default-icon", "default-active", "default-openeds"]), [
1961
- [J, !t.collapse]
1961
+ [K, !t.collapse]
1962
1962
  ])
1963
1963
  ]),
1964
1964
  _: 1
1965
1965
  }, 512), [
1966
- [J, t.favorite && !t.keyword]
1966
+ [K, t.favorite && !t.keyword]
1967
1967
  ]),
1968
- t.keyword ? L((u(), f(o(M), {
1968
+ t.keyword ? W((u(), f(o(M), {
1969
1969
  key: 0,
1970
1970
  class: "x-mask-menu",
1971
1971
  grow: "",
@@ -1973,7 +1973,7 @@ const ao = /* @__PURE__ */ $("div", { class: "x-mask-sidebar__helper" }, null, -
1973
1973
  overflow: "auto"
1974
1974
  }, {
1975
1975
  default: d(() => [
1976
- L(b(o(G), {
1976
+ W(b(o(G), {
1977
1977
  class: "x-mask-menu__search",
1978
1978
  subMenu: {
1979
1979
  popperClass: "x-mask-menu-popper",
@@ -1982,16 +1982,16 @@ const ao = /* @__PURE__ */ $("div", { class: "x-mask-sidebar__helper" }, null, -
1982
1982
  hideTimeout: 200
1983
1983
  },
1984
1984
  data: i.value,
1985
- "default-icon": o(ne),
1985
+ "default-icon": o(ae),
1986
1986
  collapse: !0,
1987
1987
  "collapse-transition": !1,
1988
1988
  "default-active": s.value,
1989
1989
  "default-openeds": [he],
1990
1990
  onSelect: c
1991
1991
  }, null, 8, ["data", "default-icon", "default-active", "default-openeds"]), [
1992
- [J, t.collapse]
1992
+ [K, t.collapse]
1993
1993
  ]),
1994
- L(b(o(G), {
1994
+ W(b(o(G), {
1995
1995
  class: "x-mask-menu__search",
1996
1996
  subMenu: {
1997
1997
  popperClass: "x-mask-menu-popper",
@@ -2000,23 +2000,23 @@ const ao = /* @__PURE__ */ $("div", { class: "x-mask-sidebar__helper" }, null, -
2000
2000
  hideTimeout: 200
2001
2001
  },
2002
2002
  data: i.value,
2003
- "default-icon": o(ne),
2003
+ "default-icon": o(ae),
2004
2004
  collapse: !1,
2005
2005
  "collapse-transition": !1,
2006
2006
  "default-active": s.value,
2007
2007
  "default-openeds": [he],
2008
2008
  onSelect: c
2009
2009
  }, null, 8, ["data", "default-icon", "default-active", "default-openeds"]), [
2010
- [J, !t.collapse]
2010
+ [K, !t.collapse]
2011
2011
  ])
2012
2012
  ]),
2013
2013
  _: 1
2014
2014
  }, 512)), [
2015
- [J, !!t.keyword]
2016
- ]) : v("", !0)
2015
+ [K, !!t.keyword]
2016
+ ]) : y("", !0)
2017
2017
  ], 64));
2018
2018
  }
2019
- }), po = { class: "x-mask-tabs__trigger" }, fo = { key: 1 }, mo = ["onDragstart", "onDragend"], go = { key: 1 }, ho = /* @__PURE__ */ B({
2019
+ }), vo = { class: "x-mask-tabs__trigger" }, bo = { key: 1 }, _o = ["onDragstart", "onDragend"], wo = { key: 1 }, ko = /* @__PURE__ */ B({
2020
2020
  __name: "Tabs",
2021
2021
  props: {
2022
2022
  tabs: {},
@@ -2033,14 +2033,14 @@ const ao = /* @__PURE__ */ $("div", { class: "x-mask-sidebar__helper" }, null, -
2033
2033
  );
2034
2034
  return [
2035
2035
  {
2036
- icon: en,
2036
+ icon: an,
2037
2037
  label: "刷新",
2038
2038
  name: "refresh",
2039
2039
  value: p
2040
2040
  },
2041
2041
  "|",
2042
2042
  {
2043
- icon: m ? lt : rt,
2043
+ icon: m ? ct : dt,
2044
2044
  label: "收藏",
2045
2045
  name: "favorite",
2046
2046
  value: p.menu,
@@ -2048,7 +2048,7 @@ const ao = /* @__PURE__ */ $("div", { class: "x-mask-sidebar__helper" }, null, -
2048
2048
  },
2049
2049
  "|",
2050
2050
  {
2051
- icon: tn,
2051
+ icon: sn,
2052
2052
  label: "弹窗",
2053
2053
  name: "dialog",
2054
2054
  value: p
@@ -2060,7 +2060,7 @@ const ao = /* @__PURE__ */ $("div", { class: "x-mask-sidebar__helper" }, null, -
2060
2060
  e("click", t.home);
2061
2061
  return;
2062
2062
  }
2063
- const h = t.tabs.find((z) => z.id === m);
2063
+ const h = t.tabs.find((k) => k.id === m);
2064
2064
  h && e("click", h);
2065
2065
  }, l = (p) => {
2066
2066
  const m = t.tabs.find((h) => h.id === p);
@@ -2092,33 +2092,33 @@ const ao = /* @__PURE__ */ $("div", { class: "x-mask-sidebar__helper" }, null, -
2092
2092
  direction: "column"
2093
2093
  }, {
2094
2094
  default: d(() => [
2095
- b(o(Wt), {
2095
+ b(o(Qt), {
2096
2096
  type: "card",
2097
2097
  "model-value": t.value,
2098
2098
  onTabRemove: l,
2099
2099
  onTabClick: s
2100
2100
  }, {
2101
2101
  default: d(() => [
2102
- t.home ? (u(), f(o(He), {
2102
+ t.home ? (u(), f(o(Le), {
2103
2103
  key: 0,
2104
2104
  name: t.home.id
2105
2105
  }, {
2106
2106
  label: d(() => [
2107
- $("div", po, [
2108
- t.home.icon ? (u(), f(Y(o(_e)(t.home.icon)), { key: 0 })) : v("", !0),
2109
- t.home.title ? (u(), D("span", fo, O(t.home.title), 1)) : v("", !0)
2107
+ $("div", vo, [
2108
+ t.home.icon ? (u(), f(Z(o(we)(t.home.icon)), { key: 0 })) : y("", !0),
2109
+ t.home.title ? (u(), V("span", bo, O(t.home.title), 1)) : y("", !0)
2110
2110
  ])
2111
2111
  ]),
2112
2112
  _: 1
2113
- }, 8, ["name"])) : v("", !0),
2114
- (u(!0), D(q, null, we(t.tabs, (h) => (u(), f(o(He), {
2113
+ }, 8, ["name"])) : y("", !0),
2114
+ (u(!0), V(q, null, ke(t.tabs, (h) => (u(), f(o(Le), {
2115
2115
  key: h.id,
2116
2116
  name: h.id,
2117
2117
  lazy: "",
2118
2118
  closable: ""
2119
2119
  }, {
2120
2120
  label: d(() => [
2121
- b(o(at), {
2121
+ b(o(it), {
2122
2122
  "open-delay": 500,
2123
2123
  placement: "bottom",
2124
2124
  trigger: "hover",
@@ -2129,15 +2129,15 @@ const ao = /* @__PURE__ */ $("div", { class: "x-mask-sidebar__helper" }, null, -
2129
2129
  $("div", {
2130
2130
  class: "x-mask-tabs__trigger",
2131
2131
  draggable: "true",
2132
- onDragstart: (z) => c(h, z),
2133
- onDragend: (z) => r(h, z)
2132
+ onDragstart: (k) => c(h, k),
2133
+ onDragend: (k) => r(h, k)
2134
2134
  }, [
2135
- h.icon ? (u(), f(Y(o(_e)(h.icon)), { key: 0 })) : v("", !0),
2136
- h.title ? (u(), D("span", go, O(h.title), 1)) : v("", !0)
2137
- ], 40, mo)
2135
+ h.icon ? (u(), f(Z(o(we)(h.icon)), { key: 0 })) : y("", !0),
2136
+ h.title ? (u(), V("span", wo, O(h.title), 1)) : y("", !0)
2137
+ ], 40, _o)
2138
2138
  ]),
2139
2139
  default: d(() => [
2140
- b(o(Fe), {
2140
+ b(o(je), {
2141
2141
  items: n(h),
2142
2142
  mode: "text",
2143
2143
  size: "small",
@@ -2157,20 +2157,20 @@ const ao = /* @__PURE__ */ $("div", { class: "x-mask-sidebar__helper" }, null, -
2157
2157
  _: 1
2158
2158
  }, 512));
2159
2159
  }
2160
- }), vo = /* @__PURE__ */ B({
2160
+ }), xo = /* @__PURE__ */ B({
2161
2161
  __name: "ThemeSwitch",
2162
2162
  setup(a) {
2163
- const e = gn();
2164
- return (t, n) => (u(), f(o(ot), {
2163
+ const e = _n();
2164
+ return (t, n) => (u(), f(o(lt), {
2165
2165
  class: "x-mask-theme-switch",
2166
2166
  modelValue: o(e),
2167
- "onUpdate:modelValue": n[0] || (n[0] = (s) => ve(e) ? e.value = s : null),
2167
+ "onUpdate:modelValue": n[0] || (n[0] = (s) => ye(e) ? e.value = s : null),
2168
2168
  size: "default",
2169
- "active-action-icon": o(nn),
2170
- "inactive-action-icon": o(on)
2169
+ "active-action-icon": o(ln),
2170
+ "inactive-action-icon": o(rn)
2171
2171
  }, null, 8, ["modelValue", "active-action-icon", "inactive-action-icon"]));
2172
2172
  }
2173
- }), yo = { class: "x-mask-toolbar__menu-item" }, bo = /* @__PURE__ */ B({
2173
+ }), zo = { class: "x-mask-toolbar__menu-item" }, So = /* @__PURE__ */ B({
2174
2174
  __name: "Toolbar",
2175
2175
  props: {
2176
2176
  tabs: { default: () => [] },
@@ -2186,7 +2186,7 @@ const ao = /* @__PURE__ */ $("div", { class: "x-mask-sidebar__helper" }, null, -
2186
2186
  "actionCommand"
2187
2187
  ],
2188
2188
  setup(a, { emit: e }) {
2189
- const t = a, n = y(() => {
2189
+ const t = a, n = v(() => {
2190
2190
  const r = t.tabs.map((p, m) => ({
2191
2191
  divided: m === 0,
2192
2192
  label: p.title,
@@ -2227,8 +2227,8 @@ const ao = /* @__PURE__ */ $("div", { class: "x-mask-sidebar__helper" }, null, -
2227
2227
  align: "center"
2228
2228
  }, {
2229
2229
  default: d(() => [
2230
- b(o(W), {
2231
- icon: o(an),
2230
+ b(o(Q), {
2231
+ icon: o(cn),
2232
2232
  menus: n.value,
2233
2233
  dropdown: { size: "small" },
2234
2234
  mode: "icon",
@@ -2237,19 +2237,19 @@ const ao = /* @__PURE__ */ $("div", { class: "x-mask-sidebar__helper" }, null, -
2237
2237
  onCommand: l
2238
2238
  }, {
2239
2239
  item: d(({ item: m }) => [
2240
- $("span", yo, [
2240
+ $("span", zo, [
2241
2241
  N(O(m.label) + " ", 1),
2242
- ["other", "all"].includes(m.command) ? v("", !0) : (u(), f(o(ae), {
2242
+ ["other", "all"].includes(m.command) ? y("", !0) : (u(), f(o(te), {
2243
2243
  key: 0,
2244
- onClick: Et((h) => s(m), ["stop"]),
2245
- icon: o(it)
2244
+ onClick: At((h) => s(m), ["stop"]),
2245
+ icon: o(ut)
2246
2246
  }, null, 8, ["onClick", "icon"]))
2247
2247
  ])
2248
2248
  ]),
2249
2249
  _: 1
2250
2250
  }, 8, ["icon", "menus"]),
2251
2251
  b(o(ue), { direction: "vertical" }),
2252
- t.actions ? (u(), f(o(Fe), {
2252
+ t.actions ? (u(), f(o(je), {
2253
2253
  key: 0,
2254
2254
  circle: "",
2255
2255
  mode: "icon",
@@ -2258,49 +2258,49 @@ const ao = /* @__PURE__ */ $("div", { class: "x-mask-sidebar__helper" }, null, -
2258
2258
  items: r.actions,
2259
2259
  onClick: i,
2260
2260
  onCommand: c
2261
- }, null, 8, ["items"])) : v("", !0),
2261
+ }, null, 8, ["items"])) : y("", !0),
2262
2262
  t.actions ? (u(), f(o(ue), {
2263
2263
  key: 1,
2264
2264
  direction: "vertical"
2265
- })) : v("", !0),
2266
- t.theme ? (u(), f(vo, { key: 2 })) : v("", !0),
2265
+ })) : y("", !0),
2266
+ t.theme ? (u(), f(xo, { key: 2 })) : y("", !0),
2267
2267
  t.theme ? (u(), f(o(ue), {
2268
2268
  key: 3,
2269
2269
  direction: "vertical"
2270
- })) : v("", !0),
2271
- x(r.$slots, "default")
2270
+ })) : y("", !0),
2271
+ z(r.$slots, "default")
2272
2272
  ]),
2273
2273
  _: 3
2274
2274
  }));
2275
2275
  }
2276
- }), _o = /* @__PURE__ */ B({
2276
+ }), Co = /* @__PURE__ */ B({
2277
2277
  __name: "Avatar",
2278
2278
  props: {
2279
2279
  avatar: {}
2280
2280
  },
2281
2281
  setup(a) {
2282
2282
  const e = a;
2283
- return (t, n) => (u(), f(o(at), {
2283
+ return (t, n) => (u(), f(o(it), {
2284
2284
  width: 200,
2285
2285
  "popper-class": "x-mask-avatar__popper",
2286
2286
  disabled: !t.$slots.default
2287
2287
  }, {
2288
2288
  reference: d(() => [
2289
- b(o(Qt), {
2289
+ b(o(Zt), {
2290
2290
  class: "x-mask-avatar",
2291
2291
  shape: "circle",
2292
- icon: o(sn),
2292
+ icon: o(un),
2293
2293
  src: e.avatar,
2294
2294
  size: 26
2295
2295
  }, null, 8, ["icon", "src"])
2296
2296
  ]),
2297
2297
  default: d(() => [
2298
- t.$slots.default ? x(t.$slots, "default", { key: 0 }) : v("", !0)
2298
+ t.$slots.default ? z(t.$slots, "default", { key: 0 }) : y("", !0)
2299
2299
  ]),
2300
2300
  _: 3
2301
2301
  }, 8, ["disabled"]));
2302
2302
  }
2303
- }), Ke = /* @__PURE__ */ B({
2303
+ }), Ye = /* @__PURE__ */ B({
2304
2304
  __name: "Content",
2305
2305
  props: {
2306
2306
  createView: { type: Function },
@@ -2315,15 +2315,15 @@ const ao = /* @__PURE__ */ $("div", { class: "x-mask-sidebar__helper" }, null, -
2315
2315
  padding: !1
2316
2316
  }, {
2317
2317
  default: d(() => [
2318
- x(t.$slots, "default"),
2319
- b(o(ct), null, {
2318
+ z(t.$slots, "default"),
2319
+ b(o(pt), null, {
2320
2320
  default: d(({ Component: s, route: l }) => [
2321
- (u(), f(It, {
2321
+ (u(), f(Dt, {
2322
2322
  exclude: e.exclude
2323
2323
  }, [
2324
- s ? (u(), f(Y(e.createView(s, l)), {
2324
+ s ? (u(), f(Z(e.createView(s, l)), {
2325
2325
  key: l.fullPath
2326
- })) : v("", !0)
2326
+ })) : y("", !0)
2327
2327
  ], 1032, ["exclude"]))
2328
2328
  ]),
2329
2329
  _: 1
@@ -2332,13 +2332,13 @@ const ao = /* @__PURE__ */ $("div", { class: "x-mask-sidebar__helper" }, null, -
2332
2332
  _: 3
2333
2333
  }));
2334
2334
  }
2335
- }), wo = 140, ko = {
2335
+ }), To = 140, Mo = {
2336
2336
  /**
2337
2337
  * 系统logo
2338
2338
  */
2339
2339
  logo: {
2340
2340
  type: String,
2341
- default: gt
2341
+ default: vt
2342
2342
  },
2343
2343
  /**
2344
2344
  * 系统标题
@@ -2415,8 +2415,8 @@ const ao = /* @__PURE__ */ $("div", { class: "x-mask-sidebar__helper" }, null, -
2415
2415
  removeFavorite: {
2416
2416
  type: Function
2417
2417
  }
2418
- }, kt = Symbol(), xt = Symbol();
2419
- function xo(a) {
2418
+ }, St = Symbol(), Ct = Symbol();
2419
+ function Eo(a) {
2420
2420
  const e = R(!1), t = R(""), n = R(!1);
2421
2421
  return {
2422
2422
  collapsed: e,
@@ -2424,43 +2424,43 @@ function xo(a) {
2424
2424
  favorite: n
2425
2425
  };
2426
2426
  }
2427
- function zo(a) {
2428
- const e = ft();
2429
- return y(() => {
2427
+ function Io(a) {
2428
+ const e = ht();
2429
+ return v(() => {
2430
2430
  const t = a.home;
2431
2431
  return Object.assign(
2432
- { id: e, url: "/", name: "MaskHome", icon: ln, closable: !1 },
2432
+ { id: e, url: "/", name: "MaskHome", icon: dn, closable: !1 },
2433
2433
  typeof t == "string" ? { url: t } : t || {}
2434
2434
  );
2435
2435
  });
2436
2436
  }
2437
- function zt(a, e) {
2437
+ function Tt(a, e) {
2438
2438
  let t = [];
2439
2439
  return a.forEach((n) => {
2440
- n = e ? e(n) : n, n.children ? t = t.concat(zt(n.children, e)) : t.push(n);
2440
+ n = e ? e(n) : n, n.children ? t = t.concat(Tt(n.children, e)) : t.push(n);
2441
2441
  }), t;
2442
2442
  }
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) => {
2445
- const _ = typeof k == "object" ? k.id : k, E = i.value.get(_);
2443
+ function Bo(a, e) {
2444
+ const t = xe(), n = Ue([]), s = Ue([]), l = v(() => Tt(n.value, a.menuAdapter)), i = v(() => wn(l.value, "id")), c = R(null), r = (_) => {
2445
+ const w = typeof _ == "object" ? _.id : _, E = i.value.get(w);
2446
2446
  if (!E) {
2447
- console.warn("找不到菜单", k);
2447
+ console.warn("找不到菜单", _);
2448
2448
  return;
2449
2449
  }
2450
- const { type: A = "route", url: g, title: I, icon: C } = E;
2450
+ const { type: D = "route", url: g, title: I, icon: C } = E;
2451
2451
  if (!g) {
2452
2452
  c.value = E, e("select", E);
2453
2453
  return;
2454
2454
  }
2455
- if (A === "route") {
2456
- vn(g) || g.startsWith("//") ? window.open(g) : (c.value = E, t.push(g).catch((F) => F));
2455
+ if (D === "route") {
2456
+ kn(g) || g.startsWith("//") ? window.open(g) : (c.value = E, t.push(g).catch((F) => F));
2457
2457
  return;
2458
2458
  }
2459
- if (A === "window") {
2459
+ if (D === "window") {
2460
2460
  window.open(g);
2461
2461
  return;
2462
2462
  }
2463
- A === "dialog" && Oe({
2463
+ D === "dialog" && Ne({
2464
2464
  resizable: !0,
2465
2465
  bodyPadding: !1,
2466
2466
  width: "80%",
@@ -2471,134 +2471,134 @@ function So(a, e) {
2471
2471
  });
2472
2472
  }, p = async () => {
2473
2473
  n.value = typeof a.menus == "function" ? await a.menus() || [] : a.menus ?? [], s.value = typeof a.favorites == "function" ? await a.favorites() || [] : a.favorites ?? [];
2474
- }, m = (k) => {
2475
- s.value = [k, ...s.value], a.addFavorite && a.addFavorite(k);
2476
- }, h = (k) => {
2477
- s.value = s.value.filter((_) => _.id !== k.id), a.removeFavorite && a.removeFavorite(k);
2478
- }, z = (k) => !!s.value.find((_) => _ === k || _.id === k.id), P = (k) => {
2479
- z(k) ? h(k) : m(k);
2474
+ }, m = (_) => {
2475
+ s.value = [_, ...s.value], a.addFavorite && a.addFavorite(_);
2476
+ }, h = (_) => {
2477
+ s.value = s.value.filter((w) => w.id !== _.id), a.removeFavorite && a.removeFavorite(_);
2478
+ }, k = (_) => !!s.value.find((w) => w === _ || w.id === _.id), A = (_) => {
2479
+ k(_) ? h(_) : m(_);
2480
2480
  };
2481
- return et(p), {
2481
+ return ot(p), {
2482
2482
  menus: n,
2483
2483
  favorites: s,
2484
2484
  flatMenus: l,
2485
2485
  active: c,
2486
2486
  select: r,
2487
- toggleFavorite: P
2487
+ toggleFavorite: A
2488
2488
  };
2489
2489
  }
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(
2492
- () => r.value.slice(0, h.value).filter((w) => !w.dialog)
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) => {
2494
- i.push(w.url).catch((S) => S);
2495
- }, C = (w) => {
2496
- A.value = w.id, l.fullPath !== w.url && I(w);
2490
+ function Ao(a, e, t, n, s) {
2491
+ const l = Fe(), i = xe(), c = {}, r = R([]), p = R(), { width: m } = ft(p), h = v(() => Math.floor(m.value / To)), k = v(
2492
+ () => r.value.slice(0, h.value).filter((x) => !x.dialog)
2493
+ ), A = v(() => r.value.slice(h.value)), _ = (x) => t.value.find((S) => S.url === x), w = (x) => l.fullPath === x.url, E = (x) => s.value.id === x ? s.value : r.value.find((S) => S.id === x), D = R(""), g = v(() => E(D.value)), I = (x) => {
2494
+ i.push(x.url).catch((S) => S);
2495
+ }, C = (x) => {
2496
+ D.value = x.id, l.fullPath !== x.url && I(x);
2497
2497
  }, F = () => {
2498
2498
  I(s.value);
2499
- }, U = (w) => {
2500
- const S = r.value.find((T) => T.url === w.url || T.id === w.id);
2501
- S ? C(S) : (r.value.unshift(w), C(w));
2502
- }, ee = async (w) => {
2503
- const { url: S = l.fullPath, icon: T, title: ze = "新建标签页" } = w || {}, fe = c[S], Se = ft(), Ce = mt(S);
2499
+ }, H = (x) => {
2500
+ const S = r.value.find((T) => T.url === x.url || T.id === x.id);
2501
+ S ? C(S) : (r.value.unshift(x), C(x));
2502
+ }, ne = async (x) => {
2503
+ const { url: S = l.fullPath, icon: T, title: Se = "新建标签页" } = x || {}, fe = c[S], Ce = ht(), Te = yt(S);
2504
2504
  return {
2505
- id: Se,
2506
- name: Ce,
2505
+ id: Ce,
2506
+ name: Te,
2507
2507
  url: S,
2508
2508
  icon: T,
2509
- title: ze,
2509
+ title: Se,
2510
2510
  closable: !0,
2511
- menu: w,
2511
+ menu: x,
2512
2512
  ...fe ? await fe() : {}
2513
2513
  };
2514
- }, te = async (w) => {
2515
- if (await Te.confirm("是否关闭页签", "提示", {
2514
+ }, oe = async (x) => {
2515
+ if (await Me.confirm("是否关闭页签", "提示", {
2516
2516
  type: "warning"
2517
2517
  }).catch((T) => !1)) {
2518
- if (r.value = r.value.filter((T) => T.id !== w.id), A.value === w.id) {
2518
+ if (r.value = r.value.filter((T) => T.id !== x.id), D.value === x.id) {
2519
2519
  const T = r.value[0];
2520
2520
  I(T || s.value);
2521
2521
  }
2522
- return w;
2522
+ return x;
2523
2523
  }
2524
- }, j = (w) => {
2525
- const S = r.value.findIndex((T) => T.id === w.id);
2524
+ }, j = (x) => {
2525
+ const S = r.value.findIndex((T) => T.id === x.id);
2526
2526
  if (S >= 0) {
2527
2527
  const T = r.value[S];
2528
- r.value.splice(S, 1, Object.assign(T, w));
2528
+ r.value.splice(S, 1, Object.assign(T, x));
2529
2529
  }
2530
- }, H = async () => {
2531
- if (!await Te.confirm("是否关闭全部页签", "提示", {
2530
+ }, L = async () => {
2531
+ if (!await Me.confirm("是否关闭全部页签", "提示", {
2532
2532
  type: "warning"
2533
2533
  }).catch((T) => !1))
2534
2534
  return;
2535
2535
  const S = r.value;
2536
2536
  return r.value = [], C(s.value), S;
2537
2537
  }, se = async () => {
2538
- if (!await Te.confirm("是否关闭其他页签", "提示", {
2538
+ if (!await Me.confirm("是否关闭其他页签", "提示", {
2539
2539
  type: "warning"
2540
2540
  }).catch((T) => !1))
2541
2541
  return;
2542
- const S = r.value.filter((T) => T.id !== A.value);
2543
- return r.value = r.value.filter((T) => T.id === A.value), S;
2544
- }, xe = (w) => {
2545
- const S = r.value.filter((T) => T.id !== w.id);
2546
- r.value = [w, ...S], C(w);
2542
+ const S = r.value.filter((T) => T.id !== D.value);
2543
+ return r.value = r.value.filter((T) => T.id === D.value), S;
2544
+ }, ze = (x) => {
2545
+ const S = r.value.filter((T) => T.id !== x.id);
2546
+ r.value = [x, ...S], C(x);
2547
2547
  }, re = async () => {
2548
2548
  await le();
2549
- const w = s.value.url === l.fullPath, S = k(l.fullPath);
2550
- if (w)
2551
- A.value = s.value.id;
2549
+ const x = s.value.url === l.fullPath, S = _(l.fullPath);
2550
+ if (x)
2551
+ D.value = s.value.id;
2552
2552
  else {
2553
- const T = await ee(S);
2554
- U(T);
2553
+ const T = await ne(S);
2554
+ H(T);
2555
2555
  }
2556
2556
  await le(), n.value = S || null;
2557
2557
  };
2558
- return oe(t, re), oe(l, re, { immediate: !0 }), Ve(kt, c), {
2558
+ return ee(t, re), ee(l, re, { immediate: !0 }), Re(St, c), {
2559
2559
  tabRef: p,
2560
2560
  tabs: r,
2561
- showTabs: z,
2561
+ showTabs: k,
2562
2562
  currentTab: g,
2563
2563
  changeTab: I,
2564
- removeTab: te,
2564
+ removeTab: oe,
2565
2565
  updateTab: j,
2566
- addTab: U,
2566
+ addTab: H,
2567
2567
  home: s,
2568
- tabValue: A,
2569
- isCurrentTab: _,
2568
+ tabValue: D,
2569
+ isCurrentTab: w,
2570
2570
  activeHome: F,
2571
2571
  activeTab: C,
2572
- dropdownTabs: P,
2573
- removeAllTabs: H,
2572
+ dropdownTabs: A,
2573
+ removeAllTabs: L,
2574
2574
  removeOtherTabs: se,
2575
- moveToShow: xe
2575
+ moveToShow: ze
2576
2576
  };
2577
2577
  }
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
+ function Do(a) {
2579
+ const e = /* @__PURE__ */ new Map(), t = R([]), n = nt({}), s = {}, { updateTab: l, isCurrentTab: i, activeHome: c, tabs: r } = a, p = (g, I) => {
2580
2580
  const C = I.fullPath;
2581
2581
  if (e.has(C))
2582
2582
  return e.get(C);
2583
2583
  {
2584
- const F = mt(C), U = {
2584
+ const F = yt(C), H = {
2585
2585
  name: F,
2586
2586
  setup() {
2587
- const ee = y(() => n[C] || document.body), te = y(() => !n[C]), j = y(() => !t.value.includes(F));
2588
- return Ve(
2589
- rn,
2590
- Bt({ ...I })
2591
- ), () => j.value ? K(
2592
- tt,
2587
+ const ne = v(() => n[C] || document.body), oe = v(() => !n[C]), j = v(() => !t.value.includes(F));
2588
+ return Re(
2589
+ fn,
2590
+ Vt({ ...I })
2591
+ ), () => j.value ? Y(
2592
+ at,
2593
2593
  {
2594
- to: ee.value,
2595
- disabled: te.value
2594
+ to: ne.value,
2595
+ disabled: oe.value
2596
2596
  },
2597
- [K(g)]
2597
+ [Y(g)]
2598
2598
  ) : null;
2599
2599
  }
2600
2600
  };
2601
- return e.set(C, U), U;
2601
+ return e.set(C, H), H;
2602
2602
  }
2603
2603
  }, m = (g) => {
2604
2604
  g.dialog = void 0, delete n[g.url];
@@ -2608,7 +2608,7 @@ function To(a) {
2608
2608
  g.forEach((I) => {
2609
2609
  m(I);
2610
2610
  });
2611
- }, z = async (g) => {
2611
+ }, k = async (g) => {
2612
2612
  g.dialog = {
2613
2613
  ...g.dialog,
2614
2614
  onMinimized: () => {
@@ -2618,7 +2618,7 @@ function To(a) {
2618
2618
  m(g), r.value = r.value.filter((C) => C.id !== g.id);
2619
2619
  }
2620
2620
  }, l(g);
2621
- const I = Oe({
2621
+ const I = Ne({
2622
2622
  title: g.title,
2623
2623
  icon: g.icon,
2624
2624
  modal: !1,
@@ -2630,93 +2630,93 @@ function To(a) {
2630
2630
  }
2631
2631
  });
2632
2632
  return await le(), i(g) && c(), s[g.id] = I, I;
2633
- }, P = async (g) => {
2633
+ }, A = async (g) => {
2634
2634
  t.value = [g.name], await le(), t.value = [];
2635
- }, k = async (g) => {
2635
+ }, _ = async (g) => {
2636
2636
  t.value = g.map((I) => I.name), await le(), t.value = [];
2637
- }, _ = (g) => (g.preventDefault(), !1), E = (g) => {
2637
+ }, w = (g) => (g.preventDefault(), !1), E = (g) => {
2638
2638
  if (g.dataTransfer) {
2639
2639
  const I = g.dataTransfer.getData("tab"), C = r.value.find((F) => F.id === I);
2640
2640
  if (C) {
2641
- const { clientX: F, clientY: U } = g;
2641
+ const { clientX: F, clientY: H } = g;
2642
2642
  C.dialog = {
2643
2643
  left: F,
2644
- top: U
2645
- }, z(C);
2644
+ top: H
2645
+ }, k(C);
2646
2646
  }
2647
2647
  }
2648
- }, A = (g) => !!n[g];
2649
- return be(document, "dragover", _), be(document, "drop", E), {
2648
+ }, D = (g) => !!n[g];
2649
+ return _e(document, "dragover", w), _e(document, "drop", E), {
2650
2650
  createView: p,
2651
- openDialog: z,
2652
- refresh: P,
2651
+ openDialog: k,
2652
+ refresh: A,
2653
2653
  exclude: t,
2654
- cleanCache: k,
2655
- hasDialog: A,
2654
+ cleanCache: _,
2655
+ hasDialog: D,
2656
2656
  closeDialog: m,
2657
2657
  closeDialogs: h
2658
2658
  };
2659
2659
  }
2660
- const Mo = /* @__PURE__ */ B({
2660
+ const Vo = /* @__PURE__ */ B({
2661
2661
  name: "XMask",
2662
2662
  __name: "Mask",
2663
- props: ko,
2663
+ props: Mo,
2664
2664
  emits: ["select", "actionClick", "actionCommand"],
2665
2665
  setup(a, { emit: e }) {
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,
2668
- showTabs: k,
2669
- currentTab: _,
2666
+ const t = a, n = Io(t), { collapsed: s, keyword: l, favorite: i } = Eo(), { menus: c, favorites: r, flatMenus: p, active: m, select: h, toggleFavorite: k } = Bo(t, e), {
2667
+ tabRef: A,
2668
+ showTabs: _,
2669
+ currentTab: w,
2670
2670
  changeTab: E,
2671
- removeTab: A,
2671
+ removeTab: D,
2672
2672
  tabs: g,
2673
2673
  updateTab: I,
2674
2674
  isCurrentTab: C,
2675
2675
  activeHome: F,
2676
- removeAllTabs: U,
2677
- removeOtherTabs: ee,
2678
- dropdownTabs: te,
2676
+ removeAllTabs: H,
2677
+ removeOtherTabs: ne,
2678
+ dropdownTabs: oe,
2679
2679
  moveToShow: j
2680
- } = Co(t, e, p, m, n), { createView: H, openDialog: se, refresh: xe, exclude: re, cleanCache: w, closeDialogs: S } = To({
2680
+ } = Ao(t, e, p, m, n), { createView: L, openDialog: se, refresh: ze, exclude: re, cleanCache: x, closeDialogs: S } = Do({
2681
2681
  tabs: g,
2682
2682
  updateTab: I,
2683
2683
  isCurrentTab: C,
2684
2684
  activeHome: F
2685
- }), T = async (V) => {
2686
- await A(V) && await w([V]);
2687
- }, ze = async () => {
2688
- const V = await U();
2689
- V && (S(V), await w(V));
2685
+ }), T = async (P) => {
2686
+ await D(P) && await x([P]);
2687
+ }, Se = async () => {
2688
+ const P = await H();
2689
+ P && (S(P), await x(P));
2690
2690
  }, fe = async () => {
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);
2691
+ const P = await ne();
2692
+ P && (S(P), await x(P));
2693
+ }, Ce = (P) => {
2694
+ e("actionClick", P);
2695
+ }, Te = (P, J) => {
2696
+ e("actionCommand", P, J);
2697
2697
  };
2698
- return Ve(xt, {
2698
+ return Re(Ct, {
2699
2699
  tabs: g,
2700
2700
  flatMenus: p,
2701
2701
  favorites: r,
2702
2702
  updateTab: I,
2703
2703
  active: m,
2704
- currentTab: _
2705
- }), (V, Z) => (u(), f(o(M), { class: "x-mask" }, {
2704
+ currentTab: w
2705
+ }), (P, J) => (u(), f(o(M), { class: "x-mask" }, {
2706
2706
  default: d(() => [
2707
- t.disabled ? (u(), f(Ke, {
2707
+ t.disabled ? (u(), f(Ye, {
2708
2708
  key: 1,
2709
- createView: o(H),
2709
+ createView: o(L),
2710
2710
  exclude: o(re)
2711
2711
  }, {
2712
2712
  default: d(() => [
2713
- V.$slots.default ? x(V.$slots, "default", { key: 0 }) : v("", !0)
2713
+ P.$slots.default ? z(P.$slots, "default", { key: 0 }) : y("", !0)
2714
2714
  ]),
2715
2715
  _: 3
2716
- }, 8, ["createView", "exclude"])) : (u(), D(q, { key: 0 }, [
2717
- b(so, { collapsed: o(s) }, {
2716
+ }, 8, ["createView", "exclude"])) : (u(), V(q, { key: 0 }, [
2717
+ b(po, { collapsed: o(s) }, {
2718
2718
  brand: d(() => [
2719
- b(co, {
2719
+ b(ho, {
2720
2720
  logo: t.logo,
2721
2721
  title: t.title,
2722
2722
  url: o(n).url,
@@ -2724,15 +2724,15 @@ const Mo = /* @__PURE__ */ B({
2724
2724
  }, null, 8, ["logo", "title", "url", "collapsed"])
2725
2725
  ]),
2726
2726
  default: d(() => [
2727
- b(lo, {
2727
+ b(fo, {
2728
2728
  collasped: o(s),
2729
- "onUpdate:collasped": Z[0] || (Z[0] = (ce) => ve(s) ? s.value = ce : null),
2729
+ "onUpdate:collasped": J[0] || (J[0] = (ce) => ye(s) ? s.value = ce : null),
2730
2730
  favorite: o(i),
2731
- "onUpdate:favorite": Z[1] || (Z[1] = (ce) => ve(i) ? i.value = ce : null),
2731
+ "onUpdate:favorite": J[1] || (J[1] = (ce) => ye(i) ? i.value = ce : null),
2732
2732
  keyword: o(l),
2733
- "onUpdate:keyword": Z[2] || (Z[2] = (ce) => ve(l) ? l.value = ce : null)
2733
+ "onUpdate:keyword": J[2] || (J[2] = (ce) => ye(l) ? l.value = ce : null)
2734
2734
  }, null, 8, ["collasped", "favorite", "keyword"]),
2735
- b(uo, {
2735
+ b(yo, {
2736
2736
  collapse: o(s),
2737
2737
  keyword: o(l),
2738
2738
  favorite: o(i),
@@ -2759,38 +2759,38 @@ const Mo = /* @__PURE__ */ B({
2759
2759
  align: "center"
2760
2760
  }, {
2761
2761
  default: d(() => [
2762
- b(ho, {
2762
+ b(ko, {
2763
2763
  ref_key: "tabRef",
2764
- ref: P,
2764
+ ref: A,
2765
2765
  favorites: o(r),
2766
- tabs: o(k),
2766
+ tabs: o(_),
2767
2767
  home: o(n),
2768
- value: o(_)?.id,
2768
+ value: o(w)?.id,
2769
2769
  onClick: o(E),
2770
- onToggleFavorite: o(z),
2770
+ onToggleFavorite: o(k),
2771
2771
  onRemove: T,
2772
2772
  onDialog: o(se),
2773
- onRefresh: o(xe)
2773
+ onRefresh: o(ze)
2774
2774
  }, null, 8, ["favorites", "tabs", "home", "value", "onClick", "onToggleFavorite", "onDialog", "onRefresh"]),
2775
- b(bo, {
2776
- tabs: o(te),
2775
+ b(So, {
2776
+ tabs: o(oe),
2777
2777
  actions: t.actions,
2778
2778
  theme: t.theme,
2779
2779
  onCloseOtherTabs: fe,
2780
- onCloseAllTabs: ze,
2780
+ onCloseAllTabs: Se,
2781
2781
  onCloseTab: T,
2782
2782
  onClickTab: o(j),
2783
- onActionClick: Se,
2784
- onActionCommand: Ce
2783
+ onActionClick: Ce,
2784
+ onActionCommand: Te
2785
2785
  }, {
2786
2786
  default: d(() => [
2787
- b(_o, {
2787
+ b(Co, {
2788
2788
  avatar: t.avatar
2789
- }, nt({ _: 2 }, [
2790
- V.$slots.user ? {
2789
+ }, $e({ _: 2 }, [
2790
+ P.$slots.user ? {
2791
2791
  name: "default",
2792
2792
  fn: d(() => [
2793
- x(V.$slots, "user")
2793
+ z(P.$slots, "user")
2794
2794
  ]),
2795
2795
  key: "0"
2796
2796
  } : void 0
@@ -2801,12 +2801,12 @@ const Mo = /* @__PURE__ */ B({
2801
2801
  ]),
2802
2802
  _: 3
2803
2803
  }),
2804
- b(Ke, {
2805
- createView: o(H),
2804
+ b(Ye, {
2805
+ createView: o(L),
2806
2806
  exclude: o(re)
2807
2807
  }, {
2808
2808
  default: d(() => [
2809
- V.$slots.default ? x(V.$slots, "default", { key: 0 }) : v("", !0)
2809
+ P.$slots.default ? z(P.$slots, "default", { key: 0 }) : y("", !0)
2810
2810
  ]),
2811
2811
  _: 3
2812
2812
  }, 8, ["createView", "exclude"])
@@ -2819,100 +2819,240 @@ const Mo = /* @__PURE__ */ B({
2819
2819
  }));
2820
2820
  }
2821
2821
  });
2822
- function Xo(a = {}) {
2823
- const e = $e(), t = Xe(kt, null), n = Xe(xt, null);
2822
+ function Yo(a = {}) {
2823
+ const e = Fe(), t = Be(St, null), n = Be(Ct, null);
2824
2824
  if (t) {
2825
2825
  const l = typeof a == "function" ? a : async () => a;
2826
2826
  t[e.fullPath] = l;
2827
2827
  }
2828
2828
  return {
2829
- tab: y(() => n ? n.tabs.value.find((l) => l.url === e.fullPath) : null),
2829
+ tab: v(() => n ? n.tabs.value.find((l) => l.url === e.fullPath) : null),
2830
2830
  mask: n
2831
2831
  };
2832
2832
  }
2833
- const Eo = /* @__PURE__ */ B({
2834
- __name: "Field",
2833
+ const Po = /* @__PURE__ */ B({
2834
+ __name: "SelectEditor",
2835
2835
  setup(a) {
2836
- return (e, t) => (u(), f(o(Zt), De(Pe(e.$attrs)), {
2836
+ return (e, t) => (u(), f(o(Jt), null, {
2837
2837
  default: d(() => [
2838
- x(e.$slots, "default")
2838
+ b(o(Kt), {
2839
+ label: "Label",
2840
+ value: "label"
2841
+ })
2839
2842
  ]),
2840
- _: 3
2841
- }, 16));
2843
+ _: 1
2844
+ }));
2842
2845
  }
2843
- }), Uo = {
2846
+ }), Ie = {
2847
+ text: {
2848
+ name: De,
2849
+ props: {
2850
+ clearable: !0
2851
+ }
2852
+ },
2853
+ textarea: {
2854
+ name: De,
2855
+ props: {
2856
+ type: "textarea",
2857
+ rows: 2,
2858
+ autosize: {
2859
+ minRows: 2,
2860
+ maxRows: 5
2861
+ }
2862
+ }
2863
+ },
2864
+ select: {
2865
+ name: Po,
2866
+ props: {
2867
+ clearable: !0
2868
+ }
2869
+ }
2870
+ }, $o = {
2871
+ label: {
2872
+ type: String
2873
+ },
2844
2874
  editor: {
2845
- type: [String, Object]
2875
+ type: [String, Object],
2876
+ default: "text"
2877
+ },
2878
+ modelValue: {
2879
+ type: [String, Number, Boolean, Object, Array],
2880
+ default: ""
2881
+ },
2882
+ size: {
2883
+ type: String
2884
+ },
2885
+ // 是否在tooltip显示校验信息
2886
+ tooltipMessage: {
2887
+ type: [Boolean, Object],
2888
+ default: !0
2889
+ },
2890
+ // tooltip信息显示相对输入框的位置
2891
+ tooltipPosition: {
2892
+ type: [String, Number],
2893
+ default: "outer"
2894
+ },
2895
+ // null 不显示 placeholder
2896
+ placeholder: {
2897
+ type: String
2898
+ },
2899
+ disabled: {
2900
+ type: Boolean
2901
+ },
2902
+ options: {
2903
+ type: [Array, Function]
2904
+ }
2905
+ };
2906
+ function Ro(a) {
2907
+ return v(() => {
2908
+ const { editor: e = "text", placeholder: t, label: n, disabled: s } = a, l = {
2909
+ placeholder: t || (t === null ? void 0 : `请输入${n}`),
2910
+ disabled: s
2911
+ };
2912
+ return xn(
2913
+ typeof e == "string" ? Ie[e] || Ie.text : Ie[e.name] || {},
2914
+ { props: l },
2915
+ e
2916
+ );
2917
+ });
2918
+ }
2919
+ const Fo = /* @__PURE__ */ B({
2920
+ name: "XField",
2921
+ __name: "Field",
2922
+ props: $o,
2923
+ emits: ["update:modelValue", "change"],
2924
+ setup(a, { expose: e, emit: t }) {
2925
+ const n = a, s = Be(Yt, null), l = Ro(n), i = R(n.modelValue), c = R(), r = R(), p = v(
2926
+ () => n.size || s?.size || "default"
2927
+ ), m = v(() => ({
2928
+ [`is-tooltip-${n.tooltipPosition}`]: !!n.tooltipPosition
2929
+ })), h = v(() => ({
2930
+ right: typeof n.tooltipPosition == "number" ? `${n.tooltipPosition}px` : void 0
2931
+ }));
2932
+ return ee(i, (k) => {
2933
+ t("update:modelValue", k), t("change", k);
2934
+ }), e({
2935
+ fieldValue: i,
2936
+ itemRef: c,
2937
+ editorRef: r
2938
+ }), (k, A) => (u(), f(o(Gt), X({
2939
+ class: ["x-field", m.value],
2940
+ ref_key: "itemRef",
2941
+ ref: c,
2942
+ label: k.label,
2943
+ size: p.value
2944
+ }, k.$attrs), $e({
2945
+ error: d(({ error: _ }) => [
2946
+ z(k.$slots, "error", { error: _ }, () => [
2947
+ n.tooltipMessage ? (u(), V("div", {
2948
+ key: 0,
2949
+ class: "x-field__info",
2950
+ style: be(h.value)
2951
+ }, [
2952
+ b(o(st), X({ content: _ }, n.tooltipMessage), {
2953
+ default: d(() => [
2954
+ b(o(te), {
2955
+ class: "x-field__trigger",
2956
+ icon: o(pn),
2957
+ size: p.value
2958
+ }, null, 8, ["icon", "size"])
2959
+ ]),
2960
+ _: 2
2961
+ }, 1040, ["content"])
2962
+ ], 4)) : y("", !0)
2963
+ ])
2964
+ ]),
2965
+ default: d(() => [
2966
+ z(k.$slots, "default"),
2967
+ o(l).name ? (u(), f(Z(o(l).name), X({
2968
+ key: 0,
2969
+ ref_key: "editorRef",
2970
+ ref: r,
2971
+ modelValue: i.value,
2972
+ "onUpdate:modelValue": A[0] || (A[0] = (_) => i.value = _)
2973
+ }, o(l).props), null, 16, ["modelValue"])) : y("", !0)
2974
+ ]),
2975
+ _: 2
2976
+ }, [
2977
+ k.$slots.label ? {
2978
+ name: "label",
2979
+ fn: d(() => [
2980
+ z(k.$slots, "label")
2981
+ ]),
2982
+ key: "0"
2983
+ } : void 0
2984
+ ]), 1040, ["label", "size", "class"]));
2846
2985
  }
2847
- }, Ho = /* @__PURE__ */ B({
2986
+ }), Go = /* @__PURE__ */ B({
2848
2987
  __name: "Form",
2849
2988
  setup(a) {
2850
- return (e, t) => (u(), f(o(Jt), De(Pe(e.$attrs)), {
2989
+ return (e, t) => (u(), f(o(qt), qe(et(e.$attrs)), {
2851
2990
  default: d(() => [
2852
- x(e.$slots, "default")
2991
+ z(e.$slots, "default")
2853
2992
  ]),
2854
2993
  _: 3
2855
2994
  }, 16));
2856
2995
  }
2857
- }), Io = [
2858
- Sn,
2859
- ae,
2996
+ }), Oo = [
2997
+ Bn,
2998
+ te,
2860
2999
  G,
2861
- $n,
2862
- W,
2863
- Fe,
3000
+ Xn,
3001
+ Q,
3002
+ je,
2864
3003
  M,
2865
- yt,
2866
- bt,
2867
3004
  wt,
2868
- Mo,
2869
- Eo
2870
- ], Lo = "0.6.9", Bo = yn(Io), Wo = Bo.install;
3005
+ kt,
3006
+ zt,
3007
+ Vo,
3008
+ Fo
3009
+ ], qo = "0.6.11", jo = zn(Oo), ea = jo.install;
2871
3010
  export {
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,
2879
- W as XAction,
2880
- Fe as XActionBar,
3011
+ Ie as BuiltinEditors,
3012
+ Je as Draggable,
3013
+ Qe as INSTALLED_KEY,
3014
+ Ct as MASK_KEY,
3015
+ Ko as NOOP,
3016
+ Ke as Resizable,
3017
+ St as TAB_CREATORS_KEY,
3018
+ To as TAB_ITEM_WIDTH,
3019
+ Q as XAction,
3020
+ je as XActionBar,
2881
3021
  M as XContainer,
2882
- wt as XDialog,
2883
- Eo as XField,
2884
- Ho as XForm,
2885
- yt as XHeader,
2886
- ae as XIcon,
2887
- Mo as XMask,
3022
+ zt as XDialog,
3023
+ Fo as XField,
3024
+ Go as XForm,
3025
+ wt as XHeader,
3026
+ te as XIcon,
3027
+ Vo as XMask,
2888
3028
  G as XMenu,
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,
3029
+ kt as XPanel,
3030
+ Xn as XSimpleMask,
3031
+ Bn as XStartup,
3032
+ Jn as actionBarProps,
3033
+ _t as actionProps,
3034
+ Oo as components,
3035
+ Kn as containerProps,
3036
+ Ne as createDialog,
3037
+ ea as default,
3038
+ Yo as defineTab,
3039
+ no as dialogProps,
3040
+ $o as fieldProps,
3041
+ We as getSizeValue,
3042
+ Yn as headerProps,
3043
+ Dn as iconProps,
3044
+ An as iconSizeMap,
3045
+ ea as install,
3046
+ zn as makeInstaller,
3047
+ Mo as maskProps,
3048
+ Zo as omit,
3049
+ eo as panelProps,
2910
3050
  me as parseSize,
2911
- jo as pick,
2912
- Re as useDisabled,
2913
- _e as useIcon,
2914
- jn as useIconProps,
2915
- Jn as vDraggable,
2916
- _t as vResizable,
2917
- Lo as version
3051
+ Jo as pick,
3052
+ Oe as useDisabled,
3053
+ we as useIcon,
3054
+ Wn as useIconProps,
3055
+ to as vDraggable,
3056
+ xt as vResizable,
3057
+ qo as version
2918
3058
  };