@vtj/ui 0.8.6 → 0.8.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,17 +1,17 @@
1
- import { inject as ke, defineComponent as R, useAttrs as Fe, getCurrentInstance as ye, computed as C, markRaw as Ne, openBlock as p, createBlock as _, unref as c, normalizeClass as J, normalizeStyle as we, withCtx as y, renderSlot as A, resolveDynamicComponent as ee, createCommentVNode as x, createElementBlock as P, mergeProps as O, createElementVNode as N, toDisplayString as L, Fragment as q, renderList as te, isVNode as J0, h as ce, shallowRef as wt, ref as D, watch as G, toRef as Je, createTextVNode as U, useSlots as q0, toRaw as pe, createVNode as z, normalizeProps as tt, guardReactiveProps as nt, effectScope as o0, reactive as ot, onMounted as Q0, onUnmounted as s0, watchEffect as Et, nextTick as xe, Teleport as a0, withDirectives as Z, createSlots as ve, render as Ot, vShow as re, isRef as Ke, withModifiers as i0, KeepAlive as Z0, provide as Ve, withKeys as en } from "vue";
2
- import { ElIcon as Pe, ElSubMenu as tn, ElBadge as bt, ElMenuItem as nn, ElMenu as on, ElButton as de, ElDropdown as sn, ElDropdownMenu as an, ElDropdownItem as ln, ElTooltip as l0, ElDivider as ue, ElSwitch as Tt, ElInput as ge, ElEmpty as r0, ElTabs as c0, ElTabPane as _t, ElPopover as u0, ElAvatar as rn, ElMessageBox as Ge, ElSelect as d0, ElOption as f0, ElCheckboxButton as cn, ElCheckbox as un, ElCheckboxGroup as dn, ElRadioButton as fn, ElRadio as pn, ElRadioGroup as mn, ElInputNumber as gn, ElDatePicker as jt, ElTimePicker as hn, ElRate as vn, ElSlider as yn, ElCascader as wn, formContextKey as bn, ElFormItem as _n, ElForm as Cn, ElImage as kn, ElInfiniteScroll as Ut, ElPagination as xn, ElDescriptions as Xt, ElDescriptionsItem as ut, ElMessage as qe, vLoading as p0, ElLink as Sn, ElUpload as zn, ElImageViewer as En } from "element-plus";
3
- import { ArrowRight as Tn, Minimize as $n, Popup as Mn, Maximize as Bn, RawClose as In, StarFilled as m0, Menu as Pn, Search as Ct, Close as g0, Expand as An, Fold as Vn, Star as h0, Document as _e, Refresh as v0, CopyDocument as Dn, Moon as Fn, Sunny as Nn, MoreFilled as Rn, UserFilled as Ln, HomeFilled as Hn, WarningFilled as On, EditPen as jn, SuccessFilled as Un, CircleCloseFilled as Xn, ZoomIn as Kn, Download as Gn, Delete as Yn, Plus as Wn } from "@vtj/icons";
1
+ import { inject as ke, defineComponent as R, useAttrs as Fe, getCurrentInstance as ye, computed as C, markRaw as Ne, openBlock as f, createBlock as b, unref as c, normalizeClass as J, normalizeStyle as we, withCtx as y, renderSlot as A, resolveDynamicComponent as ee, createCommentVNode as x, createElementBlock as P, mergeProps as O, createElementVNode as N, toDisplayString as L, Fragment as q, renderList as te, isVNode as J0, h as ce, shallowRef as wt, ref as D, watch as G, toRef as Je, createTextVNode as U, useSlots as q0, toRaw as fe, createVNode as z, normalizeProps as tt, guardReactiveProps as nt, effectScope as o0, reactive as ot, onMounted as Q0, onUnmounted as s0, watchEffect as Et, nextTick as xe, Teleport as a0, withDirectives as Z, createSlots as ve, render as Ot, vShow as re, isRef as Ke, withModifiers as i0, KeepAlive as Z0, provide as Ve, withKeys as en } from "vue";
2
+ import { ElIcon as Pe, ElSubMenu as tn, ElBadge as _t, ElMenuItem as nn, ElMenu as on, ElButton as de, ElDropdown as sn, ElDropdownMenu as an, ElDropdownItem as ln, ElTooltip as l0, ElDivider as ue, ElSwitch as Tt, ElInput as ge, ElEmpty as r0, ElTabs as c0, ElTabPane as bt, ElPopover as u0, ElAvatar as rn, ElMessageBox as Ge, ElSelect as d0, ElOption as p0, ElCheckboxButton as cn, ElCheckbox as un, ElCheckboxGroup as dn, ElRadioButton as pn, ElRadio as fn, ElRadioGroup as mn, ElInputNumber as gn, ElDatePicker as jt, ElTimePicker as hn, ElRate as vn, ElSlider as yn, ElCascader as wn, formContextKey as _n, ElFormItem as bn, ElForm as Cn, ElImage as kn, ElInfiniteScroll as Ut, ElPagination as xn, ElDescriptions as Xt, ElDescriptionsItem as ut, ElMessage as qe, vLoading as f0, ElLink as Sn, ElUpload as zn, ElImageViewer as En } from "element-plus";
3
+ import { ArrowRight as Tn, Minimize as $n, Popup as Mn, Maximize as Bn, RawClose as In, StarFilled as m0, Menu as Pn, Search as Ct, Close as g0, Expand as An, Fold as Vn, Star as h0, Document as be, Refresh as v0, CopyDocument as Dn, Moon as Fn, Sunny as Nn, MoreFilled as Rn, UserFilled as Ln, HomeFilled as Hn, WarningFilled as On, EditPen as jn, SuccessFilled as Un, CircleCloseFilled as Xn, ZoomIn as Kn, Download as Gn, Delete as Yn, Plus as Wn } from "@vtj/icons";
4
4
  import { useDraggable as Jn, useMouseInElement as qn, useEventListener as Qe, useElementSize as y0, useDark as Qn, useVirtualList as Zn } from "@vueuse/core";
5
- import { isEqual as $t, isObject as Mt, uid as w0, arrayToMap as e2, isUrl as t2, upperFirstCamelCase as b0, toArray as _0, get as Ye, merge as n2, set as dt, dedupArray as o2, numberFormat as s2, cloneDeep as Kt, downloadRemoteFile as a2, downloadUrl as Gt } from "@vtj/utils";
5
+ import { isEqual as $t, isObject as Mt, uid as w0, arrayToMap as e2, isUrl as t2, upperFirstCamelCase as _0, toArray as b0, get as Ye, merge as n2, set as dt, dedupArray as o2, numberFormat as s2, cloneDeep as Kt, downloadRemoteFile as a2, downloadUrl as Gt } from "@vtj/utils";
6
6
  import { useRouter as Bt, RouterView as i2, useRoute as C0, routeLocationKey as l2 } from "vue-router";
7
7
  /**!
8
8
  * Copyright (c) 2024, VTJ.PRO All rights reserved.
9
9
  * @name @vtj/ui
10
10
  * @author CHC chenhuachun1549@dingtalk.com
11
- * @version 0.8.5
11
+ * @version 0.8.8
12
12
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
13
13
  */
