@xto/data 1.5.0 → 1.6.0

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/es/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as G, computed as x, openBlock as h, createElementBlock as f, normalizeStyle as Y, normalizeClass as c, createElementVNode as p, renderSlot as X, createTextVNode as ae, toDisplayString as W, unref as s, createVNode as ee, createCommentVNode as D, ref as E, watch as ne, Fragment as Z, renderList as le, withDirectives as ge, withKeys as Ie, vModelText as $e, useSlots as me, withModifiers as ie, inject as ue, resolveComponent as Se, createBlock as oe, withCtx as ye, vShow as we, reactive as xe, provide as de, toRef as Ae, nextTick as be, onMounted as ce, onUnmounted as he, resolveDynamicComponent as pe, Teleport as Le, onBeforeUnmount as Ke } from "vue";
1
+ import { defineComponent as G, computed as x, openBlock as h, createElementBlock as f, normalizeStyle as Y, normalizeClass as c, createElementVNode as p, renderSlot as X, createTextVNode as ae, toDisplayString as W, unref as s, createVNode as ee, createCommentVNode as D, ref as E, watch as ne, Fragment as Z, renderList as le, withDirectives as ge, withKeys as Ie, vModelText as $e, useSlots as me, withModifiers as ie, inject as ue, resolveComponent as Se, createBlock as oe, withCtx as ye, vShow as we, reactive as xe, provide as de, toRef as Le, nextTick as be, onMounted as ce, onUnmounted as he, resolveDynamicComponent as pe, Teleport as Ae, onBeforeUnmount as Ke } from "vue";
2
2
  import { useNamespace as U } from "@xto/core";
3
3
  const Ce = {
4
4
  // 箭头类
@@ -328,7 +328,7 @@ const He = ["aria-hidden", "aria-label"], Ne = ["stroke-width"], Ve = ["d"], q =
328
328
  ], 6)
329
329
  ], 2));
330
330
  }
331
- }), Te = ["viewBox"], Ee = ["cx", "cy", "r", "stroke-width"], Be = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke"], Bt = /* @__PURE__ */ G({
331
+ }), Te = ["viewBox"], Ee = ["cx", "cy", "r", "stroke-width"], je = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke"], jt = /* @__PURE__ */ G({
332
332
  name: "XProgress",
333
333
  __name: "index",
334
334
  props: {
@@ -336,7 +336,7 @@ const He = ["aria-hidden", "aria-label"], Ne = ["stroke-width"], Ve = ["d"], q =
336
336
  type: { default: "line" },
337
337
  status: { default: "" },
338
338
  strokeWidth: { default: 6 },
339
- color: { type: [String, Array, Function], default: "#12B6AF" },
339
+ color: { type: [String, Array, Function], default: "#4F46E5" },
340
340
  width: { default: 126 },
341
341
  showText: { type: Boolean, default: !0 }
342
342
  },
@@ -399,7 +399,7 @@ const He = ["aria-hidden", "aria-label"], Ne = ["stroke-width"], Ve = ["d"], q =
399
399
  stroke: typeof n.color == "function" ? n.color(e.value) : n.color,
400
400
  "stroke-linecap": "round",
401
401
  style: { transform: "rotate(-90deg)", "transform-origin": "center" }
402
- }, null, 8, Be)
402
+ }, null, 8, je)
403
403
  ], 12, Te)),
404
404
  n.showText ? (h(), f("div", {
405
405
  key: 0,
@@ -408,7 +408,7 @@ const He = ["aria-hidden", "aria-label"], Ne = ["stroke-width"], Ve = ["d"], q =
408
408
  ], 2))
409
409
  ], 2));
410
410
  }
411
- }), je = ["disabled"], Re = ["onClick"], We = ["disabled"], Pe = ["value"], Oe = ["value"], Ye = /* @__PURE__ */ G({
411
+ }), Be = ["disabled"], Re = ["onClick"], We = ["disabled"], Pe = ["value"], Oe = ["value"], Ye = /* @__PURE__ */ G({
412
412
  name: "XPagination",
413
413
  __name: "index",
414
414
  props: {
@@ -428,7 +428,7 @@ const He = ["aria-hidden", "aria-label"], Ne = ["stroke-width"], Ve = ["d"], q =
428
428
  });
429
429
  const m = x(() => l.value), M = x(() => a.value), w = x(() => Math.max(1, Math.ceil(t.total / M.value))), $ = x(
430
430
  () => t.layout.split(",").map((I) => I.trim()).filter(Boolean)
431
- ), H = (I) => $.value.includes(I), A = x(() => {
431
+ ), H = (I) => $.value.includes(I), L = x(() => {
432
432
  const I = [], g = w.value, C = m.value;
433
433
  if (g <= 7)
434
434
  for (let z = 1; z <= g; z++) I.push(z);
@@ -446,9 +446,9 @@ const He = ["aria-hidden", "aria-label"], Ne = ["stroke-width"], Ve = ["d"], q =
446
446
  return I;
447
447
  }), N = (I) => {
448
448
  I < 1 || I > w.value || I === m.value || (l.value = I, e("update:currentPage", I), e("current-change", I));
449
- }, L = (I) => {
449
+ }, A = (I) => {
450
450
  I !== M.value && (a.value = I, e("update:pageSize", I), e("size-change", I), l.value = 1, e("update:currentPage", 1), e("current-change", 1));
451
- }, T = E(""), j = () => {
451
+ }, T = E(""), B = () => {
452
452
  const I = parseInt(T.value, 10);
453
453
  isFinite(I) && (N(Math.min(Math.max(1, I), w.value)), T.value = "");
454
454
  };
@@ -479,8 +479,8 @@ const He = ["aria-hidden", "aria-label"], Ne = ["stroke-width"], Ve = ["d"], q =
479
479
  "stroke-linejoin": "round"
480
480
  })
481
481
  ], -1)
