@gx-design-vue/pro-table 0.2.0-beta.46 → 0.2.0-beta.47

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/pro-table.js CHANGED
@@ -1,14 +1,14 @@
1
- import { computed as S, ref as P, watch as X, unref as v, watchEffect as he, reactive as de, onUnmounted as jt, onDeactivated as kt, onMounted as zt, provide as Kt, inject as At, defineComponent as ae, createVNode as i, Fragment as Ie, nextTick as Yt, mergeProps as U, createTextVNode as pe, renderSlot as Lt, isVNode as Ce, cloneVNode as Vt, toRef as Z, toRaw as Ee } from "vue";
2
- import { isBoolean as te, isObject as ue, getSlot as ze, isFunction as $e, arrayRepeat as Ht, runFunction as Wt, handleCurrentPage as _t, getSortIndex as Gt, isDeepEqualReact as nt, genColumnKey as ot, compareArray as qt, isNumber as ut, isString as Ut, isArray as Ke, getPrefixCls as Ve, getRandomNumber as Ae, handleShowIndex as Xt, getSlotVNode as ge, hanndleField as Jt } from "@gx-design-vue/pro-utils";
3
- import { pick as it, cloneDeep as J, omit as ye } from "lodash-es";
1
+ import { computed as S, createVNode as i, mergeProps as U, isVNode as Se, ref as O, watch as J, unref as d, watchEffect as he, reactive as de, onUnmounted as jt, onDeactivated as kt, onMounted as zt, provide as Kt, inject as At, defineComponent as le, Fragment as Ie, nextTick as Yt, createTextVNode as be, renderSlot as Lt, cloneVNode as Vt, toRef as Z, toRaw as Ee } from "vue";
2
+ import { isBoolean as te, isObject as ue, getSlot as ze, isFunction as pe, arrayRepeat as Ht, runFunction as Wt, handleCurrentPage as _t, getSortIndex as Gt, isDeepEqualReact as nt, genColumnKey as ot, compareArray as qt, isNumber as ut, isString as Ut, isArray as Ke, getPrefixCls as Ve, getRandomNumber as Ae, handleShowIndex as Xt, getSlotVNode as ge, hanndleField as Jt } from "@gx-design-vue/pro-utils";
3
+ import { pick as it, cloneDeep as X, omit as ye } from "lodash-es";
4
4
  import { useFullscreen as st, useWindowSize as Qt } from "@vueuse/core";
5
- import { Form as et, Grid as He, Space as oe, Button as tt, Input as at, TimePicker as Zt, DatePicker as rt, TreeSelect as ea, Spin as Ye, Select as ta, Popover as aa, Checkbox as la, Tooltip as ee, Tree as na, Dropdown as oa, Menu as Re, Empty as ct, Pagination as ua, Table as ia, Typography as sa } from "ant-design-vue";
6
- import { useProAppContext as ra } from "@gx-design-vue/pro-app";
5
+ import { Form as et, Grid as He, Space as oe, Button as tt, Input as lt, TimePicker as Zt, DatePicker as rt, TreeSelect as el, Spin as Ye, Select as tl, Popover as ll, Checkbox as al, Tooltip as ee, Tree as nl, Dropdown as ol, Menu as $e, Empty as ct, Pagination as ul, Table as il, Typography as sl } from "ant-design-vue";
6
+ import { useProAppContext as rl } from "@gx-design-vue/pro-app";
7
7
  import { useProStyle as Be } from "@gx-design-vue/pro-provider";
8
- import { tryOnUnmounted as ca, useMemo as Fe } from "@gx-design-vue/pro-hooks";
9
8
  import _ from "dayjs";
