@vtj/ui 0.6.12 → 0.6.13

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,14 +1,14 @@
1
- import { defineComponent as E, openBlock as c, createElementBlock as A, renderSlot as z, createElementVNode as F, unref as n, toDisplayString as j, createVNode as k, withCtx as p, createTextVNode as N, createBlock as m, createCommentVNode as h, useAttrs as st, getCurrentInstance as ue, computed as v, markRaw as he, normalizeClass as W, resolveDynamicComponent as L, mergeProps as X, Fragment as Z, renderList as le, isVNode as $t, h as q, toRef as xe, useSlots as Vt, normalizeStyle as Se, ref as O, normalizeProps as Te, guardReactiveProps as Ee, effectScope as lt, watch as H, reactive as Ne, onMounted as Dt, onUnmounted as Pt, watchEffect as it, nextTick as re, Teleport as rt, withDirectives as Q, createSlots as ge, render as Ze, vShow as Y, isRef as we, withModifiers as Rt, KeepAlive as Ft, shallowRef as Je, provide as ye, toRaw as Pe, inject as fe } from "vue";
2
- import { ElDivider as me, ElButton as se, ElIcon as Ot, ElSubMenu as jt, ElBadge as Re, ElMenuItem as Nt, ElMenu as Xt, ElContainer as Ge, ElHeader as Ut, ElAside as Ht, ElMain as Wt, ElFooter as Lt, ElDropdown as Kt, ElDropdownMenu as Qt, ElDropdownItem as Zt, ElTooltip as ct, ElSwitch as Xe, ElInput as Fe, ElEmpty as Jt, ElTabs as Gt, ElTabPane as Ye, ElPopover as ut, ElAvatar as Yt, ElMessageBox as Ve, ElSelect as qt, ElOption as eo, ElCheckboxButton as to, ElCheckbox as oo, ElCheckboxGroup as no, ElRadioButton as ao, ElRadio as so, ElRadioGroup as lo, ElInputNumber as io, ElDatePicker as qe, ElTimePicker as ro, ElRate as co, ElSlider as uo, ElCascader as po, formContextKey as fo, ElFormItem as mo, ElForm as go } from "element-plus";
3
- import { VideoPlay as yo, Document as ae, Menu as dt, ArrowRight as ho, StarFilled as pt, Search as Oe, Close as ft, Expand as vo, Fold as bo, Star as mt, Refresh as _o, CopyDocument as ko, Moon as wo, Sunny as xo, MoreFilled as So, UserFilled as zo, HomeFilled as Co, WarningFilled as To } from "@element-plus/icons-vue";
4
- import { useRouter as Me, useRoute as Ue, RouterView as gt, routeLocationKey as Eo } from "vue-router";
1
+ import { defineComponent as E, openBlock as c, createElementBlock as A, renderSlot as z, createElementVNode as O, unref as n, toDisplayString as j, createVNode as k, withCtx as p, createTextVNode as N, createBlock as m, createCommentVNode as v, useAttrs as st, getCurrentInstance as de, computed as h, markRaw as ve, normalizeClass as W, resolveDynamicComponent as L, mergeProps as X, Fragment as Q, renderList as ie, isVNode as $t, h as q, toRef as ze, useSlots as Vt, normalizeStyle as Ce, ref as P, normalizeProps as Me, guardReactiveProps as Be, effectScope as lt, watch as H, reactive as Ne, onMounted as Dt, onUnmounted as Pt, watchEffect as it, nextTick as ce, Teleport as rt, withDirectives as K, createSlots as ye, render as Ze, vShow as Y, isRef as xe, withModifiers as Rt, KeepAlive as Ft, shallowRef as Je, provide as he, toRaw as Se, inject as me } from "vue";
2
+ import { ElDivider as ge, ElButton as le, ElIcon as Ot, ElSubMenu as jt, ElBadge as Re, ElMenuItem as Nt, ElMenu as Xt, ElContainer as Ge, ElHeader as Ut, ElAside as Ht, ElMain as Wt, ElFooter as Lt, ElDropdown as Kt, ElDropdownMenu as Qt, ElDropdownItem as Zt, ElTooltip as ct, ElSwitch as Xe, ElInput as Fe, ElEmpty as Jt, ElTabs as Gt, ElTabPane as Ye, ElPopover as ut, ElAvatar as Yt, ElMessageBox as De, ElSelect as qt, ElOption as eo, ElCheckboxButton as to, ElCheckbox as oo, ElCheckboxGroup as no, ElRadioButton as ao, ElRadio as so, ElRadioGroup as lo, ElInputNumber as io, ElDatePicker as qe, ElTimePicker as ro, ElRate as co, ElSlider as uo, ElCascader as po, formContextKey as fo, ElFormItem as mo, ElForm as go } from "element-plus";
3
+ import { VideoPlay as yo, Document as se, Menu as dt, ArrowRight as ho, StarFilled as pt, Search as Oe, Close as ft, Expand as vo, Fold as bo, Star as mt, Refresh as _o, CopyDocument as ko, Moon as wo, Sunny as xo, MoreFilled as So, UserFilled as zo, HomeFilled as Co, WarningFilled as To } from "@element-plus/icons-vue";
4
+ import { useRouter as Ie, useRoute as Ue, RouterView as gt, routeLocationKey as Eo } from "vue-router";
5
5
  import { Minimize as Mo, Popup as Bo, Maximize as Io, RawClose as Ao } from "@vtj/icons";
6
- import { useDraggable as $o, useMouseInElement as Vo, useEventListener as ze, useElementSize as yt, useDark as Do } from "@vueuse/core";
6
+ import { useDraggable as $o, useMouseInElement as Vo, useEventListener as Te, useElementSize as yt, useDark as Do } from "@vueuse/core";
7
7
  import { isEqual as He, isObject as We, uid as ht, arrayToMap as Po, isUrl as Ro, upperFirstCamelCase as vt, toArray as Fo, merge as Oo } from "@vtj/utils";
8
8
  function je(a) {
9
9
  return typeof a == "string" ? a : `${a}px`;
10
10
  }
11
- function be(a = 0, t) {
11
+ function _e(a = 0, t) {
12
12
  if (typeof a == "number")
13
13
  return a;
14
14
  if (/(%|vh|vw)$/i.test(a)) {
@@ -36,12 +36,12 @@ const ga = () => {
36
36
  o.name && e.component(o.name, o);
37
37
  }));
38
38
  }
39
- }), bt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAQd0lEQVR4nO2dCXRVxRnHf/clIPsekBgIS1hFdqVoZbGLFNTWWgQ3bLVurRYJcTuntbW22qooKKWl2toWquygIFa01doqmBBWWcomIkhACLIKyXvcnu/eefiSNzd57y4vAfI/553wuPfNzJ3/nW9m/t83M4Yx6iTVGOlAC6AD0Bs4F2gGtFT/lmtNgLpABDgMFAN7gCJgH3AQ2ACsAz5V91RbpFfDguUAg4EewBCgLdAQqJXAb5sD7RyuHVGfpcBy4AOgADjkc/k9obq0kP7AN4CrgK7qrQ8aJrALeAt4Q/3dV7XVULWEtAauBq5ThNSpqoIo7AReBWYA/6mqQlQFId2AW4HRwHmpzjwBSMv5N/BHYAHwRSozTyUhQ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Oux9PmD1T6XQvb3tSFu+FfbsC2yeoUOhWvFcRjzSEVJXTVQCW8RTHlblnLQru6IRU3Tk5YeieyrNUpV3ekB+eGfcDPyt/FXd/FbGxRNSWTKpYCMBb5t1n8/hPaImyDwpxWTIUUpzdBecBIeZUbGrBoHgcYnJSIYQsWu/CELfqoGliMx2qoaKJLl/qGPjauAfpMf6WUV7wlemkcrOZw7LVmrgAhPVgMkRlRGytWYjTN8gXqHHKkssES/C8zWmyzPCamfwSiN8EiEkorY23VT1z3Xa4qfquL1KkaifbZfapTR1mxadOZiTzLwuGcfn20p7qUHiWKlOcEt4BWKynugp6tiKGlSObUoX3JtMXbkJDXhYEVMDZxSpzUQ3J1tHbkPLZMTwlxpCtNinDu0vcPNjt4SE1XHcf3L5+zMV0jKuTXREpYOX4MsSNfJ6+myt/XKQSfR3YkN63MDr0pawGnkldHrMGYxCdc6KZ4Xcr7VGv1F2M9ColWoKOfR+hF8TZz+P756htprN9zHN6oxSdU7hdZ7WaZaD3wfcS6TUN1SLOZN9KavVxpW/dXO8akXwmxBUWOpDyqauCiD9qkSJImGo187bCUEQEsUSdbz3A3426SrEEhUiJWbqQFDFCJIQgewK8oTacfN36vvpBmnl10s8uCyFD7rsujCgINFDnTl+bex+59UUMtP+vQr40AYkBIFUExKFbFl5gzqLKacqCuCAQ6pveEGZqNQe8VKFhEQhiwwuA66RXVj93JAzCRxTSwJmqWBzX5aJu0VVExILWZ4vCwQuVvY6M9EDfZNERAmABao1vKP6iWpREdWJkFjUUgHfMhjopD79Vb9TW20YWdlChOPK5JSoRflr1NLjfDVfcr8LUoDwed8c3yCzYFmUIB9BM3U6prQi+UjrkY9s4CnXZGdu0dWkD5CwJZFwxO0sw20JLJCFdPIJfKmFJwD/B4g2wB0X86iqAAAAAElFTkSuQmCC", No = { class: "x-startup" }, Xo = { class: "brand" }, Uo = ["src"], Ho = /* @__PURE__ */ F("h3", null, [
39
+ }), bt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAG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r40AYkBIFUExKFbFl5gzqLKacqCuCAQ6pveEGZqNQe8VKFhEQhiwwuA66RXVj93JAzCRxTSwJmqWBzX5aJu0VVExILWZ4vCwQuVvY6M9EDfZNERAmABao1vKP6iWpREdWJkFjUUgHfMhjopD79Vb9TW20YWdlChOPK5JSoRflr1NLjfDVfcr8LUoDwed8c3yCzYFmUIB9BM3U6prQi+UjrkY9s4CnXZGdu0dWkD5CwJZFwxO0sw20JLJCFdPIJfKmFJwD/B4g2wB0X86iqAAAAAElFTkSuQmCC", No = { class: "x-startup" }, Xo = { class: "brand" }, Uo = ["src"], Ho = /* @__PURE__ */ O("h3", null, [
40
40
  /* @__PURE__ */ N("基于 "),
41
- /* @__PURE__ */ F("span", null, "Vue3 + TypeScript"),
41
+ /* @__PURE__ */ O("span", null, "Vue3 + TypeScript"),
42
42
  /* @__PURE__ */ N(" 的低代码设计器引擎")