482
- ])], 10, je)) : D("", !0),
483
- H("pager") ? (h(!0), f(Z, { key: 2 }, le(A.value, (C) => (h(), f(Z, { key: C }, [
482
+ ])], 10, Be)) : D("", !0),
483
+ H("pager") ? (h(!0), f(Z, { key: 2 }, le(L.value, (C) => (h(), f(Z, { key: C }, [
484
484
  C === -1 ? (h(), f("span", {
485
485
  key: 0,
486
486
  class: c(s(r).e("ellipsis"))
@@ -515,7 +515,7 @@ const He = ["aria-hidden", "aria-label"], Ne = ["stroke-width"], Ve = ["d"], q =
515
515
  key: 4,
516
516
  class: c(s(r).e("sizes")),
517
517
  value: M.value,
518
- onChange: g[2] || (g[2] = (C) => L(Number(C.target.value)))
518
+ onChange: g[2] || (g[2] = (C) => A(Number(C.target.value)))
519
519
  }, [
520
520
  (h(!0), f(Z, null, le(n.pageSizes, (C) => (h(), f("option", {
521
521
  key: C,
@@ -532,8 +532,8 @@ const He = ["aria-hidden", "aria-label"], Ne = ["stroke-width"], Ve = ["d"], q =
532
532
  type: "text",
533
533
  inputmode: "numeric",
534
534
  "onUpdate:modelValue": g[3] || (g[3] = (C) => T.value = C),
535
- onKeyup: Ie(j, ["enter"]),
536
- onBlur: j
535
+ onKeyup: Ie(B, ["enter"]),
536
+ onBlur: B
537
537
  }, null, 34), [
538
538
  [$e, T.value]
539
539
  ]),
@@ -541,7 +541,7 @@ const He = ["aria-hidden", "aria-label"], Ne = ["stroke-width"], Ve = ["d"], q =
541
541
  ], 2)) : D("", !0)
542
542
  ], 2));
543
543
  }
544
- }), Xe = { key: 0 }, Fe = ["checked", "indeterminate"], Qe = ["onClick"], Ge = { class: "sort-arrow up" }, Ue = { class: "sort-arrow down" }, Ze = ["onClick"], Je = ["checked", "onChange"], qe = ["onClick"], _e = ["onClick"], et = { key: 1 }, tt = ["colspan"], jt = /* @__PURE__ */ G({
544
+ }), Xe = { key: 0 }, Fe = ["checked", "indeterminate"], Qe = ["onClick"], Ge = { class: "sort-arrow up" }, Ue = { class: "sort-arrow down" }, Ze = ["onClick"], Je = ["checked", "onChange"], qe = ["onClick"], _e = ["onClick"], et = { key: 1 }, tt = ["colspan"], Bt = /* @__PURE__ */ G({
545
545
  name: "XDynamicTable",
546
546
  __name: "index",
547
547
  props: {
@@ -583,20 +583,20 @@ const He = ["aria-hidden", "aria-label"], Ne = ["stroke-width"], Ve = ["d"], q =
583
583
  const K = k > S ? 1 : -1;
584
584
  return v === "ascending" ? K : -K;
585
585
  });
586
- }), A = x(() => {
586
+ }), L = x(() => {
587
587
  const d = {};
588
588
  return e.height && (d.height = typeof e.height == "number" ? `${e.height}px` : e.height), e.maxHeight && (d.maxHeight = typeof e.maxHeight == "number" ? `${e.maxHeight}px` : e.maxHeight), d;
589
589
  }), N = x(() => {
590
590
  const d = typeof e.operationWidth == "number" ? `${e.operationWidth}px` : e.operationWidth;
591
591
  return { width: d, minWidth: d };
592
- }), L = x(() => [
592
+ }), A = x(() => [
593
593
  l.b(),
594
594
  l.is("border", e.border),
595
595
  l.is("stripe", e.stripe),
596
596
  l.is("loading", e.loading)
597
597
  ]), T = (d) => {
598
598
  d.sortable && (m.value.prop === d.prop ? m.value.order === "ascending" ? m.value.order = "descending" : m.value.order === "descending" && (m.value.order = null, m.value.prop = "") : (m.value.prop = d.prop, m.value.order = "ascending"), r("sort-change", { ...m.value }));
599
- }, j = (d) => d.sortable ? m.value.prop !== d.prop ? l.is("sortable") : [
599
+ }, B = (d) => d.sortable ? m.value.prop !== d.prop ? l.is("sortable") : [
600
600
  l.is("sortable"),
601
601
  l.is(`sort-${m.value.order}`)
602
602
  ] : "", I = (d, v, y) => {
@@ -634,7 +634,7 @@ const He = ["aria-hidden", "aria-label"], Ne = ["stroke-width"], Ve = ["d"], q =
634
634
  deleteRow: te,
635
635
  getData: () => [...a.value]
636
636
  }), (d, v) => (h(), f("div", {
637
- class: c(L.value)
637
+ class: c(A.value)
638
638
  }, [
639
639
  n.showAddButton ? (h(), f("div", {
640
640
  key: 0,
@@ -659,7 +659,7 @@ const He = ["aria-hidden", "aria-label"], Ne = ["stroke-width"], Ve = ["d"], q =
659
659
  ])], 2)) : D("", !0),
660
660
  p("div", {
661
661
  class: c(s(l).e("wrapper")),
662
- style: Y(A.value)
662
+ style: Y(L.value)
663
663
  }, [
664
664
  p("table", null, [
665
665
  n.showHeader ? (h(), f("thead", Xe, [
@@ -682,7 +682,7 @@ const He = ["aria-hidden", "aria-label"], Ne = ["stroke-width"], Ve = ["d"], q =
682
682
  }, " 序号 ", 2)) : D("", !0),
683
683
  (h(!0), f(Z, null, le(n.columns, (y) => (h(), f("th", {
684
684
  key: y.prop,
685
- class: c([s(l).e("header-cell"), j(y)]),
685
+ class: c([s(l).e("header-cell"), B(y)]),
686
686
  style: Y(O(y)),
687
687
  onClick: (u) => T(y)
688
688
  }, [
@@ -797,19 +797,19 @@ const He = ["aria-hidden", "aria-label"], Ne = ["stroke-width"], Ve = ["d"], q =
797
797
  node: {}
798
798
  },
799
799
  setup(n) {
800
- const o = n, t = ue("tree"), { props: e, store: r, toggleExpand: l, toggleCheck: a, handleNodeClick: m, handleNodeContextmenu: M } = t, w = E(), $ = E(null), H = x(() => o.node.expanded), A = x(() => o.node.checked), N = x(() => o.node.indeterminate), L = x(() => o.node.disabled), T = x(() => o.node.loading), j = x(() => o.node.isLeaf), I = x(() => e.showCheckbox || e.checkable), g = x(() => o.node.selected), C = x(() => ({
800
+ const o = n, t = ue("tree"), { props: e, store: r, toggleExpand: l, toggleCheck: a, handleNodeClick: m, handleNodeContextmenu: M } = t, w = E(), $ = E(null), H = x(() => o.node.expanded), L = x(() => o.node.checked), N = x(() => o.node.indeterminate), A = x(() => o.node.disabled), T = x(() => o.node.loading), B = x(() => o.node.isLeaf), I = x(() => e.showCheckbox || e.checkable), g = x(() => o.node.selected), C = x(() => ({
801
801
  paddingLeft: `${o.node.level * (e.indent || 16)}px`
802
802
  })), z = (i) => {
803
803
  m(o.node, i);
804
804
  }, R = (i) => {
805
805
  M(o.node, i);
806
806
  }, J = (i) => {
807
- i.stopPropagation(), L.value || l(o.node);
807
+ i.stopPropagation(), A.value || l(o.node);
808
808
  }, O = (i) => {
809
- i.stopPropagation(), L.value || a(o.node);
809
+ i.stopPropagation(), A.value || a(o.node);
810
810
  }, Q = (i) => {
811
811
  var d;
812
- if (!(!e.draggable || L.value)) {
812
+ if (!(!e.draggable || A.value)) {
813
813
  if (e.allowDrag && !e.allowDrag(o.node)) {
814
814
  i.preventDefault();
815
815
  return;
@@ -824,7 +824,7 @@ const He = ["aria-hidden", "aria-label"], Ne = ["stroke-width"], Ve = ["d"], q =
824
824
  $.value = null, (d = t.emit) == null || d.call(t, "node-drag-leave", o.node, i);
825
825
  }, _ = (i) => {
826
826
  var u, k;
827
- if (i.preventDefault(), !e.draggable || L.value) return;
827
+ if (i.preventDefault(), !e.draggable || A.value) return;
828
828
  const d = (u = w.value) == null ? void 0 : u.getBoundingClientRect();
829
829
  if (!d) return;
830
830
  const v = i.clientY - d.top, y = d.height;
@@ -858,12 +858,12 @@ const He = ["aria-hidden", "aria-label"], Ne = ["stroke-width"], Ve = ["d"], q =
858
858
  "is-expanded": H.value,
859
859
  "is-current": i.isCurrent,
860
860
  "is-selected": g.value,
861
- "is-disabled": L.value,
861
+ "is-disabled": A.value,
862
862
  "is-drop-inner": $.value === "inner",
863
863
  "is-drop-prev": $.value === "prev",
864
864
  "is-drop-next": $.value === "next"
865
865
  }]),
866
- draggable: s(e).draggable && !L.value,
866
+ draggable: s(e).draggable && !A.value,
867
867
  onDragstart: Q,
868
868
  onDragenter: te,
869
869
  onDragleave: se,
@@ -880,26 +880,26 @@ const He = ["aria-hidden", "aria-label"], Ne = ["stroke-width"], Ve = ["d"], q =
880
880
  p("span", {
881
881
  class: c(["x-tree-node__expand-icon", {
882
882
  "is-expanded": H.value,
883
- "is-leaf": j.value,
883
+ "is-leaf": B.value,
884
884
  "is-loading": T.value
885
885
  }]),
886
886
  onClick: J
887
887
  }, [
888
888
  T.value ? (h(), f("span", lt)) : (h(), f(Z, { key: 1 }, [
889
- j.value ? D("", !0) : (h(), f("span", nt))
889
+ B.value ? D("", !0) : (h(), f("span", nt))
890
890
  ], 64))
891
891
  ], 2),
892
892
  n.node.icon || s(e).icon ? (h(), f("span", st, W(n.node.icon || s(e).icon), 1)) : D("", !0),
893
893
  I.value ? (h(), f("span", {
894
894
  key: 1,
895
895
  class: c(["x-tree-node__checkbox", {
896
- "is-checked": A.value,
896
+ "is-checked": L.value,
897
897
  "is-indeterminate": N.value,
898
- "is-disabled": L.value
898
+ "is-disabled": A.value
899
899
  }]),
900
900
  onClick: ie(O, ["stop"])
901
901
  }, [
902
- A.value ? (h(), oe(s(q), {
902
+ L.value ? (h(), oe(s(q), {
903
903
  key: 0,
904
904
  name: "check",
905
905
  size: 12,
@@ -920,7 +920,7 @@ const He = ["aria-hidden", "aria-label"], Ne = ["stroke-width"], Ve = ["d"], q =
920
920
  ])
921
921
  ])
922
922
  ], 36),
923
- !j.value && H.value ? (h(), f("div", {
923
+ !B.value && H.value ? (h(), f("div", {
924
924
  key: 0,
925
925
  class: c(["x-tree-node__children", { "x-tree-node__children--show-line": s(e).showLine }])
926
926
  }, [
@@ -950,7 +950,7 @@ class re {
950
950
  this.key = o[a] ?? o.value ?? o.id ?? Math.random().toString(), this.label = o[m] ?? o.label ?? "", this.disabled = o[M] ?? o.disabled ?? !1, this.isLeaf = o[w] ?? o.isLeaf ?? !1;
951
951
  const $ = l.children || "children", H = o[$] ?? o.children ?? [];
952
952
  H.length > 0 ? this.children = H.map(
953
- (A) => new re(A, t, e + 1, this)
953
+ (L) => new re(L, t, e + 1, this)
954
954
  ) : this.isLeaf = !0;
955
955
  }
956
956
  /** 设置展开状态 */
@@ -1083,13 +1083,13 @@ const Rt = /* @__PURE__ */ G({
1083
1083
  a.nodesMap.set(S.key, S);
1084
1084
  const K = (d == null ? void 0 : d.children) || "children", P = y[K] ?? y.children ?? [];
1085
1085
  return P.length > 0 && (S.children = P.map(
1086
- (B) => v(B, u + 1, S)
1086
+ (j) => v(j, u + 1, S)
1087
1087
  ), S.isLeaf = !1), S;
1088
1088
  };
1089
1089
  a.rootNodes = i.map((y) => v(y, 0, null)), H();
1090
1090
  }, H = () => {
1091
1091
  var i, d, v;
1092
- e.defaultExpandAll ? A() : (i = e.defaultExpandedKeys) != null && i.length && e.defaultExpandedKeys.forEach((y) => {
1092
+ e.defaultExpandAll ? L() : (i = e.defaultExpandedKeys) != null && i.length && e.defaultExpandedKeys.forEach((y) => {
1093
1093
  const u = a.nodesMap.get(y);
1094
1094
  u && (u.expanded = !0, a.expandedKeys.add(y));
1095
1095
  }), (d = e.defaultCheckedKeys) != null && d.length && e.defaultCheckedKeys.forEach((y) => {
@@ -1099,7 +1099,7 @@ const Rt = /* @__PURE__ */ G({
1099
1099
  const u = a.nodesMap.get(y);
1100
1100
  u && u.setChecked(!0, !e.checkStrictly);
1101
1101
  });
1102
- }, A = () => {
1102
+ }, L = () => {
1103
1103
  a.nodesMap.forEach((i) => {
1104
1104
  i.children.length > 0 && (i.expanded = !0, a.expandedKeys.add(i.key));
1105
1105
  });
@@ -1107,7 +1107,7 @@ const Rt = /* @__PURE__ */ G({
1107
1107
  a.nodesMap.forEach((i) => {
1108
1108
  i.expanded = !1;
1109
1109
  }), a.expandedKeys.clear();
1110
- }, L = (i) => {
1110
+ }, A = (i) => {
1111
1111
  if (i.disabled) return;
1112
1112
  !i.expanded ? (i.expanded = !0, a.expandedKeys.add(i.key), r("node-expand", i.data, i, null)) : (i.expanded = !1, a.expandedKeys.delete(i.key), r("node-collapse", i.data, i, null));
1113
1113
  }, T = (i, d) => {
@@ -1123,8 +1123,8 @@ const Rt = /* @__PURE__ */ G({
1123
1123
  halfCheckedNodes: k,
1124
1124
  halfCheckedKeys: S
1125
1125
  });
1126
- }, j = (i, d) => {
1127
- i.disabled || (r("node-click", i.data, i, null), e.expandOnClickNode && i.children.length > 0 && L(i), e.highlightCurrent && (a.currentKey = i.key, r("current-change", i.data, i)));
1126
+ }, B = (i, d) => {
1127
+ i.disabled || (r("node-click", i.data, i, null), e.expandOnClickNode && i.children.length > 0 && A(i), e.highlightCurrent && (a.currentKey = i.key, r("current-change", i.data, i)));
1128
1128
  }, I = (i) => {
1129
1129
  if (m.value = i, a.filterValue = i, !i) {
1130
1130
  a.nodesMap.forEach((d) => {
@@ -1194,10 +1194,10 @@ const Rt = /* @__PURE__ */ G({
1194
1194
  props: e,
1195
1195
  store: a,
1196
1196
  emit: r,
1197
- toggleExpand: L,
1197
+ toggleExpand: A,
1198
1198
  toggleCheck: T,
1199
- handleNodeClick: j,
1200
- filterValue: Ae(m),
1199
+ handleNodeClick: B,
1200
+ filterValue: Le(m),
1201
1201
  showCheckboxComputed: V
1202
1202
  }), o({
1203
1203
  filter: I,
@@ -1213,7 +1213,7 @@ const Rt = /* @__PURE__ */ G({
1213
1213
  setChecked: se,
1214
1214
  getSelectedNodes: _,
1215
1215
  setSelectedKeys: b,
1216
- expandAll: A,
1216
+ expandAll: L,
1217
1217
  collapseAll: N,
1218
1218
  // 额外方法
1219
1219
  updateKeyChildren: (i, d) => {
@@ -1404,7 +1404,7 @@ const Rt = /* @__PURE__ */ G({
1404
1404
  },
1405
1405
  setup(n) {
1406
1406
  const o = n, t = U("timeline-item"), e = {
1407
- primary: "#12B6AF",
1407
+ primary: "#4F46E5",
1408
1408
  success: "#00A870",
1409
1409
  warning: "#FF7D00",
1410
1410
  danger: "#F53F3F",
@@ -1472,17 +1472,17 @@ const Rt = /* @__PURE__ */ G({
1472
1472
  e.loop ? a.value = (R + m.value) % m.value : a.value = Math.max(0, Math.min(R, m.value - 1)), r("update:activeIndex", a.value), r("change", a.value, J);
1473
1473
  }, H = () => {
1474
1474
  $(a.value - 1);
1475
- }, A = () => {
1475
+ }, L = () => {
1476
1476
  $(a.value + 1);
1477
1477
  }, N = () => {
1478
- e.autoplay && m.value > 1 && (L(), M.value = setInterval(() => {
1479
- w.value || A();
1478
+ e.autoplay && m.value > 1 && (A(), M.value = setInterval(() => {
1479
+ w.value || L();
1480
1480
  }, e.interval));
1481
- }, L = () => {
1481
+ }, A = () => {
1482
1482
  M.value && (clearInterval(M.value), M.value = null);
1483
1483
  }, T = () => {
1484
1484
  w.value = !0, e.arrow;
1485
- }, j = () => {
1485
+ }, B = () => {
1486
1486
  w.value = !1;
1487
1487
  }, I = (R) => {
1488
1488
  e.trigger === "hover" && $(R);
@@ -1506,16 +1506,16 @@ const Rt = /* @__PURE__ */ G({
1506
1506
  }), ce(() => {
1507
1507
  N();
1508
1508
  }), he(() => {
1509
- L();
1509
+ A();
1510
1510
  }), o({
1511
1511
  prev: H,
1512
- next: A,
1512
+ next: L,
1513
1513
  setActiveItem: $
1514
1514
  }), (R, J) => (h(), f("div", {
1515
1515
  class: c(z.value),
1516
1516
  style: Y(C.value),
1517
1517
  onMouseenter: T,
1518
- onMouseleave: j
1518
+ onMouseleave: B
1519
1519
  }, [
1520
1520
  p("div", {
1521
1521
  class: c(s(l).e("container"))
@@ -1530,7 +1530,7 @@ const Rt = /* @__PURE__ */ G({
1530
1530
  n.arrow !== "never" ? (h(), f("button", {
1531
1531
  key: 1,
1532
1532
  class: c([s(l).e("arrow"), s(l).e("arrow-right")]),
1533
- onClick: A
1533
+ onClick: L
1534
1534
  }, " › ", 2)) : D("", !0),
1535
1535
  n.indicatorPosition !== "none" ? (h(), f("ul", {
1536
1536
  key: 2,
@@ -1608,11 +1608,11 @@ const Rt = /* @__PURE__ */ G({
1608
1608
  const $ = x(() => {
1609
1609
  const u = a.map((P) => P.config), k = u.filter((P) => P.fixed === "left" || P.fixed === !0), S = u.filter((P) => !P.fixed), K = u.filter((P) => P.fixed === "right");
1610
1610
  return [...k, ...S, ...K];
1611
- }), H = x(() => $.value.filter((u) => u.fixed === "left" || u.fixed === !0)), A = x(() => $.value.filter((u) => u.fixed === "right"));
1611
+ }), H = x(() => $.value.filter((u) => u.fixed === "left" || u.fixed === !0)), L = x(() => $.value.filter((u) => u.fixed === "right"));
1612
1612
  x(() => $.value.filter((u) => !u.fixed)), x(() => H.value.reduce((u, k) => {
1613
1613
  const S = k.width ? typeof k.width == "number" ? k.width : parseInt(k.width) : 100;
1614
1614
  return u + S;
1615
- }, 0)), x(() => A.value.reduce((u, k) => {
1615
+ }, 0)), x(() => L.value.reduce((u, k) => {
1616
1616
  const S = k.width ? typeof k.width == "number" ? k.width : parseInt(k.width) : 100;
1617
1617
  return u + S;
1618
1618
  }, 0));
@@ -1621,20 +1621,20 @@ const Rt = /* @__PURE__ */ G({
1621
1621
  return a.forEach((k) => {
1622
1622
  k.slot && (u[k.config.prop] = k.slot);
1623
1623
  }), u;
1624
- }), L = E({
1624
+ }), A = E({
1625
1625
  prop: ((v = e.defaultSort) == null ? void 0 : v.prop) || "",
1626
1626
  order: ((y = e.defaultSort) == null ? void 0 : y.order) || null
1627
1627
  }), T = x(() => {
1628
- if (!L.value.prop || !L.value.order)
1628
+ if (!A.value.prop || !A.value.order)
1629
1629
  return e.data;
1630
- const { prop: u, order: k } = L.value;
1630
+ const { prop: u, order: k } = A.value;
1631
1631
  return [...e.data].sort((S, K) => {
1632
- const P = S[u], B = K[u];
1633
- if (P === B) return 0;
1634
- const F = P > B ? 1 : -1;
1632
+ const P = S[u], j = K[u];
1633
+ if (P === j) return 0;
1634
+ const F = P > j ? 1 : -1;
1635
1635
  return k === "ascending" ? F : -F;
1636
1636
  });
1637
- }), j = x(() => {
1637
+ }), B = x(() => {
1638
1638
  const u = {};
1639
1639
  return e.height && (u.height = typeof e.height == "number" ? `${e.height}px` : e.height), e.maxHeight && (u.maxHeight = typeof e.maxHeight == "number" ? `${e.maxHeight}px` : e.maxHeight), u;
1640
1640
  }), I = x(() => [
@@ -1642,12 +1642,12 @@ const Rt = /* @__PURE__ */ G({
1642
1642
  l.is("border", e.border),
1643
1643
  l.is("stripe", e.stripe),
1644
1644
  l.is("loading", e.loading),
1645
- l.is("has-fixed", H.value.length > 0 || A.value.length > 0)
1645
+ l.is("has-fixed", H.value.length > 0 || L.value.length > 0)
1646
1646
  ]), g = (u) => {
1647
- u.sortable && (L.value.prop === u.prop ? L.value.order === "ascending" ? L.value.order = "descending" : L.value.order === "descending" && (L.value.order = null, L.value.prop = "") : (L.value.prop = u.prop, L.value.order = "ascending"), r("sort-change", { ...L.value }));
1648
- }, C = (u) => u.sortable ? L.value.prop !== u.prop ? l.is("sortable") : [
1647
+ u.sortable && (A.value.prop === u.prop ? A.value.order === "ascending" ? A.value.order = "descending" : A.value.order === "descending" && (A.value.order = null, A.value.prop = "") : (A.value.prop = u.prop, A.value.order = "ascending"), r("sort-change", { ...A.value }));
1648
+ }, C = (u) => u.sortable ? A.value.prop !== u.prop ? l.is("sortable") : [
1649
1649
  l.is("sortable"),
1650
- l.is(`sort-${L.value.order}`)
1650
+ l.is(`sort-${A.value.order}`)
1651
1651
  ] : "", z = (u, k, S) => {
1652
1652
  const K = u[k.prop];
1653
1653
  return k.formatter ? k.formatter(u, k, K, S) : K ?? "";
@@ -1664,17 +1664,17 @@ const Rt = /* @__PURE__ */ G({
1664
1664
  const K = {};
1665
1665
  if (u.width && (K.width = typeof u.width == "number" ? `${u.width}px` : u.width), u.minWidth && (K.minWidth = typeof u.minWidth == "number" ? `${u.minWidth}px` : u.minWidth), u.align && (K.textAlign = u.align), (u.fixed === "left" || u.fixed === !0) && (K.position = "sticky", K.left = "0px", K.zIndex = "2", k !== void 0 && k > 0)) {
1666
1666
  let P = 0;
1667
- for (let B = 0; B < k; B++) {
1668
- const F = H.value[B], ve = F.width ? typeof F.width == "number" ? F.width : parseInt(F.width) : 100;
1667
+ for (let j = 0; j < k; j++) {
1668
+ const F = H.value[j], ve = F.width ? typeof F.width == "number" ? F.width : parseInt(F.width) : 100;
1669
1669
  P += ve;
1670
1670
  }
1671
1671
  K.left = `${P}px`;
1672
1672
  }
1673
1673
  if (u.fixed === "right" && (K.position = "sticky", K.right = "0px", K.zIndex = "2", k !== void 0)) {
1674
- const P = A.value, B = P.length - 1 - k;
1675
- if (B > 0) {
1674
+ const P = L.value, j = P.length - 1 - k;
1675
+ if (j > 0) {
1676
1676
  let F = 0;
1677
- for (let ve = 0; ve < B; ve++) {
1677
+ for (let ve = 0; ve < j; ve++) {
1678
1678
  const fe = P[P.length - 1 - ve], ze = fe.width ? typeof fe.width == "number" ? fe.width : parseInt(fe.width) : 100;
1679
1679
  F += ze;
1680
1680
  }
@@ -1695,7 +1695,7 @@ const Rt = /* @__PURE__ */ G({
1695
1695
  const S = b(u), K = _.value.findIndex((P) => b(P) === S);
1696
1696
  k === void 0 ? K > -1 ? _.value.splice(K, 1) : _.value.push(u) : k && K === -1 ? _.value.push(u) : !k && K > -1 && _.value.splice(K, 1), r("selection-change", [..._.value]);
1697
1697
  },
1698
- sortState: L,
1698
+ sortState: A,
1699
1699
  columns: $
1700
1700
  }), (u, k) => (h(), f("div", {
1701
1701
  class: c(I.value)
@@ -1709,7 +1709,7 @@ const Rt = /* @__PURE__ */ G({
1709
1709
  ])], 2)) : D("", !0),
1710
1710
  p("div", {
1711
1711
  class: c(s(l).e("wrapper")),
1712
- style: Y(j.value)
1712
+ style: Y(B.value)
1713
1713
  }, [
1714
1714
  p("table", null, [
1715
1715
  n.showHeader ? (h(), f("thead", ut, [
@@ -1717,7 +1717,7 @@ const Rt = /* @__PURE__ */ G({
1717
1717
  (h(!0), f(Z, null, le($.value, (S, K) => (h(), f("th", {
1718
1718
  key: S.prop,
1719
1719
  class: c([s(l).e("header-cell"), C(S), ...se(S)]),
1720
- style: Y(te(S, S.fixed === "right" ? A.value.indexOf(S) : K)),
1720
+ style: Y(te(S, S.fixed === "right" ? L.value.indexOf(S) : K)),
1721
1721
  onClick: (P) => g(S)
1722
1722
  }, [
1723
1723
  p("span", null, W(S.label), 1),
@@ -1747,10 +1747,10 @@ const Rt = /* @__PURE__ */ G({
1747
1747
  class: c([s(l).e("row")]),
1748
1748
  onClick: (P) => R(S, P)
1749
1749
  }, [
1750
- (h(!0), f(Z, null, le($.value, (P, B) => (h(), f("td", {
1750
+ (h(!0), f(Z, null, le($.value, (P, j) => (h(), f("td", {
1751
1751
  key: P.prop,
1752
1752
  class: c([s(l).e("cell"), ...se(P)]),
1753
- style: Y(te(P, P.fixed === "right" ? A.value.indexOf(P) : B)),
1753
+ style: Y(te(P, P.fixed === "right" ? L.value.indexOf(P) : j)),
1754
1754
  onClick: (F) => J(S, P, F)
1755
1755
  }, [
1756
1756
  N.value[P.prop] ? (h(), oe(pe(() => N.value[P.prop]({ row: S, column: P, $index: K })), { key: 0 })) : (h(), f(Z, { key: 1 }, [
@@ -1859,25 +1859,25 @@ const Rt = /* @__PURE__ */ G({
1859
1859
  },
1860
1860
  props: e
1861
1861
  });
1862
- const A = (b) => typeof e.rowKey == "function" ? e.rowKey(b) : b[e.rowKey || "id"], N = (b) => {
1862
+ const L = (b) => typeof e.rowKey == "function" ? e.rowKey(b) : b[e.rowKey || "id"], N = (b) => {
1863
1863
  var i;
1864
1864
  const V = ((i = e.treeProps) == null ? void 0 : i.children) || "children";
1865
1865
  return b[V] || [];
1866
- }, L = (b) => {
1866
+ }, A = (b) => {
1867
1867
  var d;
1868
1868
  if (N(b).length > 0) return !0;
1869
1869
  const i = ((d = e.treeProps) == null ? void 0 : d.hasChildren) || "hasChildren";
1870
1870
  return b[i] === !0;
1871
1871
  }, T = (b) => {
1872
- const V = A(b);
1872
+ const V = L(b);
1873
1873
  return a.value.has(V);
1874
- }, j = (b) => {
1875
- const V = A(b), i = !a.value.has(V);
1874
+ }, B = (b) => {
1875
+ const V = L(b), i = !a.value.has(V);
1876
1876
  i ? a.value.add(V) : a.value.delete(V), r("expand-change", b, i);
1877
1877
  }, I = () => {
1878
1878
  const b = (V) => {
1879
1879
  V.forEach((i) => {
1880
- L(i) && (a.value.add(A(i)), b(N(i)));
1880
+ A(i) && (a.value.add(L(i)), b(N(i)));
1881
1881
  });
1882
1882
  };
1883
1883
  b(e.data);
@@ -1886,7 +1886,7 @@ const Rt = /* @__PURE__ */ G({
1886
1886
  }, C = x(() => {
1887
1887
  const b = [], V = (i, d = 0, v = !0) => {
1888
1888
  i.forEach((y) => {
1889
- const u = A(y), k = a.value.has(u), S = v;
1889
+ const u = L(y), k = a.value.has(u), S = v;
1890
1890
  b.push({ row: y, level: d, visible: S });
1891
1891
  const K = N(y);
1892
1892
  K.length > 0 && k && V(K, d + 1, S);
@@ -1937,7 +1937,7 @@ const Rt = /* @__PURE__ */ G({
1937
1937
  }, { immediate: !0 }), o({
1938
1938
  expandAll: I,
1939
1939
  collapseAll: g,
1940
- toggleExpand: j,
1940
+ toggleExpand: B,
1941
1941
  expandedKeys: a,
1942
1942
  columns: m
1943
1943
  }), (b, V) => (h(), f("div", {
@@ -1985,7 +1985,7 @@ const Rt = /* @__PURE__ */ G({
1985
1985
  ])) : D("", !0),
1986
1986
  p("tbody", null, [
1987
1987
  (h(!0), f(Z, null, le(R.value, (i, d) => (h(), f(Z, {
1988
- key: A(i.row)
1988
+ key: L(i.row)
1989
1989
  }, [
1990
1990
  i.visible ? (h(), f("tr", {
1991
1991
  key: 0,
@@ -2004,10 +2004,10 @@ const Rt = /* @__PURE__ */ G({
2004
2004
  class: c(s(l).e("indent")),
2005
2005
  style: Y({ width: `${i.level * n.indent}px` })
2006
2006
  }, null, 6),
2007
- L(i.row) ? (h(), f("span", {
2007
+ A(i.row) ? (h(), f("span", {
2008
2008
  key: 0,
2009
2009
  class: c([s(l).e("expand-icon"), s(l).is("expanded", T(i.row))]),
2010
- onClick: ie((u) => j(i.row), ["stop"])
2010
+ onClick: ie((u) => B(i.row), ["stop"])
2011
2011
  }, [
2012
2012
  T(i.row) ? (h(), oe(s(q), {
2013
2013
  key: 0,
@@ -2171,7 +2171,7 @@ const Rt = /* @__PURE__ */ G({
2171
2171
  ], 2)
2172
2172
  ], 2));
2173
2173
  }
2174
- }), At = ["colspan"], Lt = ["colspan"], qt = /* @__PURE__ */ G({
2174
+ }), Lt = ["colspan"], At = ["colspan"], qt = /* @__PURE__ */ G({
2175
2175
  name: "XDescriptionsItem",
2176
2176
  __name: "DescriptionsItem",
2177
2177
  props: {
@@ -2208,7 +2208,7 @@ const Rt = /* @__PURE__ */ G({
2208
2208
  colspan: n.span * 2 - 1
2209
2209
  }, [
2210
2210
  X(w.$slots, "default")
2211
- ], 10, At)
2211
+ ], 10, Lt)
2212
2212
  ], 64)) : (h(), f("tr", {
2213
2213
  key: 1,
2214
2214
  class: c(s(t).b())
@@ -2222,7 +2222,7 @@ const Rt = /* @__PURE__ */ G({
2222
2222
  colspan: n.span * 2 - 1
2223
2223
  }, [
2224
2224
  X(w.$slots, "default")
2225
- ], 10, Lt)
2225
+ ], 10, At)
2226
2226
  ], 2));
2227
2227
  }
2228
2228
  }), _t = /* @__PURE__ */ G({
@@ -2243,21 +2243,21 @@ const Rt = /* @__PURE__ */ G({
2243
2243
  },
2244
2244
  emits: ["scroll"],
2245
2245
  setup(n, { expose: o, emit: t }) {
2246
- const e = n, r = t, l = U("scrollbar"), a = E(), m = E(), M = E("0"), w = E("0"), $ = E(0), H = E(0), A = x(() => {
2246
+ const e = n, r = t, l = U("scrollbar"), a = E(), m = E(), M = E("0"), w = E("0"), $ = E(0), H = E(0), L = x(() => {
2247
2247
  const C = {};
2248
2248
  return e.height && (C.height = typeof e.height == "number" ? `${e.height}px` : e.height), e.maxHeight && (C.maxHeight = typeof e.maxHeight == "number" ? `${e.maxHeight}px` : e.maxHeight), C;
2249
2249
  }), N = () => {
2250
2250
  if (!a.value) return;
2251
2251
  const C = a.value.offsetHeight - 4, z = a.value.offsetWidth - 4, R = a.value.scrollHeight, J = a.value.scrollWidth, O = C / R, Q = z / J;
2252
2252
  w.value = O >= 1 ? "0" : `${C * O}px`, M.value = Q >= 1 ? "0" : `${z * Q}px`;
2253
- }, L = (C) => {
2253
+ }, A = (C) => {
2254
2254
  if (!a.value) return;
2255
2255
  const z = a.value.offsetHeight, R = a.value.offsetWidth;
2256
2256
  H.value = a.value.scrollTop * 100 / z, $.value = a.value.scrollLeft * 100 / R, r("scroll", C);
2257
2257
  }, T = (C) => {
2258
2258
  var z;
2259
2259
  (z = a.value) == null || z.scrollTo(C);
2260
- }, j = (C) => {
2260
+ }, B = (C) => {
2261
2261
  a.value && (a.value.scrollTop = C);
2262
2262
  }, I = (C) => {
2263
2263
  a.value && (a.value.scrollLeft = C);
@@ -2269,7 +2269,7 @@ const Rt = /* @__PURE__ */ G({
2269
2269
  g && g.disconnect(), window.removeEventListener("resize", N);
2270
2270
  }), o({
2271
2271
  scrollTo: T,
2272
- setScrollTop: j,
2272
+ setScrollTop: B,
2273
2273
  setScrollLeft: I,
2274
2274
  update: N
2275
2275
  }), (C, z) => (h(), f("div", {
@@ -2279,8 +2279,8 @@ const Rt = /* @__PURE__ */ G({
2279
2279
  ref_key: "wrapRef",
2280
2280
  ref: a,
2281
2281
  class: c([s(l).e("wrap"), n.wrapClass, { [s(l).em("wrap", "hidden-default")]: !n.native }]),
2282
- style: Y([A.value, { overflow: n.native ? "auto" : "hidden" }]),
2283
- onScroll: L
2282
+ style: Y([L.value, { overflow: n.native ? "auto" : "hidden" }]),
2283
+ onScroll: A
2284
2284
  }, [
2285
2285
  (h(), oe(pe(n.tag), {
2286
2286
  ref_key: "resizeRef",
@@ -2396,18 +2396,18 @@ const Rt = /* @__PURE__ */ G({
2396
2396
  },
2397
2397
  emits: ["load", "error"],
2398
2398
  setup(n, { emit: o }) {
2399
- const t = n, e = o, r = U("image"), l = E(!0), a = E(!1), m = E(!1), M = E(0), w = E(1), $ = E(0), H = E(0), A = E(0), N = E(!1), L = E({ x: 0, y: 0 }), T = E({ x: 0, y: 0 }), j = E(null), I = x(() => ({
2399
+ const t = n, e = o, r = U("image"), l = E(!0), a = E(!1), m = E(!1), M = E(0), w = E(1), $ = E(0), H = E(0), L = E(0), N = E(!1), A = E({ x: 0, y: 0 }), T = E({ x: 0, y: 0 }), B = E(null), I = x(() => ({
2400
2400
  width: typeof t.width == "number" ? `${t.width}px` : t.width,
2401
2401
  height: typeof t.height == "number" ? `${t.height}px` : t.height,
2402
2402
  objectFit: t.fit
2403
2403
  })), g = x(() => t.previewList.length > 0 ? t.previewList : [t.src]), C = x(() => g.value[M.value]), z = x(
2404
- () => `translate(${H.value}px, ${A.value}px) scale(${w.value}) rotate(${$.value}deg)`
2404
+ () => `translate(${H.value}px, ${L.value}px) scale(${w.value}) rotate(${$.value}deg)`
2405
2405
  ), R = () => {
2406
- w.value = 1, $.value = 0, H.value = 0, A.value = 0, N.value = !1;
2407
- }, J = (B) => {
2408
- l.value = !1, e("load", B);
2409
- }, O = (B) => {
2410
- l.value = !1, a.value = !0, e("error", B);
2406
+ w.value = 1, $.value = 0, H.value = 0, L.value = 0, N.value = !1;
2407
+ }, J = (j) => {
2408
+ l.value = !1, e("load", j);
2409
+ }, O = (j) => {
2410
+ l.value = !1, a.value = !0, e("error", j);
2411
2411
  }, Q = () => {
2412
2412
  t.preview && (M.value = t.initialIndex, R(), m.value = !0);
2413
2413
  }, te = () => {
@@ -2419,28 +2419,28 @@ const Rt = /* @__PURE__ */ G({
2419
2419
  }, b = () => {
2420
2420
  w.value = Math.min(ke, w.value * 1.25);
2421
2421
  }, V = () => {
2422
- w.value = Math.max(Me, w.value / 1.25), w.value <= 1 && (H.value = 0, A.value = 0);
2422
+ w.value = Math.max(Me, w.value / 1.25), w.value <= 1 && (H.value = 0, L.value = 0);
2423
2423
  }, i = () => R(), d = () => {
2424
- const B = j.value;
2425
- if (!B || !B.naturalWidth) return;
2426
- const F = B.getBoundingClientRect();
2427
- F.width <= 0 || (w.value = Math.min(ke, Math.max(Me, w.value * (B.naturalWidth / F.width))));
2424
+ const j = B.value;
2425
+ if (!j || !j.naturalWidth) return;
2426
+ const F = j.getBoundingClientRect();
2427
+ F.width <= 0 || (w.value = Math.min(ke, Math.max(Me, w.value * (j.naturalWidth / F.width))));
2428
2428
  }, v = () => {
2429
2429
  $.value = ($.value + 90) % 360;
2430
2430
  }, y = () => {
2431
- const B = document.createElement("a");
2432
- B.href = C.value, B.download = "", B.target = "_blank", B.rel = "noopener", B.click();
2433
- }, u = (B) => {
2434
- B.preventDefault(), B.deltaY < 0 ? b() : V();
2435
- }, k = (B) => {
2436
- w.value <= 1 || (N.value = !0, L.value = { x: B.clientX, y: B.clientY }, T.value = { x: H.value, y: A.value });
2437
- }, S = (B) => {
2438
- N.value && (H.value = T.value.x + (B.clientX - L.value.x), A.value = T.value.y + (B.clientY - L.value.y));
2431
+ const j = document.createElement("a");
2432
+ j.href = C.value, j.download = "", j.target = "_blank", j.rel = "noopener", j.click();
2433
+ }, u = (j) => {
2434
+ j.preventDefault(), j.deltaY < 0 ? b() : V();
2435
+ }, k = (j) => {
2436
+ w.value <= 1 || (N.value = !0, A.value = { x: j.clientX, y: j.clientY }, T.value = { x: H.value, y: L.value });
2437
+ }, S = (j) => {
2438
+ N.value && (H.value = T.value.x + (j.clientX - A.value.x), L.value = T.value.y + (j.clientY - A.value.y));
2439
2439
  }, K = () => {
2440
2440
  N.value = !1;
2441
- }, P = (B) => {
2441
+ }, P = (j) => {
2442
2442
  if (m.value)
2443
- switch (B.key) {
2443
+ switch (j.key) {
2444
2444
  case "ArrowLeft":
2445
2445
  se();
2446
2446
  break;
@@ -2468,7 +2468,7 @@ const Rt = /* @__PURE__ */ G({
2468
2468
  };
2469
2469
  return typeof window < "u" && window.addEventListener("keydown", P), he(() => {
2470
2470
  typeof window < "u" && window.removeEventListener("keydown", P);
2471
- }), ne(M, () => R()), (B, F) => (h(), f("div", {
2471
+ }), ne(M, () => R()), (j, F) => (h(), f("div", {
2472
2472
  class: c(s(r).b()),
2473
2473
  style: Y({ width: I.value.width, height: I.value.height })
2474
2474
  }, [
@@ -2485,7 +2485,7 @@ const Rt = /* @__PURE__ */ G({
2485
2485
  key: 0,
2486
2486
  class: c(s(r).e("placeholder"))
2487
2487
  }, [
2488
- X(B.$slots, "placeholder", {}, () => [
2488
+ X(j.$slots, "placeholder", {}, () => [
2489
2489
  ee(s(q), {
2490
2490
  name: "loading",
2491
2491
  size: 24
@@ -2496,7 +2496,7 @@ const Rt = /* @__PURE__ */ G({
2496
2496
  key: 1,
2497
2497
  class: c(s(r).e("error"))
2498
2498
  }, [
2499
- X(B.$slots, "error", {}, () => [
2499
+ X(j.$slots, "error", {}, () => [
2500
2500
  ee(s(q), {
2501
2501
  name: "image",
2502
2502
  size: 24
@@ -2504,7 +2504,7 @@ const Rt = /* @__PURE__ */ G({
2504
2504
  F[2] || (F[2] = p("span", null, "加载失败", -1))
2505
2505
  ])
2506
2506
  ], 2)) : D("", !0),
2507
- (h(), oe(Le, { to: "body" }, [
2507
+ (h(), oe(Ae, { to: "body" }, [
2508
2508
  m.value ? (h(), f("div", {
2509
2509
  key: 0,
2510
2510
  class: c(s(r).e("preview")),
@@ -2668,7 +2668,7 @@ const Rt = /* @__PURE__ */ G({
2668
2668
  ], 2),
2669
2669
  p("img", {
2670
2670
  ref_key: "previewImgRef",
2671
- ref: j,
2671
+ ref: B,
2672
2672
  src: C.value,
2673
2673
  class: c([s(r).e("preview-image"), { "is-zoomable": w.value > 1 }]),
2674
2674
  style: Y({ transform: z.value }),
@@ -2749,15 +2749,15 @@ const Rt = /* @__PURE__ */ G({
2749
2749
  });
2750
2750
  }
2751
2751
  return g;
2752
- }), H = (g, C) => g.getFullYear() === C.getFullYear() && g.getMonth() === C.getMonth() && g.getDate() === C.getDate(), A = (g) => {
2752
+ }), H = (g, C) => g.getFullYear() === C.getFullYear() && g.getMonth() === C.getMonth() && g.getDate() === C.getDate(), L = (g) => {
2753
2753
  e("update:modelValue", g.date), e("select", g.date), e("change", g.date);
2754
2754
  }, N = () => {
2755
2755
  l.value--;
2756
- }, L = () => {
2756
+ }, A = () => {
2757
2757
  l.value++;
2758
2758
  }, T = () => {
2759
2759
  a.value === 0 ? (a.value = 11, l.value--) : a.value--;
2760
- }, j = () => {
2760
+ }, B = () => {
2761
2761
  a.value === 11 ? (a.value = 0, l.value++) : a.value++;
2762
2762
  }, I = () => {
2763
2763
  l.value = w.getFullYear(), a.value = w.getMonth(), e("update:modelValue", w), e("select", w);
@@ -2800,7 +2800,7 @@ const Rt = /* @__PURE__ */ G({
2800
2800
  }, "今天", 2),
2801
2801
  p("button", {
2802
2802
  class: c(s(r).e("btn")),
2803
- onClick: j
2803
+ onClick: B
2804
2804
  }, [
2805
2805
  ee(s(q), {
2806
2806
  name: "arrow-right",
@@ -2809,7 +2809,7 @@ const Rt = /* @__PURE__ */ G({
2809
2809
  ], 2),
2810
2810
  p("button", {
2811
2811
  class: c(s(r).e("btn")),
2812
- onClick: L
2812
+ onClick: A
2813
2813
  }, [
2814
2814
  ee(s(q), {
2815
2815
  name: "d-arrow-right",
@@ -2837,7 +2837,7 @@ const Rt = /* @__PURE__ */ G({
2837
2837
  s(r).is("today", z.isToday),
2838
2838
  s(r).is("selected", z.isSelected)
2839
2839
  ]),
2840
- onClick: (J) => A(z)
2840
+ onClick: (J) => L(z)
2841
2841
  }, [
2842
2842
  X(g.$slots, "default", {
2843
2843
  date: z.date,
@@ -2865,27 +2865,27 @@ const Rt = /* @__PURE__ */ G({
2865
2865
  const t = n, e = o, r = U("qrcode"), l = E(), a = async () => {
2866
2866
  if (!(!l.value || !t.value))
2867
2867
  try {
2868
- const A = await m(t.value, t.level);
2869
- $(A), e("ready", l.value);
2870
- } catch (A) {
2871
- e("error", A);
2868
+ const L = await m(t.value, t.level);
2869
+ $(L), e("ready", l.value);
2870
+ } catch (L) {
2871
+ e("error", L);
2872
2872
  }
2873
- }, m = async (A, N) => {
2873
+ }, m = async (L, N) => {
2874
2874
  const T = [];
2875
2875
  for (let g = 0; g < 21; g++)
2876
2876
  T.push(new Array(21).fill(0));
2877
2877
  M(T, 0, 0), M(T, 14, 0), M(T, 0, 14);
2878
2878
  for (let g = 8; g < 13; g++)
2879
2879
  T[6][g] = g % 2 === 0 ? 1 : 0, T[g][6] = g % 2 === 0 ? 1 : 0;
2880
- const j = new TextEncoder().encode(A);
2880
+ const B = new TextEncoder().encode(L);
2881
2881
  let I = 0;
2882
2882
  for (let g = 20; g > 0; g -= 2) {
2883
2883
  g === 6 && g--;
2884
2884
  for (let C = 0; C < 21; C++)
2885
2885
  for (let z = 0; z < 2; z++) {
2886
2886
  const R = g - z;
2887
- if (!w(R, C, 21) && I < j.length) {
2888
- const J = j[I];
2887
+ if (!w(R, C, 21) && I < B.length) {
2888
+ const J = B[I];
2889
2889
  for (let O = 7; O >= 0 && !(C < 21 && !w(R, C, 21) && (T[C][R] = J >> O & 1, C++, C >= 21)); O--)
2890
2890
  ;
2891
2891
  I++;
@@ -2893,29 +2893,29 @@ const Rt = /* @__PURE__ */ G({
2893
2893
  }
2894
2894
  }
2895
2895
  return T;
2896
- }, M = (A, N, L) => {
2896
+ }, M = (L, N, A) => {
2897
2897
  for (let T = 0; T < 7; T++)
2898
- for (let j = 0; j < 7; j++)
2899
- (T === 0 || T === 6 || j === 0 || j === 6 || T >= 2 && T <= 4 && j >= 2 && j <= 4) && (A[N + T][L + j] = 1);
2900
- }, w = (A, N, L) => A < 8 && N < 8 || A < 8 && N >= L - 8 || A >= L - 8 && N < 8 || A === 6 || N === 6, $ = (A) => {
2898
+ for (let B = 0; B < 7; B++)
2899
+ (T === 0 || T === 6 || B === 0 || B === 6 || T >= 2 && T <= 4 && B >= 2 && B <= 4) && (L[N + T][A + B] = 1);
2900
+ }, w = (L, N, A) => L < 8 && N < 8 || L < 8 && N >= A - 8 || L >= A - 8 && N < 8 || L === 6 || N === 6, $ = (L) => {
2901
2901
  if (!l.value) return;
2902
2902
  const N = l.value.getContext("2d");
2903
2903
  if (!N) return;
2904
- const L = A.length, T = t.size / L;
2904
+ const A = L.length, T = t.size / A;
2905
2905
  l.value.width = t.size, l.value.height = t.size, N.fillStyle = t.bgColor, N.fillRect(0, 0, t.size, t.size), N.fillStyle = t.fgColor;
2906
- for (let j = 0; j < L; j++)
2907
- for (let I = 0; I < L; I++)
2908
- A[j][I] && N.fillRect(I * T, j * T, T, T);
2906
+ for (let B = 0; B < A; B++)
2907
+ for (let I = 0; I < A; I++)
2908
+ L[B][I] && N.fillRect(I * T, B * T, T, T);
2909
2909
  }, H = () => {
2910
2910
  if (!l.value) return;
2911
- const A = document.createElement("a");
2912
- A.download = "qrcode.png", A.href = l.value.toDataURL("image/png"), A.click();
2911
+ const L = document.createElement("a");
2912
+ L.download = "qrcode.png", L.href = l.value.toDataURL("image/png"), L.click();
2913
2913
  };
2914
2914
  return ne(() => [t.value, t.size, t.bgColor, t.fgColor, t.level], () => {
2915
2915
  a();
2916
2916
  }), ce(() => {
2917
2917
  a();
2918
- }), (A, N) => (h(), f("div", {
2918
+ }), (L, N) => (h(), f("div", {
2919
2919
  class: c(s(r).b())
2920
2920
  }, [
2921
2921
  p("canvas", {
@@ -2953,10 +2953,10 @@ const Rt = /* @__PURE__ */ G({
2953
2953
  if (!e.virtual) return 0;
2954
2954
  const g = Math.floor(m.value / e.itemSize) - e.buffer;
2955
2955
  return Math.max(0, g);
2956
- }), A = x(() => e.virtual ? Math.min(e.items.length, H.value + $.value) : e.items.length), N = x(() => e.virtual ? e.items.slice(H.value, A.value).map((g, C) => ({
2956
+ }), L = x(() => e.virtual ? Math.min(e.items.length, H.value + $.value) : e.items.length), N = x(() => e.virtual ? e.items.slice(H.value, L.value).map((g, C) => ({
2957
2957
  ...g,
2958
2958
  index: H.value + C
2959
- })) : e.items), L = x(() => H.value * e.itemSize), T = (g) => {
2959
+ })) : e.items), A = x(() => H.value * e.itemSize), T = (g) => {
2960
2960
  const C = g.target;
2961
2961
  m.value = C.scrollTop, r("scroll", m.value);
2962
2962
  };
@@ -2980,7 +2980,7 @@ const Rt = /* @__PURE__ */ G({
2980
2980
  }, [
2981
2981
  p("div", {
2982
2982
  class: c(s(l).e("content")),
2983
- style: Y({ transform: `translateY(${L.value}px)` })
2983
+ style: Y({ transform: `translateY(${A.value}px)` })
2984
2984
  }, [
2985
2985
  (h(!0), f(Z, null, le(N.value, (z, R) => (h(), f("div", {
2986
2986
  key: z.id ?? R,
@@ -3063,12 +3063,12 @@ export {
3063
3063
  ta as CollapseItem,
3064
3064
  Jt as Descriptions,
3065
3065
  qt as DescriptionsItem,
3066
- jt as DynamicTable,
3066
+ Bt as DynamicTable,
3067
3067
  Wt as Empty,
3068
3068
  aa as Image,
3069
3069
  oa as InfiniteScroll,
3070
3070
  Ye as Pagination,
3071
- Bt as Progress,
3071
+ jt as Progress,
3072
3072
  na as QRCode,
3073
3073
  _t as Scrollbar,
3074
3074
  Ft as Table,