10
- import { UpOutlined as da, DownOutlined as fa, SettingOutlined as dt, VerticalAlignTopOutlined as ha, VerticalAlignMiddleOutlined as va, VerticalAlignBottomOutlined as ma, FullscreenExitOutlined as ga, FullscreenOutlined as ya, ColumnHeightOutlined as pa, InfoCircleOutlined as ba, ReloadOutlined as Ca } from "@ant-design/icons-vue";
11
- function Cl(e) {
9
+ import { tryOnUnmounted as cl, useMemo as Fe } from "@gx-design-vue/pro-hooks";
10
+ import { UpOutlined as dl, DownOutlined as fl, SettingOutlined as dt, VerticalAlignTopOutlined as hl, VerticalAlignMiddleOutlined as vl, VerticalAlignBottomOutlined as ml, FullscreenExitOutlined as gl, FullscreenOutlined as yl, ColumnHeightOutlined as pl, InfoCircleOutlined as bl, ReloadOutlined as Cl } from "@ant-design/icons-vue";
11
+ function Sa(e) {
12
12
  const n = S(() => {
13
13
  var u;
14
14
  return (u = e.value) == null ? void 0 : u.actionRef();
@@ -16,8 +16,8 @@ function Cl(e) {
16
16
  var u;
17
17
  return (u = e.value) == null ? void 0 : u.formRef();
18
18
  }), o = S(() => {
19
- var l, s, r, w;
20
- const u = te((l = n.value) == null ? void 0 : l.pageParams) ? {} : ((s = n.value) == null ? void 0 : s.pageParams) || {};
19
+ var a, s, r, w;
20
+ const u = te((a = n.value) == null ? void 0 : a.pageParams) ? {} : ((s = n.value) == null ? void 0 : s.pageParams) || {};
21
21
  return {
22
22
  ...it(u, ["current", "pageSize"]),
23
23
  ...((w = (r = t.value) == null ? void 0 : r.getTableFormState) == null ? void 0 : w.call(r)) || {}
@@ -43,29 +43,29 @@ function Cl(e) {
43
43
  var u;
44
44
  return (u = n == null ? void 0 : n.value) == null ? void 0 : u.selectedItem;
45
45
  }),
46
- setPageAndReload: (u, l, s, r) => {
46
+ setPageAndReload: (u, a, s, r) => {
47
47
  var w, m;
48
- return (m = (w = n.value) == null ? void 0 : w.setPageAndReload) == null ? void 0 : m.call(w, u, l, s, r);
48
+ return (m = (w = n.value) == null ? void 0 : w.setPageAndReload) == null ? void 0 : m.call(w, u, a, s, r);
49
49
  },
50
50
  setPagination: (u) => {
51
- var l, s;
52
- return (s = (l = n.value) == null ? void 0 : l.setPagination) == null ? void 0 : s.call(l, u);
51
+ var a, s;
52
+ return (s = (a = n.value) == null ? void 0 : a.setPagination) == null ? void 0 : s.call(a, u);
53
53
  },
54
54
  mutate: (u) => {
55
- var l, s;
56
- return (s = (l = n.value) == null ? void 0 : l.reSetDataList) == null ? void 0 : s.call(l, u);
55
+ var a, s;
56
+ return (s = (a = n.value) == null ? void 0 : a.reSetDataList) == null ? void 0 : s.call(a, u);
57
57
  },
58
58
  changeLoading: (u) => {
59
- var l, s;
60
- return (s = (l = n.value) == null ? void 0 : l.loadingOperation) == null ? void 0 : s.call(l, u);
59
+ var a, s;
60
+ return (s = (a = n.value) == null ? void 0 : a.loadingOperation) == null ? void 0 : s.call(a, u);
61
61
  },
62
62
  changeDataValue: (u) => {
63
- var l, s;
64
- return (s = (l = n.value) == null ? void 0 : l.changeDataValue) == null ? void 0 : s.call(l, u);
63
+ var a, s;
64
+ return (s = (a = n.value) == null ? void 0 : a.changeDataValue) == null ? void 0 : s.call(a, u);
65
65
  },
66
66
  reload: (u) => {
67
- var l, s;
68
- return (s = (l = n.value) == null ? void 0 : l.reload) == null ? void 0 : s.call(l, u);
67
+ var a, s;
68
+ return (s = (a = n.value) == null ? void 0 : a.reload) == null ? void 0 : s.call(a, u);
69
69
  }
70
70
  };
71
71
  }
@@ -79,10 +79,10 @@ function Le() {
79
79
  return e;
80
80
  }, Le.apply(this, arguments);
81
81
  }
82
- function Sa(e, n) {
82
+ function Sl(e, n) {
83
83
  process.env.NODE_ENV !== "production" && !e && console !== void 0 && console.error(`Warning: ${n}`);
84
84
  }
85
- const xa = () => ({
85
+ const xl = () => ({
86
86
  prefixCls: {
87
87
  type: String,
88
88
  default: void 0
@@ -257,7 +257,7 @@ const xa = () => ({
257
257
  default: void 0
258
258
  }
259
259
  }), ce = {
260
- ...xa(),
260
+ ...xl(),
261
261
  rowSelection: {
262
262
  type: Object,
263
263
  default: void 0
@@ -520,20 +520,58 @@ const xa = () => ({
520
520
  onBeforeSearchSubmit: Function,
521
521
  onColumnsStateChange: Function
522
522
  };
523
- function wa({ emit: e, loading: n }) {
524
- var l;
525
- const t = P(te(n.value) ? n.value : ue(n.value) ? (l = n.value) == null ? void 0 : l.spinning : !1);
526
- X(() => n.value, (s) => {
523
+ function wl(e) {
524
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Se(e);
525
+ }
526
+ function Tl(e, n, t, o) {
527
+ if (!n)
528
+ return e;
529
+ let u = e;
530
+ if (ue(n)) {
531
+ const a = n.node === "a" ? "span" : n.node;
532
+ return i(a, U((n == null ? void 0 : n.attr) || {}, {
533
+ class: [n.class, n.node === "a" ? `${t}-a` : ""],
534
+ onClick: n.click
535
+ }), wl(e) ? e : {
536
+ default: () => [e]
537
+ });
538
+ }
539
+ switch (n) {
540
+ case "link":
541
+ u = i("span", {
542
+ class: [`${t}-a`, o]
543
+ }, [e]);
544
+ break;
545
+ case "time":
546
+ u = _(e).format("HH:mm:ss");
547
+ break;
548
+ case "dateMonth":
549
+ u = `${_(e).month() + 1}月`;
550
+ break;
551
+ case "dateTime":
552
+ u = _(e).format("YYYY-MM-DD HH:mm:ss");
553
+ break;
554
+ }
555
+ return u;
556
+ }
557
+ function Rl(e, n) {
558
+ const t = n && n.current || 1, o = n && n.pageSize || 10;
559
+ return e.filter((u, a) => a < t * o && a >= o * (t - 1));
560
+ }
561
+ function $l({ emit: e, loading: n }) {
562
+ var a;
563
+ const t = O(te(n.value) ? n.value : ue(n.value) ? (a = n.value) == null ? void 0 : a.spinning : !1);
564
+ J(() => n.value, (s) => {
527
565
  t.value = te(s) ? s : ue(s) ? s == null ? void 0 : s.spinning : t.value;
528
566
  });
529
- const o = S(() => v(t) || !1);
567
+ const o = S(() => d(t) || !1);
530
568
  function u(s) {
531
569
  t.value = s, e("loadingChange", !0);
532
570
  }
533
571
  return { loadingStatus: o, setLoading: u };
534
572
  }
535
- function Ta({ size: e, emit: n }) {
536
- const t = P("middle");
573
+ function Fl({ size: e, emit: n }) {
574
+ const t = O("middle");
537
575
  he(() => {
538
576
  t.value = e.value;
539
577
  });
@@ -542,7 +580,7 @@ function Ta({ size: e, emit: n }) {
542
580
  }
543
581
  return { sizeRef: t, setTableSize: o };
544
582
  }
545
- function Ra({
583
+ function Il({
546
584
  slots: e,
547
585
  props: n,
548
586
  pagination: t
@@ -561,7 +599,7 @@ function Ra({
561
599
  var m;
562
600
  if (te(t.value) && !t.value)
563
601
  return !1;
564
- const s = ze(e, v(n), "pageItemRender"), r = $e(s) ? {
602
+ const s = ze(e, d(n), "pageItemRender"), r = pe(s) ? {
565
603
  itemRender: ({
566
604
  page: g,
567
605
  type: y,
@@ -579,13 +617,13 @@ function Ra({
579
617
  showSizeChanger: !0,
580
618
  pageSizeOptions: ["10", "20", "50", "100"],
581
619
  ...t.value || {},
582
- ...v(o),
620
+ ...d(o),
583
621
  ...r || {}
584
622
  };
585
623
  return (m = t.value) != null && m.showTotal || (w.showTotal = (g) => `共${g < w.pageSize ? 1 : Math.ceil(g / (w.pageSize || 10))}页 ${g}条记录`), w;
586
624
  });
587
- function l(s) {
588
- const r = v(u);
625
+ function a(s) {
626
+ const r = d(u);
589
627
  Object.assign(o, {
590
628
  ...r || {},
591
629
  ...s
@@ -593,12 +631,12 @@ function Ra({
593
631
  }
594
632
  return {
595
633
  getPaginationInfo: u,
596
- setPagination: l
634
+ setPagination: a
597
635
  };
598
636
  }
599
- function $a(e, n) {
600
- const t = P([]), o = P([]);
601
- X(() => {
637
+ function Bl(e, n) {
638
+ const t = O([]), o = O([]);
639
+ J(() => {
602
640
  var m;
603
641
  return (m = n.value) == null ? void 0 : m.selectedRowKeys;
604
642
  }, (m) => {
@@ -609,7 +647,7 @@ function $a(e, n) {
609
647
  });
610
648
  const u = (m, g) => {
611
649
  e.value && (g ? m != null && m[e.value] && (t.value.push(m[e.value]), o.value.push(m)) : (t.value = t.value.filter((y) => y !== m[e.value]), o.value = o.value.filter((y) => y[e.value] !== m[e.value])));
612
- }, l = () => {
650
+ }, a = () => {
613
651
  var m, g;
614
652
  n.value && ((g = (m = n.value) == null ? void 0 : m.onChange) == null || g.call(m, t.value, o.value));
615
653
  };
@@ -621,62 +659,62 @@ function $a(e, n) {
621
659
  e.value && (m ? g.map((c) => (t.value.every((b) => b !== (c == null ? void 0 : c[e.value])) && c != null && c[e.value] && (t.value.push(c[e.value]), o.value.push(c)), c)) : y.map((c) => (t.value.some((b) => b === (c == null ? void 0 : c[e.value])) && (t.value = t.value.filter((b) => b !== c[e.value]), o.value = o.value.filter((b) => b[e.value] !== c[e.value])), c)));
622
660
  },
623
661
  removeRowKeys: (m) => {
624
- t.value = t.value.filter((g) => !m.includes(g)), o.value = o.value.filter((g) => !m.includes(g == null ? void 0 : g[e.value || ""])), l();
662
+ t.value = t.value.filter((g) => !m.includes(g)), o.value = o.value.filter((g) => !m.includes(g == null ? void 0 : g[e.value || ""])), a();
625
663
  },
626
- changeRowKey: l,
664
+ changeRowKey: a,
627
665
  syncSelectedRows: (m) => {
628
666
  if (e.value && t.value.length !== o.value.length) {
629
667
  const g = o.value.map((c) => c[e.value]), y = t.value.filter((c) => !g.includes(c));
630
668
  m.forEach((c) => {
631
- y.includes(c[e.value]) && o.value.push(J(c));
669
+ y.includes(c[e.value]) && o.value.push(X(c));
632
670
  });
633
671
  }
634
672
  }
635
673
  };
636
674
  }
637
- function Fa(e, n) {
638
- const t = S(() => n || 0), o = P(), u = P(e);
639
- function l() {
675
+ function Ol(e, n) {
676
+ const t = S(() => n || 0), o = O(), u = O(e);
677
+ function a() {
640
678
  o.value && clearTimeout(o.value);
641
679
  }
642
680
  async function s(...r) {
643
- return t.value === 0 || t.value === void 0 ? u.value(...r) : (l(), new Promise(async (w) => {
681
+ return t.value === 0 || t.value === void 0 ? u.value(...r) : (a(), new Promise(async (w) => {
644
682
  var m;
645
683
  (m = r[0]) != null && m.immediate ? w(await u.value(...r)) : o.value = setTimeout(async () => {
646
684
  w(await u.value(...r));
647
685
  }, t.value);
648
686
  }));
649
687
  }
650
- return ca(l), {
651
- cancel: l,
688
+ return cl(a), {
689
+ cancel: a,
652
690
  run: s
653
691
  };
654
692
  }
655
- function Ia(e) {
656
- const n = S(() => e.polling), t = S(() => e.request), o = S(() => e.postData), u = S(() => e.debounceTime), l = S(() => e.dataSource);
693
+ function Pl(e) {
694
+ const n = S(() => e.polling), t = S(() => e.request), o = S(() => e.postData), u = S(() => e.debounceTime), a = S(() => e.dataSource);
657
695
  return {
658
696
  polling: n,
659
697
  request: t,
660
698
  postData: o,
661
699
  debounceTime: u,
662
- dataSource: l
700
+ dataSource: a
663
701
  };
664
702
  }
665
- function Ba({ polling: e, request: n, postData: t, dataSource: o, waitRequest: u, debounceTime: l }, { columns: s, loadingStatus: r, setLoading: w, setColumns: m, removeRowKeys: g, syncSelectedRows: y, formParamsRef: c, setPagination: b, getPaginationInfo: d, onBeforeSearchSubmit: f, hasCustomRender: x }, $) {
666
- const T = P(), B = P(!0), D = P(!1), A = P(!1), N = P([]), Y = P(), G = Fa(async (h) => {
667
- Y.value && clearTimeout(Y.value);
668
- const M = await I(h), L = Wt(e.value, M);
669
- return L && !T.value && (Y.value = setTimeout(() => {
670
- G.run({ ...h, isPolling: L });
671
- }, Math.max(L, 2e3))), M;
672
- }, l.value || 10);
703
+ function Dl({ polling: e, request: n, postData: t, dataSource: o, waitRequest: u, debounceTime: a }, { columns: s, loadingStatus: r, setLoading: w, setColumns: m, removeRowKeys: g, syncSelectedRows: y, formParamsRef: c, setPagination: b, getPaginationInfo: f, onBeforeSearchSubmit: h, hasCustomRender: x }, $) {
704
+ const T = O(), B = O(!0), E = O(!1), Y = O(!1), j = O([]), L = O(), G = Ol(async (v) => {
705
+ L.value && clearTimeout(L.value);
706
+ const M = await I(v), A = Wt(e.value, M);
707
+ return A && !T.value && (L.value = setTimeout(() => {
708
+ G.run({ ...v, isPolling: A });
709
+ }, Math.max(A, 2e3))), M;
710
+ }, a.value || 10);
673
711
  jt(() => {
674
- T.value = !0, clearTimeout(Y.value);
712
+ T.value = !0, clearTimeout(L.value);
675
713
  }), kt(() => {
676
- T.value = !0, clearTimeout(Y.value);
677
- }), X(() => e.value, () => {
678
- e.value ? G.run({ isPolling: !0 }) : clearTimeout(Y.value);
679
- }, { immediate: !0 }), X([
714
+ T.value = !0, clearTimeout(L.value);
715
+ }), J(() => e.value, () => {
716
+ e.value ? G.run({ isPolling: !0 }) : clearTimeout(L.value);
717
+ }, { immediate: !0 }), J([
680
718
  () => u.value,
681
719
  () => o.value,
682
720
  () => c
@@ -686,156 +724,162 @@ function Ba({ polling: e, request: n, postData: t, dataSource: o, waitRequest: u
686
724
  deep: !0,
687
725
  immediate: !0
688
726
  });
689
- const E = S(() => {
727
+ const D = S(() => {
690
728
  if (x.value)
691
- return v(N);
692
- const h = v(s).filter((M) => M.show || M.show === void 0);
693
- return !v(N) || !h || h.length === 0 ? [] : v(N);
694
- }), H = S(() => v(N).some((h) => h.children && h.children.length > 0));
695
- function a(h) {
696
- A.value = h;
729
+ return d(j);
730
+ const v = d(s).filter((M) => M.show || M.show === void 0);
731
+ return !d(j) || !v || v.length === 0 ? [] : d(j);
732
+ }), H = S(() => d(j).some((v) => v.children && v.children.length > 0));
733
+ function l(v) {
734
+ Y.value = v;
697
735
  }
698
- function p(h, M, L, K) {
699
- G.run({ pagination: h, filters: M, sorter: L, extra: K, isPolling: !1 }), $("change", h, M, L, K);
736
+ function p(v, M, A, z) {
737
+ G.run({ pagination: v, filters: M, sorter: A, extra: z, isPolling: !1 }), $("change", v, M, A, z);
700
738
  }
701
- const I = async (h = {}) => {
702
- var Se, xe, we;
703
- const { pagination: M, filters: L = {}, sorter: K = {}, removeKeys: ve = [], isPolling: Pe = !1 } = h;
704
- if (!v(n) || !$e(v(n)) || v(u) && r.value || D.value)
739
+ const I = async (v = {}) => {
740
+ var xe, we, Te;
741
+ const { pagination: M, filters: A = {}, sorter: z = {}, removeKeys: ve = [], isPolling: Oe = !1 } = v;
742
+ if (!d(n) || !pe(d(n)) || d(u) && r.value || E.value)
705
743
  return o.value || [];
706
- if (D.value = !0, !Pe || v(u) || B.value ? w(!0) : a(!0), v(u)) {
707
- B.value = !1, D.value = !1;
744
+ if (E.value = !0, !Oe || d(u) || B.value ? w(!0) : l(!0), d(u)) {
745
+ B.value = !1, E.value = !1;
708
746
  return;
709
747
  }
710
748
  M && b(M);
711
749
  try {
712
- let le = {};
713
- if (te(M) && !M || te(d))
714
- le = {};
750
+ let ae = {};
751
+ if (te(M) && !M || te(f))
752
+ ae = {};
715
753
  else {
716
- const { current: j = 1, pageSize: se = 10, total: q } = v(d) || {};
717
- le.pageNum = _t({ current: j, pageSize: se, total: q }, ve.length), ve.length && g(ve), le.pageSize = se;
754
+ const { current: k = 1, pageSize: se = 10, total: q } = d(f) || {};
755
+ ae.pageNum = _t({ current: k, pageSize: se, total: q }, ve.length), ve.length && g(ve), ae.pageSize = se;
718
756
  }
719
- (ue(K) ? [K] : K).forEach((j) => {
720
- const se = (j == null ? void 0 : j.columnKey) || (j == null ? void 0 : j.field);
721
- j && (j != null && j.order) ? m(v(s).map((q) => (q.dataIndex === se ? q.sortOrder = j == null ? void 0 : j.order : q.sortOrder = null, q))) : j && m(v(s).map((q) => (q.dataIndex === se && (q.sortOrder = null), q)));
757
+ (ue(z) ? [z] : z).forEach((k) => {
758
+ const se = (k == null ? void 0 : k.columnKey) || (k == null ? void 0 : k.field);
759
+ k && (k != null && k.order) ? m(d(s).map((q) => (q.dataIndex === se ? q.sortOrder = k == null ? void 0 : k.order : q.sortOrder = null, q))) : k && m(d(s).map((q) => (q.dataIndex === se && (q.sortOrder = null), q)));
722
760
  });
723
761
  let fe = {
724
- ...le || {},
725
- ...h.params,
762
+ ...ae || {},
763
+ ...v.params,
726
764
  ...c
727
765
  };
728
- f && $e(f) && (fe = await f(fe, K, L));
766
+ h && pe(h) && (fe = await h(fe, z, A));
729
767
  let V = [];
730
- const ne = await ((Se = v(n)) == null ? void 0 : Se(fe, K, L));
731
- return D.value = !1, ne && ne.success ? (V = ne.data || [], v(t) && $e(v(t)) && (V = await ((xe = v(t)) == null ? void 0 : xe(V))), y(V), (ne.total || (V == null ? void 0 : V.length) || 0) !== ((we = v(d)) == null ? void 0 : we.total) && b({
768
+ const ne = await ((xe = d(n)) == null ? void 0 : xe(fe, z, A));
769
+ return E.value = !1, ne && ne.success ? (V = ne.data || [], d(t) && pe(d(t)) && (V = await ((we = d(t)) == null ? void 0 : we(V))), y(V), (ne.total || (V == null ? void 0 : V.length) || 0) !== ((Te = d(f)) == null ? void 0 : Te.total) && b({
732
770
  total: ne.total || (V == null ? void 0 : V.length) || 0
733
771
  }), F(V), V) : [];
734
- } catch (le) {
735
- N.value === void 0 && F([]), $("requestError", le);
772
+ } catch (ae) {
773
+ j.value === void 0 && F([]), $("requestError", ae);
736
774
  } finally {
737
775
  B.value = !1, w(!1);
738
776
  }
739
777
  return [];
740
778
  };
741
- function F(h) {
742
- const M = Gt(J(h), v(d.value));
743
- nt(M, N.value) || (N.value = M);
779
+ function F(v) {
780
+ var A;
781
+ const M = Gt(X(v), d(f.value));
782
+ if (!nt(M, j.value) && (j.value = M, !d(n) || !pe(d(n)))) {
783
+ const z = M.length || 0;
784
+ z !== ((A = d(f)) == null ? void 0 : A.total) && b({
785
+ total: z
786
+ });
787
+ }
744
788
  }
745
- function O({ key: h, params: M, type: L = "update" }) {
746
- switch (L) {
789
+ function P({ key: v, params: M, type: A = "update" }) {
790
+ switch (A) {
747
791
  case "update":
748
- N.value = N.value.map((K) => h && M[h] === K[h] ? { ...K, ...M } : K);
792
+ j.value = j.value.map((z) => v && M[v] === z[v] ? { ...z, ...M } : z);
749
793
  break;
750
794
  case "add":
751
- N.value.push(M);
795
+ j.value.push(M);
752
796
  break;
753
797
  case "delete":
754
- N.value = N.value.filter((K) => h ? h && M[h] !== K[h] : !0);
798
+ j.value = j.value.filter((z) => v ? v && M[v] !== z[v] : !0);
755
799
  break;
756
800
  }
757
801
  }
758
802
  return {
759
- getDataSourceRef: E,
803
+ getDataSourceRef: D,
760
804
  isTreeDataRef: H,
761
805
  reSetDataList: F,
762
- changeDataValue: O,
806
+ changeDataValue: P,
763
807
  handleTableChange: p,
764
- reload: async (h) => {
765
- v(n) ? await G.run({ ...h, isPolling: !1 }) : $("reload");
808
+ reload: async (v) => {
809
+ d(n) ? await G.run({ ...v, isPolling: !1 }) : $("reload");
766
810
  }
767
811
  };
768
812
  }
769
- function Pa(e) {
813
+ function El(e) {
770
814
  const n = {};
771
815
  return e.forEach((t) => {
772
816
  let o = t.initialValue;
773
- const u = ["select"], l = ["date", "time", "dateRange"];
774
- !o && u.includes(t.valueType) ? o = void 0 : !o && l.includes(t.valueType) ? o = null : o || (o = ""), t.name === "dateRange" ? (n[t.rangeStartName || "start"] = o ? o[0] : null, n[t.rangeEndName || "end"] = o ? o[1] : null) : t.name && (n[t.name] = o);
817
+ const u = ["select"], a = ["date", "time", "dateRange"];
818
+ !o && u.includes(t.valueType) ? o = void 0 : !o && a.includes(t.valueType) ? o = null : o || (o = ""), t.name === "dateRange" ? (n[t.rangeStartName || "start"] = o ? o[0] : null, n[t.rangeEndName || "end"] = o ? o[1] : null) : t.name && (n[t.name] = o);
775
819
  }), n;
776
820
  }
777
- function Oa({ search: e, searchMap: n, params: t, columns: o, setPagination: u }) {
778
- const l = de({}), s = de({}), r = P([]), w = S(() => {
821
+ function Ml({ search: e, searchMap: n, params: t, columns: o, setPagination: u }) {
822
+ const a = de({}), s = de({}), r = O([]), w = S(() => {
779
823
  var y;
780
824
  return ue(e.value) ? !!((y = e.value) != null && y.showSearch) : !!e.value;
781
825
  });
782
826
  zt(() => {
783
827
  m("all");
784
- }), X(() => t.value, () => {
828
+ }), J(() => t.value, () => {
785
829
  m("params");
786
830
  }, {
787
831
  deep: !0
788
- }), X(() => n.value, () => {
832
+ }), J(() => n.value, () => {
789
833
  m("searchMap");
790
834
  }, {
791
835
  deep: !0
792
- }), X(() => o.value, () => {
836
+ }), J(() => o.value, () => {
793
837
  m("columns");
794
838
  }, {
795
839
  deep: !0
796
840
  });
797
841
  const m = (y) => {
798
- var b, d;
842
+ var b, f;
799
843
  const c = [];
800
- if ((y === "all" || y === "searchMap") && ((b = n.value) == null || b.forEach((f) => c.push(f)), c.forEach((f) => {
801
- r.value.some((x) => x.name === f.name) ? r.value = r.value.map((x) => x.name === f.name ? {
844
+ if ((y === "all" || y === "searchMap") && ((b = n.value) == null || b.forEach((h) => c.push(h)), c.forEach((h) => {
845
+ r.value.some((x) => x.name === h.name) ? r.value = r.value.map((x) => x.name === h.name ? {
802
846
  ...x,
803
- ...f
804
- } : x) : r.value.push(f);
805
- })), (y === "all" || y === "columns") && ((d = o.value) != null && d.length) && (o.value && o.value.forEach((f) => {
806
- f.searchConfig && c.push(f.searchConfig);
807
- }), c.forEach((f) => {
808
- r.value.some((x) => x.name === f.name) ? r.value = r.value.map((x) => x.name === f.name ? {
847
+ ...h
848
+ } : x) : r.value.push(h);
849
+ })), (y === "all" || y === "columns") && ((f = o.value) != null && f.length) && (o.value && o.value.forEach((h) => {
850
+ h.searchConfig && c.push(h.searchConfig);
851
+ }), c.forEach((h) => {
852
+ r.value.some((x) => x.name === h.name) ? r.value = r.value.map((x) => x.name === h.name ? {
809
853
  ...x,
810
- ...f
811
- } : x) : r.value.push(f);
854
+ ...h
855
+ } : x) : r.value.push(h);
812
856
  })), y === "all" || y === "searchMap" || y === "columns") {
813
857
  u({ current: 1 });
814
- const f = Pa(c);
815
- Object.assign(s, { ...f });
816
- for (const x in f)
817
- l[x] || (l[x] = f[x]);
858
+ const h = El(c);
859
+ Object.assign(s, { ...h });
860
+ for (const x in h)
861
+ a[x] || (a[x] = h[x]);
818
862
  }
819
- (y === "all" || y === "params") && !w.value && (u({ current: 1 }), Object.assign(l, t.value));
863
+ (y === "all" || y === "params") && !w.value && (u({ current: 1 }), Object.assign(a, t.value));
820
864
  };
821
865
  function g(y) {
822
- u({ current: 1 }), Object.assign(l, y);
866
+ u({ current: 1 }), Object.assign(a, y);
823
867
  }
824
- return { formDataRef: r, formParamsRef: l, defaultParamsRef: s, setFormParams: g };
868
+ return { formDataRef: r, formParamsRef: a, defaultParamsRef: s, setFormParams: g };
825
869
  }
826
- function Da({ columns: e, columnsState: n, changeColumns: t }) {
827
- const o = P(void 0), u = de({}), l = de({}), s = de({}), r = P([]);
828
- X(() => e.value, () => {
870
+ function Nl({ columns: e, columnsState: n, changeColumns: t }) {
871
+ const o = O(void 0), u = de({}), a = de({}), s = de({}), r = O([]);
872
+ J(() => e.value, () => {
829
873
  var g;
830
- (g = v(e)) == null || g.forEach(({ show: y, key: c, fixed: b }, d) => {
831
- const f = ot(c, d);
832
- f && (s[f] = { show: y === void 0 ? !0 : y, fixed: b });
874
+ (g = d(e)) == null || g.forEach(({ show: y, key: c, fixed: b }, f) => {
875
+ const h = ot(c, f);
876
+ h && (s[h] = { show: y === void 0 ? !0 : y, fixed: b });
833
877
  });
834
878
  }, {
835
879
  deep: !0,
836
880
  immediate: !0
837
- }), X(() => e.value, () => {
838
- const g = v(e).map((y) => y.key);
881
+ }), J(() => e.value, () => {
882
+ const g = d(e).map((y) => y.key);
839
883
  m(g);
840
884
  }, {
841
885
  deep: !0,
@@ -843,10 +887,10 @@ function Da({ columns: e, columnsState: n, changeColumns: t }) {
843
887
  }), he(() => {
844
888
  var y;
845
889
  const g = {
846
- ...(y = v(n)) == null ? void 0 : y.value,
847
- ...v(s)
890
+ ...(y = d(n)) == null ? void 0 : y.value,
891
+ ...d(s)
848
892
  };
849
- Object.assign(u, g), Object.assign(l, g);
893
+ Object.assign(u, g), Object.assign(a, g);
850
894
  });
851
895
  function w(g, y) {
852
896
  o.value = y, Object.assign(u, g), t == null || t(u, y === "fixed");
@@ -859,11 +903,11 @@ function Da({ columns: e, columnsState: n, changeColumns: t }) {
859
903
  operationType: o,
860
904
  setColumnsMap: w,
861
905
  sortKeyColumns: r,
862
- cacheColumnsMap: l,
906
+ cacheColumnsMap: a,
863
907
  setSortKeyColumns: m
864
908
  };
865
909
  }
866
- function Ea(e) {
910
+ function jl(e) {
867
911
  const n = S(() => e.draggabled), t = S(() => e.neverScroll), o = S(() => e.autoScroll);
868
912
  return {
869
913
  draggabled: n,
@@ -871,71 +915,71 @@ function Ea(e) {
871
915
  autoScroll: o
872
916
  };
873
917
  }
874
- function Ma({ scroll: e, columns: n, breakpoint: t, draggabled: o, autoScroll: u, neverScroll: l }) {
875
- const s = P([]), r = P([]);
876
- X([
918
+ function kl({ scroll: e, columns: n, breakpoint: t, draggabled: o, autoScroll: u, neverScroll: a }) {
919
+ const s = O([]), r = O([]);
920
+ J([
877
921
  () => e.value,
878
922
  () => n.value,
879
923
  () => t.value,
880
924
  () => o.value,
881
925
  () => u.value,
882
- () => l.value
926
+ () => a.value
883
927
  ], () => {
884
- s.value = J(g(v(n))), r.value = J(g(v(n)));
928
+ s.value = X(g(d(n))), r.value = X(g(d(n)));
885
929
  }, {
886
930
  deep: !0,
887
931
  immediate: !0
888
932
  });
889
933
  const w = S(() => {
890
- const d = m(v(s).filter(($) => $.fixed === "left")), f = m(v(s).filter(($) => $.fixed !== "left" && $.fixed !== "right")), x = m(v(s).filter(($) => $.fixed === "right"));
934
+ const f = m(d(s).filter(($) => $.fixed === "left")), h = m(d(s).filter(($) => $.fixed !== "left" && $.fixed !== "right")), x = m(d(s).filter(($) => $.fixed === "right"));
891
935
  return [
892
- ...d,
893
936
  ...f,
937
+ ...h,
894
938
  ...x
895
939
  ];
896
940
  });
897
- function m(d) {
898
- return d.sort((f, x) => qt(f, x, "order", 0));
941
+ function m(f) {
942
+ return f.sort((h, x) => qt(h, x, "order", 0));
899
943
  }
900
- function g(d) {
901
- return J(d).map((f, x) => {
944
+ function g(f) {
945
+ return X(f).map((h, x) => {
902
946
  var $;
903
- if (f.dataIndex === "action" || x === d.length - 1 ? f.resizable = !1 : f.resizable = te(f.resizable) ? f.resizable : !!(ut(f.width) && v(o)), !f.width || v(l))
904
- return f;
905
- if (f.dataIndex === "action" && v(u))
906
- if (($ = v(e)) != null && $.x || !v(t))
907
- f.width = f.width || 100, f.fixed = "right";
947
+ if (h.dataIndex === "action" || x === f.length - 1 ? h.resizable = !1 : h.resizable = te(h.resizable) ? h.resizable : !!(ut(h.width) && d(o)), !h.width || d(a))
948
+ return h;
949
+ if (h.dataIndex === "action" && d(u))
950
+ if (($ = d(e)) != null && $.x || !d(t))
951
+ h.width = h.width || 100, h.fixed = "right";
908
952
  else {
909
- const T = v(n).find((B) => B.dataIndex === f.dataIndex);
910
- f.width = (T == null ? void 0 : T.width) || "", f.fixed = T == null ? void 0 : T.fixed;
953
+ const T = d(n).find((B) => B.dataIndex === h.dataIndex);
954
+ h.width = (T == null ? void 0 : T.width) || "", h.fixed = T == null ? void 0 : T.fixed;
911
955
  }
912
- return f;
956
+ return h;
913
957
  });
914
958
  }
915
- function y(d, f) {
916
- s.value = s.value.map((x) => (x.uuid === f.uuid && (x.width = d), x));
959
+ function y(f, h) {
960
+ s.value = s.value.map((x) => (x.uuid === h.uuid && (x.width = f), x));
917
961
  }
918
- function c(d) {
919
- if (d.length <= 0) {
962
+ function c(f) {
963
+ if (f.length <= 0) {
920
964
  s.value = [];
921
965
  return;
922
966
  }
923
- nt(g(J(d)), s.value) || (s.value = g(J(d)));
967
+ nt(g(X(f)), s.value) || (s.value = g(X(f)));
924
968
  }
925
- function b(d) {
926
- let f = J(n.value);
927
- f = f.map((x) => {
928
- var T, B, D;
969
+ function b(f) {
970
+ let h = X(n.value);
971
+ h = h.map((x) => {
972
+ var T, B, E;
929
973
  const $ = x.key ? {
930
- show: (T = d[x.key]) == null ? void 0 : T.show,
931
- fixed: (B = d[x.key]) == null ? void 0 : B.fixed,
932
- order: (D = d[x.key]) == null ? void 0 : D.order
974
+ show: (T = f[x.key]) == null ? void 0 : T.show,
975
+ fixed: (B = f[x.key]) == null ? void 0 : B.fixed,
976
+ order: (E = f[x.key]) == null ? void 0 : E.order
933
977
  } : {};
934
978
  return {
935
979
  ...x,
936
980
  ...$
937
981
  };
938
- }), c(f);
982
+ }), c(h);
939
983
  }
940
984
  return {
941
985
  breakpoint: t,
@@ -946,41 +990,41 @@ function Ma({ scroll: e, columns: n, breakpoint: t, draggabled: o, autoScroll: u
946
990
  resizeColumnWidth: y
947
991
  };
948
992
  }
949
- function Na(e) {
950
- const n = S(() => e.scroll), t = S(() => e.autoScroll), o = S(() => e.modalScroll), u = S(() => e.neverScroll), l = S(() => e.rowSelection), s = S(() => e.scrollBreakpoint);
993
+ function zl(e) {
994
+ const n = S(() => e.scroll), t = S(() => e.autoScroll), o = S(() => e.modalScroll), u = S(() => e.neverScroll), a = S(() => e.rowSelection), s = S(() => e.scrollBreakpoint);
951
995
  return {
952
996
  scroll: n,
953
997
  neverScroll: u,
954
- rowSelection: l,
998
+ rowSelection: a,
955
999
  autoScroll: t,
956
1000
  modalScroll: o,
957
1001
  scrollBreakpoint: s
958
1002
  };
959
1003
  }
960
- function ja({ scroll: e, columns: n, autoScroll: t, modalScroll: o, neverScroll: u, rowSelection: l, screens: s, innerWidth: r, scrollBreakpoint: w }) {
1004
+ function Kl({ scroll: e, columns: n, autoScroll: t, modalScroll: o, neverScroll: u, rowSelection: a, screens: s, innerWidth: r, scrollBreakpoint: w }) {
961
1005
  const m = S(() => {
962
- var c, b, d;
963
- return v(w) ? ut(v(w)) ? r.value > v(w) : Ut(v(w)) ? (c = s.value) == null ? void 0 : c[v(w)] : (b = s.value) == null ? void 0 : b.xl : (d = s.value) == null ? void 0 : d.xl;
1006
+ var c, b, f;
1007
+ return d(w) ? ut(d(w)) ? r.value > d(w) : Ut(d(w)) ? (c = s.value) == null ? void 0 : c[d(w)] : (b = s.value) == null ? void 0 : b.xl : (f = s.value) == null ? void 0 : f.xl;
964
1008
  }), g = S(() => {
965
1009
  let c = 0;
966
- const b = v(l) ? 60 : 0, d = 150, f = J(v(n));
967
- f.forEach((T) => {
1010
+ const b = d(a) ? 60 : 0, f = 150, h = X(d(n));
1011
+ h.forEach((T) => {
968
1012
  c += Number.parseInt(T.width) || 0;
969
1013
  });
970
- const $ = f.filter((T) => !Reflect.has(T, "width")).length;
971
- return $ !== 0 && (c += $ * d), b && (c += b), c;
1014
+ const $ = h.filter((T) => !Reflect.has(T, "width")).length;
1015
+ return $ !== 0 && (c += $ * f), b && (c += b), c;
972
1016
  });
973
1017
  return { getScrollRef: S(() => {
974
1018
  var c, b;
975
- return v(u) ? {} : v(e) && Object.keys(v(e)).length ? v(e) : v(o) ? {
976
- y: ((c = v(e)) == null ? void 0 : c.y) || ((b = s.value) != null && b.xl ? 400 : 235)
977
- } : v(t) ? m.value ? {} : te(m.value) ? { x: v(g) } : {} : {};
1019
+ return d(u) ? {} : d(e) && Object.keys(d(e)).length ? d(e) : d(o) ? {
1020
+ y: ((c = d(e)) == null ? void 0 : c.y) || ((b = s.value) != null && b.xl ? 400 : 235)
1021
+ } : d(t) ? m.value ? {} : te(m.value) ? { x: d(g) } : {} : {};
978
1022
  }), breakpoint: m };
979
1023
  }
980
- const ft = Symbol("table-context"), ka = (e = Symbol(), n) => At(e, n || {}), za = (e) => {
1024
+ const ft = Symbol("table-context"), Al = (e = Symbol(), n) => At(e, {}), Yl = (e) => {
981
1025
  Kt(ft, e);
982
- }, ie = (e) => ka(ft, e);
983
- function Ka(e, n) {
1026
+ }, ie = (e) => Al(ft);
1027
+ function Ll(e, n) {
984
1028
  const t = de({});
985
1029
  he(() => {
986
1030
  o();
@@ -989,14 +1033,14 @@ function Ka(e, n) {
989
1033
  Object.keys(e).map((s) => {
990
1034
  u(s, e[s]);
991
1035
  });
992
- const l = n.find((s) => s.valueType === "dateRange");
993
- l && u(l.name || "", e[l.rangeStartName || "start"] ? [
994
- e[l.rangeStartName || "start"],
995
- e[l.rangeEndName || "end"]
1036
+ const a = n.find((s) => s.valueType === "dateRange");
1037
+ a && u(a.name || "", e[a.rangeStartName || "start"] ? [
1038
+ e[a.rangeStartName || "start"],
1039
+ e[a.rangeEndName || "end"]
996
1040
  ] : []);
997
1041
  }
998
- function u(l, s) {
999
- t[l] = s;
1042
+ function u(a, s) {
1043
+ t[a] = s;
1000
1044
  }
1001
1045
  return {
1002
1046
  formState: t,
@@ -1004,7 +1048,7 @@ function Ka(e, n) {
1004
1048
  changeFormState: u
1005
1049
  };
1006
1050
  }
1007
- const Aa = (e) => ({
1051
+ const Vl = (e) => ({
1008
1052
  [`${e.componentCls}-form`]: {
1009
1053
  "&-collapse-button": {
1010
1054
  display: "flex",
@@ -1032,11 +1076,11 @@ const Aa = (e) => ({
1032
1076
  }
1033
1077
  }
1034
1078
  }), {
1035
- useBreakpoint: Ya
1079
+ useBreakpoint: Hl
1036
1080
  } = He, {
1037
- MonthPicker: La,
1038
- RangePicker: Va
1039
- } = rt, ht = /* @__PURE__ */ ae({
1081
+ MonthPicker: Wl,
1082
+ RangePicker: _l
1083
+ } = rt, ht = /* @__PURE__ */ le({
1040
1084
  name: "ProTableForm",
1041
1085
  props: {
1042
1086
  search: {
@@ -1063,17 +1107,17 @@ const Aa = (e) => ({
1063
1107
  }) {
1064
1108
  const {
1065
1109
  wrapSSR: u,
1066
- hashId: l
1067
- } = Be("ProTableForm", [Aa], e.prefixCls), s = Ya(), {
1110
+ hashId: a
1111
+ } = Be("ProTableForm", [Vl], e.prefixCls), s = Hl(), {
1068
1112
  formState: r,
1069
1113
  resetFormState: w,
1070
1114
  changeFormState: m
1071
- } = Ka(e.defaultParams || {}, e.searchMap || []), g = P(!1), y = S(() => {
1072
- var a;
1073
- return !!((a = e.search) != null && a.showSearch);
1115
+ } = Ll(e.defaultParams || {}, e.searchMap || []), g = O(!1), y = S(() => {
1116
+ var l;
1117
+ return !!((l = e.search) != null && l.showSearch);
1074
1118
  }), c = S(() => {
1075
- var a, p;
1076
- return ((a = e.search) == null ? void 0 : a.showReset) === void 0 ? y.value : (p = e.search) == null ? void 0 : p.showReset;
1119
+ var l, p;
1120
+ return ((l = e.search) == null ? void 0 : l.showReset) === void 0 ? y.value : (p = e.search) == null ? void 0 : p.showReset;
1077
1121
  }), b = [{
1078
1122
  value: "xxl",
1079
1123
  span: 4
@@ -1092,280 +1136,280 @@ const Aa = (e) => ({
1092
1136
  }, {
1093
1137
  value: "xs",
1094
1138
  span: 1
1095
- }], d = S(() => {
1096
- var a;
1097
- return f((a = e.search) == null ? void 0 : a.span);
1139
+ }], f = S(() => {
1140
+ var l;
1141
+ return h((l = e.search) == null ? void 0 : l.span);
1098
1142
  });
1099
- X(() => {
1100
- var a;
1101
- return (a = e.search) == null ? void 0 : a.defaultCollapsed;
1102
- }, (a) => {
1103
- g.value = g.value || !!a;
1143
+ J(() => {
1144
+ var l;
1145
+ return (l = e.search) == null ? void 0 : l.defaultCollapsed;
1146
+ }, (l) => {
1147
+ g.value = g.value || !!l;
1104
1148
  });
1105
- const f = (a) => {
1149
+ const h = (l) => {
1106
1150
  let p = 4;
1107
1151
  for (let I = 0; I < b.length; I += 1) {
1108
1152
  const F = b[I].value;
1109
1153
  if (s.value[F]) {
1110
- p = (a == null ? void 0 : a[F]) || (e.modal ? 3 : b[I].span);
1154
+ p = (l == null ? void 0 : l[F]) || (e.modal ? 3 : b[I].span);
1111
1155
  break;
1112
1156
  }
1113
1157
  }
1114
1158
  return p;
1115
- }, x = (a) => {
1116
- g.value = a;
1117
- }, $ = (a, p, I) => (a + 1) % p === 0 ? {
1159
+ }, x = (l) => {
1160
+ g.value = l;
1161
+ }, $ = (l, p, I) => (l + 1) % p === 0 ? {
1118
1162
  ...I,
1119
1163
  marginRight: 0
1120
1164
  } : {
1121
1165
  ...I,
1122
1166
  marginRight: "2%"
1123
- }, T = (a, p) => {
1124
- var I, F, O;
1167
+ }, T = (l, p) => {
1168
+ var I, F, P;
1125
1169
  switch (p.valueType) {
1126
1170
  case "text":
1127
- m(p.name || "", a || p.initialValue || "");
1171
+ m(p.name || "", l || p.initialValue || "");
1128
1172
  break;
1129
1173
  case "select":
1130
- m(p.name || "", a || a === 0 ? a : p.initialValue || void 0);
1174
+ m(p.name || "", l || l === 0 ? l : p.initialValue || void 0);
1131
1175
  break;
1132
1176
  case "treeSelect":
1133
- m(p.name || "", a || a === 0 ? a : p.initialValue || ((I = p.field) != null && I.treeCheckable || (F = p.field) != null && F.multiple ? [] : null));
1177
+ m(p.name || "", l || l === 0 ? l : p.initialValue || ((I = p.field) != null && I.treeCheckable || (F = p.field) != null && F.multiple ? [] : null));
1134
1178
  break;
1135
1179
  case "date":
1136
- m(p.name || "", a ? _(a).format(p.valueFormat || "YYYY-MM-DD") : p.initialValue || null);
1180
+ m(p.name || "", l ? _(l).format(p.valueFormat || "YYYY-MM-DD") : p.initialValue || null);
1137
1181
  break;
1138
1182
  case "dateMonth":
1139
- m(p.name || "", a ? _(a).format("YYYY-MM") : p.initialValue || null);
1183
+ m(p.name || "", l ? _(l).format("YYYY-MM") : p.initialValue || null);
1140
1184
  break;
1141
1185
  case "dateRange":
1142
- m(p.name || "", a && a.length > 0 ? [_(a[0]).format(p.valueFormat || "YYYY-MM-DD"), _(a[1]).format(p.valueFormat || "YYYY-MM-DD")] : p.initialValue || null);
1186
+ m(p.name || "", l && l.length > 0 ? [_(l[0]).format(p.valueFormat || "YYYY-MM-DD"), _(l[1]).format(p.valueFormat || "YYYY-MM-DD")] : p.initialValue || null);
1143
1187
  break;
1144
1188
  case "time":
1145
- m(p.name || "", a ? _(a).format(p.valueFormat || "HH:mm:ss") : p.initialValue || null);
1189
+ m(p.name || "", l ? _(l).format(p.valueFormat || "HH:mm:ss") : p.initialValue || null);
1146
1190
  break;
1147
1191
  }
1148
- (O = e.search) != null && O.showSearch || p.valueType === "text" || (p.valueType === "treeSelect" || p.valueType, D());
1192
+ (P = e.search) != null && P.showSearch || p.valueType === "text" || (p.valueType === "treeSelect" || p.valueType, E());
1149
1193
  }, B = () => {
1150
- const a = J(r), p = e.searchMap.find((O) => O.valueType === "text") || "", I = e.searchMap.find((O) => O.valueType === "dateRange") || "", F = e.searchMap.find((O) => O.valueType === "treeSelect") || "";
1151
- return p && (a[p.name] = r[p.name] || p.initialValue || ""), I && (a[I.rangeStartName || "start"] = a[I.name] ? a[I.name][0] : "", a[I.rangeEndName || "end"] = a[I.name] ? a[I.name][1] : "", delete a[I.name]), F && (Ke(r[F.name]) && (a[F.name] = r[F.name].length ? r[F.name].map((O) => O[F.valueKey === "text" ? "label" : "value"]).join() : ""), F && Ke(a[F.name]) && (a[F.name] = a[F.name].length ? a[F.name].map((O) => O[F.valueKey === "text" ? "label" : "value"]) : "")), a;
1152
- }, D = (a = !1, p) => {
1194
+ const l = X(r), p = e.searchMap.find((P) => P.valueType === "text") || "", I = e.searchMap.find((P) => P.valueType === "dateRange") || "", F = e.searchMap.find((P) => P.valueType === "treeSelect") || "";
1195
+ return p && (l[p.name] = r[p.name] || p.initialValue || ""), I && (l[I.rangeStartName || "start"] = l[I.name] ? l[I.name][0] : "", l[I.rangeEndName || "end"] = l[I.name] ? l[I.name][1] : "", delete l[I.name]), F && (Ke(r[F.name]) && (l[F.name] = r[F.name].length ? r[F.name].map((P) => P[F.valueKey === "text" ? "label" : "value"]).join() : ""), F && Ke(l[F.name]) && (l[F.name] = l[F.name].length ? l[F.name].map((P) => P[F.valueKey === "text" ? "label" : "value"]) : "")), l;
1196
+ }, E = (l = !1, p) => {
1153
1197
  Yt(() => {
1154
- (!y.value || a) && n("search", B(), !!p);
1198
+ (!y.value || l) && n("search", B(), !!p);
1155
1199
  });
1156
- }, A = (a = !0) => {
1157
- w(), D(!0, a);
1200
+ }, Y = (l = !0) => {
1201
+ w(), E(!0, l);
1158
1202
  };
1159
1203
  o({
1160
1204
  getFormState: () => B(),
1161
- resetForm: A
1205
+ resetForm: Y
1162
1206
  });
1163
- const N = () => (y.value || c.value) && i(oe, null, {
1207
+ const j = () => (y.value || c.value) && i(oe, null, {
1164
1208
  default: () => [c.value && i(tt, {
1165
- onClick: () => A()
1209
+ onClick: () => Y()
1166
1210
  }, {
1167
1211
  default: () => {
1168
- var a;
1169
- return [((a = e.search) == null ? void 0 : a.resetText) || "重置"];
1212
+ var l;
1213
+ return [((l = e.search) == null ? void 0 : l.resetText) || "重置"];
1170
1214
  }
1171
1215
  }), y.value && i(tt, {
1172
1216
  loading: e.loading,
1173
1217
  type: "primary",
1174
- onClick: () => D(!0)
1218
+ onClick: () => E(!0)
1175
1219
  }, {
1176
1220
  default: () => {
1177
- var a;
1178
- return [((a = e.search) == null ? void 0 : a.searchText) || "查询"];
1221
+ var l;
1222
+ return [((l = e.search) == null ? void 0 : l.searchText) || "查询"];
1179
1223
  }
1180
1224
  })]
1181
- }), Y = ({
1182
- formItemStyle: a,
1225
+ }), L = ({
1226
+ formItemStyle: l,
1183
1227
  advanced: p,
1184
1228
  showAdvanced: I = !0
1185
1229
  }) => i("div", {
1186
- style: a,
1187
- class: `${e.prefixCls}-form-collapse-button ${l.value}`
1230
+ style: l,
1231
+ class: `${e.prefixCls}-form-collapse-button ${a.value}`
1188
1232
  }, [i(oe, {
1189
1233
  size: 16
1190
1234
  }, {
1191
1235
  default: () => {
1192
- var F, O;
1193
- return [N(), I && i("span", {
1194
- class: `${e.prefixCls}-a ${l.value}`,
1236
+ var F, P;
1237
+ return [j(), I && i("span", {
1238
+ class: `${e.prefixCls}-a ${a.value}`,
1195
1239
  onClick: () => x(!p)
1196
- }, [p ? "收起" : "展开", (F = e.search) != null && F.collapseRender ? (O = e.search) == null ? void 0 : O.collapseRender() : p ? i(da, null, null) : i(fa, null, null)])];
1240
+ }, [p ? "收起" : "展开", (F = e.search) != null && F.collapseRender ? (P = e.search) == null ? void 0 : P.collapseRender() : p ? i(dl, null, null) : i(fl, null, null)])];
1197
1241
  }
1198
- })]), G = (a) => {
1199
- var F, O;
1242
+ })]), G = (l) => {
1243
+ var F, P;
1200
1244
  let p;
1201
- const I = y.value ? at : at.Search;
1202
- switch (a.valueType) {
1245
+ const I = y.value ? lt : lt.Search;
1246
+ switch (l.valueType) {
1203
1247
  case "text":
1204
1248
  p = i(I, U({
1205
1249
  style: {
1206
1250
  width: "100%"
1207
1251
  },
1208
- value: r[a.name],
1209
- placeholder: a.placeholder || "请输入",
1210
- allowClear: a.allowClear || a.allowClear === !1 ? a.allowClear : !0,
1211
- onChange: (h) => T(h.target.value, a),
1212
- onSearch: (h) => D()
1213
- }, a.field || {}), null);
1252
+ value: r[l.name],
1253
+ placeholder: l.placeholder || "请输入",
1254
+ allowClear: l.allowClear || l.allowClear === !1 ? l.allowClear : !0,
1255
+ onChange: (v) => T(v.target.value, l),
1256
+ onSearch: (v) => E()
1257
+ }, l.field || {}), null);
1214
1258
  break;
1215
1259
  case "select":
1216
- p = i(ta, U({
1260
+ p = i(tl, U({
1217
1261
  style: {
1218
1262
  width: "100%"
1219
1263
  },
1220
- value: a.loading ? void 0 : r[a.name],
1264
+ value: l.loading ? void 0 : r[l.name],
1221
1265
  optionFilterProp: "label",
1222
- placeholder: a.placeholder || "请选择",
1223
- showSearch: a.showSearch,
1224
- allowClear: a.allowClear || a.allowClear === !1 ? a.allowClear : !0,
1225
- getPopupContainer: (h) => h && h.parentNode ? h.parentNode : h,
1226
- notFoundContent: a.loading === void 0 ? void 0 : a.loading ? i(Ye, {
1266
+ placeholder: l.placeholder || "请选择",
1267
+ showSearch: l.showSearch,
1268
+ allowClear: l.allowClear || l.allowClear === !1 ? l.allowClear : !0,
1269
+ getPopupContainer: (v) => v && v.parentNode ? v.parentNode : v,
1270
+ notFoundContent: l.loading === void 0 ? void 0 : l.loading ? i(Ye, {
1227
1271
  size: "small"
1228
1272
  }, null) : void 0,
1229
- onChange: (h) => T(h, a),
1230
- options: (F = a == null ? void 0 : a.valueEnum) == null ? void 0 : F.map((h) => ({
1231
- label: h.text,
1232
- value: h.value
1273
+ onChange: (v) => T(v, l),
1274
+ options: (F = l == null ? void 0 : l.valueEnum) == null ? void 0 : F.map((v) => ({
1275
+ label: v.text,
1276
+ value: v.value
1233
1277
  }))
1234
- }, a.field || {}), null);
1278
+ }, l.field || {}), null);
1235
1279
  break;
1236
1280
  case "treeSelect":
1237
- p = i(ea, U({
1281
+ p = i(el, U({
1238
1282
  style: {
1239
1283
  width: "100%"
1240
1284
  },
1241
- value: r[a.name],
1242
- placeholder: a.placeholder || "请选择",
1243
- allowClear: a.allowClear || a.allowClear === !1 ? a.allowClear : !0,
1244
- treeData: a.valueEnum,
1245
- getPopupContainer: (h) => h && h.parentNode ? h.parentNode : h,
1246
- notFoundContent: a.loading === void 0 ? void 0 : a.loading ? i(Ye, {
1285
+ value: r[l.name],
1286
+ placeholder: l.placeholder || "请选择",
1287
+ allowClear: l.allowClear || l.allowClear === !1 ? l.allowClear : !0,
1288
+ treeData: l.valueEnum,
1289
+ getPopupContainer: (v) => v && v.parentNode ? v.parentNode : v,
1290
+ notFoundContent: l.loading === void 0 ? void 0 : l.loading ? i(Ye, {
1247
1291
  size: "small"
1248
1292
  }, null) : void 0,
1249
- onChange: (h) => T(h, a)
1250
- }, a.field || {}), null);
1293
+ onChange: (v) => T(v, l)
1294
+ }, l.field || {}), null);
1251
1295
  break;
1252
1296
  case "date":
1253
1297
  p = i(rt, U({
1254
1298
  style: {
1255
1299
  width: "100%"
1256
1300
  },
1257
- value: r[a.name] ? _(r[a.name], a.valueFormat || "YYYY-MM-DD") : void 0,
1258
- getPopupContainer: (h) => h && h.parentNode ? h.parentNode : h,
1259
- placeholder: a.placeholder || "请选择",
1260
- allowClear: a.allowClear || a.allowClear === !1 ? a.allowClear : !0,
1261
- format: a.valueFormat || "YYYY-MM-DD",
1262
- showTime: a.showTime,
1263
- showToday: a.showToday || !0,
1264
- onChange: (h) => T(h, a)
1265
- }, a.field || {}), null);
1301
+ value: r[l.name] ? _(r[l.name], l.valueFormat || "YYYY-MM-DD") : void 0,
1302
+ getPopupContainer: (v) => v && v.parentNode ? v.parentNode : v,
1303
+ placeholder: l.placeholder || "请选择",
1304
+ allowClear: l.allowClear || l.allowClear === !1 ? l.allowClear : !0,
1305
+ format: l.valueFormat || "YYYY-MM-DD",
1306
+ showTime: l.showTime,
1307
+ showToday: l.showToday || !0,
1308
+ onChange: (v) => T(v, l)
1309
+ }, l.field || {}), null);
1266
1310
  break;
1267
1311
  case "dateMonth":
1268
- p = i(La, U({
1312
+ p = i(Wl, U({
1269
1313
  style: {
1270
1314
  width: "100%"
1271
1315
  },
1272
- value: r[a.name] ? _(r[a.name], a.valueFormat || "YYYY-MM") : void 0,
1273
- getPopupContainer: (h) => h && h.parentNode ? h.parentNode : h,
1274
- placeholder: a.placeholder || "请选择",
1275
- onChange: (h) => T(h, a)
1276
- }, a.field || {}), null);
1316
+ value: r[l.name] ? _(r[l.name], l.valueFormat || "YYYY-MM") : void 0,
1317
+ getPopupContainer: (v) => v && v.parentNode ? v.parentNode : v,
1318
+ placeholder: l.placeholder || "请选择",
1319
+ onChange: (v) => T(v, l)
1320
+ }, l.field || {}), null);
1277
1321
  break;
1278
1322
  case "dateRange":
1279
- p = i(Va, U({
1323
+ p = i(_l, U({
1280
1324
  style: {
1281
1325
  width: "100%"
1282
1326
  },
1283
- value: (O = r[a.name]) != null && O.length ? [_(r[a.name][0], a.valueFormat || "YYYY-MM-DD HH:mm:ss"), _(r[a.name][1], a.valueFormat || "YYYY-MM-DD HH:mm:ss")] : void 0,
1284
- getPopupContainer: (h) => h && h.parentNode ? h.parentNode : h,
1285
- placeholder: a.placeholder || ["开始日期", "结束日期"],
1286
- format: a.valueFormat || "YYYY-MM-DD HH:mm:ss",
1287
- showTime: a.showTime,
1288
- onChange: (h) => T(h, a)
1289
- }, a.field || {}), null);
1327
+ value: (P = r[l.name]) != null && P.length ? [_(r[l.name][0], l.valueFormat || "YYYY-MM-DD HH:mm:ss"), _(r[l.name][1], l.valueFormat || "YYYY-MM-DD HH:mm:ss")] : void 0,
1328
+ getPopupContainer: (v) => v && v.parentNode ? v.parentNode : v,
1329
+ placeholder: l.placeholder || ["开始日期", "结束日期"],
1330
+ format: l.valueFormat || "YYYY-MM-DD HH:mm:ss",
1331
+ showTime: l.showTime,
1332
+ onChange: (v) => T(v, l)
1333
+ }, l.field || {}), null);
1290
1334
  break;
1291
1335
  case "time":
1292
1336
  p = i(Zt, U({
1293
1337
  style: {
1294
1338
  width: "100%"
1295
1339
  },
1296
- value: r[a.name] ? _(r[a.name], a.valueFormat || "HH:mm:ss") : void 0,
1297
- getPopupContainer: (h) => h && h.parentNode ? h.parentNode : h,
1298
- placeholder: a.placeholder || "请选择",
1299
- allowClear: a.allowClear || a.allowClear === !1 ? a.allowClear : !0,
1300
- use12Hours: a.use12Hours,
1301
- format: a.valueFormat || "HH:mm:ss",
1302
- onChange: (h) => T(h, a)
1303
- }, a.field || {}), null);
1340
+ value: r[l.name] ? _(r[l.name], l.valueFormat || "HH:mm:ss") : void 0,
1341
+ getPopupContainer: (v) => v && v.parentNode ? v.parentNode : v,
1342
+ placeholder: l.placeholder || "请选择",
1343
+ allowClear: l.allowClear || l.allowClear === !1 ? l.allowClear : !0,
1344
+ use12Hours: l.use12Hours,
1345
+ format: l.valueFormat || "HH:mm:ss",
1346
+ onChange: (v) => T(v, l)
1347
+ }, l.field || {}), null);
1304
1348
  break;
1305
1349
  }
1306
1350
  return p;
1307
- }, E = ({
1308
- formItemStyle: a,
1351
+ }, D = ({
1352
+ formItemStyle: l,
1309
1353
  item: p
1310
1354
  }) => i("div", {
1311
1355
  class: `${e.prefixCls}-form-item`,
1312
- style: a
1356
+ style: l
1313
1357
  }, [i(et.Item, null, {
1314
1358
  default: () => [p.__v_isVNode ? p : G(p)]
1315
1359
  })]), H = () => {
1316
1360
  var p;
1317
- const a = [...e.searchMap, ...((p = t.default) == null ? void 0 : p.call(t)) || []];
1318
- return a.map((I, F) => {
1319
- const O = {
1320
- width: `${(100 - (d.value - 1) * 2) / d.value}%`
1321
- }, h = $(F, d.value, O);
1322
- return a.length < d.value || g.value ? i(Ie, null, [E({
1323
- formItemStyle: h,
1361
+ const l = [...e.searchMap, ...((p = t.default) == null ? void 0 : p.call(t)) || []];
1362
+ return l.map((I, F) => {
1363
+ const P = {
1364
+ width: `${(100 - (f.value - 1) * 2) / f.value}%`
1365
+ }, v = $(F, f.value, P);
1366
+ return l.length < f.value || g.value ? i(Ie, null, [D({
1367
+ formItemStyle: v,
1324
1368
  item: I
1325
- }), F === a.length - 1 && Y({
1369
+ }), F === l.length - 1 && L({
1326
1370
  formItemStyle: {
1327
1371
  flex: 1,
1328
1372
  justifyContent: "flex-end"
1329
1373
  },
1330
1374
  advanced: g.value,
1331
1375
  showAdvanced: g.value
1332
- })]) : i(Ie, null, [F < d.value - 1 && E({
1333
- formItemStyle: h,
1376
+ })]) : i(Ie, null, [F < f.value - 1 && D({
1377
+ formItemStyle: v,
1334
1378
  item: I
1335
- }), F === d.value - 1 && (d.value - 1 === 0 || a.length === d.value) && E({
1336
- formItemStyle: h,
1379
+ }), F === f.value - 1 && (f.value - 1 === 0 || l.length === f.value) && D({
1380
+ formItemStyle: v,
1337
1381
  item: I
1338
- }), F === d.value - 1 && a.length !== d.value && Y({
1382
+ }), F === f.value - 1 && l.length !== f.value && L({
1339
1383
  formItemStyle: {
1340
1384
  flex: 1,
1341
1385
  justifyContent: "flex-end"
1342
1386
  },
1343
1387
  advanced: !1,
1344
- showAdvanced: a.length >= d.value
1388
+ showAdvanced: l.length >= f.value
1345
1389
  })]);
1346
1390
  });
1347
1391
  };
1348
1392
  return () => {
1349
- var a, p;
1393
+ var l, p;
1350
1394
  return u(i("div", {
1351
1395
  class: {
1352
- [`${l.value}`]: !0,
1353
- [`${v(e.prefixCls)}-search`]: !0,
1354
- [`${(a = e.search) == null ? void 0 : a.className}`]: (p = e.search) == null ? void 0 : p.className
1396
+ [`${a.value}`]: !0,
1397
+ [`${d(e.prefixCls)}-search`]: !0,
1398
+ [`${(l = e.search) == null ? void 0 : l.className}`]: (p = e.search) == null ? void 0 : p.className
1355
1399
  }
1356
1400
  }, [i(et, {
1357
- class: `${v(e.prefixCls)}-form ${l.value}`,
1401
+ class: `${d(e.prefixCls)}-form ${a.value}`,
1358
1402
  layout: "horizontal"
1359
1403
  }, {
1360
1404
  default: () => [i("div", {
1361
- class: `${v(e.prefixCls)}-form-container ${l.value}`
1405
+ class: `${d(e.prefixCls)}-form-container ${a.value}`
1362
1406
  }, [H()])]
1363
1407
  })]));
1364
1408
  };
1365
1409
  }
1366
1410
  });
1367
1411
  ht.inheritAttrs = !1;
1368
- function Ha(e, n) {
1412
+ function Gl(e, n) {
1369
1413
  const t = Le({}, e);
1370
1414
  for (let o = 0; o < n.length; o += 1) {
1371
1415
  const u = n[o];
@@ -1373,13 +1417,13 @@ function Ha(e, n) {
1373
1417
  }
1374
1418
  return t;
1375
1419
  }
1376
- const be = (e) => {
1377
- const n = P(null);
1420
+ const Ce = (e) => {
1421
+ const n = O(null);
1378
1422
  return n.value = e, (...t) => {
1379
1423
  var o;
1380
1424
  return (o = n.value) == null ? void 0 : o.call(n, ...t);
1381
1425
  };
1382
- }, Wa = (e) => ({
1426
+ }, ql = (e) => ({
1383
1427
  [`${e.componentCls}`]: {
1384
1428
  width: "auto",
1385
1429
  "&-title": {
@@ -1470,7 +1514,7 @@ const be = (e) => {
1470
1514
  slots: u
1471
1515
  }) => {
1472
1516
  const {
1473
- cacheColumns: l,
1517
+ cacheColumns: a,
1474
1518
  settingsAction: s
1475
1519
  } = ie();
1476
1520
  return n ? i(ee, {
@@ -1480,10 +1524,10 @@ const be = (e) => {
1480
1524
  var r;
1481
1525
  return [i("span", {
1482
1526
  onClick: (w) => {
1483
- var b, d;
1527
+ var b, f;
1484
1528
  w.stopPropagation(), w.preventDefault();
1485
- const m = ((b = v(l).find((f) => f.uuid === t)) == null ? void 0 : b.key) || "", g = (s == null ? void 0 : s.columnsMap[m]) || {};
1486
- if (typeof g.disable == "boolean" ? g.disable : (d = g.disable) == null ? void 0 : d.icon)
1529
+ const m = ((b = d(a).find((h) => h.uuid === t)) == null ? void 0 : b.key) || "", g = (s == null ? void 0 : s.columnsMap[m]) || {};
1530
+ if (typeof g.disable == "boolean" ? g.disable : (f = g.disable) == null ? void 0 : f.icon)
1487
1531
  return;
1488
1532
  const c = {
1489
1533
  ...s == null ? void 0 : s.columnsMap,
@@ -1497,7 +1541,7 @@ const be = (e) => {
1497
1541
  }, [(r = u.default) == null ? void 0 : r.call(u)])];
1498
1542
  }
1499
1543
  }) : null;
1500
- }, _a = /* @__PURE__ */ ae({
1544
+ }, Ul = /* @__PURE__ */ le({
1501
1545
  props: {
1502
1546
  treeKey: String,
1503
1547
  hashId: String,
@@ -1511,7 +1555,7 @@ const be = (e) => {
1511
1555
  cacheColumns: n
1512
1556
  } = ie(), t = S(() => {
1513
1557
  var u;
1514
- return ((u = n.value.find((l) => l.uuid === e.treeKey)) == null ? void 0 : u.key) || "";
1558
+ return ((u = n.value.find((a) => a.uuid === e.treeKey)) == null ? void 0 : u.key) || "";
1515
1559
  }), o = S(() => t.value === "action" && e.autoScroll);
1516
1560
  return () => {
1517
1561
  const u = i("span", {
@@ -1522,21 +1566,21 @@ const be = (e) => {
1522
1566
  title: "固定在列首",
1523
1567
  show: e.fixed !== "left" && !o.value
1524
1568
  }, {
1525
- default: () => [i(ha, null, null)]
1569
+ default: () => [i(hl, null, null)]
1526
1570
  }), i(Me, {
1527
1571
  treeKey: e.treeKey || "",
1528
1572
  fixed: void 0,
1529
1573
  title: "不固定",
1530
1574
  show: !!e.fixed && !o.value
1531
1575
  }, {
1532
- default: () => [i(va, null, null)]
1576
+ default: () => [i(vl, null, null)]
1533
1577
  }), i(Me, {
1534
1578
  treeKey: e.treeKey || "",
1535
1579
  fixed: "right",
1536
1580
  title: "固定在列尾",
1537
1581
  show: e.fixed !== "right"
1538
1582
  }, {
1539
- default: () => [i(ma, null, null)]
1583
+ default: () => [i(ml, null, null)]
1540
1584
  })]);
1541
1585
  return i("span", {
1542
1586
  class: [`${e.className}-list-item`, e.hashId],
@@ -1546,7 +1590,7 @@ const be = (e) => {
1546
1590
  }, [e.title]), u]);
1547
1591
  };
1548
1592
  }
1549
- }), Ne = /* @__PURE__ */ ae({
1593
+ }), Ne = /* @__PURE__ */ le({
1550
1594
  props: {
1551
1595
  list: Array,
1552
1596
  keys: Array,
@@ -1561,64 +1605,64 @@ const be = (e) => {
1561
1605
  }
1562
1606
  },
1563
1607
  setup(e) {
1564
- const n = P(Ae().uuid(15)), t = S(() => e.list && e.list.length > 0), o = P([]), u = P([]), {
1565
- cacheColumns: l,
1608
+ const n = O(Ae().uuid(15)), t = S(() => e.list && e.list.length > 0), o = O([]), u = O([]), {
1609
+ cacheColumns: a,
1566
1610
  slots: s,
1567
1611
  settingsAction: r
1568
1612
  } = ie(), w = (c, b) => c.map(({
1569
- key: d,
1570
- children: f,
1613
+ key: f,
1614
+ children: h,
1571
1615
  uuid: x,
1572
1616
  ...$
1573
1617
  }) => {
1574
- var A;
1575
- const T = (r == null ? void 0 : r.columnsMap[d || "null"]) || {
1618
+ var Y;
1619
+ const T = (r == null ? void 0 : r.columnsMap[f || "null"]) || {
1576
1620
  show: !0
1577
1621
  };
1578
1622
  let B = !1;
1579
- T.show !== !1 && (b == null ? void 0 : b.show) !== !1 && !f && (B = !0);
1580
- const D = {
1623
+ T.show !== !1 && (b == null ? void 0 : b.show) !== !1 && !h && (B = !0);
1624
+ const E = {
1581
1625
  key: x || "",
1582
- ...Ha($, ["dataIndex"]),
1626
+ ...Gl($, ["dataIndex"]),
1583
1627
  checked: B,
1584
1628
  selectable: !1,
1585
1629
  disabled: T.disable === !0,
1586
- disableCheckbox: typeof T.disable == "boolean" ? T.disable : (A = T.disable) == null ? void 0 : A.checkbox,
1630
+ disableCheckbox: typeof T.disable == "boolean" ? T.disable : (Y = T.disable) == null ? void 0 : Y.checkbox,
1587
1631
  isLeaf: !0
1588
1632
  };
1589
- return f && (D.children = w(f, T)), D;
1633
+ return h && (E.children = w(h, T)), E;
1590
1634
  });
1591
1635
  he(() => {
1592
1636
  const c = w(e.list || []);
1593
1637
  o.value = c, u.value = c.filter((b) => b.checked).map((b) => b.key), (r == null ? void 0 : r.operationType.value) === "fixed" && (n.value = Ae().uuid(15));
1594
1638
  });
1595
- const m = be((c, b, d) => {
1596
- var Y, G;
1597
- const f = ((Y = v(l).find((E) => E.uuid === c)) == null ? void 0 : Y.key) || "", x = ((G = v(l).find((E) => E.uuid === b)) == null ? void 0 : G.key) || "", $ = {
1639
+ const m = Ce((c, b, f) => {
1640
+ var L, G;
1641
+ const h = ((L = d(a).find((D) => D.uuid === c)) == null ? void 0 : L.key) || "", x = ((G = d(a).find((D) => D.uuid === b)) == null ? void 0 : G.key) || "", $ = {
1598
1642
  ...r == null ? void 0 : r.columnsMap
1599
- }, T = [...r.sortKeyColumns.value], B = T.findIndex((E) => E === f), D = T.findIndex((E) => E === x), A = d > B;
1643
+ }, T = [...r.sortKeyColumns.value], B = T.findIndex((D) => D === h), E = T.findIndex((D) => D === x), Y = f > B;
1600
1644
  if (B < 0)
1601
1645
  return;
1602
- const N = T[B];
1603
- T.splice(B, 1), d === 0 ? T.unshift(N) : T.splice(A ? D : D + 1, 0, N), T.forEach((E, H) => {
1604
- $[E] = {
1605
- ...$[E] || {},
1646
+ const j = T[B];
1647
+ T.splice(B, 1), f === 0 ? T.unshift(j) : T.splice(Y ? E : E + 1, 0, j), T.forEach((D, H) => {
1648
+ $[D] = {
1649
+ ...$[D] || {},
1606
1650
  order: H
1607
1651
  };
1608
1652
  }), r == null || r.setColumnsMap($, "drop"), r == null || r.setSortKeyColumns(T);
1609
- }), g = be((c) => {
1653
+ }), g = Ce((c) => {
1610
1654
  var T;
1611
- const b = c.node.key, d = ((T = v(l).find((B) => B.uuid === b)) == null ? void 0 : T.key) || "", x = {
1612
- ...(r == null ? void 0 : r.columnsMap[d]) || {}
1655
+ const b = c.node.key, f = ((T = d(a).find((B) => B.uuid === b)) == null ? void 0 : T.key) || "", x = {
1656
+ ...(r == null ? void 0 : r.columnsMap[f]) || {}
1613
1657
  };
1614
1658
  x.show = c.checked;
1615
1659
  const $ = {
1616
1660
  ...r == null ? void 0 : r.columnsMap,
1617
- [d]: x
1661
+ [f]: x
1618
1662
  };
1619
1663
  r == null || r.setColumnsMap($, "show");
1620
1664
  }), y = (c) => {
1621
- const b = v(l).find((d) => d.uuid === c.key);
1665
+ const b = d(a).find((f) => f.uuid === c.key);
1622
1666
  return c.title || Lt(s, "headerCell", {
1623
1667
  title: b.title,
1624
1668
  column: b
@@ -1628,7 +1672,7 @@ const be = (e) => {
1628
1672
  var c, b;
1629
1673
  return t.value ? i(Ie, null, [e.showTitle && i("span", {
1630
1674
  class: [`${e.className}-list-title`, e.hashId]
1631
- }, [e.title]), i(na, {
1675
+ }, [e.title]), i(nl, {
1632
1676
  key: n.value,
1633
1677
  draggable: e.draggable && !!((c = o.value) != null && c.length) && ((b = o.value) == null ? void 0 : b.length) > 1,
1634
1678
  checkable: e.checkable,
@@ -1636,35 +1680,35 @@ const be = (e) => {
1636
1680
  showLine: !1,
1637
1681
  checkedKeys: u.value,
1638
1682
  height: 280,
1639
- onDrop: (d) => {
1640
- const f = d.node.key, x = d.dragNode.key, {
1683
+ onDrop: (f) => {
1684
+ const h = f.node.key, x = f.dragNode.key, {
1641
1685
  dropPosition: $,
1642
1686
  dropToGap: T
1643
- } = d, B = $ === -1 || !T ? $ + 1 : $;
1644
- m(x, f, B);
1687
+ } = f, B = $ === -1 || !T ? $ + 1 : $;
1688
+ m(x, h, B);
1645
1689
  },
1646
- onCheck: (d, f) => g(f),
1690
+ onCheck: (f, h) => g(h),
1647
1691
  treeData: o.value
1648
1692
  }, {
1649
- title: (d) => {
1693
+ title: (f) => {
1650
1694
  var x;
1651
- const f = {
1652
- ...d,
1695
+ const h = {
1696
+ ...f,
1653
1697
  children: void 0,
1654
- title: y(d),
1698
+ title: y(f),
1655
1699
  autoScroll: (x = r == null ? void 0 : r.autoScroll) == null ? void 0 : x.value
1656
1700
  };
1657
- return i(_a, U({
1701
+ return i(Ul, U({
1658
1702
  hashId: e.hashId,
1659
1703
  className: e.className
1660
- }, f, {
1661
- treeKey: f.key
1704
+ }, h, {
1705
+ treeKey: h.key
1662
1706
  }), null);
1663
1707
  }
1664
1708
  })]) : null;
1665
1709
  };
1666
1710
  }
1667
- }), Ga = /* @__PURE__ */ ae({
1711
+ }), Xl = /* @__PURE__ */ le({
1668
1712
  props: {
1669
1713
  hashId: String,
1670
1714
  className: String,
@@ -1674,8 +1718,8 @@ const be = (e) => {
1674
1718
  setup(e) {
1675
1719
  const {
1676
1720
  columns: n
1677
- } = ie(), t = P([]), o = P([]), u = P([]), l = P([]);
1678
- X(() => n.value, (w) => {
1721
+ } = ie(), t = O([]), o = O([]), u = O([]), a = O([]);
1722
+ J(() => n.value, (w) => {
1679
1723
  t.value = [], o.value = [], u.value = [], w.forEach((m) => {
1680
1724
  if (m.hideInSetting)
1681
1725
  return;
@@ -1684,7 +1728,7 @@ const be = (e) => {
1684
1728
  show: y,
1685
1729
  uuid: c
1686
1730
  } = m;
1687
- if ((y || y === void 0) && c && l.value.push(c), g === "left") {
1731
+ if ((y || y === void 0) && c && a.value.push(c), g === "left") {
1688
1732
  o.value.push(m);
1689
1733
  return;
1690
1734
  }
@@ -1707,14 +1751,14 @@ const be = (e) => {
1707
1751
  }, [i(Ne, {
1708
1752
  title: "固定在左侧",
1709
1753
  list: o.value,
1710
- keys: l.value,
1754
+ keys: a.value,
1711
1755
  hashId: e.hashId,
1712
1756
  draggable: e.draggable,
1713
1757
  checkable: e.checkable,
1714
1758
  className: e.className
1715
1759
  }, null), i(Ne, {
1716
1760
  list: u.value,
1717
- keys: l.value,
1761
+ keys: a.value,
1718
1762
  hashId: e.hashId,
1719
1763
  draggable: e.draggable,
1720
1764
  checkable: e.checkable,
@@ -1724,14 +1768,14 @@ const be = (e) => {
1724
1768
  }, null), i(Ne, {
1725
1769
  title: "固定在右侧",
1726
1770
  list: t.value,
1727
- keys: l.value,
1771
+ keys: a.value,
1728
1772
  hashId: e.hashId,
1729
1773
  draggable: e.draggable,
1730
1774
  checkable: e.checkable,
1731
1775
  className: e.className
1732
1776
  }, null)]);
1733
1777
  }
1734
- }), qa = /* @__PURE__ */ ae({
1778
+ }), Jl = /* @__PURE__ */ le({
1735
1779
  props: {
1736
1780
  draggable: {
1737
1781
  type: Boolean,
@@ -1751,47 +1795,47 @@ const be = (e) => {
1751
1795
  }), {
1752
1796
  wrapSSR: t,
1753
1797
  hashId: o
1754
- } = Be("ColumnSetting", [Wa], n), {
1798
+ } = Be("ColumnSetting", [ql], n), {
1755
1799
  columns: u,
1756
- settingsAction: l
1757
- } = ie(), s = be((y = !0) => {
1758
- const c = {}, b = (d) => {
1759
- d.forEach(({
1760
- key: f,
1800
+ settingsAction: a
1801
+ } = ie(), s = Ce((y = !0) => {
1802
+ const c = {}, b = (f) => {
1803
+ f.forEach(({
1804
+ key: h,
1761
1805
  fixed: x,
1762
1806
  index: $,
1763
1807
  children: T
1764
1808
  }) => {
1765
- const B = ot(f, $);
1809
+ const B = ot(h, $);
1766
1810
  B && (c[B] = {
1767
1811
  show: y,
1768
1812
  fixed: x
1769
1813
  }), T && b(T);
1770
1814
  });
1771
1815
  };
1772
- b(u.value), l == null || l.setColumnsMap(c, "show");
1773
- }), r = be((y) => {
1816
+ b(u.value), a == null || a.setColumnsMap(c, "show");
1817
+ }), r = Ce((y) => {
1774
1818
  y.target.checked ? s() : s(!1);
1775
- }), w = be(() => {
1776
- l == null || l.setColumnsMap(l == null ? void 0 : l.cacheColumnsMap, "fixed");
1819
+ }), w = Ce(() => {
1820
+ a == null || a.setColumnsMap(a == null ? void 0 : a.cacheColumnsMap, "fixed");
1777
1821
  }), m = S(() => (
1778
1822
  // @ts-ignore
1779
- Object.values(l == null ? void 0 : l.columnsMap).filter((y) => !y || y.show === !1)
1780
- )), g = S(() => v(m).length > 0 && v(m).length !== u.value.length);
1781
- return () => t(i(aa, {
1823
+ Object.values(a == null ? void 0 : a.columnsMap).filter((y) => !y || y.show === !1)
1824
+ )), g = S(() => d(m).length > 0 && d(m).length !== u.value.length);
1825
+ return () => t(i(ll, {
1782
1826
  arrowPointAtCenter: !0,
1783
1827
  title: i("div", {
1784
1828
  class: [`${n}-title`, o.value]
1785
- }, [i(la, {
1829
+ }, [i(al, {
1786
1830
  indeterminate: g.value,
1787
- checked: v(m).length === 0 && v(m).length !== u.value.length,
1831
+ checked: d(m).length === 0 && d(m).length !== u.value.length,
1788
1832
  onChange: (y) => r(y)
1789
1833
  }, {
1790
- default: () => [pe("列展示")]
1834
+ default: () => [be("列展示")]
1791
1835
  }), e.checkedReset ? i("a", {
1792
1836
  onClick: w,
1793
1837
  class: [`${n}-action-rest-button`, o.value]
1794
- }, [pe("重置")]) : null, e != null && e.extra ? i(oe, {
1838
+ }, [be("重置")]) : null, e != null && e.extra ? i(oe, {
1795
1839
  size: 12,
1796
1840
  align: "center"
1797
1841
  }, {
@@ -1800,7 +1844,7 @@ const be = (e) => {
1800
1844
  overlayClassName: `${n}-overlay ${o.value}`,
1801
1845
  trigger: "click",
1802
1846
  placement: "bottomRight",
1803
- content: i(Ga, {
1847
+ content: i(Xl, {
1804
1848
  hashId: o.value,
1805
1849
  checkable: e.checkable ?? !0,
1806
1850
  draggable: e.draggable ?? !0,
@@ -1814,7 +1858,7 @@ const be = (e) => {
1814
1858
  })]
1815
1859
  }));
1816
1860
  }
1817
- }), vt = /* @__PURE__ */ ae({
1861
+ }), vt = /* @__PURE__ */ le({
1818
1862
  setup() {
1819
1863
  const {
1820
1864
  isFullscreen: e
@@ -1822,20 +1866,20 @@ const be = (e) => {
1822
1866
  return () => e.value ? i(ee, {
1823
1867
  title: "退出全屏"
1824
1868
  }, {
1825
- default: () => [i(ga, null, null)]
1869
+ default: () => [i(gl, null, null)]
1826
1870
  }) : i(ee, {
1827
1871
  title: "全屏"
1828
1872
  }, {
1829
- default: () => [i(ya, null, null)]
1873
+ default: () => [i(yl, null, null)]
1830
1874
  });
1831
1875
  }
1832
- }), Ua = () => {
1876
+ }), Ql = () => {
1833
1877
  const {
1834
1878
  action: e,
1835
1879
  tableSize: n
1836
1880
  } = ie();
1837
- return i(oa, {
1838
- overlay: i(Re, {
1881
+ return i(ol, {
1882
+ overlay: i($e, {
1839
1883
  selectedKeys: [n.value],
1840
1884
  onClick: ({
1841
1885
  key: t
@@ -1847,18 +1891,18 @@ const be = (e) => {
1847
1891
  width: 80
1848
1892
  }
1849
1893
  }, {
1850
- default: () => [i(Re.Item, {
1894
+ default: () => [i($e.Item, {
1851
1895
  key: "large"
1852
1896
  }, {
1853
- default: () => [pe("默认")]
1854
- }), i(Re.Item, {
1897
+ default: () => [be("默认")]
1898
+ }), i($e.Item, {
1855
1899
  key: "middle"
1856
1900
  }, {
1857
- default: () => [pe("中等")]
1858
- }), i(Re.Item, {
1901
+ default: () => [be("中等")]
1902
+ }), i($e.Item, {
1859
1903
  key: "small"
1860
1904
  }, {
1861
- default: () => [pe("紧凑")]
1905
+ default: () => [be("紧凑")]
1862
1906
  })]
1863
1907
  }),
1864
1908
  trigger: ["click"]
@@ -1866,10 +1910,10 @@ const be = (e) => {
1866
1910
  default: () => [i(ee, {
1867
1911
  title: "表格密度"
1868
1912
  }, {
1869
- default: () => [i(pa, null, null)]
1913
+ default: () => [i(pl, null, null)]
1870
1914
  })]
1871
1915
  });
1872
- }, Xa = (e) => ({
1916
+ }, Zl = (e) => ({
1873
1917
  [`${e.componentCls}`]: {
1874
1918
  lineHeight: 1,
1875
1919
  "&-container": {
@@ -1911,36 +1955,36 @@ const be = (e) => {
1911
1955
  }
1912
1956
  }
1913
1957
  });
1914
- function lt(e) {
1915
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Ce(e);
1958
+ function at(e) {
1959
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Se(e);
1916
1960
  }
1917
1961
  const {
1918
- useBreakpoint: Ja
1962
+ useBreakpoint: ea
1919
1963
  } = He;
1920
- function Qa(e) {
1921
- if (Ce(e))
1964
+ function ta(e) {
1965
+ if (Se(e))
1922
1966
  return e;
1923
1967
  if (e) {
1924
1968
  const n = e, {
1925
1969
  icon: t,
1926
1970
  tooltip: o,
1927
1971
  onClick: u,
1928
- key: l
1972
+ key: a
1929
1973
  } = n;
1930
1974
  return t && o ? i(ee, {
1931
1975
  title: o
1932
1976
  }, {
1933
1977
  default: () => [i("span", {
1934
- key: l,
1978
+ key: a,
1935
1979
  onClick: () => {
1936
- u && u(l);
1980
+ u && u(a);
1937
1981
  }
1938
1982
  }, [t])]
1939
1983
  }) : t;
1940
1984
  }
1941
1985
  return null;
1942
1986
  }
1943
- const mt = /* @__PURE__ */ ae({
1987
+ const mt = /* @__PURE__ */ le({
1944
1988
  props: {
1945
1989
  actions: ce.toolBarBtn,
1946
1990
  settings: [Array],
@@ -1954,9 +1998,9 @@ const mt = /* @__PURE__ */ ae({
1954
1998
  const {
1955
1999
  wrapSSR: n,
1956
2000
  hashId: t
1957
- } = Be("ListToolBar", [Xa], e.prefixCls), o = Ja(), {
2001
+ } = Be("ListToolBar", [Zl], e.prefixCls), o = ea(), {
1958
2002
  isMobile: u
1959
- } = ie(), l = S(() => {
2003
+ } = ie(), a = S(() => {
1960
2004
  var c;
1961
2005
  return !!(e.titleTip || e.headerTitle || (c = e.actions) != null && c.length);
1962
2006
  }), s = S(() => {
@@ -1967,15 +2011,15 @@ const mt = /* @__PURE__ */ ae({
1967
2011
  let c;
1968
2012
  return Array.isArray(e.actions) ? ((b = e.actions) == null ? void 0 : b.length) < 1 ? null : i(oe, {
1969
2013
  align: "center"
1970
- }, lt(c = e.actions.map((d, f) => Ce(d) ? Vt(d, {
1971
- key: f,
1972
- ...d == null ? void 0 : d.props
2014
+ }, at(c = e.actions.map((f, h) => Se(f) ? Vt(f, {
2015
+ key: h,
2016
+ ...f == null ? void 0 : f.props
1973
2017
  }) : i("template", {
1974
- key: f
1975
- }, [d]))) ? c : {
2018
+ key: h
2019
+ }, [f]))) ? c : {
1976
2020
  default: () => [c]
1977
2021
  }) : e.actions;
1978
- }), m = Fe(() => !l.value && s.value ? i("div", {
2022
+ }), m = Fe(() => !a.value && s.value ? i("div", {
1979
2023
  class: `${e.prefixCls}-left ${t.value}`
1980
2024
  }, null) : r.value ? i(oe, {
1981
2025
  class: `${e.prefixCls}-left ${t.value}`
@@ -1985,7 +2029,7 @@ const mt = /* @__PURE__ */ ae({
1985
2029
  }, [e.headerTitle, e.titleTip && i(ee, {
1986
2030
  title: e.titleTipText
1987
2031
  }, {
1988
- default: () => [te(e.titleTip) && e.titleTip ? i(ba, null, null) : e.titleTip]
2032
+ default: () => [te(e.titleTip) && e.titleTip ? i(bl, null, null) : e.titleTip]
1989
2033
  })]), w.value && i("div", {
1990
2034
  class: `${e.prefixCls}-actions ${t.value}`
1991
2035
  }, [w.value])]
@@ -1995,7 +2039,7 @@ const mt = /* @__PURE__ */ ae({
1995
2039
  default: () => [w.value && i("div", {
1996
2040
  class: `${e.prefixCls}-actions`
1997
2041
  }, [w.value])]
1998
- }), [() => l.value, () => s.value, () => r.value, () => e.prefixCls, () => e.headerTitle, () => e.titleTipText, () => e.titleTip]), g = Fe(() => {
2042
+ }), [() => a.value, () => s.value, () => r.value, () => e.prefixCls, () => e.headerTitle, () => e.titleTipText, () => e.titleTip]), g = Fe(() => {
1999
2043
  let c;
2000
2044
  return s.value ? i(oe, {
2001
2045
  size: 16,
@@ -2009,10 +2053,10 @@ const mt = /* @__PURE__ */ ae({
2009
2053
  size: 12,
2010
2054
  align: "center",
2011
2055
  class: `${e.prefixCls}-setting-items`
2012
- }, lt(c = e.settings.map((d, f) => {
2013
- const x = Qa(d);
2056
+ }, at(c = e.settings.map((f, h) => {
2057
+ const x = ta(f);
2014
2058
  return i("div", {
2015
- key: f,
2059
+ key: h,
2016
2060
  class: `${e.prefixCls}-setting-item`
2017
2061
  }, [x]);
2018
2062
  })) ? c : {
@@ -2021,7 +2065,7 @@ const mt = /* @__PURE__ */ ae({
2021
2065
  }
2022
2066
  }) : null;
2023
2067
  }, [() => o.value, () => s.value, () => e.prefixCls, () => r.value, () => w.value, () => e.settings]), y = Fe(() => {
2024
- if (!s.value && !l.value)
2068
+ if (!s.value && !a.value)
2025
2069
  return null;
2026
2070
  const c = {
2027
2071
  [`${t.value}`]: !0,
@@ -2031,22 +2075,22 @@ const mt = /* @__PURE__ */ ae({
2031
2075
  return i("div", {
2032
2076
  class: c
2033
2077
  }, [m.value, g.value]);
2034
- }, [() => u.value, () => l.value, () => s.value, () => m.value, () => e.prefixCls, () => g.value]);
2078
+ }, [() => u.value, () => a.value, () => s.value, () => m.value, () => e.prefixCls, () => g.value]);
2035
2079
  return () => n(i("div", {
2036
2080
  class: `${e.prefixCls} ${t.value}`
2037
2081
  }, [y.value]));
2038
2082
  }
2039
2083
  });
2040
2084
  mt.inheritAttrs = !1;
2041
- function Za() {
2085
+ function la() {
2042
2086
  return {
2043
2087
  reload: {
2044
2088
  text: "刷新",
2045
- icon: i(Ca, null, null)
2089
+ icon: i(Cl, null, null)
2046
2090
  },
2047
2091
  density: {
2048
2092
  text: "表格密度",
2049
- icon: i(Ua, null, null)
2093
+ icon: i(Ql, null, null)
2050
2094
  },
2051
2095
  setting: {
2052
2096
  text: "列设置",
@@ -2058,7 +2102,7 @@ function Za() {
2058
2102
  }
2059
2103
  };
2060
2104
  }
2061
- function el(e, n) {
2105
+ function aa(e, n) {
2062
2106
  return Object.keys(e).filter((t) => t).map((t) => {
2063
2107
  const o = e[t];
2064
2108
  if (!o)
@@ -2066,7 +2110,7 @@ function el(e, n) {
2066
2110
  let u = o === !0 ? n[t] : () => o == null ? void 0 : o();
2067
2111
  if (typeof u != "function" && (u = () => {
2068
2112
  }), t === "setting")
2069
- return i(qa, U(e[t], {
2113
+ return i(Jl, U(e[t], {
2070
2114
  key: t
2071
2115
  }), null);
2072
2116
  if (t === "fullScreen")
@@ -2074,18 +2118,18 @@ function el(e, n) {
2074
2118
  key: t,
2075
2119
  onClick: u
2076
2120
  }, [i(vt, null, null)]);
2077
- const l = Za()[t];
2078
- return l ? i("span", {
2121
+ const a = la()[t];
2122
+ return a ? i("span", {
2079
2123
  key: t,
2080
2124
  onClick: u
2081
2125
  }, [i(ee, {
2082
- title: l.text
2126
+ title: a.text
2083
2127
  }, {
2084
- default: () => [l.icon]
2128
+ default: () => [a.icon]
2085
2129
  })]) : null;
2086
2130
  }).filter((t) => t);
2087
2131
  }
2088
- const tl = {
2132
+ const na = {
2089
2133
  options: [Boolean, Object, Array],
2090
2134
  titleTip: [Function, Boolean, Object, String],
2091
2135
  settingExtra: [Function, Boolean, Object, Array],
@@ -2093,8 +2137,8 @@ const tl = {
2093
2137
  titleTipText: [String],
2094
2138
  toolBarBtn: [Function, Boolean, Object, Array],
2095
2139
  headerTitle: [Function, Boolean, Object, Array, String]
2096
- }, al = /* @__PURE__ */ ae({
2097
- props: tl,
2140
+ }, oa = /* @__PURE__ */ le({
2141
+ props: na,
2098
2142
  inheritAttrs: !1,
2099
2143
  setup(e) {
2100
2144
  const n = Ve({
@@ -2112,11 +2156,11 @@ const tl = {
2112
2156
  };
2113
2157
  if (e.options === !1 || ((s = Object.keys(e.options)) == null ? void 0 : s.length) === 0)
2114
2158
  return [];
2115
- const l = {
2159
+ const a = {
2116
2160
  ...u,
2117
2161
  ...e.options
2118
2162
  };
2119
- return l.setting !== !1 && e.settingExtra && (l.setting = {}, l.setting.extra = e.settingExtra), el(l, {
2163
+ return a.setting !== !1 && e.settingExtra && (a.setting = {}, a.setting.extra = e.settingExtra), aa(a, {
2120
2164
  ...u
2121
2165
  });
2122
2166
  }, [() => t, () => e.options]);
@@ -2127,13 +2171,13 @@ const tl = {
2127
2171
  optionsExtra: e.optionsExtra,
2128
2172
  headerTitle: e.headerTitle,
2129
2173
  actions: u,
2130
- settings: v(o),
2174
+ settings: d(o),
2131
2175
  titleTip: e.titleTip,
2132
2176
  titleTipText: e.titleTipText
2133
2177
  }, null);
2134
2178
  };
2135
2179
  }
2136
- }), ll = [
2180
+ }), ua = [
2137
2181
  "search",
2138
2182
  "headerTitle",
2139
2183
  "toolBarBtn",
@@ -2142,42 +2186,7 @@ const tl = {
2142
2186
  "optionsExtra",
2143
2187
  "pageItemRender",
2144
2188
  "customize"
2145
- ];
2146
- function nl(e) {
2147
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Ce(e);
2148
- }
2149
- function ol(e, n, t, o) {
2150
- if (!n)
2151
- return e;
2152
- let u = e;
2153
- if (ue(n)) {
2154
- const l = n.node === "a" ? "span" : n.node;
2155
- return i(l, U((n == null ? void 0 : n.attr) || {}, {
2156
- class: [n.class, n.node === "a" ? `${t}-a` : ""],
2157
- onClick: n.click
2158
- }), nl(e) ? e : {
2159
- default: () => [e]
2160
- });
2161
- }
2162
- switch (n) {
2163
- case "link":
2164
- u = i("span", {
2165
- class: [`${t}-a`, o]
2166
- }, [e]);
2167
- break;
2168
- case "time":
2169
- u = _(e).format("HH:mm:ss");
2170
- break;
2171
- case "dateMonth":
2172
- u = `${_(e).month() + 1}月`;
2173
- break;
2174
- case "dateTime":
2175
- u = _(e).format("YYYY-MM-DD HH:mm:ss");
2176
- break;
2177
- }
2178
- return u;
2179
- }
2180
- const je = {
2189
+ ], je = {
2181
2190
  "&::-webkit-scrollbar": {
2182
2191
  width: 4,
2183
2192
  height: 4
@@ -2190,7 +2199,7 @@ const je = {
2190
2199
  backgroundColor: "transparent",
2191
2200
  borderRadius: 2
2192
2201
  }
2193
- }, ul = (e) => ({
2202
+ }, ia = (e) => ({
2194
2203
  [e.componentCls]: {
2195
2204
  "&-a": {
2196
2205
  cursor: "pointer",
@@ -2372,14 +2381,14 @@ const je = {
2372
2381
  [`${e.antCls}-table-content`]: je
2373
2382
  }
2374
2383
  }
2375
- }), il = ct.PRESENTED_IMAGE_SIMPLE, {
2376
- useBreakpoint: sl
2377
- } = He, rl = {
2384
+ }), sa = ct.PRESENTED_IMAGE_SIMPLE, {
2385
+ useBreakpoint: ra
2386
+ } = He, ca = {
2378
2387
  reload: !0,
2379
2388
  density: !0,
2380
2389
  setting: !0,
2381
2390
  fullScreen: !0
2382
- }, ke = /* @__PURE__ */ ae({
2391
+ }, ke = /* @__PURE__ */ le({
2383
2392
  name: "GProTable",
2384
2393
  inheritAttrs: !1,
2385
2394
  props: ce,
@@ -2390,28 +2399,28 @@ const je = {
2390
2399
  attrs: o,
2391
2400
  expose: u
2392
2401
  }) {
2393
- const l = Ve({
2402
+ const a = Ve({
2394
2403
  suffixCls: "table",
2395
2404
  isPor: !0
2396
2405
  }), {
2397
2406
  wrapSSR: s,
2398
2407
  hashId: r
2399
- } = Be("ProBaseTable", [ul], l), w = sl(), {
2408
+ } = Be("ProBaseTable", [ia], a), w = ra(), {
2400
2409
  width: m
2401
2410
  } = Qt(), {
2402
2411
  emptyText: g,
2403
2412
  indicator: y
2404
- } = ra(), c = P(), b = P(), d = P(e.waitRequest);
2405
- he(() => d.value = e.waitRequest);
2413
+ } = rl(), c = O(), b = O(), f = O(e.waitRequest);
2414
+ he(() => f.value = e.waitRequest);
2406
2415
  const {
2407
- toggle: f,
2416
+ toggle: h,
2408
2417
  isFullscreen: x
2409
2418
  } = st(c), $ = S(() => ({
2410
2419
  ...e
2411
2420
  })), T = S(() => !w.value.xl), B = S(() => {
2412
2421
  var C, R;
2413
- return e.virtualScroll && Sa(!((C = e.scroll) != null && C.y), "参数scroll的Y值不能为空!"), !!((R = e.scroll) != null && R.y && e.virtualScroll);
2414
- }), D = S(() => {
2422
+ return e.virtualScroll && Sl(!((C = e.scroll) != null && C.y), "参数scroll的Y值不能为空!"), !!((R = e.scroll) != null && R.y && e.virtualScroll);
2423
+ }), E = S(() => {
2415
2424
  const C = (e.columns || []).filter((R) => R.key || R.dataIndex).map((R) => ({
2416
2425
  ...R,
2417
2426
  key: R.key || R.dataIndex,
@@ -2423,128 +2432,128 @@ const je = {
2423
2432
  showIndex: e.showIndex || !1
2424
2433
  });
2425
2434
  }), {
2426
- loadingStatus: A,
2427
- setLoading: N
2428
- } = wa({
2435
+ loadingStatus: Y,
2436
+ setLoading: j
2437
+ } = $l({
2429
2438
  emit: n,
2430
2439
  loading: Z(e, "loading")
2431
2440
  }), {
2432
- sizeRef: Y,
2441
+ sizeRef: L,
2433
2442
  setTableSize: G
2434
- } = Ta({
2443
+ } = Fl({
2435
2444
  emit: n,
2436
2445
  size: Z(e, "size")
2437
2446
  }), {
2438
- getPaginationInfo: E,
2447
+ getPaginationInfo: D,
2439
2448
  setPagination: H
2440
- } = Ra({
2449
+ } = Il({
2441
2450
  slots: t,
2442
2451
  props: $,
2443
2452
  pagination: Z(e, "pagination")
2444
- }), a = Na(e), {
2453
+ }), l = zl(e), {
2445
2454
  getScrollRef: p,
2446
2455
  breakpoint: I
2447
- } = ja({
2448
- ...a,
2456
+ } = Kl({
2457
+ ...l,
2449
2458
  innerWidth: m,
2450
- columns: D,
2459
+ columns: E,
2451
2460
  screens: w
2452
- }), F = Ea(e), {
2453
- getProColumns: O,
2454
- cacheProColumns: h,
2461
+ }), F = jl(e), {
2462
+ getProColumns: P,
2463
+ cacheProColumns: v,
2455
2464
  setColumns: M,
2456
- changeColumns: L,
2457
- resizeColumnWidth: K
2458
- } = Ma({
2465
+ changeColumns: A,
2466
+ resizeColumnWidth: z
2467
+ } = kl({
2459
2468
  ...F,
2460
2469
  breakpoint: I,
2461
2470
  scroll: p,
2462
- columns: D
2471
+ columns: E
2463
2472
  }), {
2464
2473
  columnsMap: ve,
2465
- operationType: Pe,
2466
- setColumnsMap: Se,
2467
- sortKeyColumns: xe,
2468
- cacheColumnsMap: we,
2469
- setSortKeyColumns: le
2470
- } = Da({
2471
- columns: h,
2474
+ operationType: Oe,
2475
+ setColumnsMap: xe,
2476
+ sortKeyColumns: we,
2477
+ cacheColumnsMap: Te,
2478
+ setSortKeyColumns: ae
2479
+ } = Nl({
2480
+ columns: v,
2472
2481
  columnsState: Z(e, "columnsState"),
2473
- changeColumns: L
2482
+ changeColumns: A
2474
2483
  }), {
2475
- formDataRef: Oe,
2484
+ formDataRef: Pe,
2476
2485
  formParamsRef: fe,
2477
2486
  defaultParamsRef: V,
2478
2487
  setFormParams: ne
2479
- } = Oa({
2488
+ } = Ml({
2480
2489
  search: Z(e, "search"),
2481
2490
  searchMap: Z(e, "searchMap"),
2482
2491
  params: Z(e, "params"),
2483
- columns: D,
2492
+ columns: E,
2484
2493
  setPagination: H
2485
2494
  }), {
2486
- selectedKey: j,
2495
+ selectedKey: k,
2487
2496
  selectedItem: se,
2488
2497
  changeRowKey: q,
2489
2498
  selectRowKey: gt,
2490
2499
  selectAllRowKey: yt,
2491
2500
  syncSelectedRows: pt,
2492
2501
  removeRowKeys: bt
2493
- } = $a(Z(e, "rowKey"), Z(e, "rowSelection")), Ct = Ia(e), {
2502
+ } = Bl(Z(e, "rowKey"), Z(e, "rowSelection")), Ct = Pl(e), {
2494
2503
  reload: De,
2495
2504
  reSetDataList: St,
2496
2505
  changeDataValue: xt,
2497
2506
  isTreeDataRef: We,
2498
2507
  getDataSourceRef: me,
2499
2508
  handleTableChange: _e
2500
- } = Ba({
2509
+ } = Dl({
2501
2510
  ...Ct,
2502
- waitRequest: d
2511
+ waitRequest: f
2503
2512
  }, {
2504
- loadingStatus: A,
2505
- getPaginationInfo: E,
2513
+ loadingStatus: Y,
2514
+ getPaginationInfo: D,
2506
2515
  setPagination: H,
2507
2516
  removeRowKeys: bt,
2508
2517
  syncSelectedRows: pt,
2509
- setLoading: N,
2518
+ setLoading: j,
2510
2519
  setColumns: M,
2511
- columns: O,
2520
+ columns: P,
2512
2521
  formParamsRef: fe,
2513
2522
  onBeforeSearchSubmit: e.onBeforeSearchSubmit,
2514
2523
  hasCustomRender: S(() => !!ze(t, e, "customRender"))
2515
2524
  }, n), wt = S(() => e.options ? {
2516
- ...rl,
2517
- ...J(ue(e.options) ? e.options : {})
2525
+ ...ca,
2526
+ ...X(ue(e.options) ? e.options : {})
2518
2527
  } : !1), Ge = S(() => {
2519
2528
  const C = ue(e.loading) ? ye(e.loading, "spinning") : {};
2520
2529
  return !C.indicator && (y != null && y.value) && (C.indicator = y == null ? void 0 : y.value), ye({
2521
2530
  ...(ye(o), ["class", "style", "id"]),
2522
2531
  ...e,
2523
2532
  virtualScroll: B.value,
2524
- size: v(Y),
2525
- scroll: v(p),
2533
+ size: d(L),
2534
+ scroll: d(p),
2526
2535
  loading: {
2527
- spinning: e.showLoading ? !!v(A) : !1,
2536
+ spinning: e.showLoading ? !!d(Y) : !1,
2528
2537
  ...C
2529
2538
  },
2530
- columns: Ee(v(O).filter((R) => R.show || R.show === void 0)),
2531
- pagination: Ee(v(E)),
2532
- dataSource: v(me)
2539
+ columns: Ee(d(P).filter((R) => R.show || R.show === void 0)),
2540
+ pagination: Ee(d(D)),
2541
+ dataSource: d(me)
2533
2542
  }, ["class", "onChange", "onExpand", "onExpandedRowsChange"]);
2534
2543
  }), Tt = S(() => [{
2535
2544
  [`${r.value}`]: !0,
2536
- [`${l}`]: !0,
2545
+ [`${a}`]: !0,
2537
2546
  [`${o.class}`]: o.class,
2538
- [`${l}-no-scroll`]: !Object.keys(v(p) || {}).length,
2539
- [`${l}-table-tree`]: We.value,
2540
- [`${l}-full-screen`]: x.value
2547
+ [`${a}-no-scroll`]: !Object.keys(d(p) || {}).length,
2548
+ [`${a}-table-tree`]: We.value,
2549
+ [`${a}-full-screen`]: x.value
2541
2550
  }]), qe = S(() => {
2542
2551
  var Q;
2543
2552
  let C;
2544
- const R = v($).direction === "rtl" ? "bottomLeft" : "right", k = (Q = v(E)) == null ? void 0 : Q.position;
2545
- if (k !== null && Array.isArray(k)) {
2546
- const z = k.find((re) => re.indexOf("top") !== -1), W = k.find((re) => re.indexOf("bottom") !== -1), Te = k.every((re) => `${re}` == "none");
2547
- !z && !W && !Te && (C = R), z && (C = z.toLowerCase().replace("top", "")), W && (C = W.toLowerCase().replace("bottom", ""));
2553
+ const R = d($).direction === "rtl" ? "bottomLeft" : "right", N = (Q = d(D)) == null ? void 0 : Q.position;
2554
+ if (N !== null && Array.isArray(N)) {
2555
+ const K = N.find((re) => re.indexOf("top") !== -1), W = N.find((re) => re.indexOf("bottom") !== -1), Re = N.every((re) => `${re}` == "none");
2556
+ !K && !W && !Re && (C = R), K && (C = K.toLowerCase().replace("top", "")), W && (C = W.toLowerCase().replace("bottom", ""));
2548
2557
  } else
2549
2558
  C = R;
2550
2559
  return C;
@@ -2556,26 +2565,26 @@ const je = {
2556
2565
  }), await De()) : ne(C);
2557
2566
  }, Rt = async (C, R) => {
2558
2567
  R ? (n("reset", C), e.request && await Ue(C)) : e.request ? (n("submit", C), await Ue(C)) : n("submit", C);
2559
- }, Xe = (C, R, k, Q) => {
2560
- H(it(C, ["current", "pageSize"])), _e(C, R, k, Q);
2568
+ }, Xe = (C, R, N, Q) => {
2569
+ H(it(C, ["current", "pageSize"])), _e(C, R, N, Q);
2561
2570
  }, $t = (C, R) => {
2562
- var k;
2571
+ var N;
2563
2572
  H({
2564
2573
  current: C,
2565
2574
  pageSize: R
2566
2575
  }), _e({
2567
2576
  current: C,
2568
2577
  pageSize: R,
2569
- total: E.value && ((k = E.value) == null ? void 0 : k.total) || 0
2578
+ total: D.value && ((N = D.value) == null ? void 0 : N.total) || 0
2570
2579
  }, {}, {});
2571
2580
  }, Ft = (C) => {
2572
2581
  n("expandedRowsChange", C);
2573
2582
  }, It = (C, R) => {
2574
2583
  n("expand", C, R);
2575
- }, Bt = (C, R) => K(C, R), Pt = (C, R, k) => {
2576
- const Q = k.align === "center" ? "top" : k.align === "left" || !k.align ? "topLeft" : "topRight";
2577
- return R && k.copyable ? i(sa.Paragraph, {
2578
- class: `${l}-copyable`,
2584
+ }, Bt = (C, R) => z(C, R), Ot = (C, R, N) => {
2585
+ const Q = N.align === "center" ? "top" : N.align === "left" || !N.align ? "topLeft" : "topRight";
2586
+ return R && N.copyable ? i(sl.Paragraph, {
2587
+ class: `${a}-copyable`,
2579
2588
  style: {
2580
2589
  margin: "0",
2581
2590
  width: "100%",
@@ -2588,146 +2597,151 @@ const je = {
2588
2597
  placement: Q
2589
2598
  }, {
2590
2599
  default: () => [i("div", {
2591
- class: `${l}-ellipsis`
2600
+ class: `${a}-ellipsis`
2592
2601
  }, [C])]
2593
2602
  })]
2594
- }) : R && !k.copyable ? i(ee, {
2603
+ }) : R && !N.copyable ? i(ee, {
2595
2604
  title: C,
2596
2605
  placement: Q
2597
2606
  }, {
2598
2607
  default: () => [We.value ? C : i("div", {
2599
- class: `${l}-ellipsis`
2608
+ class: `${a}-ellipsis`
2600
2609
  }, [C])]
2601
2610
  }) : C;
2602
- }, Ot = () => {
2603
- var R;
2611
+ }, Pt = () => {
2612
+ var N;
2604
2613
  const C = ze(t, e, "customRender");
2605
- return C ? (R = me.value) != null && R.length ? C(me.value) : (g == null ? void 0 : g.value) || i(ct, {
2606
- image: il
2607
- }, null) : i(Ie, null, null);
2608
- }, Dt = (C, R, k) => i(al, {
2614
+ if (!C)
2615
+ return i(Ie, null, null);
2616
+ if (!((N = me.value) != null && N.length))
2617
+ return (g == null ? void 0 : g.value) || i(ct, {
2618
+ image: sa
2619
+ }, null);
2620
+ const R = X(d(me));
2621
+ return C(Rl(R, D.value), R);
2622
+ }, Dt = (C, R, N) => i(oa, {
2609
2623
  headerTitle: C,
2610
- titleTip: k,
2624
+ titleTip: N,
2611
2625
  titleTipText: e.titleTipText,
2612
- options: v(wt),
2626
+ options: d(wt),
2613
2627
  settingExtra: ge(t, e, "settingExtra"),
2614
2628
  optionsExtra: ge(t, e, "optionsExtra"),
2615
2629
  toolBarBtn: R
2616
2630
  }, null);
2617
- za({
2618
- tableSize: Y,
2619
- columns: O,
2620
- cacheColumns: D,
2631
+ Yl({
2632
+ tableSize: L,
2633
+ columns: P,
2634
+ cacheColumns: E,
2621
2635
  isMobile: T,
2622
2636
  action: {
2623
2637
  setTableSize: G,
2624
2638
  reload: (C) => De(C),
2625
- toggle: f
2639
+ toggle: h
2626
2640
  },
2627
2641
  settingsAction: {
2628
2642
  autoScroll: Z(e, "autoScroll"),
2629
2643
  columnsMap: ve,
2630
- operationType: Pe,
2631
- setColumnsMap: Se,
2632
- sortKeyColumns: xe,
2633
- cacheColumnsMap: we,
2634
- setSortKeyColumns: le
2644
+ operationType: Oe,
2645
+ setColumnsMap: xe,
2646
+ sortKeyColumns: we,
2647
+ cacheColumnsMap: Te,
2648
+ setSortKeyColumns: ae
2635
2649
  },
2636
2650
  setPagination: H,
2637
- changeColumns: L,
2651
+ changeColumns: A,
2638
2652
  slots: t
2639
2653
  }), u({
2640
- loading: A,
2654
+ loading: Y,
2641
2655
  formRef: () => ({
2642
2656
  getFormState: () => {
2643
2657
  var C;
2644
2658
  return ((C = b.value) == null ? void 0 : C.getFormState()) || {};
2645
2659
  },
2646
- getTableFormState: () => v(fe),
2660
+ getTableFormState: () => d(fe),
2647
2661
  restForm: (C) => {
2648
2662
  var R;
2649
- d.value = !0, C && (C == null || C()), (R = b.value) == null || R.resetForm(!1), d.value = !1;
2663
+ f.value = !0, C && (C == null || C()), (R = b.value) == null || R.resetForm(!1), f.value = !1;
2650
2664
  }
2651
2665
  }),
2652
2666
  actionRef: () => ({
2653
2667
  dataSource: me.value,
2654
- pageParams: E.value,
2655
- selectedKey: j.value,
2668
+ pageParams: D.value,
2669
+ selectedKey: k.value,
2656
2670
  selectedItem: se.value,
2657
2671
  reload: De,
2658
- getLoadingStatus: () => v(A),
2672
+ getLoadingStatus: () => d(Y),
2659
2673
  reloadAndRest: async (C) => {
2660
- d.value = !0, H({
2674
+ f.value = !0, H({
2661
2675
  current: 1,
2662
2676
  pageSize: 10
2663
- }), C && (C == null || C()), d.value = !1;
2677
+ }), C && (C == null || C()), f.value = !1;
2664
2678
  },
2665
2679
  reSetDataList: St,
2666
2680
  setPageAndReload: Xe,
2667
2681
  setPagination: H,
2668
2682
  changeDataValue: xt,
2669
- loadingOperation: N
2683
+ loadingOperation: j
2670
2684
  })
2671
2685
  });
2672
2686
  const Et = S(() => (o == null ? void 0 : o.style) || {});
2673
2687
  return () => {
2674
2688
  var Q;
2675
- const C = ge(t, e, "headerTitle"), R = ge(t, e, "titleTip"), k = ge(t, e, "toolBarBtn");
2689
+ const C = ge(t, e, "headerTitle"), R = ge(t, e, "titleTip"), N = ge(t, e, "toolBarBtn");
2676
2690
  return s(i("div", {
2677
2691
  ref: c,
2678
2692
  class: Tt.value,
2679
2693
  style: Et.value
2680
2694
  }, [i("div", {
2681
- class: [`${l}-content`, r.value]
2682
- }, [(!!Oe.value.length || !!((Q = t.search) != null && Q.call(t))) && i(ht, {
2695
+ class: [`${a}-content`, r.value]
2696
+ }, [(!!Pe.value.length || !!((Q = t.search) != null && Q.call(t))) && i(ht, {
2683
2697
  ref: b,
2684
2698
  search: e.search,
2685
2699
  modal: e.modalScroll,
2686
- searchMap: Oe.value,
2687
- prefixCls: l,
2688
- loading: !!v(A),
2700
+ searchMap: Pe.value,
2701
+ prefixCls: a,
2702
+ loading: !!d(Y),
2689
2703
  onSearch: Rt,
2690
2704
  defaultParams: V
2691
2705
  }, {
2692
2706
  default: t.search ? () => {
2693
- var z;
2694
- return (z = t.search) == null ? void 0 : z.call(t);
2707
+ var K;
2708
+ return (K = t.search) == null ? void 0 : K.call(t);
2695
2709
  } : null
2696
- }), !B.value && Dt(C, k, R), e.customRender ?? t.customRender ? i(Ye, v(Ge).loading, {
2710
+ }), !B.value && Dt(C, N, R), e.customRender ?? t.customRender ? i(Ye, d(Ge).loading, {
2697
2711
  default: () => {
2698
- var z;
2712
+ var K;
2699
2713
  return [i("div", {
2700
- class: `${l}-wrapper ${r.value}`
2701
- }, [Ot(), e.pagination !== !1 && ((z = me.value) == null ? void 0 : z.length) > 0 && i(ua, U({
2714
+ class: `${a}-wrapper ${r.value}`
2715
+ }, [Pt(), e.pagination !== !1 && ((K = me.value) == null ? void 0 : K.length) > 0 && i(ul, U({
2702
2716
  class: {
2703
- [`${l}-pagination ${r.value}`]: !0,
2704
- [`${l}-pagination-${qe.value} ${r.value}`]: !!qe.value
2717
+ [`${a}-pagination ${r.value}`]: !0,
2718
+ [`${a}-pagination-${qe.value} ${r.value}`]: !!qe.value
2705
2719
  }
2706
- }, Ee(v(E)), {
2720
+ }, Ee(d(D)), {
2707
2721
  onChange: $t
2708
2722
  }), null)])];
2709
2723
  }
2710
- }) : i(ia, U(Ge.value, {
2724
+ }) : i(il, U(Ge.value, {
2711
2725
  style: e.tableStyle || void 0,
2712
2726
  class: e.tableClassName,
2713
- rowKey: (z) => z[e.rowKey || "sortIndex"],
2727
+ rowKey: (K) => K[e.rowKey || "sortIndex"],
2714
2728
  transformCellText: ({
2715
- text: z,
2729
+ text: K,
2716
2730
  column: W
2717
2731
  }) => {
2718
2732
  var Qe, Ze;
2719
- const Te = Ke(z) ? z == null ? void 0 : z[0] : z;
2720
- if (Ce(Te))
2721
- return z;
2733
+ const Re = Ke(K) ? K == null ? void 0 : K[0] : K;
2734
+ if (Se(Re))
2735
+ return K;
2722
2736
  const {
2723
2737
  value: re,
2724
2738
  success: Mt
2725
- } = Jt(Te, (W == null ? void 0 : W.columnEmptyText) || (e == null ? void 0 : e.columnEmptyText) || ""), Je = ol(re, ((Ze = (Qe = e.columns) == null ? void 0 : Qe.find((Nt) => Nt.key === W.key)) == null ? void 0 : Ze.valueType) || W.valueType, l, r.value);
2726
- return W != null && W.ellipsis ? Pt(Je, Mt, W) : Je;
2739
+ } = Jt(Re, (W == null ? void 0 : W.columnEmptyText) || (e == null ? void 0 : e.columnEmptyText) || ""), Je = Tl(re, ((Ze = (Qe = e.columns) == null ? void 0 : Qe.find((Nt) => Nt.key === W.key)) == null ? void 0 : Ze.valueType) || W.valueType, a, r.value);
2740
+ return W != null && W.ellipsis ? Ot(Je, Mt, W) : Je;
2727
2741
  },
2728
2742
  rowSelection: e.rowSelection ? {
2729
2743
  ...ye(e.rowSelection, ["onSelect", "onSelectAll", "onChange", "selectedRowKeys"]),
2730
- selectedRowKeys: j.value,
2744
+ selectedRowKeys: k.value,
2731
2745
  onSelect: gt,
2732
2746
  onSelectAll: yt,
2733
2747
  onChange: q
@@ -2738,7 +2752,7 @@ const je = {
2738
2752
  onResizeColumn: Bt
2739
2753
  }), {
2740
2754
  emptyText: g != null && g.value ? () => g == null ? void 0 : g.value : null,
2741
- ...ye(t, ll)
2755
+ ...ye(t, ua)
2742
2756
  })])]));
2743
2757
  };
2744
2758
  }
@@ -2748,5 +2762,5 @@ export {
2748
2762
  ke as GProTable,
2749
2763
  ke as default,
2750
2764
  ce as proTableProps,
2751
- Cl as useTable
2765
+ Sa as useTable
2752
2766
  };