14
- const xa = "0.8.5", r2 = {
14
+ const xa = "0.8.8", r2 = {
15
15
  default: 14,
16
16
  small: 12,
17
17
  large: 18
@@ -39,7 +39,7 @@ const xa = "0.8.5", r2 = {
39
39
  type: Number
40
40
  }
41
41
  };
42
- function fe(o) {
42
+ function pe(o) {
43
43
  return typeof o == "string" ? o : `${o}px`;
44
44
  }
45
45
  function He(o = 0, e) {
@@ -86,10 +86,10 @@ const Sa = {
86
86
  return !s.value && e.icon && (i[e.icon] = !0), i;
87
87
  }), r = C(() => ({
88
88
  "background-color": e.background,
89
- "border-radius": e.radius ? fe(e.radius) : void 0,
90
- padding: e.padding ? fe(e.padding) : void 0
89
+ "border-radius": e.radius ? pe(e.radius) : void 0,
90
+ padding: e.padding ? pe(e.padding) : void 0
91
91
  })), l = C(() => typeof e.size == "number" ? e.size : r2[e.size] ?? void 0);
92
- return (i, d) => (p(), _(c(Pe), {
92
+ return (i, d) => (f(), b(c(Pe), {
93
93
  class: J(["x-icon", a.value]),
94
94
  color: e.color,
95
95
  size: l.value,
@@ -97,8 +97,8 @@ const Sa = {
97
97
  }, {
98
98
  default: y(() => [
99
99
  A(i.$slots, "default", {}, () => [
100
- s.value ? (p(), _(ee(s.value), { key: 0 })) : x("", !0),
101
- e.src ? (p(), P("img", {
100
+ s.value ? (f(), b(ee(s.value), { key: 0 })) : x("", !0),
101
+ e.src ? (f(), P("img", {
102
102
  key: 1,
103
103
  src: e.src
104
104
  }, null, 8, d2)) : x("", !0)
@@ -107,7 +107,7 @@ const Sa = {
107
107
  _: 3
108
108
  }, 8, ["class", "color", "size", "style"]));
109
109
  }
110
- }), f2 = { class: "x-menu__wrapper" }, p2 = {
110
+ }), p2 = { class: "x-menu__wrapper" }, f2 = {
111
111
  key: 1,
112
112
  class: "x-menu__title"
113
113
  }, m2 = /* @__PURE__ */ N("i", null, null, -1), g2 = {
@@ -127,20 +127,20 @@ const Sa = {
127
127
  if (r)
128
128
  return typeof r == "string" && (t?.appContext.app?.component(r) || e.defaultIcon) || r;
129
129
  }, s = (r) => typeof r == "object" ? r : { value: r }, a = (r = []) => r.filter((l) => !l.hidden);
130
- return (r, l) => e.item.children ? (p(), _(c(tn), O({
130
+ return (r, l) => e.item.children ? (f(), b(c(tn), O({
131
131
  key: 0,
132
132
  disabled: e.item.disabled
133
133
  }, e.subMenu, {
134
134
  index: String(e.item.id)
135
135
  }), {
136
136
  title: y(() => [
137
- N("div", f2, [
138
- e.item.icon ? (p(), _(c(ae), {
137
+ N("div", p2, [
138
+ e.item.icon ? (f(), b(c(ae), {
139
139
  key: 0,
140
140
  icon: n(e.item.icon)
141
141
  }, null, 8, ["icon"])) : x("", !0),
142
- e.item.title ? (p(), P("span", p2, L(e.item.title), 1)) : x("", !0),
143
- e.item.badge ? (p(), _(c(bt), O({
142
+ e.item.title ? (f(), P("span", f2, L(e.item.title), 1)) : x("", !0),
143
+ e.item.badge ? (f(), b(c(_t), O({
144
144
  key: 2,
145
145
  class: "x-menu__badge"
146
146
  }, s(e.item.badge)), {
@@ -152,7 +152,7 @@ const Sa = {
152
152
  ])
153
153
  ]),
154
154
  default: y(() => [
155
- (p(!0), P(q, null, te(a(e.item.children), (i) => (p(), _(c(k0), {
155
+ (f(!0), P(q, null, te(a(e.item.children), (i) => (f(), b(c(k0), {
156
156
  key: i.id,
157
157
  item: i,
158
158
  subMenu: e.subMenu,
@@ -160,14 +160,14 @@ const Sa = {
160
160
  }, null, 8, ["item", "subMenu", "defaultIcon"]))), 128))
161
161
  ]),
162
162
  _: 1
163
- }, 16, ["disabled", "index"])) : (p(), _(c(nn), {
163
+ }, 16, ["disabled", "index"])) : (f(), b(c(nn), {
164
164
  key: 1,
165
165
  index: String(e.item.id),
166
166
  disabled: e.item.disabled
167
167
  }, {
168
168
  title: y(() => [
169
- e.item.title ? (p(), P("span", g2, L(e.item.title), 1)) : x("", !0),
170
- e.item.badge ? (p(), _(c(bt), O({
169
+ e.item.title ? (f(), P("span", g2, L(e.item.title), 1)) : x("", !0),
170
+ e.item.badge ? (f(), b(c(_t), O({
171
171
  key: 1,
172
172
  class: "x-menu__badge"
173
173
  }, s(e.item.badge)), {
@@ -178,7 +178,7 @@ const Sa = {
178
178
  }, 16)) : x("", !0)
179
179
  ]),
180
180
  default: y(() => [
181
- e.item.icon ? (p(), _(c(ae), {
181
+ e.item.icon ? (f(), b(c(ae), {
182
182
  key: 0,
183
183
  icon: n(e.item.icon)
184
184
  }, null, 8, ["icon"])) : x("", !0)
@@ -198,8 +198,8 @@ const Sa = {
198
198
  emits: ["select"],
199
199
  setup(o, { emit: e }) {
200
200
  const t = o, n = e, s = C(() => t.data.filter((l) => !l.hidden)), a = (l, i) => {
201
- const d = (u, f = []) => {
202
- for (const h of f) {
201
+ const d = (u, p = []) => {
202
+ for (const h of p) {
203
203
  if (h.id.toString() === u.toString())
204
204
  return h;
205
205
  if (h.children?.length) {
@@ -214,9 +214,9 @@ const Sa = {
214
214
  const i = a(s.value, l);
215
215
  i && n("select", i);
216
216
  };
217
- return (l, i) => (p(), _(c(on), O({ class: "x-menu" }, l.$attrs, { onSelect: r }), {
217
+ return (l, i) => (f(), b(c(on), O({ class: "x-menu" }, l.$attrs, { onSelect: r }), {
218
218
  default: y(() => [
219
- (p(!0), P(q, null, te(s.value, (d) => (p(), _(c(k0), {
219
+ (f(!0), P(q, null, te(s.value, (d) => (f(), b(c(k0), {
220
220
  item: { ...d, icon: d.icon },
221
221
  defaultIcon: t.defaultIcon,
222
222
  subMenu: t.subMenu
@@ -348,7 +348,7 @@ function w2(o) {
348
348
  );
349
349
  });
350
350
  }
351
- function b2(o) {
351
+ function _2(o) {
352
352
  const e = ye();
353
353
  return C(() => {
354
354
  const t = c(o);
@@ -364,7 +364,7 @@ function b2(o) {
364
364
  });
365
365
  }
366
366
  function ze(o) {
367
- const e = b2(o);
367
+ const e = _2(o);
368
368
  return e.value ? Ne(R({ render: () => ce(ae, e.value) })) : void 0;
369
369
  }
370
370
  function Pt(o, e) {
@@ -373,7 +373,7 @@ function Pt(o, e) {
373
373
  return typeof t == "function" ? t(e) : !!t;
374
374
  });
375
375
  }
376
- function _2(o, e, t) {
376
+ function b2(o, e, t) {
377
377
  const n = wt(e), s = D(!1), a = async (l) => {
378
378
  const i = c(o);
379
379
  return i ? typeof i == "function" ? await i(l) : i : e;
@@ -408,7 +408,7 @@ const C2 = { key: 0 }, k2 = /* @__PURE__ */ R({
408
408
  if (i.preventDefault(), !a.value)
409
409
  return n("click"), !1;
410
410
  };
411
- return (i, d) => t.mode === "button" ? (p(), _(c(de), O({
411
+ return (i, d) => t.mode === "button" ? (f(), b(c(de), O({
412
412
  key: 0,
413
413
  icon: c(s),
414
414
  type: t.type,
@@ -419,13 +419,13 @@ const C2 = { key: 0 }, k2 = /* @__PURE__ */ R({
419
419
  U(L(i.label), 1)
420
420
  ]),
421
421
  _: 1
422
- }, 16, ["icon", "type", "size", "disabled"])) : (p(), P("div", {
422
+ }, 16, ["icon", "type", "size", "disabled"])) : (f(), P("div", {
423
423
  key: 1,
424
424
  class: J(["x-action__inner", r.value]),
425
425
  onClick: l
426
426
  }, [
427
- (p(), _(ee(c(s)))),
428
- i.label ? (p(), P("span", C2, L(i.label), 1)) : x("", !0)
427
+ (f(), b(ee(c(s)))),
428
+ i.label ? (f(), P("span", C2, L(i.label), 1)) : x("", !0)
429
429
  ], 2));
430
430
  }
431
431
  }), x2 = ["draggable"], se = /* @__PURE__ */ R({
@@ -436,18 +436,18 @@ const C2 = { key: 0 }, k2 = /* @__PURE__ */ R({
436
436
  setup(o, { emit: e }) {
437
437
  const t = o, n = q0(), s = e, a = v2(t), r = y2(t), l = w2(t), i = Pt(Je(t, "disabled")), d = C(() => !!t.draggable && !i.value), u = C(() => ({
438
438
  [`x-action--${t.mode}`]: !!t.mode
439
- })), f = () => {
440
- i.value || s("click", pe(t));
439
+ })), p = () => {
440
+ i.value || s("click", fe(t));
441
441
  }, h = (v) => {
442
442
  if (i.value)
443
443
  return;
444
- const b = t.menus?.find((S) => S.command === v);
445
- b && s("command", pe(b));
444
+ const _ = t.menus?.find((S) => S.command === v);
445
+ _ && s("command", fe(_));
446
446
  }, m = (v) => {
447
- d && s("dragstart", pe(t), v);
447
+ d && s("dragstart", fe(t), v);
448
448
  }, g = (v) => {
449
- d && s("dragend", pe(t), v);
450
- }, w = (v) => ce(bt, r.value, () => [].concat(v)), $ = (v) => ce(
449
+ d && s("dragend", fe(t), v);
450
+ }, w = (v) => ce(_t, r.value, () => [].concat(v)), $ = (v) => ce(
451
451
  sn,
452
452
  { ...l.value, disabled: i.value, onCommand: h },
453
453
  {
@@ -455,10 +455,10 @@ const C2 = { key: 0 }, k2 = /* @__PURE__ */ R({
455
455
  dropdown: () => [
456
456
  ce(
457
457
  an,
458
- () => (t.menus || []).map((b, S) => ce(
458
+ () => (t.menus || []).map((_, S) => ce(
459
459
  ln,
460
- b,
461
- () => n.item ? n.item({ item: b, index: S }) : b.label
460
+ _,
461
+ () => n.item ? n.item({ item: _, index: S }) : _.label
462
462
  ))
463
463
  )
464
464
  ]
@@ -466,17 +466,17 @@ const C2 = { key: 0 }, k2 = /* @__PURE__ */ R({
466
466
  ), E = (v) => ce(l0, { ...a.value, disabled: i.value }, () => [
467
467
  v
468
468
  ]), T = C(() => {
469
- let v = ce(Ne(k2), { ...t, onClick: f });
470
- const b = n.default?.();
471
- return b && b.length && (v = b[0]), r.value && (v = w(v)), l.value && (v = $(v)), a.value && (v = E(v)), v;
469
+ let v = ce(Ne(k2), { ...t, onClick: p });
470
+ const _ = n.default?.();
471
+ return _ && _.length && (v = _[0]), r.value && (v = w(v)), l.value && (v = $(v)), a.value && (v = E(v)), v;
472
472
  });
473
- return (v, b) => (p(), P("div", {
473
+ return (v, _) => (f(), P("div", {
474
474
  class: J(["x-action", u.value]),
475
475
  draggable: d.value,
476
476
  onDragstart: m,
477
477
  onDragend: g
478
478
  }, [
479
- (p(), _(ee(T.value)))
479
+ (f(), b(ee(T.value)))
480
480
  ], 42, x2));
481
481
  }
482
482
  }), S2 = {
@@ -571,17 +571,17 @@ const C2 = { key: 0 }, k2 = /* @__PURE__ */ R({
571
571
  }, r = (l, i) => {
572
572
  n("command", l, i);
573
573
  };
574
- return (l, i) => (p(), _(c(j), {
574
+ return (l, i) => (f(), b(c(j), {
575
575
  class: "x-action-bar",
576
576
  align: "center"
577
577
  }, {
578
578
  default: y(() => [
579
- (p(!0), P(q, null, te(s.value, (d) => (p(), P(q, null, [
580
- d === "|" ? (p(), _(c(ue), {
579
+ (f(!0), P(q, null, te(s.value, (d) => (f(), P(q, null, [
580
+ d === "|" ? (f(), b(c(ue), {
581
581
  key: 0,
582
582
  direction: "vertical",
583
583
  class: "x-action-bar__divider"
584
- })) : (p(), _(c(se), O({
584
+ })) : (f(), b(c(se), O({
585
585
  key: 1,
586
586
  mode: t.mode,
587
587
  size: t.size,
@@ -747,11 +747,11 @@ const C2 = { key: 0 }, k2 = /* @__PURE__ */ R({
747
747
  })), r = C(() => {
748
748
  const { width: l, height: i, fit: d } = e;
749
749
  return d ? null : {
750
- width: l ? fe(l) : void 0,
751
- height: i ? fe(i) : void 0
750
+ width: l ? pe(l) : void 0,
751
+ height: i ? pe(i) : void 0
752
752
  };
753
753
  });
754
- return (l, i) => (p(), _(ee(e.tag), {
754
+ return (l, i) => (f(), b(ee(e.tag), {
755
755
  class: J(["x-container", a.value]),
756
756
  style: we(r.value)
757
757
  }, {
@@ -796,7 +796,7 @@ const C2 = { key: 0 }, k2 = /* @__PURE__ */ R({
796
796
  "is-border": e.border,
797
797
  "is-pointer": !!n.onClick
798
798
  }));
799
- return (a, r) => (p(), _(c(j), {
799
+ return (a, r) => (f(), b(c(j), {
800
800
  class: J(["x-header", s.value]),
801
801
  justify: "space-between",
802
802
  align: "center"
@@ -809,7 +809,7 @@ const C2 = { key: 0 }, k2 = /* @__PURE__ */ R({
809
809
  onClick: c(n).onClick
810
810
  }, {
811
811
  default: y(() => [
812
- c(t) ? (p(), _(ee(c(t)), {
812
+ c(t) ? (f(), b(ee(c(t)), {
813
813
  key: 0,
814
814
  class: "x-header__icon",
815
815
  onClick: c(n).onClickIcon || c(n).onClick
@@ -819,12 +819,12 @@ const C2 = { key: 0 }, k2 = /* @__PURE__ */ R({
819
819
  U(L(e.content), 1)
820
820
  ])
821
821
  ]),
822
- e.more ? (p(), _(c(ae), {
822
+ e.more ? (f(), b(c(ae), {
823
823
  key: 1,
824
824
  class: "x-header__more",
825
825
  icon: c(Tn)
826
826
  }, null, 8, ["icon"])) : x("", !0),
827
- e.subtitle || a.$slots.subtitle ? (p(), P("span", {
827
+ e.subtitle || a.$slots.subtitle ? (f(), P("span", {
828
828
  key: 2,
829
829
  class: "x-header__subtitle",
830
830
  onClick: r[0] || (r[0] = //@ts-ignore
@@ -837,7 +837,7 @@ const C2 = { key: 0 }, k2 = /* @__PURE__ */ R({
837
837
  ]),
838
838
  _: 3
839
839
  }, 8, ["class", "onClick"]),
840
- a.$slots.actions ? (p(), P("div", $2, [
840
+ a.$slots.actions ? (f(), P("div", $2, [
841
841
  A(a.$slots, "actions")
842
842
  ])) : x("", !0)
843
843
  ]),
@@ -929,7 +929,7 @@ const C2 = { key: 0 }, k2 = /* @__PURE__ */ R({
929
929
  }), r = C(() => t.fit || t.height ? "auto" : void 0);
930
930
  return e({
931
931
  bodyRef: n
932
- }), (l, i) => (p(), _(c(j), {
932
+ }), (l, i) => (f(), b(c(j), {
933
933
  class: J(["x-panel", s.value]),
934
934
  direction: "column",
935
935
  fit: t.fit,
@@ -937,7 +937,7 @@ const C2 = { key: 0 }, k2 = /* @__PURE__ */ R({
937
937
  height: t.height
938
938
  }, {
939
939
  default: y(() => [
940
- a.value ? (p(), _(c(j), {
940
+ a.value ? (f(), b(c(j), {
941
941
  key: 0,
942
942
  flex: !1,
943
943
  class: "x-panel__header"
@@ -971,7 +971,7 @@ const C2 = { key: 0 }, k2 = /* @__PURE__ */ R({
971
971
  ]),
972
972
  _: 3
973
973
  }, 16, ["overflow"]),
974
- l.$slots.footer ? (p(), _(c(j), O({
974
+ l.$slots.footer ? (f(), b(c(j), O({
975
975
  key: 1,
976
976
  flex: !1,
977
977
  padding: "",
@@ -1009,36 +1009,36 @@ class qt {
1009
1009
  return;
1010
1010
  let l = null;
1011
1011
  const i = this.getHandle(), d = this.getTarget();
1012
- let u = e.getBoundingClientRect(), f = null;
1012
+ let u = e.getBoundingClientRect(), p = null;
1013
1013
  const { x: h, y: m } = Jn(e, {
1014
1014
  initialValue: { x: u.x, y: u.y },
1015
1015
  ...t,
1016
1016
  handle: i,
1017
1017
  onStart: (g, w) => {
1018
1018
  document.body.classList.add(Jt), clearTimeout(l), l = setTimeout(() => {
1019
- this.dragging = !0, u = e.getBoundingClientRect(), f = d?.getBoundingClientRect(), a && a(g, w);
1019
+ this.dragging = !0, u = e.getBoundingClientRect(), p = d?.getBoundingClientRect(), a && a(g, w);
1020
1020
  }, s);
1021
1021
  },
1022
1022
  onEnd: (g, w) => {
1023
- if (clearTimeout(l), document.body.classList.remove(Jt), this.dragging && f) {
1023
+ if (clearTimeout(l), document.body.classList.remove(Jt), this.dragging && p) {
1024
1024
  this.dragging = !1;
1025
- const { x: $, y: E } = g, T = this.getPosition(f, u, $, E);
1026
- r && r(T, w), f = null;
1025
+ const { x: $, y: E } = g, T = this.getPosition(p, u, $, E);
1026
+ r && r(T, w), p = null;
1027
1027
  }
1028
1028
  }
1029
1029
  });
1030
1030
  G([h, m], () => {
1031
- if (this.dragging && f) {
1032
- const g = this.getPosition(f, u, h.value, m.value);
1031
+ if (this.dragging && p) {
1032
+ const g = this.getPosition(p, u, h.value, m.value);
1033
1033
  e.style.left = `${g.x}px`, e.style.top = `${g.y}px`;
1034
1034
  }
1035
1035
  });
1036
1036
  }
1037
1037
  getPosition(e, t, n, s) {
1038
- const { edge: a = 50 } = this.options, r = -t.width + a, l = e.width - a, i = 0, d = e.height - a, u = Math.min(l, Math.max(n, r)), f = Math.min(d, Math.max(s, i));
1038
+ const { edge: a = 50 } = this.options, r = -t.width + a, l = e.width - a, i = 0, d = e.height - a, u = Math.min(l, Math.max(n, r)), p = Math.min(d, Math.max(s, i));
1039
1039
  return {
1040
1040
  x: u,
1041
- y: f
1041
+ y: p
1042
1042
  };
1043
1043
  }
1044
1044
  destory() {
@@ -1059,7 +1059,7 @@ const I2 = {
1059
1059
  const e = o.__draggable__;
1060
1060
  e && (e.destory(), o.__draggable__ = null);
1061
1061
  }
1062
- }, ft = "user-select-none";
1062
+ }, pt = "user-select-none";
1063
1063
  class Qt {
1064
1064
  constructor(e, t = {}) {
1065
1065
  this.el = e, this.options = t, this.scope = o0(), this.scope.run(() => {
@@ -1085,7 +1085,7 @@ class Qt {
1085
1085
  ), a && a(this.direction.value, this.MIE)), this.resizing.value = !1;
1086
1086
  }), G(this.direction, (i) => {
1087
1087
  const d = document.body;
1088
- d.style.cursor = i ? `${i}-resize` : "", i ? d.classList.add(ft) : d.classList.remove(ft);
1088
+ d.style.cursor = i ? `${i}-resize` : "", i ? d.classList.add(pt) : d.classList.remove(pt);
1089
1089
  });
1090
1090
  const { x: r, y: l } = this.MIE;
1091
1091
  G([r, l], () => {
@@ -1096,7 +1096,7 @@ class Qt {
1096
1096
  const { MIE: e, direction: t, resizing: n, options: s, el: a } = this, r = t?.value || "";
1097
1097
  if (!e || !n.value || !r)
1098
1098
  return;
1099
- const { x: l, y: i, elementX: d, elementY: u, elementHeight: f, elementWidth: h } = e, { onResizing: m } = s, {
1099
+ const { x: l, y: i, elementX: d, elementY: u, elementHeight: p, elementWidth: h } = e, { onResizing: m } = s, {
1100
1100
  minWidth: g = 0,
1101
1101
  minHeight: w = 0,
1102
1102
  maxWidth: $ = 99999,
@@ -1119,7 +1119,7 @@ class Qt {
1119
1119
  }
1120
1120
  if (r.includes("n")) {
1121
1121
  const T = Math.min(
1122
- Math.max(f.value - u.value, w),
1122
+ Math.max(p.value - u.value, w),
1123
1123
  E
1124
1124
  );
1125
1125
  this.el.style.height = `${T}px`, this.el.style.top = `${i.value}px`;
@@ -1138,7 +1138,7 @@ class Qt {
1138
1138
  }
1139
1139
  destory() {
1140
1140
  const e = document.body;
1141
- e.style.cursor = "", e.classList.remove(ft), this.cleanMousedown && this.cleanMousedown(), this.cleanMouseup && this.cleanMouseup(), this.MIE?.stop(), this.scope.stop();
1141
+ e.style.cursor = "", e.classList.remove(pt), this.cleanMousedown && this.cleanMousedown(), this.cleanMouseup && this.cleanMouseup(), this.MIE?.stop(), this.scope.stop();
1142
1142
  }
1143
1143
  }
1144
1144
  const S0 = {
@@ -1306,9 +1306,9 @@ function D2(o, e, t) {
1306
1306
  show: () => n("normal"),
1307
1307
  hide: () => n("minimized"),
1308
1308
  active: (u) => {
1309
- const f = u.target.nodeName || "";
1309
+ const p = u.target.nodeName || "";
1310
1310
  ["INPUT", "TEXTAREA", "RADIO", "CHECKBOX"].includes(
1311
- f.toUpperCase()
1311
+ p.toUpperCase()
1312
1312
  ) || (e.zIndex = Math.max(e.zIndex, ++Se));
1313
1313
  },
1314
1314
  submit: () => t("submit"),
@@ -1381,7 +1381,7 @@ const L2 = ["src"], z0 = /* @__PURE__ */ R({
1381
1381
  props: P2,
1382
1382
  emits: ["update:modelValue", "open", "close", "destroy", "maximized", "minimized", "normal", "modeChange", "dragStart", "dragging", "dragEnd", "resizeStart", "resizeEnd", "resizing", "submit", "cancel"],
1383
1383
  setup(o, { expose: e, emit: t }) {
1384
- const n = o, s = t, a = ye(), r = D(), l = D(), { state: i, maximized: d, minimized: u, normal: f } = A2(n, r), { styles: h, classes: m, wrapperClass: g, modalStyle: w } = V2(n, i), { changeMode: $, active: E, close: T, show: v, hide: b, submit: S, cancel: V } = D2(
1384
+ const n = o, s = t, a = ye(), r = D(), l = D(), { state: i, maximized: d, minimized: u, normal: p } = A2(n, r), { styles: h, classes: m, wrapperClass: g, modalStyle: w } = V2(n, i), { changeMode: $, active: E, close: T, show: v, hide: _, submit: S, cancel: V } = D2(
1385
1385
  n,
1386
1386
  i,
1387
1387
  s
@@ -1398,12 +1398,12 @@ const L2 = ["src"], z0 = /* @__PURE__ */ R({
1398
1398
  minimized: u,
1399
1399
  changeMode: $,
1400
1400
  show: v,
1401
- hide: b,
1401
+ hide: _,
1402
1402
  submit: S,
1403
1403
  cancel: V,
1404
1404
  close: T,
1405
1405
  componentInstance: X
1406
- }), (K, Q) => n.modelValue ? (p(), _(a0, {
1406
+ }), (K, Q) => n.modelValue ? (f(), b(a0, {
1407
1407
  key: 0,
1408
1408
  to: "body"
1409
1409
  }, [
@@ -1412,12 +1412,12 @@ const L2 = ["src"], z0 = /* @__PURE__ */ R({
1412
1412
  ref: r,
1413
1413
  class: J(["x-dialog__wrapper", c(g)])
1414
1414
  }, [
1415
- n.modal ? (p(), P("div", {
1415
+ n.modal ? (f(), P("div", {
1416
1416
  key: 0,
1417
1417
  class: "x-dialog__modal",
1418
1418
  style: we(c(w))
1419
1419
  }, null, 4)) : x("", !0),
1420
- Z((p(), _(c(We), O({
1420
+ Z((f(), b(c(We), O({
1421
1421
  ref_key: "panelRef",
1422
1422
  ref: l,
1423
1423
  class: ["x-dialog", c(m)],
@@ -1437,7 +1437,7 @@ const L2 = ["src"], z0 = /* @__PURE__ */ R({
1437
1437
  ]),
1438
1438
  actions: y(() => [
1439
1439
  A(K.$slots, "actions"),
1440
- n.minimizable ? (p(), _(c(se), {
1440
+ n.minimizable ? (f(), b(c(se), {
1441
1441
  key: 0,
1442
1442
  icon: c($n),
1443
1443
  size: n.size,
@@ -1446,8 +1446,8 @@ const L2 = ["src"], z0 = /* @__PURE__ */ R({
1446
1446
  background: "hover",
1447
1447
  onClick: Q[0] || (Q[0] = (B) => c($)("minimized"))
1448
1448
  }, null, 8, ["icon", "size"])) : x("", !0),
1449
- n.maximizable ? (p(), P(q, { key: 1 }, [
1450
- c(f) ? (p(), _(c(se), {
1449
+ n.maximizable ? (f(), P(q, { key: 1 }, [
1450
+ c(p) ? (f(), b(c(se), {
1451
1451
  key: 1,
1452
1452
  icon: c(Bn),
1453
1453
  size: n.size,
@@ -1455,7 +1455,7 @@ const L2 = ["src"], z0 = /* @__PURE__ */ R({
1455
1455
  type: "primary",
1456
1456
  background: "hover",
1457
1457
  onClick: Q[2] || (Q[2] = (B) => c($)("maximized"))
1458
- }, null, 8, ["icon", "size"])) : (p(), _(c(se), {
1458
+ }, null, 8, ["icon", "size"])) : (f(), b(c(se), {
1459
1459
  key: 0,
1460
1460
  icon: c(Mn),
1461
1461
  size: n.size,
@@ -1465,7 +1465,7 @@ const L2 = ["src"], z0 = /* @__PURE__ */ R({
1465
1465
  onClick: Q[1] || (Q[1] = (B) => c($)("normal"))
1466
1466
  }, null, 8, ["icon", "size"]))
1467
1467
  ], 64)) : x("", !0),
1468
- n.closable ? (p(), _(c(se), {
1468
+ n.closable ? (f(), b(c(se), {
1469
1469
  key: 2,
1470
1470
  icon: c(In),
1471
1471
  size: n.size,
@@ -1477,8 +1477,8 @@ const L2 = ["src"], z0 = /* @__PURE__ */ R({
1477
1477
  ]),
1478
1478
  default: y(() => [
1479
1479
  A(K.$slots, "default", {}, () => [
1480
- n.content ? (p(), _(ee(n.content), { key: 0 })) : x("", !0),
1481
- n.src ? (p(), P("iframe", {
1480
+ n.content ? (f(), b(ee(n.content), { key: 0 })) : x("", !0),
1481
+ n.src ? (f(), P("iframe", {
1482
1482
  key: 1,
1483
1483
  src: n.src,
1484
1484
  class: "x-dialog__frame"
@@ -1500,7 +1500,7 @@ const L2 = ["src"], z0 = /* @__PURE__ */ R({
1500
1500
  z(c(j), { align: "center" }, {
1501
1501
  default: y(() => [
1502
1502
  A(K.$slots, "handle"),
1503
- n.cancel ? (p(), _(c(de), {
1503
+ n.cancel ? (f(), b(c(de), {
1504
1504
  key: 0,
1505
1505
  type: "default",
1506
1506
  size: n.size,
@@ -1511,7 +1511,7 @@ const L2 = ["src"], z0 = /* @__PURE__ */ R({
1511
1511
  ]),
1512
1512
  _: 1
1513
1513
  }, 8, ["size", "onClick"])) : x("", !0),
1514
- n.submit ? (p(), _(c(de), {
1514
+ n.submit ? (f(), b(c(de), {
1515
1515
  key: 1,
1516
1516
  type: "primary",
1517
1517
  size: n.size,
@@ -1557,7 +1557,7 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
1557
1557
  },
1558
1558
  setup(o) {
1559
1559
  const e = o;
1560
- return (t, n) => Z((p(), _(c(j), {
1560
+ return (t, n) => Z((f(), b(c(j), {
1561
1561
  class: J(["x-mask-sidebar", { "is-collapsed": e.collapsed }]),
1562
1562
  grow: !1,
1563
1563
  flex: "",
@@ -1611,31 +1611,31 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
1611
1611
  n("update:collasped", !t.collasped);
1612
1612
  }, u = () => {
1613
1613
  n("update:keyword", a.value);
1614
- }, f = () => {
1614
+ }, p = () => {
1615
1615
  n("update:favorite", r.value);
1616
1616
  };
1617
- return (h, m) => (p(), _(c(j), {
1617
+ return (h, m) => (f(), b(c(j), {
1618
1618
  class: "x-mask-switch-bar",
1619
1619
  justify: "space-between",
1620
1620
  align: "center"
1621
1621
  }, {
1622
1622
  default: y(() => [
1623
- t.collasped ? x("", !0) : (p(), _(c(j), {
1623
+ t.collasped ? x("", !0) : (f(), b(c(j), {
1624
1624
  key: 0,
1625
1625
  class: "x-mask-switch-bar__left",
1626
1626
  grow: ""
1627
1627
  }, {
1628
1628
  default: y(() => [
1629
- s.value ? x("", !0) : (p(), _(c(Tt), {
1629
+ s.value ? x("", !0) : (f(), b(c(Tt), {
1630
1630
  key: 0,
1631
1631
  modelValue: r.value,
1632
1632
  "onUpdate:modelValue": m[0] || (m[0] = (g) => r.value = g),
1633
1633
  class: "x-mask-switch-bar__switch",
1634
1634
  "active-icon": c(m0),
1635
1635
  "inactive-icon": c(Pn),
1636
- onChange: f
1636
+ onChange: p
1637
1637
  }, null, 8, ["modelValue", "active-icon", "inactive-icon"])),
1638
- s.value ? (p(), _(c(ge), {
1638
+ s.value ? (f(), b(c(ge), {
1639
1639
  key: 1,
1640
1640
  modelValue: a.value,
1641
1641
  "onUpdate:modelValue": m[1] || (m[1] = (g) => a.value = g),
@@ -1663,7 +1663,7 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
1663
1663
  justify: "center"
1664
1664
  }, {
1665
1665
  default: y(() => [
1666
- !s.value && !t.collasped ? (p(), _(c(se), {
1666
+ !s.value && !t.collasped ? (f(), b(c(se), {
1667
1667
  key: 0,
1668
1668
  icon: c(Ct),
1669
1669
  mode: "icon",
@@ -1672,7 +1672,7 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
1672
1672
  circle: "",
1673
1673
  onClick: l
1674
1674
  }, null, 8, ["icon"])) : x("", !0),
1675
- t.collasped ? (p(), _(c(se), {
1675
+ t.collasped ? (f(), b(c(se), {
1676
1676
  key: 1,
1677
1677
  icon: c(An),
1678
1678
  mode: "icon",
@@ -1681,7 +1681,7 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
1681
1681
  onClick: d,
1682
1682
  circle: ""
1683
1683
  }, null, 8, ["icon"])) : x("", !0),
1684
- t.collasped ? x("", !0) : (p(), _(c(se), {
1684
+ t.collasped ? x("", !0) : (f(), b(c(se), {
1685
1685
  key: 2,
1686
1686
  icon: c(Vn),
1687
1687
  mode: "icon",
@@ -1709,7 +1709,7 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
1709
1709
  const e = o, t = Bt(), n = () => {
1710
1710
  e.url && t.push(e.url);
1711
1711
  };
1712
- return (s, a) => (p(), _(c(j), {
1712
+ return (s, a) => (f(), b(c(j), {
1713
1713
  class: J(["x-mask-brand", { "is-collapsed": e.collapsed }]),
1714
1714
  align: "center"
1715
1715
  }, {
@@ -1723,7 +1723,7 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
1723
1723
  }, {
1724
1724
  default: y(() => [
1725
1725
  A(s.$slots, "logo", {}, () => [
1726
- e.logo ? (p(), P("img", {
1726
+ e.logo ? (f(), P("img", {
1727
1727
  key: 0,
1728
1728
  src: e.logo
1729
1729
  }, null, 8, U2)) : x("", !0)
@@ -1737,7 +1737,7 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
1737
1737
  align: "center"
1738
1738
  }, {
1739
1739
  default: y(() => [
1740
- e.title ? (p(), P("span", X2, [
1740
+ e.title ? (f(), P("span", X2, [
1741
1741
  A(s.$slots, "title", {}, () => [
1742
1742
  U(L(e.title), 1)
1743
1743
  ])
@@ -1776,7 +1776,7 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
1776
1776
  ]
1777
1777
  }
1778
1778
  ]), l = C(() => {
1779
- const d = (t.keyword || "").trim(), u = d ? (t.flatMenus || []).filter((f) => f.title?.includes(d)) : [];
1779
+ const d = (t.keyword || "").trim(), u = d ? (t.flatMenus || []).filter((p) => p.title?.includes(d)) : [];
1780
1780
  return [
1781
1781
  {
1782
1782
  id: je,
@@ -1794,7 +1794,7 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
1794
1794
  }), i = (d) => {
1795
1795
  s("select", d);
1796
1796
  };
1797
- return (d, u) => (p(), P(q, null, [
1797
+ return (d, u) => (f(), P(q, null, [
1798
1798
  Z(z(c(j), {
1799
1799
  class: "x-mask-menu",
1800
1800
  grow: "",
@@ -1810,7 +1810,7 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
1810
1810
  hideTimeout: 200
1811
1811
  },
1812
1812
  data: n.value,
1813
- "default-icon": c(_e),
1813
+ "default-icon": c(be),
1814
1814
  collapse: !0,
1815
1815
  "collapse-transition": !1,
1816
1816
  "default-active": a.value,
@@ -1824,7 +1824,7 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
1824
1824
  teleported: !0
1825
1825
  },
1826
1826
  data: n.value,
1827
- "default-icon": c(_e),
1827
+ "default-icon": c(be),
1828
1828
  collapse: !1,
1829
1829
  "collapse-transition": !1,
1830
1830
  "default-active": a.value,
@@ -1832,7 +1832,7 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
1832
1832
  }, null, 8, ["data", "default-icon", "default-active"]), [
1833
1833
  [re, !t.collapse]
1834
1834
  ]),
1835
- n.value.length ? x("", !0) : (p(), _(c(r0), {
1835
+ n.value.length ? x("", !0) : (f(), b(c(r0), {
1836
1836
  key: 0,
1837
1837
  description: "暂无菜单数据"
1838
1838
  }))
@@ -1857,7 +1857,7 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
1857
1857
  hideTimeout: 200
1858
1858
  },
1859
1859
  data: r.value,
1860
- "default-icon": c(_e),
1860
+ "default-icon": c(be),
1861
1861
  collapse: !0,
1862
1862
  "collapse-transition": !1,
1863
1863
  "default-active": a.value,
@@ -1875,7 +1875,7 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
1875
1875
  hideTimeout: 200
1876
1876
  },
1877
1877
  data: r.value,
1878
- "default-icon": c(_e),
1878
+ "default-icon": c(be),
1879
1879
  collapse: !1,
1880
1880
  "collapse-transition": !1,
1881
1881
  "default-active": a.value,
@@ -1889,7 +1889,7 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
1889
1889
  }, 512), [
1890
1890
  [re, t.favorite && !t.keyword]
1891
1891
  ]),
1892
- t.keyword ? Z((p(), _(c(j), {
1892
+ t.keyword ? Z((f(), b(c(j), {
1893
1893
  key: 0,
1894
1894
  class: "x-mask-menu",
1895
1895
  grow: "",
@@ -1906,7 +1906,7 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
1906
1906
  hideTimeout: 200
1907
1907
  },
1908
1908
  data: l.value,
1909
- "default-icon": c(_e),
1909
+ "default-icon": c(be),
1910
1910
  collapse: !0,
1911
1911
  "collapse-transition": !1,
1912
1912
  "default-active": a.value,
@@ -1924,7 +1924,7 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
1924
1924
  hideTimeout: 200
1925
1925
  },
1926
1926
  data: l.value,
1927
- "default-icon": c(_e),
1927
+ "default-icon": c(be),
1928
1928
  collapse: !1,
1929
1929
  "collapse-transition": !1,
1930
1930
  "default-active": a.value,
@@ -2035,7 +2035,7 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
2035
2035
  emits: ["click", "remove", "refresh", "toggleFavorite", "dialog"],
2036
2036
  setup(o, { emit: e }) {
2037
2037
  const t = o, n = e, s = (u) => {
2038
- const f = !!t.favorites.find(
2038
+ const p = !!t.favorites.find(
2039
2039
  (h) => h === u.menu || h.id === u.menu?.id
2040
2040
  );
2041
2041
  return [
@@ -2047,7 +2047,7 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
2047
2047
  },
2048
2048
  "|",
2049
2049
  {
2050
- icon: f ? m0 : h0,
2050
+ icon: p ? m0 : h0,
2051
2051
  label: "收藏",
2052
2052
  name: "favorite",
2053
2053
  value: u.menu,
@@ -2062,16 +2062,16 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
2062
2062
  }
2063
2063
  ];
2064
2064
  }, a = (u) => {
2065
- const f = u.paneName;
2066
- if (f === t.home.id) {
2065
+ const p = u.paneName;
2066
+ if (p === t.home.id) {
2067
2067
  n("click", t.home);
2068
2068
  return;
2069
2069
  }
2070
- const h = t.tabs.find((m) => m.id === f);
2070
+ const h = t.tabs.find((m) => m.id === p);
2071
2071
  h && n("click", h);
2072
2072
  }, r = (u) => {
2073
- const f = t.tabs.find((h) => h.id === u);
2074
- f && n("remove", f);
2073
+ const p = t.tabs.find((h) => h.id === u);
2074
+ p && n("remove", p);
2075
2075
  }, l = (u) => {
2076
2076
  switch (u.name) {
2077
2077
  case "refresh":
@@ -2084,12 +2084,12 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
2084
2084
  n("dialog", u.value);
2085
2085
  break;
2086
2086
  }
2087
- }, i = (u, f) => {
2088
- f.dataTransfer && (f.dataTransfer.setData("tab", u.id), f.target && f.target.classList.add("is-dagging"));
2089
- }, d = (u, f) => {
2090
- f.target && f.target.classList.remove("is-dagging");
2087
+ }, i = (u, p) => {
2088
+ p.dataTransfer && (p.dataTransfer.setData("tab", u.id), p.target && p.target.classList.add("is-dagging"));
2089
+ }, d = (u, p) => {
2090
+ p.target && p.target.classList.remove("is-dagging");
2091
2091
  };
2092
- return (u, f) => (p(), _(c(j), {
2092
+ return (u, p) => (f(), b(c(j), {
2093
2093
  ref: "tabsRef",
2094
2094
  class: "x-mask-tabs",
2095
2095
  height: "100%",
@@ -2106,19 +2106,19 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
2106
2106
  onTabClick: a
2107
2107
  }, {
2108
2108
  default: y(() => [
2109
- t.home ? (p(), _(c(_t), {
2109
+ t.home ? (f(), b(c(bt), {
2110
2110
  key: 0,
2111
2111
  name: t.home.id
2112
2112
  }, {
2113
2113
  label: y(() => [
2114
2114
  N("div", q2, [
2115
- t.home.icon ? (p(), _(ee(c(ze)(t.home.icon)), { key: 0 })) : x("", !0),
2116
- t.home.title ? (p(), P("span", Q2, L(t.home.title), 1)) : x("", !0)
2115
+ t.home.icon ? (f(), b(ee(c(ze)(t.home.icon)), { key: 0 })) : x("", !0),
2116
+ t.home.title ? (f(), P("span", Q2, L(t.home.title), 1)) : x("", !0)
2117
2117
  ])
2118
2118
  ]),
2119
2119
  _: 1
2120
2120
  }, 8, ["name"])) : x("", !0),
2121
- (p(!0), P(q, null, te(t.tabs, (h) => (p(), _(c(_t), {
2121
+ (f(!0), P(q, null, te(t.tabs, (h) => (f(), b(c(bt), {
2122
2122
  key: h.id,
2123
2123
  name: h.id,
2124
2124
  lazy: "",
@@ -2139,8 +2139,8 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
2139
2139
  onDragstart: (m) => i(h, m),
2140
2140
  onDragend: (m) => d(h, m)
2141
2141
  }, [
2142
- h.icon ? (p(), _(ee(c(ze)(h.icon)), { key: 0 })) : x("", !0),
2143
- h.title ? (p(), P("span", eo, L(h.title), 1)) : x("", !0)
2142
+ h.icon ? (f(), b(ee(c(ze)(h.icon)), { key: 0 })) : x("", !0),
2143
+ h.title ? (f(), P("span", eo, L(h.title), 1)) : x("", !0)
2144
2144
  ], 40, Z2)
2145
2145
  ]),
2146
2146
  default: y(() => [
@@ -2168,7 +2168,7 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
2168
2168
  __name: "ThemeSwitch",
2169
2169
  setup(o) {
2170
2170
  const e = Qn();
2171
- return (t, n) => (p(), _(c(Tt), {
2171
+ return (t, n) => (f(), b(c(Tt), {
2172
2172
  class: "x-mask-theme-switch",
2173
2173
  modelValue: c(e),
2174
2174
  "onUpdate:modelValue": n[0] || (n[0] = (s) => Ke(e) ? e.value = s : null),
@@ -2194,8 +2194,8 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
2194
2194
  ],
2195
2195
  setup(o, { emit: e }) {
2196
2196
  const t = o, n = e, s = C(() => {
2197
- const d = t.tabs.map((u, f) => ({
2198
- divided: f === 0,
2197
+ const d = t.tabs.map((u, p) => ({
2198
+ divided: p === 0,
2199
2199
  label: u.title,
2200
2200
  command: u
2201
2201
  }));
@@ -2229,7 +2229,7 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
2229
2229
  }, i = (d, u) => {
2230
2230
  n("actionCommand", d, u);
2231
2231
  };
2232
- return (d, u) => (p(), _(c(j), {
2232
+ return (d, u) => (f(), b(c(j), {
2233
2233
  class: "x-mask-toolbar",
2234
2234
  align: "center"
2235
2235
  }, {
@@ -2243,12 +2243,12 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
2243
2243
  background: "hover",
2244
2244
  onCommand: r
2245
2245
  }, {
2246
- item: y(({ item: f }) => [
2246
+ item: y(({ item: p }) => [
2247
2247
  N("span", oo, [
2248
- U(L(f.label) + " ", 1),
2249
- ["other", "all"].includes(f.command) ? x("", !0) : (p(), _(c(ae), {
2248
+ U(L(p.label) + " ", 1),
2249
+ ["other", "all"].includes(p.command) ? x("", !0) : (f(), b(c(ae), {
2250
2250
  key: 0,
2251
- onClick: i0((h) => a(f), ["stop"]),
2251
+ onClick: i0((h) => a(p), ["stop"]),
2252
2252
  icon: c(g0)
2253
2253
  }, null, 8, ["onClick", "icon"]))
2254
2254
  ])
@@ -2256,7 +2256,7 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
2256
2256
  _: 1
2257
2257
  }, 8, ["icon", "menus"]),
2258
2258
  z(c(ue), { direction: "vertical" }),
2259
- t.actions ? (p(), _(c(At), {
2259
+ t.actions ? (f(), b(c(At), {
2260
2260
  key: 0,
2261
2261
  circle: "",
2262
2262
  mode: "icon",
@@ -2266,12 +2266,12 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
2266
2266
  onClick: l,
2267
2267
  onCommand: i
2268
2268
  }, null, 8, ["items"])) : x("", !0),
2269
- t.actions ? (p(), _(c(ue), {
2269
+ t.actions ? (f(), b(c(ue), {
2270
2270
  key: 1,
2271
2271
  direction: "vertical"
2272
2272
  })) : x("", !0),
2273
- t.theme ? (p(), _(no, { key: 2 })) : x("", !0),
2274
- t.theme ? (p(), _(c(ue), {
2273
+ t.theme ? (f(), b(no, { key: 2 })) : x("", !0),
2274
+ t.theme ? (f(), b(c(ue), {
2275
2275
  key: 3,
2276
2276
  direction: "vertical"
2277
2277
  })) : x("", !0),
@@ -2287,7 +2287,7 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
2287
2287
  },
2288
2288
  setup(o) {
2289
2289
  const e = o;
2290
- return (t, n) => (p(), _(c(u0), {
2290
+ return (t, n) => (f(), b(c(u0), {
2291
2291
  width: 200,
2292
2292
  "popper-class": "x-mask-avatar__popper",
2293
2293
  disabled: !t.$slots.default
@@ -2315,7 +2315,7 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
2315
2315
  },
2316
2316
  setup(o) {
2317
2317
  const e = o;
2318
- return (t, n) => (p(), _(c(j), {
2318
+ return (t, n) => (f(), b(c(j), {
2319
2319
  class: "x-mask__content",
2320
2320
  flex: !1,
2321
2321
  grow: "",
@@ -2325,10 +2325,10 @@ const H2 = /* @__PURE__ */ N("div", { class: "x-mask-sidebar__helper" }, null, -
2325
2325
  A(t.$slots, "default"),
2326
2326
  z(c(i2), null, {
2327
2327
  default: y(({ Component: s, route: a }) => [
2328
- (p(), _(Z0, {
2328
+ (f(), b(Z0, {
2329
2329
  exclude: e.exclude
2330
2330
  }, [
2331
- s ? (p(), _(ee(e.createView(s, a)), {
2331
+ s ? (f(), b(ee(e.createView(s, a)), {
2332
2332
  key: a.fullPath
2333
2333
  })) : x("", !0)
2334
2334
  ], 1032, ["exclude"]))
@@ -2371,7 +2371,7 @@ function ro(o, e) {
2371
2371
  console.warn("找不到菜单", g);
2372
2372
  return;
2373
2373
  }
2374
- const { type: E = "route", url: T, title: v, icon: b } = $;
2374
+ const { type: E = "route", url: T, title: v, icon: _ } = $;
2375
2375
  if (!T) {
2376
2376
  l.value = $, e("select", $);
2377
2377
  return;
@@ -2390,17 +2390,17 @@ function ro(o, e) {
2390
2390
  width: "80%",
2391
2391
  height: "80%",
2392
2392
  title: v,
2393
- icon: b,
2393
+ icon: _,
2394
2394
  src: T
2395
2395
  });
2396
2396
  }, d = async () => {
2397
2397
  n.value = typeof o.menus == "function" ? await o.menus() || [] : o.menus ?? [], s.value = typeof o.favorites == "function" ? await o.favorites() || [] : o.favorites ?? [];
2398
2398
  }, u = (g) => {
2399
2399
  s.value = [g, ...s.value], o.addFavorite && o.addFavorite(g);
2400
- }, f = (g) => {
2400
+ }, p = (g) => {
2401
2401
  s.value = s.value.filter((w) => w.id !== g.id), o.removeFavorite && o.removeFavorite(g);
2402
2402
  }, h = (g) => !!s.value.find((w) => w === g || w.id === g.id), m = (g) => {
2403
- h(g) ? f(g) : u(g);
2403
+ h(g) ? p(g) : u(g);
2404
2404
  };
2405
2405
  return Et(d), {
2406
2406
  menus: n,
@@ -2412,19 +2412,19 @@ function ro(o, e) {
2412
2412
  };
2413
2413
  }
2414
2414
  function co(o, e, t, n, s) {
2415
- const a = C0(), r = Bt(), l = {}, i = D([]), d = D(), { width: u } = y0(d), f = C(() => Math.floor(u.value / W2)), h = C(
2416
- () => i.value.slice(0, f.value).filter((I) => !I.dialog)
2417
- ), m = C(() => i.value.slice(f.value)), g = (I) => t.value.find((M) => M.url === I), w = (I) => a.fullPath === I.url, $ = (I) => s.value.id === I ? s.value : i.value.find((M) => M.id === I), E = D(""), T = C(() => $(E.value)), v = (I) => {
2415
+ const a = C0(), r = Bt(), l = {}, i = D([]), d = D(), { width: u } = y0(d), p = C(() => Math.floor(u.value / W2)), h = C(
2416
+ () => i.value.slice(0, p.value).filter((I) => !I.dialog)
2417
+ ), m = C(() => i.value.slice(p.value)), g = (I) => t.value.find((M) => M.url === I), w = (I) => a.fullPath === I.url, $ = (I) => s.value.id === I ? s.value : i.value.find((M) => M.id === I), E = D(""), T = C(() => $(E.value)), v = (I) => {
2418
2418
  r.push(I.url).catch((M) => M);
2419
- }, b = (I) => {
2419
+ }, _ = (I) => {
2420
2420
  E.value = I.id, a.fullPath !== I.url && v(I);
2421
2421
  }, S = () => {
2422
2422
  v(s.value);
2423
2423
  }, V = (I) => {
2424
2424
  const M = i.value.find((F) => F.url === I.url || F.id === I.id);
2425
- M ? b(M) : (i.value.unshift(I), b(I));
2425
+ M ? _(M) : (i.value.unshift(I), _(I));
2426
2426
  }, k = async (I) => {
2427
- const { url: M = a.fullPath, icon: F, title: oe = "新建标签页" } = I || {}, be = l[M], rt = w0(), ct = b0(M);
2427
+ const { url: M = a.fullPath, icon: F, title: oe = "新建标签页" } = I || {}, _e = l[M], rt = w0(), ct = _0(M);
2428
2428
  return {
2429
2429
  id: rt,
2430
2430
  name: ct,
@@ -2433,7 +2433,7 @@ function co(o, e, t, n, s) {
2433
2433
  title: oe,
2434
2434
  closable: !0,
2435
2435
  menu: I,
2436
- ...be ? await be() : {}
2436
+ ..._e ? await _e() : {}
2437
2437
  };
2438
2438
  }, H = async (I) => {
2439
2439
  if (await Ge.confirm("是否关闭页签", "提示", {
@@ -2457,7 +2457,7 @@ function co(o, e, t, n, s) {
2457
2457
  }).catch(() => !1))
2458
2458
  return;
2459
2459
  const M = i.value;
2460
- return i.value = [], b(s.value), M;
2460
+ return i.value = [], _(s.value), M;
2461
2461
  }, K = async () => {
2462
2462
  if (!await Ge.confirm("是否关闭其他页签", "提示", {
2463
2463
  type: "warning"
@@ -2467,7 +2467,7 @@ function co(o, e, t, n, s) {
2467
2467
  return i.value = i.value.filter((F) => F.id === E.value), M;
2468
2468
  }, Q = (I) => {
2469
2469
  const M = i.value.filter((F) => F.id !== I.id);
2470
- i.value = [I, ...M], b(I);
2470
+ i.value = [I, ...M], _(I);
2471
2471
  }, B = async () => {
2472
2472
  await xe();
2473
2473
  const I = s.value.url === a.fullPath, M = g(a.fullPath);
@@ -2492,7 +2492,7 @@ function co(o, e, t, n, s) {
2492
2492
  tabValue: E,
2493
2493
  isCurrentTab: w,
2494
2494
  activeHome: S,
2495
- activeTab: b,
2495
+ activeTab: _,
2496
2496
  dropdownTabs: m,
2497
2497
  removeAllTabs: Y,
2498
2498
  removeOtherTabs: K,
@@ -2500,18 +2500,18 @@ function co(o, e, t, n, s) {
2500
2500
  };
2501
2501
  }
2502
2502
  function uo(o) {
2503
- const e = /* @__PURE__ */ new Map(), t = D([]), n = ot({}), s = ye(), a = {}, { updateTab: r, isCurrentTab: l, activeHome: i, tabs: d } = o, u = (v, b) => {
2504
- const S = b.fullPath;
2503
+ const e = /* @__PURE__ */ new Map(), t = D([]), n = ot({}), s = ye(), a = {}, { updateTab: r, isCurrentTab: l, activeHome: i, tabs: d } = o, u = (v, _) => {
2504
+ const S = _.fullPath;
2505
2505
  if (e.has(S))
2506
2506
  return e.get(S);
2507
2507
  {
2508
- const V = b0(S), k = {
2508
+ const V = _0(S), k = {
2509
2509
  name: V,
2510
2510
  setup() {
2511
2511
  const H = C(() => n[S] || document.body), X = C(() => !n[S]), Y = C(() => !t.value.includes(V));
2512
2512
  return Ve(
2513
2513
  l2,
2514
- pe({ ...b })
2514
+ fe({ ..._ })
2515
2515
  ), () => Y.value ? ce(
2516
2516
  a0,
2517
2517
  {
@@ -2524,25 +2524,25 @@ function uo(o) {
2524
2524
  };
2525
2525
  return e.set(S, k), k;
2526
2526
  }
2527
- }, f = (v) => {
2527
+ }, p = (v) => {
2528
2528
  v.dialog = void 0, delete n[v.url];
2529
- const b = a[v.id];
2530
- b && (b.destroy(), delete a[v.id], r(v));
2529
+ const _ = a[v.id];
2530
+ _ && (_.destroy(), delete a[v.id], r(v));
2531
2531
  }, h = (v = []) => {
2532
- v.forEach((b) => {
2533
- f(b);
2532
+ v.forEach((_) => {
2533
+ p(_);
2534
2534
  });
2535
2535
  }, m = async (v) => {
2536
2536
  v.dialog = {
2537
2537
  ...v.dialog,
2538
2538
  onMinimized: () => {
2539
- f(v);
2539
+ p(v);
2540
2540
  },
2541
2541
  onClose: async () => {
2542
- f(v), d.value = d.value.filter((S) => S.id !== v.id);
2542
+ p(v), d.value = d.value.filter((S) => S.id !== v.id);
2543
2543
  }
2544
2544
  }, r(v);
2545
- const b = Vt(
2545
+ const _ = Vt(
2546
2546
  {
2547
2547
  title: v.title,
2548
2548
  icon: v.icon,
@@ -2558,14 +2558,14 @@ function uo(o) {
2558
2558
  },
2559
2559
  s?.appContext
2560
2560
  );
2561
- return await xe(), l(v) && i(), a[v.id] = b, b;
2561
+ return await xe(), l(v) && i(), a[v.id] = _, _;
2562
2562
  }, g = async (v) => {
2563
2563
  t.value = [v.name], await xe(), t.value = [];
2564
2564
  }, w = async (v) => {
2565
- t.value = v.map((b) => b.name), await xe(), t.value = [];
2565
+ t.value = v.map((_) => _.name), await xe(), t.value = [];
2566
2566
  }, $ = (v) => (v.preventDefault(), !1), E = (v) => {
2567
2567
  if (v.dataTransfer) {
2568
- const b = v.dataTransfer.getData("tab"), S = d.value.find((V) => V.id === b);
2568
+ const _ = v.dataTransfer.getData("tab"), S = d.value.find((V) => V.id === _);
2569
2569
  if (S) {
2570
2570
  const { clientX: V, clientY: k } = v;
2571
2571
  S.dialog = {
@@ -2582,7 +2582,7 @@ function uo(o) {
2582
2582
  exclude: t,
2583
2583
  cleanCache: w,
2584
2584
  hasDialog: T,
2585
- closeDialog: f,
2585
+ closeDialog: p,
2586
2586
  closeDialogs: h
2587
2587
  };
2588
2588
  }
@@ -2592,28 +2592,28 @@ const Ea = /* @__PURE__ */ R({
2592
2592
  props: J2,
2593
2593
  emits: ["select", "actionClick", "actionCommand"],
2594
2594
  setup(o, { emit: e }) {
2595
- const t = o, n = e, s = lo(t), { collapsed: a, keyword: r, favorite: l } = io(), { menus: i, favorites: d, flatMenus: u, active: f, select: h, toggleFavorite: m } = ro(t, n), {
2595
+ const t = o, n = e, s = lo(t), { collapsed: a, keyword: r, favorite: l } = io(), { menus: i, favorites: d, flatMenus: u, active: p, select: h, toggleFavorite: m } = ro(t, n), {
2596
2596
  tabRef: g,
2597
2597
  showTabs: w,
2598
2598
  currentTab: $,
2599
2599
  changeTab: E,
2600
2600
  removeTab: T,
2601
2601
  tabs: v,
2602
- updateTab: b,
2602
+ updateTab: _,
2603
2603
  isCurrentTab: S,
2604
2604
  activeHome: V,
2605
2605
  removeAllTabs: k,
2606
2606
  removeOtherTabs: H,
2607
2607
  dropdownTabs: X,
2608
2608
  moveToShow: Y
2609
- } = co(t, n, u, f, s), { createView: K, openDialog: Q, refresh: B, exclude: I, cleanCache: M, closeDialogs: F } = uo({
2609
+ } = co(t, n, u, p, s), { createView: K, openDialog: Q, refresh: B, exclude: I, cleanCache: M, closeDialogs: F } = uo({
2610
2610
  tabs: v,
2611
- updateTab: b,
2611
+ updateTab: _,
2612
2612
  isCurrentTab: S,
2613
2613
  activeHome: V
2614
2614
  }), oe = async (W) => {
2615
2615
  await T(W) && await M([W]);
2616
- }, be = async () => {
2616
+ }, _e = async () => {
2617
2617
  const W = await k();
2618
2618
  W && (F(W), await M(W));
2619
2619
  }, rt = async () => {
@@ -2628,15 +2628,15 @@ const Ea = /* @__PURE__ */ R({
2628
2628
  tabs: v,
2629
2629
  flatMenus: u,
2630
2630
  favorites: d,
2631
- updateTab: b,
2632
- active: f,
2631
+ updateTab: _,
2632
+ active: p,
2633
2633
  currentTab: $
2634
- }), (W, le) => (p(), _(c(j), {
2634
+ }), (W, le) => (f(), b(c(j), {
2635
2635
  class: J(["x-mask", { "is-disabled": t.disabled }]),
2636
2636
  fit: ""
2637
2637
  }, {
2638
2638
  default: y(() => [
2639
- t.disabled ? (p(), _(Zt, {
2639
+ t.disabled ? (f(), b(Zt, {
2640
2640
  key: 1,
2641
2641
  createView: c(K),
2642
2642
  exclude: c(I)
@@ -2645,7 +2645,7 @@ const Ea = /* @__PURE__ */ R({
2645
2645
  W.$slots.default ? A(W.$slots, "default", { key: 0 }) : x("", !0)
2646
2646
  ]),
2647
2647
  _: 3
2648
- }, 8, ["createView", "exclude"])) : (p(), P(q, { key: 0 }, [
2648
+ }, 8, ["createView", "exclude"])) : (f(), P(q, { key: 0 }, [
2649
2649
  z(O2, { collapsed: c(a) }, {
2650
2650
  brand: y(() => [
2651
2651
  z(K2, {
@@ -2671,7 +2671,7 @@ const Ea = /* @__PURE__ */ R({
2671
2671
  favorites: c(d),
2672
2672
  flatMenus: c(u),
2673
2673
  menus: c(i),
2674
- active: c(f),
2674
+ active: c(p),
2675
2675
  onSelect: c(h)
2676
2676
  }, null, 8, ["collapse", "keyword", "favorite", "favorites", "flatMenus", "menus", "active", "onSelect"])
2677
2677
  ]),
@@ -2709,7 +2709,7 @@ const Ea = /* @__PURE__ */ R({
2709
2709
  actions: t.actions,
2710
2710
  theme: t.theme,
2711
2711
  onCloseOtherTabs: rt,
2712
- onCloseAllTabs: be,
2712
+ onCloseAllTabs: _e,
2713
2713
  onCloseTab: oe,
2714
2714
  onClickTab: c(Y),
2715
2715
  onActionClick: ct,
@@ -2762,16 +2762,16 @@ function Ta(o = {}) {
2762
2762
  mask: n
2763
2763
  };
2764
2764
  }
2765
- const fo = /* @__PURE__ */ R({
2765
+ const po = /* @__PURE__ */ R({
2766
2766
  __name: "SelectEditor",
2767
2767
  props: {
2768
2768
  options: { default: () => [] }
2769
2769
  },
2770
2770
  setup(o) {
2771
2771
  const e = o;
2772
- return (t, n) => (p(), _(c(d0), tt(nt(t.$attrs)), {
2772
+ return (t, n) => (f(), b(c(d0), tt(nt(t.$attrs)), {
2773
2773
  default: y(() => [
2774
- (p(!0), P(q, null, te(e.options, (s, a) => (p(), _(c(f0), O({
2774
+ (f(!0), P(q, null, te(e.options, (s, a) => (f(), b(c(p0), O({
2775
2775
  key: `item_${a}_${s.value}`,
2776
2776
  ref_for: !0
2777
2777
  }, s), ve({ _: 2 }, [
@@ -2787,7 +2787,7 @@ const fo = /* @__PURE__ */ R({
2787
2787
  _: 3
2788
2788
  }, 16));
2789
2789
  }
2790
- }), po = /* @__PURE__ */ R({
2790
+ }), fo = /* @__PURE__ */ R({
2791
2791
  __name: "CheckboxEditor",
2792
2792
  props: {
2793
2793
  options: { default: () => [] },
@@ -2797,9 +2797,9 @@ const fo = /* @__PURE__ */ R({
2797
2797
  const e = o, t = C(
2798
2798
  () => Ne(e.button ? cn : un)
2799
2799
  );
2800
- return (n, s) => (p(), _(c(dn), tt(nt(n.$attrs)), {
2800
+ return (n, s) => (f(), b(c(dn), tt(nt(n.$attrs)), {
2801
2801
  default: y(() => [
2802
- (p(!0), P(q, null, te(e.options, (a, r) => (p(), _(ee(t.value), O({
2802
+ (f(!0), P(q, null, te(e.options, (a, r) => (f(), b(ee(t.value), O({
2803
2803
  key: `item_${r}_${a.value}`,
2804
2804
  ref_for: !0
2805
2805
  }, a), {
@@ -2820,11 +2820,11 @@ const fo = /* @__PURE__ */ R({
2820
2820
  },
2821
2821
  setup(o) {
2822
2822
  const e = o, t = C(
2823
- () => Ne(e.button ? fn : pn)
2823
+ () => Ne(e.button ? pn : fn)
2824
2824
  );
2825
- return (n, s) => (p(), _(c(mn), tt(nt(n.$attrs)), {
2825
+ return (n, s) => (f(), b(c(mn), tt(nt(n.$attrs)), {
2826
2826
  default: y(() => [
2827
- (p(!0), P(q, null, te(e.options, (a, r) => (p(), _(ee(t.value), O({
2827
+ (f(!0), P(q, null, te(e.options, (a, r) => (f(), b(ee(t.value), O({
2828
2828
  key: `item_${r}_${a.value}`,
2829
2829
  ref_for: !0
2830
2830
  }, a), {
@@ -2860,13 +2860,13 @@ const fo = /* @__PURE__ */ R({
2860
2860
  defaultValue: ""
2861
2861
  },
2862
2862
  select: {
2863
- component: fo,
2863
+ component: po,
2864
2864
  props: {
2865
2865
  clearable: !0
2866
2866
  }
2867
2867
  },
2868
2868
  checkbox: {
2869
- component: po,
2869
+ component: fo,
2870
2870
  props: {},
2871
2871
  defaultValue: []
2872
2872
  },
@@ -3027,7 +3027,7 @@ async function ho(o, e) {
3027
3027
  return t ? typeof t == "function" ? await t(e) || [] : t : [];
3028
3028
  }
3029
3029
  function vo(o, e, t, n, s) {
3030
- const a = D([]), r = C(() => !n || !s ? {} : _0(o.cascader).reduce((d, u) => (d[u] = Ye(s, u), d), {}));
3030
+ const a = D([]), r = C(() => !n || !s ? {} : b0(o.cascader).reduce((d, u) => (d[u] = Ye(s, u), d), {}));
3031
3031
  return G(
3032
3032
  r,
3033
3033
  async (i) => {
@@ -3046,12 +3046,12 @@ function vo(o, e, t, n, s) {
3046
3046
  editor: i = "text",
3047
3047
  placeholder: d,
3048
3048
  label: u = "...",
3049
- disabled: f,
3049
+ disabled: p,
3050
3050
  readonly: h
3051
3051
  } = o, m = {
3052
3052
  ...o.props,
3053
3053
  placeholder: d || (d === null ? void 0 : `请输入${u}`),
3054
- disabled: f,
3054
+ disabled: p,
3055
3055
  readonly: h,
3056
3056
  options: a.value,
3057
3057
  onFocus: () => e("focus"),
@@ -3073,13 +3073,13 @@ const yo = {
3073
3073
  }, wo = {
3074
3074
  key: 0,
3075
3075
  class: "x-field__tip"
3076
- }, bo = /* @__PURE__ */ R({
3076
+ }, _o = /* @__PURE__ */ R({
3077
3077
  name: "XField",
3078
3078
  __name: "Field",
3079
3079
  props: go,
3080
3080
  emits: ["update:modelValue", "change", "focus", "blur"],
3081
3081
  setup(o, { expose: e, emit: t }) {
3082
- const n = o, s = t, a = ke(B0, null), r = ke(bn, null), l = ke(I0, null), i = C(() => !a?.proxy || !l ? n.visible : typeof n.visible == "function" ? n.visible(l) : Mt(n.visible) ? Object.entries(n.visible).every(([H, X]) => Ye(l, H) === X) : n.visible), d = () => a?.proxy && l && n.name ? Ye(l, n.name) ?? n.modelValue : n.modelValue, u = D(d()), { editor: f } = vo(
3082
+ const n = o, s = t, a = ke(B0, null), r = ke(_n, null), l = ke(I0, null), i = C(() => !a?.proxy || !l ? n.visible : typeof n.visible == "function" ? n.visible(l) : Mt(n.visible) ? Object.entries(n.visible).every(([H, X]) => Ye(l, H) === X) : n.visible), d = () => a?.proxy && l && n.name ? Ye(l, n.name) ?? n.modelValue : n.modelValue, u = D(d()), { editor: p } = vo(
3083
3083
  n,
3084
3084
  s,
3085
3085
  i,
@@ -3099,12 +3099,12 @@ const yo = {
3099
3099
  }), T = C(() => {
3100
3100
  const k = a?.proxy;
3101
3101
  return {
3102
- width: n.width ? fe(n.width) : k && k.inline && k.inlineColumns ? `${100 / k.inlineColumns}%` : null
3102
+ width: n.width ? pe(n.width) : k && k.inline && k.inlineColumns ? `${100 / k.inlineColumns}%` : null
3103
3103
  };
3104
3104
  }), v = C(() => ({
3105
3105
  right: typeof n.tooltipPosition == "number" ? `${n.tooltipPosition}px` : void 0
3106
- })), b = C(() => ({
3107
- ...f.value.props,
3106
+ })), _ = C(() => ({
3107
+ ...p.value.props,
3108
3108
  modelValue: u.value,
3109
3109
  "onUpdate:modelValue": (k) => {
3110
3110
  u.value = k;
@@ -3138,7 +3138,7 @@ const yo = {
3138
3138
  blur: () => {
3139
3139
  m.value?.foucs && m.value.blur();
3140
3140
  }
3141
- }), (k, H) => i.value ? (p(), _(c(_n), O({
3141
+ }), (k, H) => i.value ? (f(), b(c(bn), O({
3142
3142
  key: 0,
3143
3143
  class: ["x-field", E.value],
3144
3144
  ref_key: "itemRef",
@@ -3150,7 +3150,7 @@ const yo = {
3150
3150
  }, k.$attrs), ve({
3151
3151
  error: y(({ error: X }) => [
3152
3152
  A(k.$slots, "error", { error: X }, () => [
3153
- c(a)?.props.tooltipMessage ?? n.tooltipMessage ? (p(), P("div", {
3153
+ c(a)?.props.tooltipMessage ?? n.tooltipMessage ? (f(), P("div", {
3154
3154
  key: 0,
3155
3155
  class: "x-field__info",
3156
3156
  style: we(v.value)
@@ -3167,22 +3167,22 @@ const yo = {
3167
3167
  ]),
3168
3168
  _: 2
3169
3169
  }, 1040, ["content"])
3170
- ], 4)) : (p(), P("div", yo, L($(X)), 1))
3170
+ ], 4)) : (f(), P("div", yo, L($(X)), 1))
3171
3171
  ])
3172
3172
  ]),
3173
3173
  default: y(() => [
3174
3174
  N("div", {
3175
3175
  class: J(["x-field__editor_wrap", { "is-inline": n.inline }])
3176
3176
  }, [
3177
- A(k.$slots, "editor", { editor: b.value }, () => [
3178
- c(f).component ? (p(), _(ee(c(f).component), O({
3177
+ A(k.$slots, "editor", { editor: _.value }, () => [
3178
+ c(p).component ? (f(), b(ee(c(p).component), O({
3179
3179
  key: 0,
3180
3180
  class: "x-field__editor",
3181
3181
  ref_key: "editorRef",
3182
3182
  ref: m,
3183
3183
  modelValue: u.value,
3184
3184
  "onUpdate:modelValue": H[0] || (H[0] = (X) => u.value = X)
3185
- }, c(f).props), ve({ _: 2 }, [
3185
+ }, c(p).props), ve({ _: 2 }, [
3186
3186
  k.$slots.option ? {
3187
3187
  name: "option",
3188
3188
  fn: y(({ option: X }) => [
@@ -3192,7 +3192,7 @@ const yo = {
3192
3192
  } : void 0
3193
3193
  ]), 1040, ["modelValue"])) : x("", !0)
3194
3194
  ]),
3195
- n.tip || k.$slots.tip ? (p(), P("div", wo, [
3195
+ n.tip || k.$slots.tip ? (f(), P("div", wo, [
3196
3196
  A(k.$slots, "tip", {}, () => [
3197
3197
  U(L(n.tip), 1)
3198
3198
  ])
@@ -3211,7 +3211,7 @@ const yo = {
3211
3211
  } : void 0
3212
3212
  ]), 1040, ["prop", "label", "size", "class", "style"])) : x("", !0);
3213
3213
  }
3214
- }), _o = {
3214
+ }), bo = {
3215
3215
  /**
3216
3216
  * 表单模型
3217
3217
  */
@@ -3270,30 +3270,30 @@ const yo = {
3270
3270
  }, B0 = Symbol("formInstanceKey"), I0 = Symbol("formModelKey"), Co = /* @__PURE__ */ R({
3271
3271
  name: "XForm",
3272
3272
  __name: "Form",
3273
- props: _o,
3273
+ props: bo,
3274
3274
  emits: ["change", "submit", "reset"],
3275
3275
  setup(o, { expose: e, emit: t }) {
3276
3276
  const n = o, s = t, a = ye(), r = D(), l = ot(n.model || {}), i = D(!1);
3277
3277
  Ve(B0, a), Ve(I0, l), G(
3278
3278
  () => n.model,
3279
- (f) => {
3280
- Object.assign(l, f);
3279
+ (p) => {
3280
+ Object.assign(l, p);
3281
3281
  },
3282
3282
  { deep: !0 }
3283
3283
  ), G(l, () => {
3284
- s("change", pe(l));
3284
+ s("change", fe(l));
3285
3285
  });
3286
3286
  const d = async () => {
3287
- await r.value.validate().catch(() => !1) && (s("submit", pe(l)), n.submitMethod && (i.value = !0, await n.submitMethod(pe(l)), i.value = !1));
3288
- }, u = (f) => {
3289
- r.value.resetFields(f), s("reset");
3287
+ await r.value.validate().catch(() => !1) && (s("submit", fe(l)), n.submitMethod && (i.value = !0, await n.submitMethod(fe(l)), i.value = !1));
3288
+ }, u = (p) => {
3289
+ r.value.resetFields(p), s("reset");
3290
3290
  };
3291
3291
  return e({
3292
3292
  formRef: r,
3293
3293
  model: l,
3294
3294
  submit: d,
3295
3295
  reset: u
3296
- }), (f, h) => (p(), _(c(Cn), O({
3296
+ }), (p, h) => (f(), b(c(Cn), O({
3297
3297
  ref_key: "formRef",
3298
3298
  ref: r,
3299
3299
  class: "x-form",
@@ -3302,18 +3302,18 @@ const yo = {
3302
3302
  onKeyup: en(d, ["enter"]),
3303
3303
  onSubmit: h[1] || (h[1] = i0(() => {
3304
3304
  }, ["stop", "prevent"]))
3305
- }, f.$attrs), {
3305
+ }, p.$attrs), {
3306
3306
  default: y(() => [
3307
- A(f.$slots, "default"),
3308
- n.footer ? (p(), _(c(bo), {
3307
+ A(p.$slots, "default"),
3308
+ n.footer ? (f(), b(c(_o), {
3309
3309
  key: 0,
3310
3310
  editor: "none",
3311
3311
  class: "x-form__footer",
3312
3312
  label: " "
3313
3313
  }, {
3314
3314
  editor: y(() => [
3315
- A(f.$slots, "footer", {}, () => [
3316
- n.submitText ? (p(), _(c(de), {
3315
+ A(p.$slots, "footer", {}, () => [
3316
+ n.submitText ? (f(), b(c(de), {
3317
3317
  key: 0,
3318
3318
  loading: i.value,
3319
3319
  type: "primary",
@@ -3324,7 +3324,7 @@ const yo = {
3324
3324
  ]),
3325
3325
  _: 1
3326
3326
  }, 8, ["loading"])) : x("", !0),
3327
- n.resetText ? (p(), _(c(de), {
3327
+ n.resetText ? (f(), b(c(de), {
3328
3328
  key: 1,
3329
3329
  type: "default",
3330
3330
  onClick: h[0] || (h[0] = () => u())
@@ -3334,7 +3334,7 @@ const yo = {
3334
3334
  ]),
3335
3335
  _: 1
3336
3336
  })) : x("", !0),
3337
- A(f.$slots, "action")
3337
+ A(p.$slots, "action")
3338
3338
  ])
3339
3339
  ]),
3340
3340
  _: 3
@@ -3392,7 +3392,7 @@ const yo = {
3392
3392
  s("update:modelValue", !1), s("close");
3393
3393
  }, u = async (m) => {
3394
3394
  s("submit", m), n.submitMethod ? await n.submitMethod(m) && d() : d();
3395
- }, f = C(
3395
+ }, p = C(
3396
3396
  () => n.formProps?.disabled ? !1 : n.submit
3397
3397
  ), h = C(
3398
3398
  () => n.formProps?.disabled ? !1 : n.cancel
@@ -3401,12 +3401,12 @@ const yo = {
3401
3401
  $vtjEl: l,
3402
3402
  formRef: a,
3403
3403
  dialogRef: r
3404
- }), (m, g) => (p(), _(c(z0), O({
3404
+ }), (m, g) => (f(), b(c(z0), O({
3405
3405
  ref_key: "dialogRef",
3406
3406
  ref: r,
3407
3407
  class: "x-dialog-form",
3408
3408
  "model-value": n.modelValue,
3409
- submit: f.value,
3409
+ submit: p.value,
3410
3410
  cancel: h.value,
3411
3411
  size: n.size,
3412
3412
  onSubmit: i,
@@ -3483,10 +3483,10 @@ const yo = {
3483
3483
  emits: ["actionClick", "actionCommand"],
3484
3484
  setup(o, { emit: e }) {
3485
3485
  const t = o, n = e, s = (i) => {
3486
- const { label: d, name: u, value: f, disabled: h, closable: m, lazy: g } = i;
3486
+ const { label: d, name: u, value: p, disabled: h, closable: m, lazy: g } = i;
3487
3487
  return {
3488
3488
  label: d,
3489
- name: f ?? u,
3489
+ name: p ?? u,
3490
3490
  disabled: h,
3491
3491
  closable: m,
3492
3492
  lazy: g
@@ -3500,30 +3500,30 @@ const yo = {
3500
3500
  }, l = (i) => {
3501
3501
  n("actionCommand", i);
3502
3502
  };
3503
- return (i, d) => (p(), _(c(c0), O({
3503
+ return (i, d) => (f(), b(c(c0), O({
3504
3504
  class: ["x-tabs", a.value]
3505
3505
  }, i.$attrs), {
3506
3506
  default: y(() => [
3507
- (p(!0), P(q, null, te(t.items, (u) => (p(), _(c(_t), O({
3507
+ (f(!0), P(q, null, te(t.items, (u) => (f(), b(c(bt), O({
3508
3508
  key: u.value ?? u.name,
3509
3509
  ref_for: !0
3510
3510
  }, s(u)), {
3511
3511
  label: y(() => [
3512
3512
  A(i.$slots, "label", O({ ref_for: !0 }, u), () => [
3513
- u.icon ? (p(), _(ee(c(ze)(u.icon)), {
3513
+ u.icon ? (f(), b(ee(c(ze)(u.icon)), {
3514
3514
  key: 0,
3515
3515
  class: "x-tabs__icon"
3516
3516
  })) : x("", !0),
3517
3517
  N("div", So, [
3518
3518
  U(L(u.label) + " ", 1),
3519
- u.actions && [u.name, u.value].includes(i.$attrs.modelValue) ? (p(), P("div", zo, [
3520
- (p(!0), P(q, null, te(u.actions, (f) => (p(), _(c(se), O({
3519
+ u.actions && [u.name, u.value].includes(i.$attrs.modelValue) ? (f(), P("div", zo, [
3520
+ (f(!0), P(q, null, te(u.actions, (p) => (f(), b(c(se), O({
3521
3521
  mode: "icon",
3522
3522
  type: "primary",
3523
3523
  size: "small",
3524
3524
  circle: "",
3525
3525
  ref_for: !0
3526
- }, f, {
3526
+ }, p, {
3527
3527
  onClick: r,
3528
3528
  onCommand: l
3529
3529
  }), null, 16))), 256))
@@ -3533,7 +3533,7 @@ const yo = {
3533
3533
  ]),
3534
3534
  default: y(() => [
3535
3535
  A(i.$slots, "default", O({ ref_for: !0 }, u), () => [
3536
- u.component ? (p(), _(ee(u.component), O({
3536
+ u.component ? (f(), b(ee(u.component), O({
3537
3537
  key: 0,
3538
3538
  ref_for: !0
3539
3539
  }, u.props), null, 16)) : x("", !0)
@@ -3599,10 +3599,10 @@ const yo = {
3599
3599
  emits: ["imageClick", "titleClick", "actionClick", "actionCommand"],
3600
3600
  setup(o, { emit: e }) {
3601
3601
  const t = o, n = e, s = C(() => {
3602
- const { imageWidth: f, imageHeight: h } = t;
3602
+ const { imageWidth: p, imageHeight: h } = t;
3603
3603
  return {
3604
- width: f ? fe(f) : void 0,
3605
- height: h ? fe(h) : void 0
3604
+ width: p ? pe(p) : void 0,
3605
+ height: h ? pe(h) : void 0
3606
3606
  };
3607
3607
  }), a = C(() => ({
3608
3608
  [`is-image-${t.direction}`]: !!t.direction,
@@ -3614,21 +3614,21 @@ const yo = {
3614
3614
  type: "info",
3615
3615
  items: t.actions,
3616
3616
  ...t.actionBarProps
3617
- })), l = () => n("imageClick"), i = () => n("titleClick"), d = (f) => n("actionClick", f), u = (f, h) => n("actionCommand", f, h);
3618
- return (f, h) => (p(), _(c(j), {
3617
+ })), l = () => n("imageClick"), i = () => n("titleClick"), d = (p) => n("actionClick", p), u = (p, h) => n("actionCommand", p, h);
3618
+ return (p, h) => (f(), b(c(j), {
3619
3619
  class: J(["x-data-item", a.value]),
3620
3620
  direction: t.direction
3621
3621
  }, {
3622
3622
  default: y(() => [
3623
- t.imageSrc || f.$slots.image ? (p(), _(c(j), {
3623
+ t.imageSrc || p.$slots.image ? (f(), b(c(j), {
3624
3624
  key: 0,
3625
3625
  class: "x-data-item__img",
3626
3626
  autoPointer: !0,
3627
3627
  onClick: t.onImageClick ? l : void 0
3628
3628
  }, {
3629
3629
  default: y(() => [
3630
- A(f.$slots, "image", {}, () => [
3631
- t.imageSrc ? (p(), _(c(kn), {
3630
+ A(p.$slots, "image", {}, () => [
3631
+ t.imageSrc ? (f(), b(c(kn), {
3632
3632
  key: 0,
3633
3633
  style: we(s.value),
3634
3634
  src: t.imageSrc
@@ -3644,7 +3644,7 @@ const yo = {
3644
3644
  shrink: ""
3645
3645
  }, {
3646
3646
  default: y(() => [
3647
- t.title || f.$slots.title ? (p(), _(c(j), {
3647
+ t.title || p.$slots.title ? (f(), b(c(j), {
3648
3648
  key: 0,
3649
3649
  class: "x-data-item__section x-data-item__wrapper",
3650
3650
  align: "center",
@@ -3652,28 +3652,28 @@ const yo = {
3652
3652
  onClick: t.onTitleClick ? i : void 0
3653
3653
  }, {
3654
3654
  default: y(() => [
3655
- t.icon ? (p(), _(ee(c(ze)(t.icon)), {
3655
+ t.icon ? (f(), b(ee(c(ze)(t.icon)), {
3656
3656
  key: 0,
3657
3657
  class: "x-data-item__icon"
3658
3658
  })) : x("", !0),
3659
3659
  N("span", To, [
3660
- A(f.$slots, "title", {}, () => [
3660
+ A(p.$slots, "title", {}, () => [
3661
3661
  U(L(t.title), 1)
3662
3662
  ])
3663
3663
  ])
3664
3664
  ]),
3665
3665
  _: 3
3666
3666
  }, 8, ["onClick"])) : x("", !0),
3667
- t.description || f.$slots.description ? (p(), P("div", $o, [
3668
- A(f.$slots, "description", {}, () => [
3667
+ t.description || p.$slots.description ? (f(), P("div", $o, [
3668
+ A(p.$slots, "description", {}, () => [
3669
3669
  U(L(t.description), 1)
3670
3670
  ])
3671
3671
  ])) : x("", !0),
3672
- f.$slots.default ? (p(), P("div", Mo, [
3673
- A(f.$slots, "default")
3672
+ p.$slots.default ? (f(), P("div", Mo, [
3673
+ A(p.$slots, "default")
3674
3674
  ])) : x("", !0),
3675
- t.actions || t.actionBarProps || f.$slots.actions ? (p(), P("div", Bo, [
3676
- A(f.$slots, "actions", {}, () => [
3675
+ t.actions || t.actionBarProps || p.$slots.actions ? (f(), P("div", Bo, [
3676
+ A(p.$slots, "actions", {}, () => [
3677
3677
  z(c(At), O(r.value, {
3678
3678
  onClick: d,
3679
3679
  onCommand: u
@@ -3754,16 +3754,16 @@ const yo = {
3754
3754
  const { page: S, pageSize: V } = n;
3755
3755
  Object.assign(a, { page: S, pageSize: V });
3756
3756
  });
3757
- const { data: r, loading: l } = _2(
3757
+ const { data: r, loading: l } = b2(
3758
3758
  n.data,
3759
3759
  {
3760
3760
  list: [],
3761
3761
  total: 0
3762
3762
  },
3763
3763
  a
3764
- ), i = C(() => Math.ceil((r.value.total || 0) / a.pageSize)), d = D(!1), u = D(), f = C(() => ({
3765
- width: fe(n.width),
3766
- height: fe(n.height)
3764
+ ), i = C(() => Math.ceil((r.value.total || 0) / a.pageSize)), d = D(!1), u = D(), p = C(() => ({
3765
+ width: pe(n.width),
3766
+ height: pe(n.height)
3767
3767
  })), h = C(() => ({
3768
3768
  "is-virtual": !!n.itemHeight
3769
3769
  })), m = C(() => {
@@ -3780,7 +3780,7 @@ const yo = {
3780
3780
  }
3781
3781
  ), v = () => {
3782
3782
  !n.infiniteScroll || d.value || (a.page < i.value ? (++a.page, s("load", a)) : d.value = !0);
3783
- }, b = (S) => n.dataKey ? S[n.dataKey] : void 0;
3783
+ }, _ = (S) => n.dataKey ? S[n.dataKey] : void 0;
3784
3784
  return e({
3785
3785
  list: w,
3786
3786
  scrollTo: T,
@@ -3790,55 +3790,55 @@ const yo = {
3790
3790
  pageCount: i,
3791
3791
  nomore: d,
3792
3792
  data: r,
3793
- getKey: b
3794
- }), (S, V) => (p(), P("div", {
3793
+ getKey: _
3794
+ }), (S, V) => (f(), P("div", {
3795
3795
  class: J(["x-list", h.value]),
3796
- style: we(f.value)
3796
+ style: we(p.value)
3797
3797
  }, [
3798
3798
  !c(r).total && !c(l) ? A(S.$slots, "empty", { key: 0 }, () => [
3799
3799
  z(c(r0))
3800
3800
  ]) : x("", !0),
3801
3801
  N("div", O({ class: "x-list__content" }, c($)), [
3802
- n.itemHeight ? Z((p(), P("div", O({
3802
+ n.itemHeight ? Z((f(), P("div", O({
3803
3803
  key: 0,
3804
3804
  class: "x-list__wrapper",
3805
3805
  ref_key: "wrapperRef",
3806
3806
  ref: u
3807
3807
  }, { ...c(E), ...m.value }), [
3808
- (p(!0), P(q, null, te(c(w), (k, H) => A(S.$slots, "default", O({
3809
- key: b(k.data),
3808
+ (f(!0), P(q, null, te(c(w), (k, H) => A(S.$slots, "default", O({
3809
+ key: _(k.data),
3810
3810
  ref_for: !0
3811
3811
  }, { item: k.data, index: H }), () => [
3812
3812
  N("div", null, L(k), 1)
3813
3813
  ])), 128)),
3814
- c(l) ? (p(), P("div", Po, [
3814
+ c(l) ? (f(), P("div", Po, [
3815
3815
  A(S.$slots, "loading", {}, () => [
3816
3816
  U(" 正在加载数据... ")
3817
3817
  ])
3818
3818
  ])) : x("", !0),
3819
- d.value ? (p(), P("div", Ao, [
3819
+ d.value ? (f(), P("div", Ao, [
3820
3820
  A(S.$slots, "nomore", {}, () => [
3821
3821
  U(" 没有更多数据 ")
3822
3822
  ])
3823
3823
  ])) : x("", !0)
3824
3824
  ], 16)), [
3825
3825
  [c(Ut), v]
3826
- ]) : Z((p(), P("div", O({
3826
+ ]) : Z((f(), P("div", O({
3827
3827
  key: 1,
3828
3828
  class: "x-list__wrapper"
3829
3829
  }, m.value), [
3830
- (p(!0), P(q, null, te(c(r).list, (k, H) => A(S.$slots, "default", O({
3831
- key: b(k),
3830
+ (f(!0), P(q, null, te(c(r).list, (k, H) => A(S.$slots, "default", O({
3831
+ key: _(k),
3832
3832
  ref_for: !0
3833
3833
  }, { item: k, index: H }), () => [
3834
3834
  N("div", null, L(k), 1)
3835
3835
  ])), 128)),
3836
- c(l) ? (p(), P("div", Vo, [
3836
+ c(l) ? (f(), P("div", Vo, [
3837
3837
  A(S.$slots, "loading", {}, () => [
3838
3838
  U(" 正在加载数据... ")
3839
3839
  ])
3840
3840
  ])) : x("", !0),
3841
- d.value ? (p(), P("div", Do, [
3841
+ d.value ? (f(), P("div", Do, [
3842
3842
  A(S.$slots, "nomore", {}, () => [
3843
3843
  U(" 没有更多数据 ")
3844
3844
  ])
@@ -3847,7 +3847,7 @@ const yo = {
3847
3847
  [c(Ut), v]
3848
3848
  ])
3849
3849
  ], 16),
3850
- n.pager ? (p(), P("div", Fo, [
3850
+ n.pager ? (f(), P("div", Fo, [
3851
3851
  z(c(xn), O({
3852
3852
  small: "",
3853
3853
  background: "",
@@ -3890,7 +3890,7 @@ const yo = {
3890
3890
  window.location.href = s;
3891
3891
  }
3892
3892
  };
3893
- return (n, s) => (p(), P("div", Ro, [
3893
+ return (n, s) => (f(), P("div", Ro, [
3894
3894
  N("div", Lo, [
3895
3895
  N("div", Ho, [
3896
3896
  N("span", Oo, L(e.name), 1)
@@ -3972,17 +3972,17 @@ const yo = {
3972
3972
  qe.info({
3973
3973
  message: "触发submit事件"
3974
3974
  }), s("submit", n);
3975
- }, f = (m) => {
3975
+ }, p = (m) => {
3976
3976
  i.value = m, s("change", i.value);
3977
3977
  }, h = () => {
3978
- f("user click change:" + Date.now());
3978
+ p("user click change:" + Date.now());
3979
3979
  };
3980
3980
  return e({
3981
3981
  click: d,
3982
3982
  submit: u,
3983
3983
  data: i,
3984
- change: f
3985
- }), (m, g) => (p(), _(c(We), {
3984
+ change: p
3985
+ }), (m, g) => (f(), b(c(We), {
3986
3986
  class: "x-test",
3987
3987
  header: "VTJ 低代码测试组件",
3988
3988
  border: ""
@@ -4011,7 +4011,7 @@ const yo = {
4011
4011
  border: ""
4012
4012
  }, {
4013
4013
  default: y(() => [
4014
- (p(!0), P(q, null, te(a.value, ([w, $]) => (p(), _(c(ut), { label: w }, {
4014
+ (f(!0), P(q, null, te(a.value, ([w, $]) => (f(), b(c(ut), { label: w }, {
4015
4015
  default: y(() => [
4016
4016
  N("pre", null, L(JSON.stringify($, null, 2)), 1)
4017
4017
  ]),
@@ -4169,7 +4169,7 @@ const yo = {
4169
4169
  props: Yo,
4170
4170
  emits: ["update:modelValue", "update:unit", "change", "unit-change"],
4171
4171
  setup(o, { expose: e, emit: t }) {
4172
- const n = o, s = t, a = C(() => _0(n.units).map((w) => typeof w == "string" ? { label: w, value: w } : w)), r = C(() => {
4172
+ const n = o, s = t, a = C(() => b0(n.units).map((w) => typeof w == "string" ? { label: w, value: w } : w)), r = C(() => {
4173
4173
  const g = a.value.map((w) => w.value);
4174
4174
  return n.unit && g.push(n.unit), o2(g);
4175
4175
  }), l = D(), i = D(), d = (g) => n.format && g ? s2(Number(g) || 0, n.format) : g, u = (g) => {
@@ -4184,7 +4184,7 @@ const yo = {
4184
4184
  };
4185
4185
  }
4186
4186
  return { value: d(g), unit: n.unit };
4187
- }, f = () => {
4187
+ }, p = () => {
4188
4188
  const g = d(i.value), w = l.value;
4189
4189
  return n.withUnit && g && w ? `${g}${w}` : g;
4190
4190
  };
@@ -4201,15 +4201,15 @@ const yo = {
4201
4201
  s("change", g);
4202
4202
  });
4203
4203
  const h = async () => {
4204
- const { value: g, unit: w } = u(f());
4205
- i.value = g, l.value = w, s("update:modelValue", f());
4204
+ const { value: g, unit: w } = u(p());
4205
+ i.value = g, l.value = w, s("update:modelValue", p());
4206
4206
  }, m = () => {
4207
4207
  s("unit-change", l.value), h();
4208
4208
  };
4209
4209
  return e({
4210
4210
  parser: u,
4211
4211
  formatValue: d
4212
- }), (g, w) => (p(), _(c(ge), {
4212
+ }), (g, w) => (f(), b(c(ge), {
4213
4213
  modelValue: i.value,
4214
4214
  "onUpdate:modelValue": w[1] || (w[1] = ($) => i.value = $),
4215
4215
  modelModifiers: { trim: !0 },
@@ -4227,7 +4227,7 @@ const yo = {
4227
4227
  style: { width: `${n.appendWidth}px` }
4228
4228
  }, g.$props.selectProps, { onChange: m }), {
4229
4229
  default: y(() => [
4230
- (p(!0), P(q, null, te(a.value, ($) => (p(), _(c(f0), {
4230
+ (f(!0), P(q, null, te(a.value, ($) => (f(), b(c(p0), {
4231
4231
  key: $.value,
4232
4232
  label: $.label,
4233
4233
  value: $.value
@@ -4240,7 +4240,7 @@ const yo = {
4240
4240
  } : {
4241
4241
  name: "suffix",
4242
4242
  fn: y(() => [
4243
- l.value ? (p(), P("div", {
4243
+ l.value ? (f(), P("div", {
4244
4244
  key: 0,
4245
4245
  class: "x-input-unit__unit"
4246
4246
  }, [
@@ -4288,15 +4288,19 @@ const yo = {
4288
4288
  };
4289
4289
  a();
4290
4290
  const r = D(), l = C(() => {
4291
- const h = t.size || "default";
4292
- return r.value = h === "small" ? "24" : h === "large" ? "40" : "30", {
4291
+ const h = t.size || "default", m = {
4292
+ small: 22,
4293
+ default: 30,
4294
+ large: 38
4295
+ };
4296
+ return r.value = m[h], console.log(r.value), {
4293
4297
  [`is-${h}`]: !!h
4294
4298
  };
4295
4299
  }), i = D(""), d = D(e.maxLength);
4296
4300
  let u;
4297
4301
  typeof e.validate == "function" && (u = e.validate);
4298
- const f = () => {
4299
- a();
4302
+ const p = () => {
4303
+ a(), i.value = "";
4300
4304
  };
4301
4305
  return G(
4302
4306
  i,
@@ -4304,32 +4308,32 @@ const yo = {
4304
4308
  i.value.length === d.value ? await u(i.value) ? n.value = "success" : n.value = "error" : n.value = "";
4305
4309
  },
4306
4310
  { immediate: !0 }
4307
- ), (h, m) => (p(), _(c(ge), {
4311
+ ), (h, m) => (f(), b(c(ge), {
4308
4312
  modelValue: i.value,
4309
4313
  "onUpdate:modelValue": m[0] || (m[0] = (g) => i.value = g),
4310
4314
  class: "x-image-code-input",
4311
4315
  maxlength: d.value,
4312
4316
  placeholder: e.placeholder
4313
4317
  }, {
4314
- prefix: y(() => [
4318
+ prepend: y(() => [
4315
4319
  N("img", {
4316
4320
  class: J(["x-image-code-input__image", l.value]),
4317
- onClick: f,
4321
+ onClick: p,
4318
4322
  src: s.value
4319
4323
  }, null, 10, Jo)
4320
4324
  ]),
4321
4325
  suffix: y(() => [
4322
- n.value === "success" ? (p(), _(c(ae), {
4326
+ n.value === "success" ? (f(), b(c(ae), {
4323
4327
  key: 0,
4328
+ class: "x-image-code-input__iconSuccess",
4324
4329
  icon: c(Un),
4325
- size: r.value,
4326
- style: { color: "green" }
4330
+ size: r.value
4327
4331
  }, null, 8, ["icon", "size"])) : x("", !0),
4328
- n.value === "error" ? (p(), _(c(ae), {
4332
+ n.value === "error" ? (f(), b(c(ae), {
4329
4333
  key: 1,
4334
+ class: "x-image-code-input__iconError",
4330
4335
  icon: c(Xn),
4331
- size: r.value,
4332
- style: { color: "red" }
4336
+ size: r.value
4333
4337
  }, null, 8, ["icon", "size"])) : x("", !0)
4334
4338
  ]),
4335
4339
  _: 1
@@ -4340,21 +4344,20 @@ const yo = {
4340
4344
  * 外边距 margin
4341
4345
  */
4342
4346
  margin: {
4343
- type: Number,
4344
- default: 4
4347
+ type: Number
4345
4348
  },
4346
4349
  /**
4347
4350
  * 规模 scale
4348
4351
  */
4349
4352
  scale: {
4350
- type: Number,
4351
- default: 4
4353
+ type: Number
4352
4354
  },
4353
4355
  /**
4354
4356
  * 宽度 width
4355
4357
  */
4356
4358
  width: {
4357
- type: Number
4359
+ type: Number,
4360
+ default: 200
4358
4361
  },
4359
4362
  // color
4360
4363
  color: {
@@ -4392,7 +4395,7 @@ const yo = {
4392
4395
  // tip
4393
4396
  tip: {
4394
4397
  type: String,
4395
- default: "二维码已失效请刷新居重试"
4398
+ default: "二维码已失效请刷新后重试"
4396
4399
  }
4397
4400
  };
4398
4401
  var Re = {}, Qo = function() {
@@ -4602,11 +4605,11 @@ var F0 = {};
4602
4605
  }, o.getPenaltyN1 = function(s) {
4603
4606
  const a = s.size;
4604
4607
  let r = 0, l = 0, i = 0, d = null, u = null;
4605
- for (let f = 0; f < a; f++) {
4608
+ for (let p = 0; p < a; p++) {
4606
4609
  l = i = 0, d = u = null;
4607
4610
  for (let h = 0; h < a; h++) {
4608
- let m = s.get(f, h);
4609
- m === d ? l++ : (l >= 5 && (r += e.N1 + (l - 5)), d = m, l = 1), m = s.get(h, f), m === u ? i++ : (i >= 5 && (r += e.N1 + (i - 5)), u = m, i = 1);
4611
+ let m = s.get(p, h);
4612
+ m === d ? l++ : (l >= 5 && (r += e.N1 + (l - 5)), d = m, l = 1), m = s.get(h, p), m === u ? i++ : (i >= 5 && (r += e.N1 + (i - 5)), u = m, i = 1);
4610
4613
  }
4611
4614
  l >= 5 && (r += e.N1 + (l - 5)), i >= 5 && (r += e.N1 + (i - 5));
4612
4615
  }
@@ -5197,7 +5200,7 @@ ie.testAlphanumeric = function(e) {
5197
5200
  g += $ + w.getBitsLength();
5198
5201
  }), g;
5199
5202
  }
5200
- function f(h, m) {
5203
+ function p(h, m) {
5201
5204
  for (let g = 1; g <= 40; g++)
5202
5205
  if (u(h, g) <= o.getCapacity(g, m, s.MIXED))
5203
5206
  return g;
@@ -5228,7 +5231,7 @@ ie.testAlphanumeric = function(e) {
5228
5231
  const $ = n.from(g, n.M);
5229
5232
  if (Array.isArray(m)) {
5230
5233
  if (m.length > 1)
5231
- return f(m, $);
5234
+ return p(m, $);
5232
5235
  if (m.length === 0)
5233
5236
  return 1;
5234
5237
  w = m[0];
@@ -5275,7 +5278,7 @@ Ee.prototype.write = function(e) {
5275
5278
  a > 0 && (n = this.data.substr(t), s = parseInt(n, 10), e.put(s, a * 3 + 1));
5276
5279
  };
5277
5280
  var ds = Ee;
5278
- const fs = he, pt = [
5281
+ const ps = he, ft = [
5279
5282
  "0",
5280
5283
  "1",
5281
5284
  "2",
@@ -5323,7 +5326,7 @@ const fs = he, pt = [
5323
5326
  ":"
5324
5327
  ];
5325
5328
  function Te(o) {
5326
- this.mode = fs.ALPHANUMERIC, this.data = o;
5329
+ this.mode = ps.ALPHANUMERIC, this.data = o;
5327
5330
  }
5328
5331
  Te.getBitsLength = function(e) {
5329
5332
  return 11 * Math.floor(e / 2) + 6 * (e % 2);
@@ -5337,12 +5340,12 @@ Te.prototype.getBitsLength = function() {
5337
5340
  Te.prototype.write = function(e) {
5338
5341
  let t;
5339
5342
  for (t = 0; t + 2 <= this.data.length; t += 2) {
5340
- let n = pt.indexOf(this.data[t]) * 45;
5341
- n += pt.indexOf(this.data[t + 1]), e.put(n, 11);
5343
+ let n = ft.indexOf(this.data[t]) * 45;
5344
+ n += ft.indexOf(this.data[t + 1]), e.put(n, 11);
5342
5345
  }
5343
- this.data.length % 2 && e.put(pt.indexOf(this.data[t]), 6);
5346
+ this.data.length % 2 && e.put(ft.indexOf(this.data[t]), 6);
5344
5347
  };
5345
- var ps = Te, ms = function(e) {
5348
+ var fs = Te, ms = function(e) {
5346
5349
  for (var t = [], n = e.length, s = 0; s < n; s++) {
5347
5350
  var a = e.charCodeAt(s);
5348
5351
  if (a >= 55296 && a <= 56319 && n > s + 1) {
@@ -5416,7 +5419,7 @@ Make sure your charset is UTF-8`
5416
5419
  t = (t >>> 8 & 255) * 192 + (t & 255), o.put(t, 13);
5417
5420
  }
5418
5421
  };
5419
- var bs = Me, X0 = { exports: {} };
5422
+ var _s = Me, X0 = { exports: {} };
5420
5423
  (function(o) {
5421
5424
  var e = {
5422
5425
  single_source_shortest_paths: function(t, n, s) {
@@ -5424,10 +5427,10 @@ var bs = Me, X0 = { exports: {} };
5424
5427
  r[n] = 0;
5425
5428
  var l = e.PriorityQueue.make();
5426
5429
  l.push(n, 0);
5427
- for (var i, d, u, f, h, m, g, w, $; !l.empty(); ) {
5428
- i = l.pop(), d = i.value, f = i.cost, h = t[d] || {};
5430
+ for (var i, d, u, p, h, m, g, w, $; !l.empty(); ) {
5431
+ i = l.pop(), d = i.value, p = i.cost, h = t[d] || {};
5429
5432
  for (u in h)
5430
- h.hasOwnProperty(u) && (m = h[u], g = f + m, w = r[u], $ = typeof r[u] > "u", ($ || w > g) && (r[u] = g, l.push(u, g), a[u] = d));
5433
+ h.hasOwnProperty(u) && (m = h[u], g = p + m, w = r[u], $ = typeof r[u] > "u", ($ || w > g) && (r[u] = g, l.push(u, g), a[u] = d));
5431
5434
  }
5432
5435
  if (typeof s < "u" && typeof r[s] > "u") {
5433
5436
  var E = ["Could not find a path from ", n, " to ", s, "."].join("");
@@ -5482,28 +5485,28 @@ var bs = Me, X0 = { exports: {} };
5482
5485
  };
5483
5486
  o.exports = e;
5484
5487
  })(X0);
5485
- var _s = X0.exports;
5488
+ var bs = X0.exports;
5486
5489
  (function(o) {
5487
- const e = he, t = ds, n = ps, s = vs, a = bs, r = ie, l = ne, i = _s;
5490
+ const e = he, t = ds, n = fs, s = vs, a = _s, r = ie, l = ne, i = bs;
5488
5491
  function d(E) {
5489
5492
  return unescape(encodeURIComponent(E)).length;
5490
5493
  }
5491
5494
  function u(E, T, v) {
5492
- const b = [];
5495
+ const _ = [];
5493
5496
  let S;
5494
5497
  for (; (S = E.exec(v)) !== null; )
5495
- b.push({
5498
+ _.push({
5496
5499
  data: S[0],
5497
5500
  index: S.index,
5498
5501
  mode: T,
5499
5502
  length: S[0].length
5500
5503
  });
5501
- return b;
5504
+ return _;
5502
5505
  }
5503
- function f(E) {
5506
+ function p(E) {
5504
5507
  const T = u(r.NUMERIC, e.NUMERIC, E), v = u(r.ALPHANUMERIC, e.ALPHANUMERIC, E);
5505
- let b, S;
5506
- return l.isKanjiModeEnabled() ? (b = u(r.BYTE, e.BYTE, E), S = u(r.KANJI, e.KANJI, E)) : (b = u(r.BYTE_KANJI, e.BYTE, E), S = []), T.concat(v, b, S).sort(function(k, H) {
5508
+ let _, S;
5509
+ return l.isKanjiModeEnabled() ? (_ = u(r.BYTE, e.BYTE, E), S = u(r.KANJI, e.KANJI, E)) : (_ = u(r.BYTE_KANJI, e.BYTE, E), S = []), T.concat(v, _, S).sort(function(k, H) {
5507
5510
  return k.index - H.index;
5508
5511
  }).map(function(k) {
5509
5512
  return {
@@ -5527,67 +5530,67 @@ var _s = X0.exports;
5527
5530
  }
5528
5531
  function m(E) {
5529
5532
  return E.reduce(function(T, v) {
5530
- const b = T.length - 1 >= 0 ? T[T.length - 1] : null;
5531
- return b && b.mode === v.mode ? (T[T.length - 1].data += v.data, T) : (T.push(v), T);
5533
+ const _ = T.length - 1 >= 0 ? T[T.length - 1] : null;
5534
+ return _ && _.mode === v.mode ? (T[T.length - 1].data += v.data, T) : (T.push(v), T);
5532
5535
  }, []);
5533
5536
  }
5534
5537
  function g(E) {
5535
5538
  const T = [];
5536
5539
  for (let v = 0; v < E.length; v++) {
5537
- const b = E[v];
5538
- switch (b.mode) {
5540
+ const _ = E[v];
5541
+ switch (_.mode) {
5539
5542
  case e.NUMERIC:
5540
5543
  T.push([
5541
- b,
5542
- { data: b.data, mode: e.ALPHANUMERIC, length: b.length },
5543
- { data: b.data, mode: e.BYTE, length: b.length }
5544
+ _,
5545
+ { data: _.data, mode: e.ALPHANUMERIC, length: _.length },
5546
+ { data: _.data, mode: e.BYTE, length: _.length }
5544
5547
  ]);
5545
5548
  break;
5546
5549
  case e.ALPHANUMERIC:
5547
5550
  T.push([
5548
- b,
5549
- { data: b.data, mode: e.BYTE, length: b.length }
5551
+ _,
5552
+ { data: _.data, mode: e.BYTE, length: _.length }
5550
5553
  ]);
5551
5554
  break;
5552
5555
  case e.KANJI:
5553
5556
  T.push([
5554
- b,
5555
- { data: b.data, mode: e.BYTE, length: d(b.data) }
5557
+ _,
5558
+ { data: _.data, mode: e.BYTE, length: d(_.data) }
5556
5559
  ]);
5557
5560
  break;
5558
5561
  case e.BYTE:
5559
5562
  T.push([
5560
- { data: b.data, mode: e.BYTE, length: d(b.data) }
5563
+ { data: _.data, mode: e.BYTE, length: d(_.data) }
5561
5564
  ]);
5562
5565
  }
5563
5566
  }
5564
5567
  return T;
5565
5568
  }
5566
5569
  function w(E, T) {
5567
- const v = {}, b = { start: {} };
5570
+ const v = {}, _ = { start: {} };
5568
5571
  let S = ["start"];
5569
5572
  for (let V = 0; V < E.length; V++) {
5570
5573
  const k = E[V], H = [];
5571
5574
  for (let X = 0; X < k.length; X++) {
5572
5575
  const Y = k[X], K = "" + V + X;
5573
- H.push(K), v[K] = { node: Y, lastCount: 0 }, b[K] = {};
5576
+ H.push(K), v[K] = { node: Y, lastCount: 0 }, _[K] = {};
5574
5577
  for (let Q = 0; Q < S.length; Q++) {
5575
5578
  const B = S[Q];
5576
- v[B] && v[B].node.mode === Y.mode ? (b[B][K] = h(v[B].lastCount + Y.length, Y.mode) - h(v[B].lastCount, Y.mode), v[B].lastCount += Y.length) : (v[B] && (v[B].lastCount = Y.length), b[B][K] = h(Y.length, Y.mode) + 4 + e.getCharCountIndicator(Y.mode, T));
5579
+ v[B] && v[B].node.mode === Y.mode ? (_[B][K] = h(v[B].lastCount + Y.length, Y.mode) - h(v[B].lastCount, Y.mode), v[B].lastCount += Y.length) : (v[B] && (v[B].lastCount = Y.length), _[B][K] = h(Y.length, Y.mode) + 4 + e.getCharCountIndicator(Y.mode, T));
5577
5580
  }
5578
5581
  }
5579
5582
  S = H;
5580
5583
  }
5581
5584
  for (let V = 0; V < S.length; V++)
5582
- b[S[V]].end = 0;
5583
- return { map: b, table: v };
5585
+ _[S[V]].end = 0;
5586
+ return { map: _, table: v };
5584
5587
  }
5585
5588
  function $(E, T) {
5586
5589
  let v;
5587
- const b = e.getBestModeForData(E);
5588
- if (v = e.from(T, b), v !== e.BYTE && v.bit < b.bit)
5590
+ const _ = e.getBestModeForData(E);
5591
+ if (v = e.from(T, _), v !== e.BYTE && v.bit < _.bit)
5589
5592
  throw new Error('"' + E + '" cannot be encoded with mode ' + e.toString(v) + `.
5590
- Suggested mode is: ` + e.toString(b));
5593
+ Suggested mode is: ` + e.toString(_));
5591
5594
  switch (v === e.KANJI && !l.isKanjiModeEnabled() && (v = e.BYTE), v) {
5592
5595
  case e.NUMERIC:
5593
5596
  return new t(E);
@@ -5600,17 +5603,17 @@ var _s = X0.exports;
5600
5603
  }
5601
5604
  }
5602
5605
  o.fromArray = function(T) {
5603
- return T.reduce(function(v, b) {
5604
- return typeof b == "string" ? v.push($(b, null)) : b.data && v.push($(b.data, b.mode)), v;
5606
+ return T.reduce(function(v, _) {
5607
+ return typeof _ == "string" ? v.push($(_, null)) : _.data && v.push($(_.data, _.mode)), v;
5605
5608
  }, []);
5606
5609
  }, o.fromString = function(T, v) {
5607
- const b = f(T, l.isKanjiModeEnabled()), S = g(b), V = w(S, v), k = i.find_path(V.map, "start", "end"), H = [];
5610
+ const _ = p(T, l.isKanjiModeEnabled()), S = g(_), V = w(S, v), k = i.find_path(V.map, "start", "end"), H = [];
5608
5611
  for (let X = 1; X < k.length - 1; X++)
5609
5612
  H.push(V.table[k[X]].node);
5610
5613
  return o.fromArray(m(H));
5611
5614
  }, o.rawSplit = function(T) {
5612
5615
  return o.fromArray(
5613
- f(T, l.isKanjiModeEnabled())
5616
+ p(T, l.isKanjiModeEnabled())
5614
5617
  );
5615
5618
  };
5616
5619
  })(U0);
@@ -5684,23 +5687,23 @@ function As(o, e, t) {
5684
5687
  return Vs(n, o, e);
5685
5688
  }
5686
5689
  function Vs(o, e, t) {
5687
- const n = lt.getSymbolTotalCodewords(e), s = St.getTotalCodewordsCount(e, t), a = n - s, r = St.getBlocksCount(e, t), l = n % r, i = r - l, d = Math.floor(n / r), u = Math.floor(a / r), f = u + 1, h = d - u, m = new zs(h);
5690
+ const n = lt.getSymbolTotalCodewords(e), s = St.getTotalCodewordsCount(e, t), a = n - s, r = St.getBlocksCount(e, t), l = n % r, i = r - l, d = Math.floor(n / r), u = Math.floor(a / r), p = u + 1, h = d - u, m = new zs(h);
5688
5691
  let g = 0;
5689
5692
  const w = new Array(r), $ = new Array(r);
5690
5693
  let E = 0;
5691
5694
  const T = new Uint8Array(o.buffer);
5692
5695
  for (let k = 0; k < r; k++) {
5693
- const H = k < i ? u : f;
5696
+ const H = k < i ? u : p;
5694
5697
  w[k] = T.slice(g, g + H), $[k] = m.encode(w[k]), g += H, E = Math.max(E, H);
5695
5698
  }
5696
5699
  const v = new Uint8Array(n);
5697
- let b = 0, S, V;
5700
+ let _ = 0, S, V;
5698
5701
  for (S = 0; S < E; S++)
5699
5702
  for (V = 0; V < r; V++)
5700
- S < w[V].length && (v[b++] = w[V][S]);
5703
+ S < w[V].length && (v[_++] = w[V][S]);
5701
5704
  for (S = 0; S < h; S++)
5702
5705
  for (V = 0; V < r; V++)
5703
- v[b++] = $[V][S];
5706
+ v[_++] = $[V][S];
5704
5707
  return v;
5705
5708
  }
5706
5709
  function Ds(o, e, t, n) {
@@ -5786,13 +5789,13 @@ var K0 = {}, Rt = {};
5786
5789
  const a = o.getScale(n, s);
5787
5790
  return Math.floor((n + s.margin * 2) * a);
5788
5791
  }, o.qrToImageData = function(n, s, a) {
5789
- const r = s.modules.size, l = s.modules.data, i = o.getScale(r, a), d = Math.floor((r + a.margin * 2) * i), u = a.margin * i, f = [a.color.light, a.color.dark];
5792
+ const r = s.modules.size, l = s.modules.data, i = o.getScale(r, a), d = Math.floor((r + a.margin * 2) * i), u = a.margin * i, p = [a.color.light, a.color.dark];
5790
5793
  for (let h = 0; h < d; h++)
5791
5794
  for (let m = 0; m < d; m++) {
5792
5795
  let g = (h * d + m) * 4, w = a.color.light;
5793
5796
  if (h >= u && m >= u && h < d - u && m < d - u) {
5794
5797
  const $ = Math.floor((h - u) / i), E = Math.floor((m - u) / i);
5795
- w = f[l[$ * r + E] ? 1 : 0];
5798
+ w = p[l[$ * r + E] ? 1 : 0];
5796
5799
  }
5797
5800
  n[g++] = w.r, n[g++] = w.g, n[g++] = w.b, n[g] = w.a;
5798
5801
  }
@@ -5813,13 +5816,13 @@ var K0 = {}, Rt = {};
5813
5816
  o.render = function(a, r, l) {
5814
5817
  let i = l, d = r;
5815
5818
  typeof i > "u" && (!r || !r.getContext) && (i = r, r = void 0), r || (d = n()), i = e.getOptions(i);
5816
- const u = e.getImageWidth(a.modules.size, i), f = d.getContext("2d"), h = f.createImageData(u, u);
5817
- return e.qrToImageData(h.data, a, i), t(f, d, u), f.putImageData(h, 0, 0), d;
5819
+ const u = e.getImageWidth(a.modules.size, i), p = d.getContext("2d"), h = p.createImageData(u, u);
5820
+ return e.qrToImageData(h.data, a, i), t(p, d, u), p.putImageData(h, 0, 0), d;
5818
5821
  }, o.renderToDataURL = function(a, r, l) {
5819
5822
  let i = l;
5820
5823
  typeof i > "u" && (!r || !r.getContext) && (i = r, r = void 0), i || (i = {});
5821
- const d = o.render(a, r, i), u = i.type || "image/png", f = i.rendererOpts || {};
5822
- return d.toDataURL(u, f.quality);
5824
+ const d = o.render(a, r, i), u = i.type || "image/png", p = i.rendererOpts || {};
5825
+ return d.toDataURL(u, p.quality);
5823
5826
  };
5824
5827
  })(K0);
5825
5828
  var G0 = {};
@@ -5888,13 +5891,13 @@ const Hs = ["src"], Os = {
5888
5891
  props: qo,
5889
5892
  emits: ["refresh"],
5890
5893
  setup(o, { expose: e, emit: t }) {
5891
- const n = o, s = t, a = Fe(), r = D(!1), l = D(!0), i = D(1);
5894
+ const n = o, s = t, a = Fe(), r = D(!1), l = D(!1), i = D(1);
5892
5895
  let d;
5893
5896
  const u = () => {
5894
5897
  l.value = !1, d = setTimeout(() => {
5895
5898
  r.value = !0;
5896
5899
  }, n.timeout);
5897
- }, f = async () => {
5900
+ }, p = async () => {
5898
5901
  r.value = !1, l.value = !0, clearTimeout(d), s("refresh"), await m(), u();
5899
5902
  };
5900
5903
  n.timeout > 0 && u(), s0(() => {
@@ -5903,9 +5906,9 @@ const Hs = ["src"], Os = {
5903
5906
  const h = D(), m = async () => {
5904
5907
  const { quality: w, value: $, darkColor: E, lightColor: T, ...v } = n;
5905
5908
  v.color = { dark: E, light: T };
5906
- const b = typeof $ == "function" ? await $() : $;
5909
+ const _ = typeof $ == "function" ? await $() : $;
5907
5910
  Re.toDataURL(
5908
- b,
5911
+ _,
5909
5912
  Object.assign(v, w == null || { renderOptions: { quality: w } })
5910
5913
  ).then((S) => {
5911
5914
  h.value = S;
@@ -5916,32 +5919,32 @@ const Hs = ["src"], Os = {
5916
5919
  G(n, m, { immediate: !0 }), G(
5917
5920
  () => n.width,
5918
5921
  () => {
5919
- n.width && (console.log("props.width", n.width), i.value = n.width / 140, console.log(i.value));
5922
+ n.width && (i.value = n.width / 140);
5920
5923
  },
5921
5924
  { immediate: !0 }
5922
5925
  );
5923
5926
  const g = D();
5924
5927
  return e({
5925
5928
  qrcodeRef: g
5926
- }), (w, $) => Z((p(), P("div", {
5929
+ }), (w, $) => Z((f(), P("div", {
5927
5930
  class: "x-qrcode",
5928
5931
  ref_key: "qrcodeRef",
5929
5932
  ref: g
5930
5933
  }, [
5931
5934
  N("img", O({ class: "x-qrcode__qrcode" }, c(a), { src: h.value }), null, 16, Hs),
5932
- h.value && r.value ? (p(), P("div", Os, [
5935
+ h.value && r.value ? (f(), P("div", Os, [
5933
5936
  N("div", {
5934
5937
  class: "x-qrcode__mask",
5935
5938
  style: we({ scale: i.value })
5936
5939
  }, [
5937
5940
  N("div", {
5938
5941
  class: "x-qrcode__logo",
5939
- onClick: f
5942
+ onClick: p
5940
5943
  }, [
5941
5944
  A(w.$slots, "logo", {}, () => [
5942
5945
  z(c(ae), {
5943
5946
  icon: c(v0),
5944
- size: 20
5947
+ size: 24
5945
5948
  }, null, 8, ["icon"]),
5946
5949
  js
5947
5950
  ])
@@ -5954,7 +5957,7 @@ const Hs = ["src"], Os = {
5954
5957
  ], 4)
5955
5958
  ])) : x("", !0)
5956
5959
  ])), [
5957
- [c(p0), l.value]
5960
+ [c(f0), l.value]
5958
5961
  ]);
5959
5962
  }
5960
5963
  }), Xs = { class: "x-sms-code-input" }, Ks = /* @__PURE__ */ N("span", null, [
@@ -5963,7 +5966,7 @@ const Hs = ["src"], Os = {
5963
5966
  ], -1), Gs = /* @__PURE__ */ N("div", { class: "x-sms-code-input__image" }, "图片验证码", -1), Ra = /* @__PURE__ */ R({
5964
5967
  __name: "SmsCodeInput",
5965
5968
  setup(o) {
5966
- return (e, t) => (p(), P("div", Xs, [
5969
+ return (e, t) => (f(), P("div", Xs, [
5967
5970
  z(c(ge), { class: "x-sms-code-input__input" }, {
5968
5971
  suffix: y(() => [
5969
5972
  Ks,
@@ -6091,8 +6094,8 @@ const Hs = ["src"], Os = {
6091
6094
  function Ht(o) {
6092
6095
  if (o.type)
6093
6096
  return o.type;
6094
- const e = o.name || o.url.split("?")[0], t = e.substring(e.lastIndexOf(".") + 1).toLowerCase(), n = ["jpg", "png", "gif", "jpeg", "bpm", "webp", "svg"], s = ["js", "mjs", "cjs", "ts", "jsx", "tsx"], a = ["css", "scss", "sass", "less"], r = ["doc", "docx"], l = ["xls", "xlsx"], i = ["ppt", "pptx"], d = ["zip", "rar"], u = ["mp4", "wmv"], f = ["mp3", "wma"], h = ["pdf", "json"];
6095
- return n.includes(t) ? "img" : s.includes(t) ? "js" : a.includes(t) ? "css" : r.includes(t) ? "word" : l.includes(t) ? "excel" : i.includes(t) ? "ppt" : d.includes(t) ? "zip" : u.includes(t) ? "video" : f.includes(t) ? "audio" : h.includes(t) ? t : "unknow";
6097
+ const e = o.name || o.url.split("?")[0], t = e.substring(e.lastIndexOf(".") + 1).toLowerCase(), n = ["jpg", "png", "gif", "jpeg", "bpm", "webp", "svg"], s = ["js", "mjs", "cjs", "ts", "jsx", "tsx"], a = ["css", "scss", "sass", "less"], r = ["doc", "docx"], l = ["xls", "xlsx"], i = ["ppt", "pptx"], d = ["zip", "rar"], u = ["mp4", "wmv"], p = ["mp3", "wma"], h = ["pdf", "json"];
6098
+ return n.includes(t) ? "img" : s.includes(t) ? "js" : a.includes(t) ? "css" : r.includes(t) ? "word" : l.includes(t) ? "excel" : i.includes(t) ? "ppt" : d.includes(t) ? "zip" : u.includes(t) ? "video" : p.includes(t) ? "audio" : h.includes(t) ? t : "unknow";
6096
6099
  }
6097
6100
  function yt(o) {
6098
6101
  return Ht(o) === "img";
@@ -6117,10 +6120,10 @@ const Ws = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6117
6120
  zip: oa,
6118
6121
  audio: sa,
6119
6122
  video: aa
6120
- }, la = { class: "x-attachment__upload" }, ra = ["onClick"], ca = { class: "x-attachment__wrapper" }, ua = ["src"], da = ["title"], fa = {
6123
+ }, la = { class: "x-attachment__upload" }, ra = ["onClick"], ca = { class: "x-attachment__wrapper" }, ua = ["src"], da = ["title"], pa = {
6121
6124
  key: 0,
6122
6125
  class: "x-attachment__item-name"
6123
- }, pa = { class: "el-upload-list__item-url" }, ma = {
6126
+ }, fa = { class: "el-upload-list__item-url" }, ma = {
6124
6127
  key: 0,
6125
6128
  class: "el-upload-list__item-actions"
6126
6129
  }, ga = ["onClick"], ha = ["onClick"], va = ["onClick"], La = /* @__PURE__ */ R({
@@ -6129,7 +6132,7 @@ const Ws = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6129
6132
  props: Ys,
6130
6133
  emits: ["click", "preview", "remove", "download", "select", "change", "update:modelValue", "update:selectValue"],
6131
6134
  setup(o, { expose: e, emit: t }) {
6132
- const n = u2(), s = o, a = t, r = D(!1), l = D(), i = D(Symbol()), d = D(!1), u = D(0), f = D([]), h = C(() => ({
6135
+ const n = u2(), s = o, a = t, r = D(!1), l = D(), i = D(Symbol()), d = D(!1), u = D(0), p = D([]), h = C(() => ({
6133
6136
  [`x-attachment--${s.listType}`]: !!s.listType,
6134
6137
  "is-disabled": !!s.disabled,
6135
6138
  "is-pointer": !!s.clickable || !!s.selectable,
@@ -6159,7 +6162,7 @@ const Ws = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6159
6162
  ), G(
6160
6163
  () => s.selectValue,
6161
6164
  (B) => {
6162
- f.value = [].concat(
6165
+ p.value = [].concat(
6163
6166
  Kt(B || [])
6164
6167
  );
6165
6168
  },
@@ -6177,24 +6180,24 @@ const Ws = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6177
6180
  r.value = !0;
6178
6181
  const M = B.file, F = await I(M).catch(() => null);
6179
6182
  if (!F) {
6180
- const oe = m.value.findIndex((be) => be.uid === M.uid);
6183
+ const oe = m.value.findIndex((_e) => _e.uid === M.uid);
6181
6184
  oe > -1 && (m.value.splice(oe, 1), qe.error({
6182
6185
  message: `文件${M.name}上传失败。`
6183
6186
  }));
6184
6187
  }
6185
6188
  return r.value = !1, typeof F == "string" ? { url: F } : F;
6186
6189
  }
6187
- }, b = (B) => {
6188
- const I = f.value.findIndex((M) => M.url === B.url);
6189
- I > -1 ? s.multiple ? f.value.splice(I, 1) : f.value = [] : s.multiple ? f.value.push(Ie(B.response || B)) : f.value = [Ie(B.response || B)], a("select", f.value), a(
6190
+ }, _ = (B) => {
6191
+ const I = p.value.findIndex((M) => M.url === B.url);
6192
+ I > -1 ? s.multiple ? p.value.splice(I, 1) : p.value = [] : s.multiple ? p.value.push(Ie(B.response || B)) : p.value = [Ie(B.response || B)], a("select", p.value), a(
6190
6193
  "update:selectValue",
6191
- s.multiple ? f.value : f.value[0]
6194
+ s.multiple ? p.value : p.value[0]
6192
6195
  );
6193
6196
  }, S = (B) => {
6194
- const I = f.value.findIndex((M) => M.url === B.url);
6195
- I > -1 && f.value.splice(I, 1);
6196
- }, V = (B) => !!f.value.find((I) => I.url === B.url), k = (B) => {
6197
- s.clickable && a("click", Ie(B.response || B)), s.selectable && b(B);
6197
+ const I = p.value.findIndex((M) => M.url === B.url);
6198
+ I > -1 && p.value.splice(I, 1);
6199
+ }, V = (B) => !!p.value.find((I) => I.url === B.url), k = (B) => {
6200
+ s.clickable && a("click", Ie(B.response || B)), s.selectable && _(B);
6198
6201
  }, H = async (B, I) => {
6199
6202
  if (I.every((F) => F.status === "success") && I.length === m.value.length) {
6200
6203
  const F = m.value.map((oe) => Ie(oe.response || oe));
@@ -6222,12 +6225,12 @@ const Ws = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6222
6225
  elUploadRef: l,
6223
6226
  remove: X,
6224
6227
  download: Y,
6225
- selections: f,
6228
+ selections: p,
6226
6229
  fileList: m
6227
- }), (B, I) => (p(), P("div", {
6230
+ }), (B, I) => (f(), P("div", {
6228
6231
  class: J(["x-attachment", h.value])
6229
6232
  }, [
6230
- (p(), _(c(zn), O({
6233
+ (f(), b(c(zn), O({
6231
6234
  ref_key: "elUploadRef",
6232
6235
  ref: l,
6233
6236
  key: i.value,
@@ -6239,7 +6242,7 @@ const Ws = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6239
6242
  "http-request": v
6240
6243
  }), {
6241
6244
  file: y(({ file: M }) => [
6242
- Z((p(), P("div", {
6245
+ Z((f(), P("div", {
6243
6246
  class: J(["x-attachment__item", { "is-selected": V(M.response || M) }]),
6244
6247
  onClick: (F) => k(M.response || M)
6245
6248
  }, [
@@ -6252,12 +6255,12 @@ const Ws = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6252
6255
  class: "el-upload-list__item-name",
6253
6256
  title: (M.response || M).url
6254
6257
  }, [
6255
- M.name ? (p(), P("span", fa, L((M.response || M).name), 1)) : x("", !0),
6256
- N("span", pa, L((M.response || M).url), 1)
6258
+ M.name ? (f(), P("span", pa, L((M.response || M).name), 1)) : x("", !0),
6259
+ N("span", fa, L((M.response || M).url), 1)
6257
6260
  ], 8, da)
6258
6261
  ]),
6259
- w.value ? (p(), P("div", ma, [
6260
- s.previewable ? (p(), P("span", {
6262
+ w.value ? (f(), P("div", ma, [
6263
+ s.previewable ? (f(), P("span", {
6261
6264
  key: 0,
6262
6265
  onClick: (F) => K(M.response || M),
6263
6266
  class: "el-upload-list__item-preview"
@@ -6269,7 +6272,7 @@ const Ws = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6269
6272
  _: 1
6270
6273
  })
6271
6274
  ], 8, ga)) : x("", !0),
6272
- s.downloadable ? (p(), P("span", {
6275
+ s.downloadable ? (f(), P("span", {
6273
6276
  key: 1,
6274
6277
  onClick: (F) => Y(M.response || M),
6275
6278
  class: "el-upload-list__item-delete"
@@ -6281,7 +6284,7 @@ const Ws = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6281
6284
  _: 1
6282
6285
  })
6283
6286
  ], 8, ha)) : x("", !0),
6284
- s.removable && !s.disabled ? (p(), P("span", {
6287
+ s.removable && !s.disabled ? (f(), P("span", {
6285
6288
  key: 2,
6286
6289
  onClick: (F) => X(M),
6287
6290
  class: "el-upload-list__item-delete"
@@ -6295,7 +6298,7 @@ const Ws = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6295
6298
  ], 8, va)) : x("", !0)
6296
6299
  ])) : x("", !0)
6297
6300
  ], 10, ra)), [
6298
- [c(p0), M.status === "ready" || M.status === "uploading"]
6301
+ [c(f0), M.status === "ready" || M.status === "uploading"]
6299
6302
  ])
6300
6303
  ]),
6301
6304
  tip: y(() => [
@@ -6313,7 +6316,7 @@ const Ws = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
6313
6316
  ]),
6314
6317
  _: 3
6315
6318
  }, 16, ["file-list"])),
6316
- s.previewable && d.value ? (p(), _(c(En), {
6319
+ s.previewable && d.value ? (f(), b(c(En), {
6317
6320
  key: 0,
6318
6321
  "hide-on-click-modal": "",
6319
6322
  teleported: "",
@@ -6342,7 +6345,7 @@ export {
6342
6345
  Ba as XDataItem,
6343
6346
  z0 as XDialog,
6344
6347
  $a as XDialogForm,
6345
- bo as XField,
6348
+ _o as XField,
6346
6349
  Co as XForm,
6347
6350
  M2 as XHeader,
6348
6351
  ae as XIcon,
@@ -6369,8 +6372,8 @@ export {
6369
6372
  go as fieldProps,
6370
6373
  B0 as formInstanceKey,
6371
6374
  I0 as formModelKey,
6372
- _o as formProps,
6373
- fe as getSizeValue,
6375
+ bo as formProps,
6376
+ pe as getSizeValue,
6374
6377
  E2 as headerProps,
6375
6378
  c2 as iconProps,
6376
6379
  r2 as iconSizeMap,
@@ -6389,8 +6392,8 @@ export {
6389
6392
  u2 as useAdapter,
6390
6393
  Pt as useDisabled,
6391
6394
  ze as useIcon,
6392
- b2 as useIconProps,
6393
- _2 as useLoader,
6395
+ _2 as useIconProps,
6396
+ b2 as useLoader,
6394
6397
  I2 as vDraggable,
6395
6398
  S0 as vResizable
6396
6399
  };