43
- ], -1), Wo = { class: "btn" }, Lo = /* @__PURE__ */ F("div", { class: "ba" }, [
44
- /* @__PURE__ */ F("a", { href: "http://beian.miit.gov.cn/" }, "粤ICP备2023104074号")
43
+ ], -1), Wo = { class: "btn" }, Lo = /* @__PURE__ */ O("div", { class: "ba" }, [
44
+ /* @__PURE__ */ O("a", { href: "http://beian.miit.gov.cn/" }, "粤ICP备2023104074号")
45
45
  ], -1), Ko = /* @__PURE__ */ E({
46
46
  name: "XStartup",
47
47
  __name: "Startup",
@@ -58,15 +58,15 @@ const ga = () => {
58
58
  };
59
59
  return (s, i) => (c(), A("div", No, [
60
60
  z(s.$slots, "default", {}, () => [
61
- F("div", null, [
62
- F("div", Xo, [
63
- F("img", { src: n(bt) }, null, 8, Uo),
64
- F("h1", null, j(t.text), 1)
61
+ O("div", null, [
62
+ O("div", Xo, [
63
+ O("img", { src: n(bt) }, null, 8, Uo),
64
+ O("h1", null, j(t.text), 1)
65
65
  ]),
66
- k(n(me)),
66
+ k(n(ge)),
67
67
  Ho,
68
- F("div", Wo, [
69
- k(n(se), {
68
+ O("div", Wo, [
69
+ k(n(le), {
70
70
  onClick: e,
71
71
  type: "primary",
72
72
  round: "",
@@ -78,19 +78,19 @@ const ga = () => {
78
78
  ]),
79
79
  _: 1
80
80
  }, 8, ["icon"]),
81
- t.example ? (c(), m(n(se), {
81
+ t.example ? (c(), m(n(le), {
82
82
  key: 0,
83
83
  onClick: o,
84
84
  type: "default",
85
85
  round: "",
86
86
  size: "large",
87
- icon: n(ae)
87
+ icon: n(se)
88
88
  }, {
89
89
  default: p(() => [
90
90
  N(" 加载示例项目 ")
91
91
  ]),
92
92
  _: 1
93
- }, 8, ["icon"])) : h("", !0)
93
+ }, 8, ["icon"])) : v("", !0)
94
94
  ])
95
95
  ])
96
96
  ]),
@@ -121,17 +121,17 @@ const Qo = {
121
121
  __name: "Icon",
122
122
  props: Zo,
123
123
  setup(a) {
124
- const t = a, e = st(), o = ue(), s = v(() => {
124
+ const t = a, e = st(), o = de(), s = h(() => {
125
125
  if (!t.icon)
126
126
  return null;
127
127
  const u = o?.appContext.app;
128
- return typeof t.icon == "object" ? he(t.icon) : u?.component(t.icon) || t.icon;
129
- }), i = v(() => {
128
+ return typeof t.icon == "object" ? ve(t.icon) : u?.component(t.icon) || t.icon;
129
+ }), i = h(() => {
130
130
  const u = {
131
131
  "is-pointer": !!e.onClick
132
132
  };
133
133
  return !s.value && t.icon && (u[t.icon] = !0), u;
134
- }), l = v(() => typeof t.size == "number" ? t.size : Qo[t.size] ?? void 0);
134
+ }), l = h(() => typeof t.size == "number" ? t.size : Qo[t.size] ?? void 0);
135
135
  return (u, r) => (c(), m(n(Ot), {
136
136
  class: W(["x-icon", i.value]),
137
137
  color: t.color,
@@ -139,11 +139,11 @@ const Qo = {
139
139
  }, {
140
140
  default: p(() => [
141
141
  z(u.$slots, "default", {}, () => [
142
- s.value ? (c(), m(L(s.value), { key: 0 })) : h("", !0),
142
+ s.value ? (c(), m(L(s.value), { key: 0 })) : v("", !0),
143
143
  t.src ? (c(), A("img", {
144
144
  key: 1,
145
145
  src: t.src
146
- }, null, 8, Jo)) : h("", !0)
146
+ }, null, 8, Jo)) : v("", !0)
147
147
  ])
148
148
  ]),
149
149
  _: 3
@@ -152,10 +152,10 @@ const Qo = {
152
152
  }), Go = { class: "x-menu__wrapper" }, Yo = {
153
153
  key: 1,
154
154
  class: "x-menu__title"
155
- }, qo = /* @__PURE__ */ F("i", null, null, -1), en = {
155
+ }, qo = /* @__PURE__ */ O("i", null, null, -1), en = {
156
156
  key: 0,
157
157
  class: "x-menu__title"
158
- }, tn = /* @__PURE__ */ F("i", null, null, -1), _t = /* @__PURE__ */ E({
158
+ }, tn = /* @__PURE__ */ O("i", null, null, -1), _t = /* @__PURE__ */ E({
159
159
  inheritAttrs: !1,
160
160
  name: "XMenuItem",
161
161
  __name: "MenuItem",
@@ -165,7 +165,7 @@ const Qo = {
165
165
  defaultIcon: { type: [Object, Function] }
166
166
  },
167
167
  setup(a) {
168
- const t = a, e = ue(), o = (l) => {
168
+ const t = a, e = de(), o = (l) => {
169
169
  if (l)
170
170
  return typeof l == "string" && (e?.appContext.app?.component(l) || t.defaultIcon) || l;
171
171
  }, s = (l) => typeof l == "object" ? l : { value: l }, i = (l = []) => l.filter((u) => !u.hidden);
@@ -176,12 +176,12 @@ const Qo = {
176
176
  index: String(t.item.id)
177
177
  }), {
178
178
  title: p(() => [
179
- F("div", Go, [
179
+ O("div", Go, [
180
180
  t.item.icon ? (c(), m(n(te), {
181
181
  key: 0,
182
182
  icon: o(t.item.icon)
183
- }, null, 8, ["icon"])) : h("", !0),
184
- t.item.title ? (c(), A("span", Yo, j(t.item.title), 1)) : h("", !0),
183
+ }, null, 8, ["icon"])) : v("", !0),
184
+ t.item.title ? (c(), A("span", Yo, j(t.item.title), 1)) : v("", !0),
185
185
  t.item.badge ? (c(), m(n(Re), X({
186
186
  key: 2,
187
187
  class: "x-menu__badge"
@@ -190,11 +190,11 @@ const Qo = {
190
190
  qo
191
191
  ]),
192
192
  _: 1
193
- }, 16)) : h("", !0)
193
+ }, 16)) : v("", !0)
194
194
  ])
195
195
  ]),
196
196
  default: p(() => [
197
- (c(!0), A(Z, null, le(i(t.item.children), (r) => (c(), m(n(_t), {
197
+ (c(!0), A(Q, null, ie(i(t.item.children), (r) => (c(), m(n(_t), {
198
198
  key: r.id,
199
199
  item: r,
200
200
  subMenu: t.subMenu,
@@ -208,7 +208,7 @@ const Qo = {
208
208
  disabled: t.item.disabled
209
209
  }, {
210
210
  title: p(() => [
211
- t.item.title ? (c(), A("span", en, j(t.item.title), 1)) : h("", !0),
211
+ t.item.title ? (c(), A("span", en, j(t.item.title), 1)) : v("", !0),
212
212
  t.item.badge ? (c(), m(n(Re), X({
213
213
  key: 1,
214
214
  class: "x-menu__badge"
@@ -217,13 +217,13 @@ const Qo = {
217
217
  tn
218
218
  ]),
219
219
  _: 1
220
- }, 16)) : h("", !0)
220
+ }, 16)) : v("", !0)
221
221
  ]),
222
222
  default: p(() => [
223
223
  t.item.icon ? (c(), m(n(te), {
224
224
  key: 0,
225
225
  icon: o(t.item.icon)
226
- }, null, 8, ["icon"])) : h("", !0)
226
+ }, null, 8, ["icon"])) : v("", !0)
227
227
  ]),
228
228
  _: 1
229
229
  }, 8, ["index", "disabled"]));
@@ -239,13 +239,13 @@ const Qo = {
239
239
  },
240
240
  emits: ["select"],
241
241
  setup(a, { emit: t }) {
242
- const e = a, o = v(() => e.data.filter((l) => !l.hidden)), s = (l, u) => {
242
+ const e = a, o = h(() => e.data.filter((l) => !l.hidden)), s = (l, u) => {
243
243
  const r = (d, f = []) => {
244
- for (const y of f) {
245
- if (y.id.toString() === d.toString())
246
- return y;
247
- if (y.children?.length) {
248
- const S = r(d, y.children);
244
+ for (const g of f) {
245
+ if (g.id.toString() === d.toString())
246
+ return g;
247
+ if (g.children?.length) {
248
+ const S = r(d, g.children);
249
249
  if (S)
250
250
  return S;
251
251
  }
@@ -258,7 +258,7 @@ const Qo = {
258
258
  };
259
259
  return (l, u) => (c(), m(n(Xt), X({ class: "x-menu" }, l.$attrs, { onSelect: i }), {
260
260
  default: p(() => [
261
- (c(!0), A(Z, null, le(o.value, (r) => (c(), m(n(_t), {
261
+ (c(!0), A(Q, null, ie(o.value, (r) => (c(), m(n(_t), {
262
262
  item: { ...r, icon: r.icon || n(dt) },
263
263
  defaultIcon: e.defaultIcon,
264
264
  subMenu: e.subMenu
@@ -279,14 +279,14 @@ const Qo = {
279
279
  menu: {}
280
280
  },
281
281
  setup(a, { expose: t }) {
282
- const e = a, o = Me(), s = Ue(), i = v(() => s.params.id), l = () => {
282
+ const e = a, o = Ie(), s = Ue(), i = h(() => s.params.id), l = () => {
283
283
  const r = e.project.home;
284
284
  r && o.push(r);
285
285
  }, u = (r) => {
286
286
  const d = r?.id;
287
287
  if (d) {
288
- const y = `${e.preview ? "/preview" : e.project.page}/${d}`;
289
- o.push(y);
288
+ const g = `${e.preview ? "/preview" : e.project.page}/${d}`;
289
+ o.push(g);
290
290
  }
291
291
  };
292
292
  return t({
@@ -295,8 +295,8 @@ const Qo = {
295
295
  default: p(() => [
296
296
  k(n(Ut), { class: "x-simple-mask__header" }, {
297
297
  default: p(() => [
298
- F("div", on, [
299
- F("span", {
298
+ O("div", on, [
299
+ O("span", {
300
300
  class: "x-simple-mask__logo",
301
301
  onClick: l
302
302
  }, [
@@ -305,7 +305,7 @@ const Qo = {
305
305
  ])
306
306
  ])
307
307
  ]),
308
- F("div", nn, [
308
+ O("div", nn, [
309
309
  z(r.$slots, "action")
310
310
  ])
311
311
  ]),
@@ -342,7 +342,7 @@ const Qo = {
342
342
  z(r.$slots, "footer")
343
343
  ]),
344
344
  _: 3
345
- })) : h("", !0)
345
+ })) : v("", !0)
346
346
  ]),
347
347
  _: 3
348
348
  }));
@@ -444,21 +444,21 @@ const Qo = {
444
444
  }
445
445
  };
446
446
  function sn(a) {
447
- return v(() => {
447
+ return h(() => {
448
448
  const t = a.tooltip;
449
449
  if (t)
450
450
  return typeof t == "string" ? { content: t } : t;
451
451
  });
452
452
  }
453
453
  function ln(a) {
454
- return v(() => {
454
+ return h(() => {
455
455
  const t = a.badge;
456
456
  if (t)
457
457
  return typeof t == "object" ? t : { value: t };
458
458
  });
459
459
  }
460
460
  function rn(a) {
461
- return v(() => {
461
+ return h(() => {
462
462
  const { dropdown: t, menus: e } = a;
463
463
  if (e && e.length > 0)
464
464
  return Object.assign(
@@ -468,8 +468,8 @@ function rn(a) {
468
468
  });
469
469
  }
470
470
  function cn(a) {
471
- const t = ue();
472
- return v(() => {
471
+ const t = de();
472
+ return h(() => {
473
473
  const e = n(a);
474
474
  if (e)
475
475
  if (typeof e == "string" || e.setup || e.render || $t(e)) {
@@ -482,12 +482,12 @@ function cn(a) {
482
482
  return null;
483
483
  });
484
484
  }
485
- function Ce(a) {
485
+ function Ee(a) {
486
486
  const t = cn(a);
487
- return t.value ? he(E({ render: () => q(te, t.value) })) : null;
487
+ return t.value ? ve(E({ render: () => q(te, t.value) })) : null;
488
488
  }
489
489
  function Le(a, t) {
490
- return v(() => {
490
+ return h(() => {
491
491
  const e = n(a);
492
492
  return typeof e == "function" ? e(t) : !!e;
493
493
  });
@@ -497,7 +497,7 @@ const un = { key: 0 }, dn = /* @__PURE__ */ E({
497
497
  props: kt,
498
498
  emits: ["click"],
499
499
  setup(a, { emit: t }) {
500
- const e = a, o = Ce(xe(e, "icon")), s = Le(xe(e, "disabled")), i = v(() => ({
500
+ const e = a, o = Ee(ze(e, "icon")), s = Le(ze(e, "disabled")), i = h(() => ({
501
501
  [`is-${e.mode}`]: !!e.mode,
502
502
  [`is-${e.type}`]: !!e.type,
503
503
  [`is-${e.size}`]: !!e.size && e.size !== "default",
@@ -507,7 +507,7 @@ const un = { key: 0 }, dn = /* @__PURE__ */ E({
507
507
  })), l = () => {
508
508
  t("click");
509
509
  };
510
- return (u, r) => e.mode === "button" ? (c(), m(n(se), X({
510
+ return (u, r) => e.mode === "button" ? (c(), m(n(le), X({
511
511
  key: 0,
512
512
  icon: n(o),
513
513
  type: e.type,
@@ -524,7 +524,7 @@ const un = { key: 0 }, dn = /* @__PURE__ */ E({
524
524
  onClick: l
525
525
  }, [
526
526
  (c(), m(L(n(o)))),
527
- u.label ? (c(), A("span", un, j(u.label), 1)) : h("", !0)
527
+ u.label ? (c(), A("span", un, j(u.label), 1)) : v("", !0)
528
528
  ], 2));
529
529
  }
530
530
  }), J = /* @__PURE__ */ E({
@@ -533,14 +533,14 @@ const un = { key: 0 }, dn = /* @__PURE__ */ E({
533
533
  props: kt,
534
534
  emits: ["click", "command"],
535
535
  setup(a, { emit: t }) {
536
- const e = a, o = Vt(), s = sn(e), i = ln(e), l = rn(e), u = Le(xe(e, "disabled")), r = v(() => ({
536
+ const e = a, o = Vt(), s = sn(e), i = ln(e), l = rn(e), u = Le(ze(e, "disabled")), r = h(() => ({
537
537
  [`x-action--${e.mode}`]: !!e.mode
538
538
  })), d = () => {
539
539
  t("click", e);
540
540
  }, f = (_) => {
541
541
  const T = e.menus?.find((V) => V.command === _);
542
542
  T && t("command", T);
543
- }, y = (_) => q(Re, i.value, () => [].concat(_)), S = (_) => q(
543
+ }, g = (_) => q(Re, i.value, () => [].concat(_)), S = (_) => q(
544
544
  Kt,
545
545
  { ...l.value, disabled: u.value, onCommand: f },
546
546
  {
@@ -558,9 +558,9 @@ const un = { key: 0 }, dn = /* @__PURE__ */ E({
558
558
  }
559
559
  ), $ = (_) => q(ct, { ...s.value, disabled: u.value }, () => [
560
560
  _
561
- ]), w = v(() => {
562
- let _ = o.default ? o.default()[0] : q(he(dn), { ...e, onClick: d });
563
- return i.value && (_ = y(_)), l.value && (_ = S(_)), s.value && (_ = $(_)), _;
561
+ ]), w = h(() => {
562
+ let _ = o.default ? o.default()[0] : q(ve(dn), { ...e, onClick: d });
563
+ return i.value && (_ = g(_)), l.value && (_ = S(_)), s.value && (_ = $(_)), _;
564
564
  });
565
565
  return (_, T) => (c(), A("div", {
566
566
  class: W(["x-action", r.value])
@@ -645,7 +645,7 @@ const un = { key: 0 }, dn = /* @__PURE__ */ E({
645
645
  props: pn,
646
646
  emits: ["click", "command"],
647
647
  setup(a, { emit: t }) {
648
- const e = a, o = v(() => (e.items || []).map((l) => l === "|" ? l : {
648
+ const e = a, o = h(() => (e.items || []).map((l) => l === "|" ? l : {
649
649
  ...l,
650
650
  badge: l.badge ? {
651
651
  ...e.badge,
@@ -665,8 +665,8 @@ const un = { key: 0 }, dn = /* @__PURE__ */ E({
665
665
  align: "center"
666
666
  }, {
667
667
  default: p(() => [
668
- (c(!0), A(Z, null, le(o.value, (r) => (c(), A(Z, null, [
669
- r === "|" ? (c(), m(n(me), {
668
+ (c(!0), A(Q, null, ie(o.value, (r) => (c(), A(Q, null, [
669
+ r === "|" ? (c(), m(n(ge), {
670
670
  key: 0,
671
671
  direction: "vertical",
672
672
  class: "x-action-bar__divider"
@@ -803,13 +803,13 @@ const un = { key: 0 }, dn = /* @__PURE__ */ E({
803
803
  __name: "Container",
804
804
  props: fn,
805
805
  setup(a) {
806
- const t = a, e = ue(), o = v(() => {
806
+ const t = a, e = de(), o = h(() => {
807
807
  const l = e?.parent;
808
808
  if (!l)
809
809
  return !1;
810
810
  const u = l.proxy;
811
811
  return u.$options.name === "XContainer" || !!u.flex;
812
- }), s = v(() => ({
812
+ }), s = h(() => ({
813
813
  "is-fit": t.fit,
814
814
  "is-flex": t.flex && !t.inline,
815
815
  "is-inline-flex": t.flex && t.inline,
@@ -823,7 +823,7 @@ const un = { key: 0 }, dn = /* @__PURE__ */ E({
823
823
  [`is-align-self-${t.alignSelf}`]: o.value && t.alignSelf !== "auto",
824
824
  [`is-overflow-${t.overflow}`]: !!t.overflow,
825
825
  "is-padding": !!t.padding
826
- })), i = v(() => {
826
+ })), i = h(() => {
827
827
  const { width: l, height: u, fit: r } = t;
828
828
  return r ? null : {
829
829
  width: l ? je(l) : void 0,
@@ -832,7 +832,7 @@ const un = { key: 0 }, dn = /* @__PURE__ */ E({
832
832
  });
833
833
  return (l, u) => (c(), m(L(t.tag), {
834
834
  class: W(["x-container", s.value]),
835
- style: Se(i.value)
835
+ style: Ce(i.value)
836
836
  }, {
837
837
  default: p(() => [
838
838
  z(l.$slots, "default")
@@ -873,7 +873,7 @@ const un = { key: 0 }, dn = /* @__PURE__ */ E({
873
873
  __name: "Header",
874
874
  props: mn,
875
875
  setup(a) {
876
- const t = a, e = st(), o = Ce(xe(t, "icon")), s = v(() => ({
876
+ const t = a, e = st(), o = Ee(ze(t, "icon")), s = h(() => ({
877
877
  [`is-size-${t.size}`]: !!t.size && t.size !== "default",
878
878
  "is-border": t.border,
879
879
  "is-pointer": !!e.onClick
@@ -893,8 +893,8 @@ const un = { key: 0 }, dn = /* @__PURE__ */ E({
893
893
  n(o) ? (c(), m(L(n(o)), {
894
894
  key: 0,
895
895
  class: "x-header__icon"
896
- })) : h("", !0),
897
- F("span", X({ class: "x-header__content" }, i.$attrs), [
896
+ })) : v("", !0),
897
+ O("span", X({ class: "x-header__content" }, i.$attrs), [
898
898
  z(i.$slots, "default", {}, () => [
899
899
  N(j(t.content), 1)
900
900
  ])
@@ -903,18 +903,18 @@ const un = { key: 0 }, dn = /* @__PURE__ */ E({
903
903
  key: 1,
904
904
  class: "x-header__more",
905
905
  icon: n(ho)
906
- }, null, 8, ["icon"])) : h("", !0),
906
+ }, null, 8, ["icon"])) : v("", !0),
907
907
  t.subtitle || i.$slots.subtitle ? (c(), A("span", gn, [
908
908
  z(i.$slots, "subtitle", {}, () => [
909
909
  N(j(t.subtitle), 1)
910
910
  ])
911
- ])) : h("", !0)
911
+ ])) : v("", !0)
912
912
  ]),
913
913
  _: 3
914
914
  }, 8, ["class"]),
915
915
  i.$slots.actions ? (c(), A("div", yn, [
916
916
  z(i.$slots, "actions")
917
- ])) : h("", !0)
917
+ ])) : v("", !0)
918
918
  ]),
919
919
  _: 3
920
920
  }, 8, ["class"]));
@@ -996,20 +996,20 @@ const un = { key: 0 }, dn = /* @__PURE__ */ E({
996
996
  __name: "Panel",
997
997
  props: hn,
998
998
  setup(a, { expose: t }) {
999
- const e = a, o = O(), s = v(() => ({
999
+ const e = a, o = P(), s = h(() => ({
1000
1000
  "x-panel--card": !!e.card,
1001
1001
  "x-panel--default": !e.card,
1002
1002
  [`is-${e.size}`]: !!e.size && e.size !== "default",
1003
1003
  "is-border": !!e.border,
1004
1004
  "is-radius": !!e.radius,
1005
1005
  [`is-shadow-${e.shadow}`]: !!e.shadow && e.shadow !== "none"
1006
- })), i = v(() => e.header === null ? null : typeof e.header == "string" ? {
1006
+ })), i = h(() => e.header === null ? null : typeof e.header == "string" ? {
1007
1007
  content: e.header,
1008
1008
  size: e.size
1009
1009
  } : {
1010
1010
  ...e.header,
1011
1011
  size: e.size
1012
- }), l = v(() => e.fit || e.height ? "auto" : void 0);
1012
+ }), l = h(() => e.fit || e.height ? "auto" : void 0);
1013
1013
  return t({
1014
1014
  bodyRef: o
1015
1015
  }), (u, r) => (c(), m(n(I), {
@@ -1027,7 +1027,7 @@ const un = { key: 0 }, dn = /* @__PURE__ */ E({
1027
1027
  }, {
1028
1028
  default: p(() => [
1029
1029
  z(u.$slots, "header", {}, () => [
1030
- k(n(wt), Te(Ee(i.value)), {
1030
+ k(n(wt), Me(Be(i.value)), {
1031
1031
  default: p(() => [
1032
1032
  z(u.$slots, "title")
1033
1033
  ]),
@@ -1039,7 +1039,7 @@ const un = { key: 0 }, dn = /* @__PURE__ */ E({
1039
1039
  ])
1040
1040
  ]),
1041
1041
  _: 3
1042
- })) : h("", !0),
1042
+ })) : v("", !0),
1043
1043
  k(n(I), X({
1044
1044
  ref_key: "bodyRef",
1045
1045
  ref: o,
@@ -1064,7 +1064,7 @@ const un = { key: 0 }, dn = /* @__PURE__ */ E({
1064
1064
  z(u.$slots, "footer")
1065
1065
  ]),
1066
1066
  _: 3
1067
- }, 16)) : h("", !0)
1067
+ }, 16)) : v("", !0)
1068
1068
  ]),
1069
1069
  _: 3
1070
1070
  }, 8, ["class", "fit", "width", "height"]));
@@ -1092,36 +1092,36 @@ class ot {
1092
1092
  return;
1093
1093
  let u = null;
1094
1094
  const r = this.getHandle(), d = this.getTarget();
1095
- let f = t.getBoundingClientRect(), y = null;
1095
+ let f = t.getBoundingClientRect(), g = null;
1096
1096
  const { x: S, y: $ } = $o(t, {
1097
1097
  initialValue: { x: f.x, y: f.y },
1098
1098
  ...e,
1099
1099
  handle: r,
1100
1100
  onStart: (w, _) => {
1101
1101
  document.body.classList.add(tt), clearTimeout(u), u = setTimeout(() => {
1102
- this.dragging = !0, f = t.getBoundingClientRect(), y = d?.getBoundingClientRect(), i && i(w, _);
1102
+ this.dragging = !0, f = t.getBoundingClientRect(), g = d?.getBoundingClientRect(), i && i(w, _);
1103
1103
  }, s);
1104
1104
  },
1105
1105
  onEnd: (w, _) => {
1106
- if (clearTimeout(u), document.body.classList.remove(tt), this.dragging && y) {
1106
+ if (clearTimeout(u), document.body.classList.remove(tt), this.dragging && g) {
1107
1107
  this.dragging = !1;
1108
- const { x: T, y: V } = w, g = this.getPosition(y, f, T, V);
1109
- l && l(g, _), y = null;
1108
+ const { x: T, y: V } = w, y = this.getPosition(g, f, T, V);
1109
+ l && l(y, _), g = null;
1110
1110
  }
1111
1111
  }
1112
1112
  });
1113
1113
  H([S, $], () => {
1114
- if (this.dragging && y) {
1115
- const w = this.getPosition(y, f, S.value, $.value);
1114
+ if (this.dragging && g) {
1115
+ const w = this.getPosition(g, f, S.value, $.value);
1116
1116
  t.style.left = `${w.x}px`, t.style.top = `${w.y}px`;
1117
1117
  }
1118
1118
  });
1119
1119
  }
1120
1120
  getPosition(t, e, o, s) {
1121
- const { edge: i = 50 } = this.options, l = -e.width + i, u = t.width - i, r = 0, d = t.height - i, f = Math.min(u, Math.max(o, l)), y = Math.min(d, Math.max(s, r));
1121
+ const { edge: i = 50 } = this.options, l = -e.width + i, u = t.width - i, r = 0, d = t.height - i, f = Math.min(u, Math.max(o, l)), g = Math.min(d, Math.max(s, r));
1122
1122
  return {
1123
1123
  x: f,
1124
- y
1124
+ y: g
1125
1125
  };
1126
1126
  }
1127
1127
  destory() {
@@ -1142,7 +1142,7 @@ const vn = {
1142
1142
  const t = a.__draggable__;
1143
1143
  t && (t.destory(), a.__draggable__ = null);
1144
1144
  }
1145
- }, De = "user-select-none";
1145
+ }, Pe = "user-select-none";
1146
1146
  class nt {
1147
1147
  constructor(t, e = {}) {
1148
1148
  this.el = t, this.options = e, this.scope = lt(), this.scope.run(() => {
@@ -1150,8 +1150,8 @@ class nt {
1150
1150
  });
1151
1151
  }
1152
1152
  scope;
1153
- resizing = O(!1);
1154
- direction = O("");
1153
+ resizing = P(!1);
1154
+ direction = P("");
1155
1155
  MIE = null;
1156
1156
  cleanMousedown;
1157
1157
  cleanMouseup;
@@ -1159,16 +1159,16 @@ class nt {
1159
1159
  const { el: t, options: e } = this, { disabled: o, onStart: s, onEnd: i } = e;
1160
1160
  if (o)
1161
1161
  return;
1162
- this.MIE = Vo(t), this.cleanMousedown = ze(document, "mousedown", () => {
1162
+ this.MIE = Vo(t), this.cleanMousedown = Te(document, "mousedown", () => {
1163
1163
  this.direction?.value && this.MIE && (this.resizing.value = !0, t.classList.add("is-resizing", `is-${this.direction.value}-resizing`), s && s(this.direction.value, this.MIE));
1164
- }), this.cleanMouseup = ze(document, "mouseup", () => {
1164
+ }), this.cleanMouseup = Te(document, "mouseup", () => {
1165
1165
  this.resizing.value && this.direction?.value && this.MIE && (t.classList.remove(
1166
1166
  "is-resizing",
1167
1167
  `is-${this.direction.value}-resizing`
1168
1168
  ), i && i(this.direction.value, this.MIE)), this.resizing.value = !1;
1169
1169
  }), H(this.direction, (r) => {
1170
1170
  const d = document.body;
1171
- d.style.cursor = r ? `${r}-resize` : "", r ? d.classList.add(De) : d.classList.remove(De);
1171
+ d.style.cursor = r ? `${r}-resize` : "", r ? d.classList.add(Pe) : d.classList.remove(Pe);
1172
1172
  });
1173
1173
  const { x: l, y: u } = this.MIE;
1174
1174
  H([l, u], () => {
@@ -1179,33 +1179,33 @@ class nt {
1179
1179
  const { MIE: t, direction: e, resizing: o, options: s, el: i } = this, l = e?.value || "";
1180
1180
  if (!t || !o.value || !l)
1181
1181
  return;
1182
- const { x: u, y: r, elementX: d, elementY: f, elementHeight: y, elementWidth: S } = t, { onResizing: $ } = s, {
1182
+ const { x: u, y: r, elementX: d, elementY: f, elementHeight: g, elementWidth: S } = t, { onResizing: $ } = s, {
1183
1183
  minWidth: w = 0,
1184
1184
  minHeight: _ = 0,
1185
1185
  maxWidth: T = 99999,
1186
1186
  maxHeight: V = 99999
1187
1187
  } = s;
1188
1188
  if (l.includes("e")) {
1189
- const g = Math.min(Math.max(d.value, w), T);
1190
- i.style.width = `${g}px`;
1189
+ const y = Math.min(Math.max(d.value, w), T);
1190
+ i.style.width = `${y}px`;
1191
1191
  }
1192
1192
  if (l.includes("s")) {
1193
- const g = Math.min(Math.max(f.value, _), V);
1194
- i.style.height = `${g}px`;
1193
+ const y = Math.min(Math.max(f.value, _), V);
1194
+ i.style.height = `${y}px`;
1195
1195
  }
1196
1196
  if (l.includes("w")) {
1197
- const g = Math.min(
1197
+ const y = Math.min(
1198
1198
  Math.max(S.value - d.value, w),
1199
1199
  T
1200
1200
  );
1201
- i.style.width = `${g}px`, i.style.left = `${u.value}px`;
1201
+ i.style.width = `${y}px`, i.style.left = `${u.value}px`;
1202
1202
  }
1203
1203
  if (l.includes("n")) {
1204
- const g = Math.min(
1205
- Math.max(y.value - f.value, _),
1204
+ const y = Math.min(
1205
+ Math.max(g.value - f.value, _),
1206
1206
  V
1207
1207
  );
1208
- this.el.style.height = `${g}px`, this.el.style.top = `${r.value}px`;
1208
+ this.el.style.height = `${y}px`, this.el.style.top = `${r.value}px`;
1209
1209
  }
1210
1210
  $ && $(l, t);
1211
1211
  }
@@ -1221,7 +1221,7 @@ class nt {
1221
1221
  }
1222
1222
  destory() {
1223
1223
  const t = document.body;
1224
- t.style.cursor = "", t.classList.remove(De), this.cleanMousedown && this.cleanMousedown(), this.cleanMouseup && this.cleanMouseup(), this.MIE?.stop(), this.scope.stop();
1224
+ t.style.cursor = "", t.classList.remove(Pe), this.cleanMousedown && this.cleanMousedown(), this.cleanMouseup && this.cleanMouseup(), this.MIE?.stop(), this.scope.stop();
1225
1225
  }
1226
1226
  }
1227
1227
  const St = {
@@ -1323,7 +1323,7 @@ const St = {
1323
1323
  type: Boolean
1324
1324
  }
1325
1325
  };
1326
- let ce = 1e3;
1326
+ let ue = 1e3;
1327
1327
  function _n(a, t) {
1328
1328
  const { width: e, height: o } = yt(t), s = Ne({
1329
1329
  mode: a.mode || "normal",
@@ -1333,23 +1333,23 @@ function _n(a, t) {
1333
1333
  height: 0,
1334
1334
  top: 0,
1335
1335
  left: 0,
1336
- zIndex: ++ce,
1336
+ zIndex: ++ue,
1337
1337
  dragging: !1,
1338
1338
  resizing: !1
1339
1339
  });
1340
1340
  return H([e, o], ([i, l]) => {
1341
- s.wrapperWidth = i, s.wrapperHeight = l, s.width = be(a.width, i), s.height = be(a.height, l), s.left = a.left ? be(a.left, i) - s.width / 2 : Math.max(Math.floor((i - s.width) / 2), 0), s.top = a.top ? be(a.top, l) : Math.max(Math.floor((l - s.height) / 2), 0);
1341
+ s.wrapperWidth = i, s.wrapperHeight = l, s.width = _e(a.width, i), s.height = _e(a.height, l), s.left = a.left ? _e(a.left, i) - s.width / 2 : Math.max(Math.floor((i - s.width) / 2), 0), s.top = a.top ? _e(a.top, l) : Math.max(Math.floor((l - s.height) / 2), 0);
1342
1342
  }), H(s, (i) => {
1343
- ce = Math.max(i.zIndex, ce);
1343
+ ue = Math.max(i.zIndex, ue);
1344
1344
  }), {
1345
1345
  state: s,
1346
- normal: v(() => s.mode === "normal"),
1347
- maximized: v(() => s.mode === "maximized"),
1348
- minimized: v(() => s.mode === "minimized")
1346
+ normal: h(() => s.mode === "normal"),
1347
+ maximized: h(() => s.mode === "maximized"),
1348
+ minimized: h(() => s.mode === "minimized")
1349
1349
  };
1350
1350
  }
1351
1351
  function kn(a, t) {
1352
- const e = v(() => {
1352
+ const e = h(() => {
1353
1353
  const { width: l, height: u, top: r, left: d, zIndex: f } = t;
1354
1354
  return {
1355
1355
  width: `${l}px`,
@@ -1358,16 +1358,16 @@ function kn(a, t) {
1358
1358
  left: `${d}px`,
1359
1359
  zIndex: f
1360
1360
  };
1361
- }), o = v(() => ({
1361
+ }), o = h(() => ({
1362
1362
  [`is-${t.mode}`]: !!t.mode,
1363
1363
  "is-draggable": !!a.draggable,
1364
1364
  "is-resizable": !!a.resizable,
1365
1365
  "is-primary": !!a.primary
1366
- })), s = v(() => ({
1366
+ })), s = h(() => ({
1367
1367
  [`is-${t.mode}`]: !!t.mode,
1368
1368
  "is-dragging": t.dragging,
1369
1369
  "is-resizing": t.resizing
1370
- })), i = v(() => ({
1370
+ })), i = h(() => ({
1371
1371
  zIndex: t.zIndex
1372
1372
  }));
1373
1373
  return {
@@ -1389,7 +1389,7 @@ function wn(a, t, e) {
1389
1389
  show: () => o("normal"),
1390
1390
  hide: () => o("minimized"),
1391
1391
  active: () => {
1392
- t.zIndex = Math.max(t.zIndex, ++ce);
1392
+ t.zIndex = Math.max(t.zIndex, ++ue);
1393
1393
  },
1394
1394
  submit: () => e("submit"),
1395
1395
  cancel: () => {
@@ -1398,7 +1398,7 @@ function wn(a, t, e) {
1398
1398
  };
1399
1399
  }
1400
1400
  function xn(a, t, e, o) {
1401
- return v(() => {
1401
+ return h(() => {
1402
1402
  const s = typeof a.draggable == "boolean" ? !a.draggable : !!a.draggable?.disabled;
1403
1403
  return {
1404
1404
  ...We(a.draggable) ? a.draggable : {},
@@ -1406,7 +1406,7 @@ function xn(a, t, e, o) {
1406
1406
  target: o,
1407
1407
  selector: ".x-panel__header",
1408
1408
  onStart(i) {
1409
- t.dragging = !0, t.zIndex = Math.max(t.zIndex, ++ce), e("dragStart", i);
1409
+ t.dragging = !0, t.zIndex = Math.max(t.zIndex, ++ue), e("dragStart", i);
1410
1410
  },
1411
1411
  onMove(i) {
1412
1412
  e("dragging", i);
@@ -1421,7 +1421,7 @@ function xn(a, t, e, o) {
1421
1421
  });
1422
1422
  }
1423
1423
  function Sn(a, t, e) {
1424
- return v(() => {
1424
+ return h(() => {
1425
1425
  const o = typeof a.resizable == "boolean" ? !a.resizable : !!a.resizable?.disabled;
1426
1426
  return {
1427
1427
  minWidth: 200,
@@ -1430,7 +1430,7 @@ function Sn(a, t, e) {
1430
1430
  disabled: o,
1431
1431
  dirs: ["e", "s", "w"],
1432
1432
  onStart(s, i) {
1433
- t.resizing = !0, t.zIndex = Math.max(t.zIndex, ++ce), e("resizeStart", s, i);
1433
+ t.resizing = !0, t.zIndex = Math.max(t.zIndex, ++ue), e("resizeStart", s, i);
1434
1434
  },
1435
1435
  onResizing(s, i) {
1436
1436
  e("resizing", s, i);
@@ -1461,29 +1461,32 @@ const Cn = ["src"], zt = /* @__PURE__ */ E({
1461
1461
  props: bn,
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: t, emit: e }) {
1464
- const o = a, s = ue(), i = O(), l = O(), { state: u, maximized: r, minimized: d, normal: f } = _n(o, i), { styles: y, classes: S, wrapperClass: $, modalStyle: w } = kn(o, u), { changeMode: _, active: T, close: V, show: g, hide: M, submit: b, cancel: D } = wn(
1464
+ const o = a, s = de(), i = P(), l = P(), { state: u, maximized: r, minimized: d, normal: f } = _n(o, i), { styles: g, classes: S, wrapperClass: $, modalStyle: w } = kn(o, u), { changeMode: _, active: T, close: V, show: y, hide: M, submit: b, cancel: D } = wn(
1465
1465
  o,
1466
1466
  u,
1467
1467
  e
1468
- ), P = xn(o, u, e, i), oe = Sn(o, u, e), ne = zn(o, l);
1469
- return it(async () => {
1470
- o.modelValue && (await re(), s && e("open", s));
1471
- }), t({
1468
+ ), R = xn(o, u, e, i), oe = Sn(o, u, e), ne = zn(o, l);
1469
+ it(async () => {
1470
+ o.modelValue && (await ce(), s && e("open", s));
1471
+ });
1472
+ const ae = h(() => l.value?.$el);
1473
+ return t({
1474
+ $vtjEl: ae,
1472
1475
  panelRef: l,
1473
1476
  state: u,
1474
1477
  maximized: r,
1475
1478
  minimized: d,
1476
1479
  changeMode: _,
1477
- show: g,
1480
+ show: y,
1478
1481
  hide: M,
1479
1482
  submit: b,
1480
1483
  cancel: D,
1481
1484
  componentInstance: ne
1482
- }), (U, K) => o.modelValue ? (c(), m(rt, {
1485
+ }), (U, Z) => o.modelValue ? (c(), m(rt, {
1483
1486
  key: 0,
1484
1487
  to: "body"
1485
1488
  }, [
1486
- F("div", {
1489
+ O("div", {
1487
1490
  ref_key: "wrapper",
1488
1491
  ref: i,
1489
1492
  class: W(["x-dialog__wrapper", n($)])
@@ -1491,9 +1494,9 @@ const Cn = ["src"], zt = /* @__PURE__ */ E({
1491
1494
  o.modal ? (c(), A("div", {
1492
1495
  key: 0,
1493
1496
  class: "x-dialog__modal",
1494
- style: Se(n(w))
1495
- }, null, 4)) : h("", !0),
1496
- Q((c(), m(n(xt), {
1497
+ style: Ce(n(w))
1498
+ }, null, 4)) : v("", !0),
1499
+ K((c(), m(n(xt), {
1497
1500
  ref_key: "panelRef",
1498
1501
  ref: l,
1499
1502
  class: W(["x-dialog", n(S)]),
@@ -1503,11 +1506,11 @@ const Cn = ["src"], zt = /* @__PURE__ */ E({
1503
1506
  width: "800px",
1504
1507
  height: "600px",
1505
1508
  footer: { justify: "space-between", flex: !0, align: "center" },
1506
- style: Se(n(y)),
1509
+ style: Ce(n(g)),
1507
1510
  size: o.size,
1508
1511
  body: { padding: o.bodyPadding },
1509
1512
  onClick: n(T)
1510
- }, ge({
1513
+ }, ye({
1511
1514
  title: p(() => [
1512
1515
  N(j(o.title), 1)
1513
1516
  ]),
@@ -1520,9 +1523,9 @@ const Cn = ["src"], zt = /* @__PURE__ */ E({
1520
1523
  mode: "icon",
1521
1524
  type: "primary",
1522
1525
  background: "hover",
1523
- onClick: K[0] || (K[0] = (ie) => n(_)("minimized"))
1524
- }, null, 8, ["icon", "size"])) : h("", !0),
1525
- o.maximizable ? (c(), A(Z, { key: 1 }, [
1526
+ onClick: Z[0] || (Z[0] = (re) => n(_)("minimized"))
1527
+ }, null, 8, ["icon", "size"])) : v("", !0),
1528
+ o.maximizable ? (c(), A(Q, { key: 1 }, [
1526
1529
  n(f) ? (c(), m(n(J), {
1527
1530
  key: 1,
1528
1531
  icon: n(Io),
@@ -1530,7 +1533,7 @@ const Cn = ["src"], zt = /* @__PURE__ */ E({
1530
1533
  mode: "icon",
1531
1534
  type: "primary",
1532
1535
  background: "hover",
1533
- onClick: K[2] || (K[2] = (ie) => n(_)("maximized"))
1536
+ onClick: Z[2] || (Z[2] = (re) => n(_)("maximized"))
1534
1537
  }, null, 8, ["icon", "size"])) : (c(), m(n(J), {
1535
1538
  key: 0,
1536
1539
  icon: n(Bo),
@@ -1538,9 +1541,9 @@ const Cn = ["src"], zt = /* @__PURE__ */ E({
1538
1541
  mode: "icon",
1539
1542
  type: "primary",
1540
1543
  background: "hover",
1541
- onClick: K[1] || (K[1] = (ie) => n(_)("normal"))
1544
+ onClick: Z[1] || (Z[1] = (re) => n(_)("normal"))
1542
1545
  }, null, 8, ["icon", "size"]))
1543
- ], 64)) : h("", !0),
1546
+ ], 64)) : v("", !0),
1544
1547
  o.closable ? (c(), m(n(J), {
1545
1548
  key: 2,
1546
1549
  icon: n(Ao),
@@ -1549,16 +1552,16 @@ const Cn = ["src"], zt = /* @__PURE__ */ E({
1549
1552
  type: "danger",
1550
1553
  background: "hover",
1551
1554
  onClick: n(V)
1552
- }, null, 8, ["icon", "size", "onClick"])) : h("", !0)
1555
+ }, null, 8, ["icon", "size", "onClick"])) : v("", !0)
1553
1556
  ]),
1554
1557
  default: p(() => [
1555
1558
  z(U.$slots, "default", {}, () => [
1556
- o.content ? (c(), m(L(o.content), { key: 0 })) : h("", !0),
1559
+ o.content ? (c(), m(L(o.content), { key: 0 })) : v("", !0),
1557
1560
  o.src ? (c(), A("iframe", {
1558
1561
  key: 1,
1559
1562
  src: o.src,
1560
1563
  class: "x-dialog__frame"
1561
- }, null, 8, Cn)) : h("", !0)
1564
+ }, null, 8, Cn)) : v("", !0)
1562
1565
  ])
1563
1566
  ]),
1564
1567
  _: 2
@@ -1576,7 +1579,7 @@ const Cn = ["src"], zt = /* @__PURE__ */ E({
1576
1579
  k(n(I), null, {
1577
1580
  default: p(() => [
1578
1581
  z(U.$slots, "handle"),
1579
- o.cancel ? (c(), m(n(se), {
1582
+ o.cancel ? (c(), m(n(le), {
1580
1583
  key: 0,
1581
1584
  type: "default",
1582
1585
  size: o.size,
@@ -1586,8 +1589,8 @@ const Cn = ["src"], zt = /* @__PURE__ */ E({
1586
1589
  N(j(typeof o.cancel == "string" ? o.cancel : "取消"), 1)
1587
1590
  ]),
1588
1591
  _: 1
1589
- }, 8, ["size", "onClick"])) : h("", !0),
1590
- o.submit ? (c(), m(n(se), {
1592
+ }, 8, ["size", "onClick"])) : v("", !0),
1593
+ o.submit ? (c(), m(n(le), {
1591
1594
  key: 1,
1592
1595
  type: "primary",
1593
1596
  size: o.size,
@@ -1597,7 +1600,7 @@ const Cn = ["src"], zt = /* @__PURE__ */ E({
1597
1600
  N(j(typeof o.submit == "string" ? o.cancel : "确定"), 1)
1598
1601
  ]),
1599
1602
  _: 1
1600
- }, 8, ["size", "onClick"])) : h("", !0)
1603
+ }, 8, ["size", "onClick"])) : v("", !0)
1601
1604
  ]),
1602
1605
  _: 3
1603
1606
  })
@@ -1606,11 +1609,11 @@ const Cn = ["src"], zt = /* @__PURE__ */ E({
1606
1609
  key: "0"
1607
1610
  } : void 0
1608
1611
  ]), 1032, ["header", "class", "style", "size", "body", "onClick"])), [
1609
- [n(vn), n(P)],
1612
+ [n(vn), n(R)],
1610
1613
  [n(St), n(oe)]
1611
1614
  ])
1612
1615
  ], 2)
1613
- ])) : h("", !0);
1616
+ ])) : v("", !0);
1614
1617
  }
1615
1618
  });
1616
1619
  function Qe(a, t) {
@@ -1626,14 +1629,14 @@ function Qe(a, t) {
1626
1629
  destroy: s
1627
1630
  };
1628
1631
  }
1629
- const Tn = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -1), En = /* @__PURE__ */ E({
1632
+ const Tn = /* @__PURE__ */ O("div", { class: "x-mask-sidebar__helper" }, null, -1), En = /* @__PURE__ */ E({
1630
1633
  __name: "Sidebar",
1631
1634
  props: {
1632
1635
  collapsed: { type: Boolean }
1633
1636
  },
1634
1637
  setup(a) {
1635
1638
  const t = a;
1636
- return (e, o) => Q((c(), m(n(I), {
1639
+ return (e, o) => K((c(), m(n(I), {
1637
1640
  class: W(["x-mask-sidebar", { "is-collapsed": t.collapsed }]),
1638
1641
  grow: !1,
1639
1642
  flex: "",
@@ -1679,7 +1682,7 @@ const Tn = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
1679
1682
  "update:favorite"
1680
1683
  ],
1681
1684
  setup(a, { emit: t }) {
1682
- const e = a, o = O(!1), s = O(""), i = O(!1), l = () => {
1685
+ const e = a, o = P(!1), s = P(""), i = P(!1), l = () => {
1683
1686
  o.value = !0;
1684
1687
  }, u = () => {
1685
1688
  s.value = "", o.value = !1, t("update:keyword", s.value);
@@ -1690,19 +1693,19 @@ const Tn = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
1690
1693
  }, f = () => {
1691
1694
  t("update:favorite", i.value);
1692
1695
  };
1693
- return (y, S) => (c(), m(n(I), {
1696
+ return (g, S) => (c(), m(n(I), {
1694
1697
  class: "x-mask-switch-bar",
1695
1698
  justify: "space-between",
1696
1699
  align: "center"
1697
1700
  }, {
1698
1701
  default: p(() => [
1699
- e.collasped ? h("", !0) : (c(), m(n(I), {
1702
+ e.collasped ? v("", !0) : (c(), m(n(I), {
1700
1703
  key: 0,
1701
1704
  class: "x-mask-switch-bar__left",
1702
1705
  grow: ""
1703
1706
  }, {
1704
1707
  default: p(() => [
1705
- o.value ? h("", !0) : (c(), m(n(Xe), {
1708
+ o.value ? v("", !0) : (c(), m(n(Xe), {
1706
1709
  key: 0,
1707
1710
  modelValue: i.value,
1708
1711
  "onUpdate:modelValue": S[0] || (S[0] = ($) => i.value = $),
@@ -1728,7 +1731,7 @@ const Tn = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
1728
1731
  }, null, 8, ["icon"])
1729
1732
  ]),
1730
1733
  _: 1
1731
- }, 8, ["modelValue", "prefix-icon"])) : h("", !0)
1734
+ }, 8, ["modelValue", "prefix-icon"])) : v("", !0)
1732
1735
  ]),
1733
1736
  _: 1
1734
1737
  })),
@@ -1747,7 +1750,7 @@ const Tn = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
1747
1750
  size: "default",
1748
1751
  circle: "",
1749
1752
  onClick: l
1750
- }, null, 8, ["icon"])) : h("", !0),
1753
+ }, null, 8, ["icon"])) : v("", !0),
1751
1754
  e.collasped ? (c(), m(n(J), {
1752
1755
  key: 1,
1753
1756
  icon: n(vo),
@@ -1756,8 +1759,8 @@ const Tn = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
1756
1759
  background: "hover",
1757
1760
  onClick: r,
1758
1761
  circle: ""
1759
- }, null, 8, ["icon"])) : h("", !0),
1760
- e.collasped ? h("", !0) : (c(), m(n(J), {
1762
+ }, null, 8, ["icon"])) : v("", !0),
1763
+ e.collasped ? v("", !0) : (c(), m(n(J), {
1761
1764
  key: 2,
1762
1765
  icon: n(bo),
1763
1766
  mode: "icon",
@@ -1782,7 +1785,7 @@ const Tn = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
1782
1785
  url: {}
1783
1786
  },
1784
1787
  setup(a) {
1785
- const t = a, e = Me(), o = () => {
1788
+ const t = a, e = Ie(), o = () => {
1786
1789
  t.url && e.push(t.url);
1787
1790
  };
1788
1791
  return (s, i) => (c(), m(n(I), {
@@ -1802,7 +1805,7 @@ const Tn = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
1802
1805
  t.logo ? (c(), A("img", {
1803
1806
  key: 0,
1804
1807
  src: t.logo
1805
- }, null, 8, Bn)) : h("", !0)
1808
+ }, null, 8, Bn)) : v("", !0)
1806
1809
  ])
1807
1810
  ]),
1808
1811
  _: 3
@@ -1817,7 +1820,7 @@ const Tn = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
1817
1820
  z(s.$slots, "title", {}, () => [
1818
1821
  N(j(t.title), 1)
1819
1822
  ])
1820
- ])) : h("", !0)
1823
+ ])) : v("", !0)
1821
1824
  ]),
1822
1825
  _: 3
1823
1826
  })
@@ -1825,7 +1828,7 @@ const Tn = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
1825
1828
  _: 3
1826
1829
  }, 8, ["class"]));
1827
1830
  }
1828
- }), _e = "__favorites__", ke = "__search__", $n = /* @__PURE__ */ E({
1831
+ }), ke = "__favorites__", we = "__search__", $n = /* @__PURE__ */ E({
1829
1832
  __name: "Menu",
1830
1833
  props: {
1831
1834
  collapse: { type: Boolean, default: !1 },
@@ -1838,29 +1841,29 @@ const Tn = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
1838
1841
  },
1839
1842
  emits: ["select"],
1840
1843
  setup(a, { emit: t }) {
1841
- const e = a, o = v(() => e.menus || []), s = v(() => String(e.active?.id)), i = v(() => [
1844
+ const e = a, o = h(() => e.menus || []), s = h(() => String(e.active?.id)), i = h(() => [
1842
1845
  {
1843
- id: _e,
1846
+ id: ke,
1844
1847
  title: "收藏",
1845
1848
  icon: mt,
1846
1849
  children: e.favorites?.length ? e.favorites : [
1847
1850
  {
1848
- id: _e + "empty",
1851
+ id: ke + "empty",
1849
1852
  disabled: !0,
1850
1853
  title: "暂无收藏菜单"
1851
1854
  }
1852
1855
  ]
1853
1856
  }
1854
- ]), l = v(() => {
1857
+ ]), l = h(() => {
1855
1858
  const r = (e.keyword || "").trim(), d = r ? (e.flatMenus || []).filter((f) => f.title?.includes(r)) : [];
1856
1859
  return [
1857
1860
  {
1858
- id: ke,
1861
+ id: we,
1859
1862
  title: "搜索",
1860
1863
  icon: Oe,
1861
1864
  children: d?.length ? d : [
1862
1865
  {
1863
- id: ke + "empty",
1866
+ id: we + "empty",
1864
1867
  disabled: !0,
1865
1868
  title: "查询匹配不到菜单项"
1866
1869
  }
@@ -1870,15 +1873,15 @@ const Tn = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
1870
1873
  }), u = (r) => {
1871
1874
  t("select", r);
1872
1875
  };
1873
- return (r, d) => (c(), A(Z, null, [
1874
- Q(k(n(I), {
1876
+ return (r, d) => (c(), A(Q, null, [
1877
+ K(k(n(I), {
1875
1878
  class: "x-mask-menu",
1876
1879
  grow: "",
1877
1880
  flex: !1,
1878
1881
  overflow: "auto"
1879
1882
  }, {
1880
1883
  default: p(() => [
1881
- Q(k(n(ee), {
1884
+ K(k(n(ee), {
1882
1885
  subMenu: {
1883
1886
  popperClass: "x-mask-menu-popper",
1884
1887
  teleported: !0,
@@ -1886,7 +1889,7 @@ const Tn = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
1886
1889
  hideTimeout: 200
1887
1890
  },
1888
1891
  data: o.value,
1889
- "default-icon": n(ae),
1892
+ "default-icon": n(se),
1890
1893
  collapse: !0,
1891
1894
  "collapse-transition": !1,
1892
1895
  "default-active": s.value,
@@ -1894,13 +1897,13 @@ const Tn = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
1894
1897
  }, null, 8, ["data", "default-icon", "default-active"]), [
1895
1898
  [Y, e.collapse]
1896
1899
  ]),
1897
- Q(k(n(ee), {
1900
+ K(k(n(ee), {
1898
1901
  subMenu: {
1899
1902
  popperClass: "x-mask-menu-popper",
1900
1903
  teleported: !0
1901
1904
  },
1902
1905
  data: o.value,
1903
- "default-icon": n(ae),
1906
+ "default-icon": n(se),
1904
1907
  collapse: !1,
1905
1908
  "collapse-transition": !1,
1906
1909
  "default-active": s.value,
@@ -1908,7 +1911,7 @@ const Tn = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
1908
1911
  }, null, 8, ["data", "default-icon", "default-active"]), [
1909
1912
  [Y, !e.collapse]
1910
1913
  ]),
1911
- o.value.length ? h("", !0) : (c(), m(n(Jt), {
1914
+ o.value.length ? v("", !0) : (c(), m(n(Jt), {
1912
1915
  key: 0,
1913
1916
  description: "暂无菜单数据"
1914
1917
  }))
@@ -1917,14 +1920,14 @@ const Tn = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
1917
1920
  }, 512), [
1918
1921
  [Y, !e.favorite && !e.keyword]
1919
1922
  ]),
1920
- Q(k(n(I), {
1923
+ K(k(n(I), {
1921
1924
  class: "x-mask-menu",
1922
1925
  grow: "",
1923
1926
  flex: !1,
1924
1927
  overflow: "auto"
1925
1928
  }, {
1926
1929
  default: p(() => [
1927
- Q(k(n(ee), {
1930
+ K(k(n(ee), {
1928
1931
  class: "x-mask-menu__favorites",
1929
1932
  subMenu: {
1930
1933
  popperClass: "x-mask-menu-popper",
@@ -1933,16 +1936,16 @@ const Tn = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
1933
1936
  hideTimeout: 200
1934
1937
  },
1935
1938
  data: i.value,
1936
- "default-icon": n(ae),
1939
+ "default-icon": n(se),
1937
1940
  collapse: !0,
1938
1941
  "collapse-transition": !1,
1939
1942
  "default-active": s.value,
1940
- "default-openeds": [_e],
1943
+ "default-openeds": [ke],
1941
1944
  onSelect: u
1942
1945
  }, null, 8, ["data", "default-icon", "default-active", "default-openeds"]), [
1943
1946
  [Y, e.collapse]
1944
1947
  ]),
1945
- Q(k(n(ee), {
1948
+ K(k(n(ee), {
1946
1949
  class: "x-mask-menu__favorites",
1947
1950
  subMenu: {
1948
1951
  popperClass: "x-mask-menu-popper",
@@ -1951,11 +1954,11 @@ const Tn = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
1951
1954
  hideTimeout: 200
1952
1955
  },
1953
1956
  data: i.value,
1954
- "default-icon": n(ae),
1957
+ "default-icon": n(se),
1955
1958
  collapse: !1,
1956
1959
  "collapse-transition": !1,
1957
1960
  "default-active": s.value,
1958
- "default-openeds": [_e],
1961
+ "default-openeds": [ke],
1959
1962
  onSelect: u
1960
1963
  }, null, 8, ["data", "default-icon", "default-active", "default-openeds"]), [
1961
1964
  [Y, !e.collapse]
@@ -1965,7 +1968,7 @@ const Tn = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
1965
1968
  }, 512), [
1966
1969
  [Y, e.favorite && !e.keyword]
1967
1970
  ]),
1968
- e.keyword ? Q((c(), m(n(I), {
1971
+ e.keyword ? K((c(), m(n(I), {
1969
1972
  key: 0,
1970
1973
  class: "x-mask-menu",
1971
1974
  grow: "",
@@ -1973,7 +1976,7 @@ const Tn = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
1973
1976
  overflow: "auto"
1974
1977
  }, {
1975
1978
  default: p(() => [
1976
- Q(k(n(ee), {
1979
+ K(k(n(ee), {
1977
1980
  class: "x-mask-menu__search",
1978
1981
  subMenu: {
1979
1982
  popperClass: "x-mask-menu-popper",
@@ -1982,16 +1985,16 @@ const Tn = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
1982
1985
  hideTimeout: 200
1983
1986
  },
1984
1987
  data: l.value,
1985
- "default-icon": n(ae),
1988
+ "default-icon": n(se),
1986
1989
  collapse: !0,
1987
1990
  "collapse-transition": !1,
1988
1991
  "default-active": s.value,
1989
- "default-openeds": [ke],
1992
+ "default-openeds": [we],
1990
1993
  onSelect: u
1991
1994
  }, null, 8, ["data", "default-icon", "default-active", "default-openeds"]), [
1992
1995
  [Y, e.collapse]
1993
1996
  ]),
1994
- Q(k(n(ee), {
1997
+ K(k(n(ee), {
1995
1998
  class: "x-mask-menu__search",
1996
1999
  subMenu: {
1997
2000
  popperClass: "x-mask-menu-popper",
@@ -2000,11 +2003,11 @@ const Tn = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
2000
2003
  hideTimeout: 200
2001
2004
  },
2002
2005
  data: l.value,
2003
- "default-icon": n(ae),
2006
+ "default-icon": n(se),
2004
2007
  collapse: !1,
2005
2008
  "collapse-transition": !1,
2006
2009
  "default-active": s.value,
2007
- "default-openeds": [ke],
2010
+ "default-openeds": [we],
2008
2011
  onSelect: u
2009
2012
  }, null, 8, ["data", "default-icon", "default-active", "default-openeds"]), [
2010
2013
  [Y, !e.collapse]
@@ -2013,7 +2016,7 @@ const Tn = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
2013
2016
  _: 1
2014
2017
  }, 512)), [
2015
2018
  [Y, !!e.keyword]
2016
- ]) : h("", !0)
2019
+ ]) : v("", !0)
2017
2020
  ], 64));
2018
2021
  }
2019
2022
  }), Vn = { class: "x-mask-tabs__trigger" }, Dn = { key: 1 }, Pn = ["onDragstart", "onDragend"], Rn = { key: 1 }, Fn = /* @__PURE__ */ E({
@@ -2029,7 +2032,7 @@ const Tn = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
2029
2032
  setup(a, { emit: t }) {
2030
2033
  const e = a, o = (d) => {
2031
2034
  const f = !!e.favorites.find(
2032
- (y) => y === d.menu || y.id === d.menu?.id
2035
+ (g) => g === d.menu || g.id === d.menu?.id
2033
2036
  );
2034
2037
  return [
2035
2038
  {
@@ -2060,10 +2063,10 @@ const Tn = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
2060
2063
  t("click", e.home);
2061
2064
  return;
2062
2065
  }
2063
- const y = e.tabs.find((S) => S.id === f);
2064
- y && t("click", y);
2066
+ const g = e.tabs.find((S) => S.id === f);
2067
+ g && t("click", g);
2065
2068
  }, i = (d) => {
2066
- const f = e.tabs.find((y) => y.id === d);
2069
+ const f = e.tabs.find((g) => g.id === d);
2067
2070
  f && t("remove", f);
2068
2071
  }, l = (d) => {
2069
2072
  switch (d.name) {
@@ -2104,16 +2107,16 @@ const Tn = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
2104
2107
  name: e.home.id
2105
2108
  }, {
2106
2109
  label: p(() => [
2107
- F("div", Vn, [
2108
- e.home.icon ? (c(), m(L(n(Ce)(e.home.icon)), { key: 0 })) : h("", !0),
2109
- e.home.title ? (c(), A("span", Dn, j(e.home.title), 1)) : h("", !0)
2110
+ O("div", Vn, [
2111
+ e.home.icon ? (c(), m(L(n(Ee)(e.home.icon)), { key: 0 })) : v("", !0),
2112
+ e.home.title ? (c(), A("span", Dn, j(e.home.title), 1)) : v("", !0)
2110
2113
  ])
2111
2114
  ]),
2112
2115
  _: 1
2113
- }, 8, ["name"])) : h("", !0),
2114
- (c(!0), A(Z, null, le(e.tabs, (y) => (c(), m(n(Ye), {
2115
- key: y.id,
2116
- name: y.id,
2116
+ }, 8, ["name"])) : v("", !0),
2117
+ (c(!0), A(Q, null, ie(e.tabs, (g) => (c(), m(n(Ye), {
2118
+ key: g.id,
2119
+ name: g.id,
2117
2120
  lazy: "",
2118
2121
  closable: ""
2119
2122
  }, {
@@ -2123,22 +2126,22 @@ const Tn = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
2123
2126
  placement: "bottom",
2124
2127
  trigger: "hover",
2125
2128
  width: "200px",
2126
- disabled: y.id !== e.value
2129
+ disabled: g.id !== e.value
2127
2130
  }, {
2128
2131
  reference: p(() => [
2129
- F("div", {
2132
+ O("div", {
2130
2133
  class: "x-mask-tabs__trigger",
2131
2134
  draggable: "true",
2132
- onDragstart: (S) => u(y, S),
2133
- onDragend: (S) => r(y, S)
2135
+ onDragstart: (S) => u(g, S),
2136
+ onDragend: (S) => r(g, S)
2134
2137
  }, [
2135
- y.icon ? (c(), m(L(n(Ce)(y.icon)), { key: 0 })) : h("", !0),
2136
- y.title ? (c(), A("span", Rn, j(y.title), 1)) : h("", !0)
2138
+ g.icon ? (c(), m(L(n(Ee)(g.icon)), { key: 0 })) : v("", !0),
2139
+ g.title ? (c(), A("span", Rn, j(g.title), 1)) : v("", !0)
2137
2140
  ], 40, Pn)
2138
2141
  ]),
2139
2142
  default: p(() => [
2140
2143
  k(n(Ke), {
2141
- items: o(y),
2144
+ items: o(g),
2142
2145
  mode: "text",
2143
2146
  size: "small",
2144
2147
  type: "info",
@@ -2164,7 +2167,7 @@ const Tn = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
2164
2167
  return (e, o) => (c(), m(n(Xe), {
2165
2168
  class: "x-mask-theme-switch",
2166
2169
  modelValue: n(t),
2167
- "onUpdate:modelValue": o[0] || (o[0] = (s) => we(t) ? t.value = s : null),
2170
+ "onUpdate:modelValue": o[0] || (o[0] = (s) => xe(t) ? t.value = s : null),
2168
2171
  size: "default",
2169
2172
  "active-action-icon": n(wo),
2170
2173
  "inactive-action-icon": n(xo)
@@ -2186,7 +2189,7 @@ const Tn = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
2186
2189
  "actionCommand"
2187
2190
  ],
2188
2191
  setup(a, { emit: t }) {
2189
- const e = a, o = v(() => {
2192
+ const e = a, o = h(() => {
2190
2193
  const r = e.tabs.map((d, f) => ({
2191
2194
  divided: f === 0,
2192
2195
  label: d.title,
@@ -2237,18 +2240,18 @@ const Tn = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
2237
2240
  onCommand: i
2238
2241
  }, {
2239
2242
  item: p(({ item: f }) => [
2240
- F("span", jn, [
2243
+ O("span", jn, [
2241
2244
  N(j(f.label) + " ", 1),
2242
- ["other", "all"].includes(f.command) ? h("", !0) : (c(), m(n(te), {
2245
+ ["other", "all"].includes(f.command) ? v("", !0) : (c(), m(n(te), {
2243
2246
  key: 0,
2244
- onClick: Rt((y) => s(f), ["stop"]),
2247
+ onClick: Rt((g) => s(f), ["stop"]),
2245
2248
  icon: n(ft)
2246
2249
  }, null, 8, ["onClick", "icon"]))
2247
2250
  ])
2248
2251
  ]),
2249
2252
  _: 1
2250
2253
  }, 8, ["icon", "menus"]),
2251
- k(n(me), { direction: "vertical" }),
2254
+ k(n(ge), { direction: "vertical" }),
2252
2255
  e.actions ? (c(), m(n(Ke), {
2253
2256
  key: 0,
2254
2257
  circle: "",
@@ -2258,16 +2261,16 @@ const Tn = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
2258
2261
  items: r.actions,
2259
2262
  onClick: l,
2260
2263
  onCommand: u
2261
- }, null, 8, ["items"])) : h("", !0),
2262
- e.actions ? (c(), m(n(me), {
2264
+ }, null, 8, ["items"])) : v("", !0),
2265
+ e.actions ? (c(), m(n(ge), {
2263
2266
  key: 1,
2264
2267
  direction: "vertical"
2265
- })) : h("", !0),
2266
- e.theme ? (c(), m(On, { key: 2 })) : h("", !0),
2267
- e.theme ? (c(), m(n(me), {
2268
+ })) : v("", !0),
2269
+ e.theme ? (c(), m(On, { key: 2 })) : v("", !0),
2270
+ e.theme ? (c(), m(n(ge), {
2268
2271
  key: 3,
2269
2272
  direction: "vertical"
2270
- })) : h("", !0),
2273
+ })) : v("", !0),
2271
2274
  z(r.$slots, "default")
2272
2275
  ]),
2273
2276
  _: 3
@@ -2295,7 +2298,7 @@ const Tn = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
2295
2298
  }, null, 8, ["icon", "src"])
2296
2299
  ]),
2297
2300
  default: p(() => [
2298
- e.$slots.default ? z(e.$slots, "default", { key: 0 }) : h("", !0)
2301
+ e.$slots.default ? z(e.$slots, "default", { key: 0 }) : v("", !0)
2299
2302
  ]),
2300
2303
  _: 3
2301
2304
  }, 8, ["disabled"]));
@@ -2323,7 +2326,7 @@ const Tn = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
2323
2326
  }, [
2324
2327
  s ? (c(), m(L(t.createView(s, i)), {
2325
2328
  key: i.fullPath
2326
- })) : h("", !0)
2329
+ })) : v("", !0)
2327
2330
  ], 1032, ["exclude"]))
2328
2331
  ]),
2329
2332
  _: 1
@@ -2417,7 +2420,7 @@ const Tn = /* @__PURE__ */ F("div", { class: "x-mask-sidebar__helper" }, null, -
2417
2420
  }
2418
2421
  }, Ct = Symbol(), Tt = Symbol();
2419
2422
  function Wn(a) {
2420
- const t = O(!1), e = O(""), o = O(!1);
2423
+ const t = P(!1), e = P(""), o = P(!1);
2421
2424
  return {
2422
2425
  collapsed: t,
2423
2426
  keyword: e,
@@ -2426,7 +2429,7 @@ function Wn(a) {
2426
2429
  }
2427
2430
  function Ln(a) {
2428
2431
  const t = ht();
2429
- return v(() => {
2432
+ return h(() => {
2430
2433
  const e = a.home;
2431
2434
  return Object.assign(
2432
2435
  { id: t, url: "/", name: "MaskHome", icon: Co, closable: !1 },
@@ -2441,23 +2444,23 @@ function Et(a, t) {
2441
2444
  }), e;
2442
2445
  }
2443
2446
  function Kn(a, t) {
2444
- const e = Me(), o = Je([]), s = Je([]), i = v(() => Et(o.value, a.menuAdapter)), l = v(() => Po(i.value, "id")), u = O(null), r = (w) => {
2447
+ const e = Ie(), o = Je([]), s = Je([]), i = h(() => Et(o.value, a.menuAdapter)), l = h(() => Po(i.value, "id")), u = P(null), r = (w) => {
2445
2448
  const _ = typeof w == "object" ? w.id : w, T = l.value.get(_);
2446
2449
  if (!T) {
2447
2450
  console.warn("找不到菜单", w);
2448
2451
  return;
2449
2452
  }
2450
- const { type: V = "route", url: g, title: M, icon: b } = T;
2451
- if (!g) {
2453
+ const { type: V = "route", url: y, title: M, icon: b } = T;
2454
+ if (!y) {
2452
2455
  u.value = T, t("select", T);
2453
2456
  return;
2454
2457
  }
2455
2458
  if (V === "route") {
2456
- Ro(g) || g.startsWith("//") ? window.open(g) : (u.value = T, e.push(g).catch((D) => D));
2459
+ Ro(y) || y.startsWith("//") ? window.open(y) : (u.value = T, e.push(y).catch((D) => D));
2457
2460
  return;
2458
2461
  }
2459
2462
  if (V === "window") {
2460
- window.open(g);
2463
+ window.open(y);
2461
2464
  return;
2462
2465
  }
2463
2466
  V === "dialog" && Qe({
@@ -2467,16 +2470,16 @@ function Kn(a, t) {
2467
2470
  height: "80%",
2468
2471
  title: M,
2469
2472
  icon: b,
2470
- src: g
2473
+ src: y
2471
2474
  });
2472
2475
  }, d = async () => {
2473
2476
  o.value = typeof a.menus == "function" ? await a.menus() || [] : a.menus ?? [], s.value = typeof a.favorites == "function" ? await a.favorites() || [] : a.favorites ?? [];
2474
2477
  }, f = (w) => {
2475
2478
  s.value = [w, ...s.value], a.addFavorite && a.addFavorite(w);
2476
- }, y = (w) => {
2479
+ }, g = (w) => {
2477
2480
  s.value = s.value.filter((_) => _.id !== w.id), a.removeFavorite && a.removeFavorite(w);
2478
2481
  }, S = (w) => !!s.value.find((_) => _ === w || _.id === w.id), $ = (w) => {
2479
- S(w) ? y(w) : f(w);
2482
+ S(w) ? g(w) : f(w);
2480
2483
  };
2481
2484
  return it(d), {
2482
2485
  menus: o,
@@ -2488,31 +2491,31 @@ function Kn(a, t) {
2488
2491
  };
2489
2492
  }
2490
2493
  function Qn(a, t, e, o, s) {
2491
- const i = Ue(), l = Me(), u = {}, r = O([]), d = O(), { width: f } = yt(d), y = v(() => Math.floor(f.value / Un)), S = v(
2492
- () => r.value.slice(0, y.value).filter((x) => !x.dialog)
2493
- ), $ = v(() => r.value.slice(y.value)), w = (x) => e.value.find((C) => C.url === x), _ = (x) => i.fullPath === x.url, T = (x) => s.value.id === x ? s.value : r.value.find((C) => C.id === x), V = O(""), g = v(() => T(V.value)), M = (x) => {
2494
+ const i = Ue(), l = Ie(), u = {}, r = P([]), d = P(), { width: f } = yt(d), g = h(() => Math.floor(f.value / Un)), S = h(
2495
+ () => r.value.slice(0, g.value).filter((x) => !x.dialog)
2496
+ ), $ = h(() => r.value.slice(g.value)), w = (x) => e.value.find((C) => C.url === x), _ = (x) => i.fullPath === x.url, T = (x) => s.value.id === x ? s.value : r.value.find((C) => C.id === x), V = P(""), y = h(() => T(V.value)), M = (x) => {
2494
2497
  l.push(x.url).catch((C) => C);
2495
2498
  }, b = (x) => {
2496
2499
  V.value = x.id, i.fullPath !== x.url && M(x);
2497
2500
  }, D = () => {
2498
2501
  M(s.value);
2499
- }, P = (x) => {
2502
+ }, R = (x) => {
2500
2503
  const C = r.value.find((B) => B.url === x.url || B.id === x.id);
2501
2504
  C ? b(C) : (r.value.unshift(x), b(x));
2502
2505
  }, oe = async (x) => {
2503
- const { url: C = i.fullPath, icon: B, title: Ie = "新建标签页" } = x || {}, ve = u[C], Ae = ht(), $e = vt(C);
2506
+ const { url: C = i.fullPath, icon: B, title: Ae = "新建标签页" } = x || {}, be = u[C], $e = ht(), Ve = vt(C);
2504
2507
  return {
2505
- id: Ae,
2506
- name: $e,
2508
+ id: $e,
2509
+ name: Ve,
2507
2510
  url: C,
2508
2511
  icon: B,
2509
- title: Ie,
2512
+ title: Ae,
2510
2513
  closable: !0,
2511
2514
  menu: x,
2512
- ...ve ? await ve() : {}
2515
+ ...be ? await be() : {}
2513
2516
  };
2514
2517
  }, ne = async (x) => {
2515
- if (await Ve.confirm("是否关闭页签", "提示", {
2518
+ if (await De.confirm("是否关闭页签", "提示", {
2516
2519
  type: "warning"
2517
2520
  }).catch((B) => !1)) {
2518
2521
  if (r.value = r.value.filter((B) => B.id !== x.id), V.value === x.id) {
@@ -2521,132 +2524,132 @@ function Qn(a, t, e, o, s) {
2521
2524
  }
2522
2525
  return x;
2523
2526
  }
2524
- }, U = (x) => {
2527
+ }, ae = (x) => {
2525
2528
  const C = r.value.findIndex((B) => B.id === x.id);
2526
2529
  if (C >= 0) {
2527
2530
  const B = r.value[C];
2528
2531
  r.value.splice(C, 1, Object.assign(B, x));
2529
2532
  }
2530
- }, K = async () => {
2531
- if (!await Ve.confirm("是否关闭全部页签", "提示", {
2533
+ }, U = async () => {
2534
+ if (!await De.confirm("是否关闭全部页签", "提示", {
2532
2535
  type: "warning"
2533
2536
  }).catch((B) => !1))
2534
2537
  return;
2535
2538
  const C = r.value;
2536
2539
  return r.value = [], b(s.value), C;
2537
- }, ie = async () => {
2538
- if (!await Ve.confirm("是否关闭其他页签", "提示", {
2540
+ }, Z = async () => {
2541
+ if (!await De.confirm("是否关闭其他页签", "提示", {
2539
2542
  type: "warning"
2540
2543
  }).catch((B) => !1))
2541
2544
  return;
2542
2545
  const C = r.value.filter((B) => B.id !== V.value);
2543
2546
  return r.value = r.value.filter((B) => B.id === V.value), C;
2544
- }, Be = (x) => {
2547
+ }, re = (x) => {
2545
2548
  const C = r.value.filter((B) => B.id !== x.id);
2546
2549
  r.value = [x, ...C], b(x);
2547
- }, de = async () => {
2548
- await re();
2550
+ }, pe = async () => {
2551
+ await ce();
2549
2552
  const x = s.value.url === i.fullPath, C = w(i.fullPath);
2550
2553
  if (x)
2551
2554
  V.value = s.value.id;
2552
2555
  else {
2553
2556
  const B = await oe(C);
2554
- P(B);
2557
+ R(B);
2555
2558
  }
2556
- await re(), o.value = C || null;
2559
+ await ce(), o.value = C || null;
2557
2560
  };
2558
- return H(e, de), H(i, de, { immediate: !0 }), ye(Ct, u), {
2561
+ return H(e, pe), H(i, pe, { immediate: !0 }), he(Ct, u), {
2559
2562
  tabRef: d,
2560
2563
  tabs: r,
2561
2564
  showTabs: S,
2562
- currentTab: g,
2565
+ currentTab: y,
2563
2566
  changeTab: M,
2564
2567
  removeTab: ne,
2565
- updateTab: U,
2566
- addTab: P,
2568
+ updateTab: ae,
2569
+ addTab: R,
2567
2570
  home: s,
2568
2571
  tabValue: V,
2569
2572
  isCurrentTab: _,
2570
2573
  activeHome: D,
2571
2574
  activeTab: b,
2572
2575
  dropdownTabs: $,
2573
- removeAllTabs: K,
2574
- removeOtherTabs: ie,
2575
- moveToShow: Be
2576
+ removeAllTabs: U,
2577
+ removeOtherTabs: Z,
2578
+ moveToShow: re
2576
2579
  };
2577
2580
  }
2578
2581
  function Zn(a) {
2579
- const t = /* @__PURE__ */ new Map(), e = O([]), o = Ne({}), s = {}, { updateTab: i, isCurrentTab: l, activeHome: u, tabs: r } = a, d = (g, M) => {
2582
+ const t = /* @__PURE__ */ new Map(), e = P([]), o = Ne({}), s = {}, { updateTab: i, isCurrentTab: l, activeHome: u, tabs: r } = a, d = (y, M) => {
2580
2583
  const b = M.fullPath;
2581
2584
  if (t.has(b))
2582
2585
  return t.get(b);
2583
2586
  {
2584
- const D = vt(b), P = {
2587
+ const D = vt(b), R = {
2585
2588
  name: D,
2586
2589
  setup() {
2587
- const oe = v(() => o[b] || document.body), ne = v(() => !o[b]), U = v(() => !e.value.includes(D));
2588
- return ye(
2590
+ const oe = h(() => o[b] || document.body), ne = h(() => !o[b]), ae = h(() => !e.value.includes(D));
2591
+ return he(
2589
2592
  Eo,
2590
- Pe({ ...M })
2591
- ), () => U.value ? q(
2593
+ Se({ ...M })
2594
+ ), () => ae.value ? q(
2592
2595
  rt,
2593
2596
  {
2594
2597
  to: oe.value,
2595
2598
  disabled: ne.value
2596
2599
  },
2597
- [q(g)]
2600
+ [q(y)]
2598
2601
  ) : null;
2599
2602
  }
2600
2603
  };
2601
- return t.set(b, P), P;
2604
+ return t.set(b, R), R;
2602
2605
  }
2603
- }, f = (g) => {
2604
- g.dialog = void 0, delete o[g.url];
2605
- const M = s[g.id];
2606
- M && (M.destroy(), delete s[g.id], i(g));
2607
- }, y = (g = []) => {
2608
- g.forEach((M) => {
2606
+ }, f = (y) => {
2607
+ y.dialog = void 0, delete o[y.url];
2608
+ const M = s[y.id];
2609
+ M && (M.destroy(), delete s[y.id], i(y));
2610
+ }, g = (y = []) => {
2611
+ y.forEach((M) => {
2609
2612
  f(M);
2610
2613
  });
2611
- }, S = async (g) => {
2612
- g.dialog = {
2613
- ...g.dialog,
2614
+ }, S = async (y) => {
2615
+ y.dialog = {
2616
+ ...y.dialog,
2614
2617
  onMinimized: () => {
2615
- f(g);
2618
+ f(y);
2616
2619
  },
2617
2620
  onClose: async () => {
2618
- f(g), r.value = r.value.filter((b) => b.id !== g.id);
2621
+ f(y), r.value = r.value.filter((b) => b.id !== y.id);
2619
2622
  }
2620
- }, i(g);
2623
+ }, i(y);
2621
2624
  const M = Qe({
2622
- title: g.title,
2623
- icon: g.icon,
2625
+ title: y.title,
2626
+ icon: y.icon,
2624
2627
  modal: !1,
2625
2628
  resizable: !0,
2626
2629
  draggable: !0,
2627
- ...g.dialog,
2630
+ ...y.dialog,
2628
2631
  onOpen(b) {
2629
- o[g.url] = b.refs.panelRef?.bodyRef?.$el;
2632
+ o[y.url] = b.refs.panelRef?.bodyRef?.$el;
2630
2633
  }
2631
2634
  });
2632
- return await re(), l(g) && u(), s[g.id] = M, M;
2633
- }, $ = async (g) => {
2634
- e.value = [g.name], await re(), e.value = [];
2635
- }, w = async (g) => {
2636
- e.value = g.map((M) => M.name), await re(), e.value = [];
2637
- }, _ = (g) => (g.preventDefault(), !1), T = (g) => {
2638
- if (g.dataTransfer) {
2639
- const M = g.dataTransfer.getData("tab"), b = r.value.find((D) => D.id === M);
2635
+ return await ce(), l(y) && u(), s[y.id] = M, M;
2636
+ }, $ = async (y) => {
2637
+ e.value = [y.name], await ce(), e.value = [];
2638
+ }, w = async (y) => {
2639
+ e.value = y.map((M) => M.name), await ce(), e.value = [];
2640
+ }, _ = (y) => (y.preventDefault(), !1), T = (y) => {
2641
+ if (y.dataTransfer) {
2642
+ const M = y.dataTransfer.getData("tab"), b = r.value.find((D) => D.id === M);
2640
2643
  if (b) {
2641
- const { clientX: D, clientY: P } = g;
2644
+ const { clientX: D, clientY: R } = y;
2642
2645
  b.dialog = {
2643
2646
  left: D,
2644
- top: P
2647
+ top: R
2645
2648
  }, S(b);
2646
2649
  }
2647
2650
  }
2648
- }, V = (g) => !!o[g];
2649
- return ze(document, "dragover", _), ze(document, "drop", T), {
2651
+ }, V = (y) => !!o[y];
2652
+ return Te(document, "dragover", _), Te(document, "drop", T), {
2650
2653
  createView: d,
2651
2654
  openDialog: S,
2652
2655
  refresh: $,
@@ -2654,7 +2657,7 @@ function Zn(a) {
2654
2657
  cleanCache: w,
2655
2658
  hasDialog: V,
2656
2659
  closeDialog: f,
2657
- closeDialogs: y
2660
+ closeDialogs: g
2658
2661
  };
2659
2662
  }
2660
2663
  const Jn = /* @__PURE__ */ E({
@@ -2663,57 +2666,57 @@ const Jn = /* @__PURE__ */ E({
2663
2666
  props: Hn,
2664
2667
  emits: ["select", "actionClick", "actionCommand"],
2665
2668
  setup(a, { emit: t }) {
2666
- const e = a, o = Ln(e), { collapsed: s, keyword: i, favorite: l } = Wn(), { menus: u, favorites: r, flatMenus: d, active: f, select: y, toggleFavorite: S } = Kn(e, t), {
2669
+ const e = a, o = Ln(e), { collapsed: s, keyword: i, favorite: l } = Wn(), { menus: u, favorites: r, flatMenus: d, active: f, select: g, toggleFavorite: S } = Kn(e, t), {
2667
2670
  tabRef: $,
2668
2671
  showTabs: w,
2669
2672
  currentTab: _,
2670
2673
  changeTab: T,
2671
2674
  removeTab: V,
2672
- tabs: g,
2675
+ tabs: y,
2673
2676
  updateTab: M,
2674
2677
  isCurrentTab: b,
2675
2678
  activeHome: D,
2676
- removeAllTabs: P,
2679
+ removeAllTabs: R,
2677
2680
  removeOtherTabs: oe,
2678
2681
  dropdownTabs: ne,
2679
- moveToShow: U
2680
- } = Qn(e, t, d, f, o), { createView: K, openDialog: ie, refresh: Be, exclude: de, cleanCache: x, closeDialogs: C } = Zn({
2681
- tabs: g,
2682
+ moveToShow: ae
2683
+ } = Qn(e, t, d, f, o), { createView: U, openDialog: Z, refresh: re, exclude: pe, cleanCache: x, closeDialogs: C } = Zn({
2684
+ tabs: y,
2682
2685
  updateTab: M,
2683
2686
  isCurrentTab: b,
2684
2687
  activeHome: D
2685
- }), B = async (R) => {
2686
- await V(R) && await x([R]);
2687
- }, Ie = async () => {
2688
- const R = await P();
2689
- R && (C(R), await x(R));
2690
- }, ve = async () => {
2691
- const R = await oe();
2692
- R && (C(R), await x(R));
2693
- }, Ae = (R) => {
2694
- t("actionClick", R);
2695
- }, $e = (R, G) => {
2696
- t("actionCommand", R, G);
2688
+ }), B = async (F) => {
2689
+ await V(F) && await x([F]);
2690
+ }, Ae = async () => {
2691
+ const F = await R();
2692
+ F && (C(F), await x(F));
2693
+ }, be = async () => {
2694
+ const F = await oe();
2695
+ F && (C(F), await x(F));
2696
+ }, $e = (F) => {
2697
+ t("actionClick", F);
2698
+ }, Ve = (F, G) => {
2699
+ t("actionCommand", F, G);
2697
2700
  };
2698
- return ye(Tt, {
2699
- tabs: g,
2701
+ return he(Tt, {
2702
+ tabs: y,
2700
2703
  flatMenus: d,
2701
2704
  favorites: r,
2702
2705
  updateTab: M,
2703
2706
  active: f,
2704
2707
  currentTab: _
2705
- }), (R, G) => (c(), m(n(I), { class: "x-mask" }, {
2708
+ }), (F, G) => (c(), m(n(I), { class: "x-mask" }, {
2706
2709
  default: p(() => [
2707
2710
  e.disabled ? (c(), m(at, {
2708
2711
  key: 1,
2709
- createView: n(K),
2710
- exclude: n(de)
2712
+ createView: n(U),
2713
+ exclude: n(pe)
2711
2714
  }, {
2712
2715
  default: p(() => [
2713
- R.$slots.default ? z(R.$slots, "default", { key: 0 }) : h("", !0)
2716
+ F.$slots.default ? z(F.$slots, "default", { key: 0 }) : v("", !0)
2714
2717
  ]),
2715
2718
  _: 3
2716
- }, 8, ["createView", "exclude"])) : (c(), A(Z, { key: 0 }, [
2719
+ }, 8, ["createView", "exclude"])) : (c(), A(Q, { key: 0 }, [
2717
2720
  k(En, { collapsed: n(s) }, {
2718
2721
  brand: p(() => [
2719
2722
  k(An, {
@@ -2726,11 +2729,11 @@ const Jn = /* @__PURE__ */ E({
2726
2729
  default: p(() => [
2727
2730
  k(Mn, {
2728
2731
  collasped: n(s),
2729
- "onUpdate:collasped": G[0] || (G[0] = (pe) => we(s) ? s.value = pe : null),
2732
+ "onUpdate:collasped": G[0] || (G[0] = (fe) => xe(s) ? s.value = fe : null),
2730
2733
  favorite: n(l),
2731
- "onUpdate:favorite": G[1] || (G[1] = (pe) => we(l) ? l.value = pe : null),
2734
+ "onUpdate:favorite": G[1] || (G[1] = (fe) => xe(l) ? l.value = fe : null),
2732
2735
  keyword: n(i),
2733
- "onUpdate:keyword": G[2] || (G[2] = (pe) => we(i) ? i.value = pe : null)
2736
+ "onUpdate:keyword": G[2] || (G[2] = (fe) => xe(i) ? i.value = fe : null)
2734
2737
  }, null, 8, ["collasped", "favorite", "keyword"]),
2735
2738
  k($n, {
2736
2739
  collapse: n(s),
@@ -2740,7 +2743,7 @@ const Jn = /* @__PURE__ */ E({
2740
2743
  flatMenus: n(d),
2741
2744
  menus: n(u),
2742
2745
  active: n(f),
2743
- onSelect: n(y)
2746
+ onSelect: n(g)
2744
2747
  }, null, 8, ["collapse", "keyword", "favorite", "favorites", "flatMenus", "menus", "active", "onSelect"])
2745
2748
  ]),
2746
2749
  _: 1
@@ -2769,28 +2772,28 @@ const Jn = /* @__PURE__ */ E({
2769
2772
  onClick: n(T),
2770
2773
  onToggleFavorite: n(S),
2771
2774
  onRemove: B,
2772
- onDialog: n(ie),
2773
- onRefresh: n(Be)
2775
+ onDialog: n(Z),
2776
+ onRefresh: n(re)
2774
2777
  }, null, 8, ["favorites", "tabs", "home", "value", "onClick", "onToggleFavorite", "onDialog", "onRefresh"]),
2775
2778
  k(Nn, {
2776
2779
  tabs: n(ne),
2777
2780
  actions: e.actions,
2778
2781
  theme: e.theme,
2779
- onCloseOtherTabs: ve,
2780
- onCloseAllTabs: Ie,
2782
+ onCloseOtherTabs: be,
2783
+ onCloseAllTabs: Ae,
2781
2784
  onCloseTab: B,
2782
- onClickTab: n(U),
2783
- onActionClick: Ae,
2784
- onActionCommand: $e
2785
+ onClickTab: n(ae),
2786
+ onActionClick: $e,
2787
+ onActionCommand: Ve
2785
2788
  }, {
2786
2789
  default: p(() => [
2787
2790
  k(Xn, {
2788
2791
  avatar: e.avatar
2789
- }, ge({ _: 2 }, [
2790
- R.$slots.user ? {
2792
+ }, ye({ _: 2 }, [
2793
+ F.$slots.user ? {
2791
2794
  name: "default",
2792
2795
  fn: p(() => [
2793
- z(R.$slots, "user")
2796
+ z(F.$slots, "user")
2794
2797
  ]),
2795
2798
  key: "0"
2796
2799
  } : void 0
@@ -2802,11 +2805,11 @@ const Jn = /* @__PURE__ */ E({
2802
2805
  _: 3
2803
2806
  }),
2804
2807
  k(at, {
2805
- createView: n(K),
2806
- exclude: n(de)
2808
+ createView: n(U),
2809
+ exclude: n(pe)
2807
2810
  }, {
2808
2811
  default: p(() => [
2809
- R.$slots.default ? z(R.$slots, "default", { key: 0 }) : h("", !0)
2812
+ F.$slots.default ? z(F.$slots, "default", { key: 0 }) : v("", !0)
2810
2813
  ]),
2811
2814
  _: 3
2812
2815
  }, 8, ["createView", "exclude"])
@@ -2820,13 +2823,13 @@ const Jn = /* @__PURE__ */ E({
2820
2823
  }
2821
2824
  });
2822
2825
  function ya(a = {}) {
2823
- const t = Ue(), e = fe(Ct, null), o = fe(Tt, null);
2826
+ const t = Ue(), e = me(Ct, null), o = me(Tt, null);
2824
2827
  if (e) {
2825
2828
  const i = typeof a == "function" ? a : async () => a;
2826
2829
  e[t.fullPath] = i;
2827
2830
  }
2828
2831
  return {
2829
- tab: v(() => o ? o.tabs.value.find((i) => i.url === t.fullPath) : null),
2832
+ tab: h(() => o ? o.tabs.value.find((i) => i.url === t.fullPath) : null),
2830
2833
  mask: o
2831
2834
  };
2832
2835
  }
@@ -2837,11 +2840,11 @@ const Gn = /* @__PURE__ */ E({
2837
2840
  },
2838
2841
  setup(a) {
2839
2842
  const t = a;
2840
- return (e, o) => (c(), m(n(qt), Te(Ee(e.$attrs)), {
2843
+ return (e, o) => (c(), m(n(qt), Me(Be(e.$attrs)), {
2841
2844
  default: p(() => [
2842
- (c(!0), A(Z, null, le(t.options, (s, i) => (c(), m(n(eo), X({
2845
+ (c(!0), A(Q, null, ie(t.options, (s, i) => (c(), m(n(eo), X({
2843
2846
  key: `item_${i}_${s.value}`
2844
- }, s), ge({ _: 2 }, [
2847
+ }, s), ye({ _: 2 }, [
2845
2848
  e.$slots.option ? {
2846
2849
  name: "default",
2847
2850
  fn: p(() => [
@@ -2861,12 +2864,12 @@ const Gn = /* @__PURE__ */ E({
2861
2864
  button: { type: Boolean, default: !1 }
2862
2865
  },
2863
2866
  setup(a) {
2864
- const t = a, e = v(
2865
- () => he(t.button ? to : oo)
2867
+ const t = a, e = h(
2868
+ () => ve(t.button ? to : oo)
2866
2869
  );
2867
- return (o, s) => (c(), m(n(no), Te(Ee(o.$attrs)), {
2870
+ return (o, s) => (c(), m(n(no), Me(Be(o.$attrs)), {
2868
2871
  default: p(() => [
2869
- (c(!0), A(Z, null, le(t.options, (i, l) => (c(), m(L(e.value), {
2872
+ (c(!0), A(Q, null, ie(t.options, (i, l) => (c(), m(L(e.value), {
2870
2873
  key: `item_${l}_${i.value}`,
2871
2874
  label: i.value
2872
2875
  }, {
@@ -2886,12 +2889,12 @@ const Gn = /* @__PURE__ */ E({
2886
2889
  button: { type: Boolean, default: !1 }
2887
2890
  },
2888
2891
  setup(a) {
2889
- const t = a, e = v(
2890
- () => he(t.button ? ao : so)
2892
+ const t = a, e = h(
2893
+ () => ve(t.button ? ao : so)
2891
2894
  );
2892
- return (o, s) => (c(), m(n(lo), Te(Ee(o.$attrs)), {
2895
+ return (o, s) => (c(), m(n(lo), Me(Be(o.$attrs)), {
2893
2896
  default: p(() => [
2894
- (c(!0), A(Z, null, le(t.options, (i, l) => (c(), m(L(e.value), {
2897
+ (c(!0), A(Q, null, ie(t.options, (i, l) => (c(), m(L(e.value), {
2895
2898
  key: `item_${l}_${i.value}`,
2896
2899
  label: i.value
2897
2900
  }, {
@@ -3076,7 +3079,7 @@ async function ta(a, t) {
3076
3079
  return e ? typeof e == "function" ? await e(t) || [] : e : [];
3077
3080
  }
3078
3081
  function oa(a, t, e, o, s) {
3079
- const i = O([]), l = v(() => !o || !s ? {} : Fo(a.cascader).reduce((d, f) => (d[f] = s[f], d), {}));
3082
+ const i = P([]), l = h(() => !o || !s ? {} : Fo(a.cascader).reduce((d, f) => (d[f] = s[f], d), {}));
3080
3083
  return H(
3081
3084
  l,
3082
3085
  async (r) => {
@@ -3090,17 +3093,17 @@ function oa(a, t, e, o, s) {
3090
3093
  immediate: !0
3091
3094
  }
3092
3095
  ), {
3093
- editor: v(() => {
3096
+ editor: h(() => {
3094
3097
  const {
3095
3098
  editor: r = "text",
3096
3099
  placeholder: d,
3097
3100
  label: f = "...",
3098
- disabled: y,
3101
+ disabled: g,
3099
3102
  readonly: S
3100
3103
  } = a, $ = {
3101
3104
  ...a.props,
3102
3105
  placeholder: d || (d === null ? void 0 : `请输入${f}`),
3103
- disabled: y,
3106
+ disabled: g,
3104
3107
  readonly: S,
3105
3108
  options: i.value,
3106
3109
  onFocus: () => t("focus"),
@@ -3122,24 +3125,24 @@ const Bt = /* @__PURE__ */ E({
3122
3125
  props: ea,
3123
3126
  emits: ["update:modelValue", "change", "focus", "blur"],
3124
3127
  setup(a, { expose: t, emit: e }) {
3125
- const o = a, s = fe(It, null), i = fe(fo, null), l = fe(At, null), u = v(() => !s?.proxy || !l ? o.visible : typeof o.visible == "function" ? o.visible(l) : We(o.visible) ? Object.entries(o.visible).every(([D, P]) => l[D] === P) : o.visible), r = () => s?.proxy && l && o.name ? l[o.name] ?? o.modelValue : o.modelValue, d = O(r()), { editor: f } = oa(
3128
+ const o = a, s = me(It, null), i = me(fo, null), l = me(At, null), u = h(() => !s?.proxy || !l ? o.visible : typeof o.visible == "function" ? o.visible(l) : We(o.visible) ? Object.entries(o.visible).every(([D, R]) => l[D] === R) : o.visible), r = () => s?.proxy && l && o.name ? l[o.name] ?? o.modelValue : o.modelValue, d = P(r()), { editor: f } = oa(
3126
3129
  o,
3127
3130
  e,
3128
3131
  u,
3129
3132
  s,
3130
3133
  l
3131
- ), y = O(), S = O(), $ = v(
3134
+ ), g = P(), S = P(), $ = h(
3132
3135
  () => o.size || i?.size || "default"
3133
- ), w = v(() => ({
3136
+ ), w = h(() => ({
3134
3137
  [`is-tooltip-${o.tooltipPosition}`]: !!o.tooltipPosition
3135
- })), _ = v(() => {
3138
+ })), _ = h(() => {
3136
3139
  const b = s?.proxy;
3137
3140
  return {
3138
3141
  width: o.width ? je(o.width) : b && b.inline && b.inlineColumns ? `${100 / b.inlineColumns}%` : null
3139
3142
  };
3140
- }), T = v(() => ({
3143
+ }), T = h(() => ({
3141
3144
  right: typeof o.tooltipPosition == "number" ? `${o.tooltipPosition}px` : void 0
3142
- })), V = v(() => ({
3145
+ })), V = h(() => ({
3143
3146
  ...f.value.props,
3144
3147
  modelValue: d.value,
3145
3148
  "onUpdate:modelValue": (b) => {
@@ -3166,7 +3169,7 @@ const Bt = /* @__PURE__ */ E({
3166
3169
  }
3167
3170
  ), t({
3168
3171
  fieldValue: d,
3169
- itemRef: y,
3172
+ itemRef: g,
3170
3173
  editorRef: S,
3171
3174
  focus: () => {
3172
3175
  S.value?.focus && S.value.focus();
@@ -3178,20 +3181,20 @@ const Bt = /* @__PURE__ */ E({
3178
3181
  key: 0,
3179
3182
  class: ["x-field", w.value],
3180
3183
  ref_key: "itemRef",
3181
- ref: y,
3184
+ ref: g,
3182
3185
  prop: o.name,
3183
3186
  label: b.label,
3184
3187
  size: $.value,
3185
3188
  style: _.value
3186
- }, b.$attrs), ge({
3187
- error: p(({ error: P }) => [
3188
- z(b.$slots, "error", { error: P }, () => [
3189
+ }, b.$attrs), ye({
3190
+ error: p(({ error: R }) => [
3191
+ z(b.$slots, "error", { error: R }, () => [
3189
3192
  o.tooltipMessage ? (c(), A("div", {
3190
3193
  key: 0,
3191
3194
  class: "x-field__info",
3192
- style: Se(T.value)
3195
+ style: Ce(T.value)
3193
3196
  }, [
3194
- k(n(ct), X({ content: P }, o.tooltipMessage), {
3197
+ k(n(ct), X({ content: R }, o.tooltipMessage), {
3195
3198
  default: p(() => [
3196
3199
  k(n(te), {
3197
3200
  class: "x-field__trigger",
@@ -3201,7 +3204,7 @@ const Bt = /* @__PURE__ */ E({
3201
3204
  ]),
3202
3205
  _: 2
3203
3206
  }, 1040, ["content"])
3204
- ], 4)) : h("", !0)
3207
+ ], 4)) : v("", !0)
3205
3208
  ])
3206
3209
  ]),
3207
3210
  default: p(() => [
@@ -3212,16 +3215,16 @@ const Bt = /* @__PURE__ */ E({
3212
3215
  ref_key: "editorRef",
3213
3216
  ref: S,
3214
3217
  modelValue: d.value,
3215
- "onUpdate:modelValue": D[0] || (D[0] = (P) => d.value = P)
3216
- }, n(f).props), ge({ _: 2 }, [
3218
+ "onUpdate:modelValue": D[0] || (D[0] = (R) => d.value = R)
3219
+ }, n(f).props), ye({ _: 2 }, [
3217
3220
  b.$slots.option ? {
3218
3221
  name: "option",
3219
- fn: p(({ option: P }) => [
3220
- z(b.$slots, "option", { option: P })
3222
+ fn: p(({ option: R }) => [
3223
+ z(b.$slots, "option", { option: R })
3221
3224
  ]),
3222
3225
  key: "0"
3223
3226
  } : void 0
3224
- ]), 1040, ["modelValue"])) : h("", !0)
3227
+ ]), 1040, ["modelValue"])) : v("", !0)
3225
3228
  ])
3226
3229
  ]),
3227
3230
  _: 2
@@ -3233,7 +3236,7 @@ const Bt = /* @__PURE__ */ E({
3233
3236
  ]),
3234
3237
  key: "0"
3235
3238
  } : void 0
3236
- ]), 1040, ["prop", "label", "size", "class", "style"])) : h("", !0);
3239
+ ]), 1040, ["prop", "label", "size", "class", "style"])) : v("", !0);
3237
3240
  }
3238
3241
  }), na = {
3239
3242
  /**
@@ -3277,6 +3280,12 @@ const Bt = /* @__PURE__ */ E({
3277
3280
  resetText: {
3278
3281
  type: String,
3279
3282
  default: "重置"
3283
+ },
3284
+ /**
3285
+ * 表单提交处理方法
3286
+ */
3287
+ submitMethod: {
3288
+ type: Function
3280
3289
  }
3281
3290
  }, It = Symbol("formInstanceKey"), At = Symbol("formModelKey"), ha = /* @__PURE__ */ E({
3282
3291
  name: "XForm",
@@ -3284,35 +3293,35 @@ const Bt = /* @__PURE__ */ E({
3284
3293
  props: na,
3285
3294
  emits: ["change", "submit", "reset"],
3286
3295
  setup(a, { expose: t, emit: e }) {
3287
- const o = a, s = ue(), i = O(), l = Ne(o.model || {});
3288
- ye(It, s), ye(At, l), H(l, () => {
3289
- e("change", Pe(l));
3296
+ const o = a, s = de(), i = P(), l = Ne(o.model || {}), u = P(!1);
3297
+ he(It, s), he(At, l), H(l, () => {
3298
+ e("change", Se(l));
3290
3299
  }), H(
3291
3300
  () => o.model,
3292
- (d) => {
3293
- Object.assign(l, d);
3301
+ (f) => {
3302
+ Object.assign(l, f);
3294
3303
  },
3295
3304
  { deep: !0 }
3296
3305
  );
3297
- const u = async () => {
3298
- await i.value.validate().catch((f) => f) && o.model && e("submit", Pe(l));
3299
- }, r = (d) => {
3300
- i.value.resetFields(d), e("reset");
3306
+ const r = async () => {
3307
+ await i.value.validate().catch((g) => g) && o.model && (e("submit", Se(l)), o.submitMethod && (u.value = !0, await o.submitMethod(Se(l)), u.value = !1));
3308
+ }, d = (f) => {
3309
+ i.value.resetFields(f), e("reset");
3301
3310
  };
3302
3311
  return t({
3303
3312
  formRef: i,
3304
3313
  model: l,
3305
- submit: u,
3306
- reset: r
3307
- }), (d, f) => (c(), m(n(go), X({
3314
+ submit: r,
3315
+ reset: d
3316
+ }), (f, g) => (c(), m(n(go), X({
3308
3317
  ref_key: "formRef",
3309
3318
  ref: i,
3310
3319
  class: "x-form",
3311
3320
  inline: o.inline,
3312
3321
  model: l
3313
- }, d.$attrs), {
3322
+ }, f.$attrs), {
3314
3323
  default: p(() => [
3315
- z(d.$slots, "default"),
3324
+ z(f.$slots, "default"),
3316
3325
  o.footer ? (c(), m(n(Bt), {
3317
3326
  key: 0,
3318
3327
  editor: "none",
@@ -3320,32 +3329,33 @@ const Bt = /* @__PURE__ */ E({
3320
3329
  label: " "
3321
3330
  }, {
3322
3331
  editor: p(() => [
3323
- o.submitText ? (c(), m(n(se), {
3332
+ o.submitText ? (c(), m(n(le), {
3324
3333
  key: 0,
3334
+ loading: u.value,
3325
3335
  type: "primary",
3326
- onClick: u
3336
+ onClick: r
3327
3337
  }, {
3328
3338
  default: p(() => [
3329
3339
  N(j(o.submitText), 1)
3330
3340
  ]),
3331
3341
  _: 1
3332
- })) : h("", !0),
3333
- o.resetText ? (c(), m(n(se), {
3342
+ }, 8, ["loading"])) : v("", !0),
3343
+ o.resetText ? (c(), m(n(le), {
3334
3344
  key: 1,
3335
3345
  type: "default",
3336
- onClick: f[0] || (f[0] = () => r())
3346
+ onClick: g[0] || (g[0] = () => d())
3337
3347
  }, {
3338
3348
  default: p(() => [
3339
3349
  N(j(o.resetText), 1)
3340
3350
  ]),
3341
3351
  _: 1
3342
- })) : h("", !0)
3352
+ })) : v("", !0)
3343
3353
  ]),
3344
3354
  default: p(() => [
3345
- z(d.$slots, "footer")
3355
+ z(f.$slots, "footer")
3346
3356
  ]),
3347
3357
  _: 3
3348
- })) : h("", !0)
3358
+ })) : v("", !0)
3349
3359
  ]),
3350
3360
  _: 3
3351
3361
  }, 16, ["inline", "model"]));
@@ -3363,7 +3373,7 @@ const Bt = /* @__PURE__ */ E({
3363
3373
  zt,
3364
3374
  Jn,
3365
3375
  Bt
3366
- ], va = "0.6.12", sa = jo(aa), ba = sa.install;
3376
+ ], va = "0.6.13", sa = jo(aa), ba = sa.install;
3367
3377
  export {
3368
3378
  ot as Draggable,
3369
3379
  et as INSTALLED_KEY,
@@ -3407,10 +3417,10 @@ export {
3407
3417
  Hn as maskProps,
3408
3418
  fa as omit,
3409
3419
  hn as panelProps,
3410
- be as parseSize,
3420
+ _e as parseSize,
3411
3421
  ma as pick,
3412
3422
  Le as useDisabled,
3413
- Ce as useIcon,
3423
+ Ee as useIcon,
3414
3424
  cn as useIconProps,
3415
3425
  vn as vDraggable,
3416
3426
  St as vResizable,