@gx-design-vue/pro-table 0.2.0-beta.81 → 0.2.0-beta.82

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,20 +1,20 @@
1
- import { isObject as Q, isBoolean as se, getSlot as ht, isFunction as $e, arrayRepeat as Lt, runFunction as Vt, convertValueBoolean as xe, isArray as ye, getSortIndex as Ht, isDeepEqualReact as De, handleCurrentPage as Wt, genColumnKey as mt, compareArray as _t, isNumber as vt, isString as Gt, filterEmpty as gt, classNames as je, getPrefixCls as Ge, getRandomNumber as We, handleShowIndex as qt, hanndleEmptyField as Ut, getSlotVNode as Ce } from "@gx-design-vue/pro-utils";
2
- import { reactive as fe, isReactive as Xt, watch as W, computed as T, ref as D, toRaw as ve, createVNode as r, mergeProps as U, isVNode as be, watchEffect as Pe, unref as S, onUnmounted as Jt, onDeactivated as Qt, onMounted as Zt, defineComponent as oe, Fragment as Ne, nextTick as el, h as yt, cloneVNode as qe, createTextVNode as Fe, renderSlot as tl, toRef as te } from "vue";
1
+ import { isObject as Q, isBoolean as se, getSlot as ht, isFunction as Fe, arrayRepeat as Lt, runFunction as Vt, convertValueBoolean as xe, isArray as be, getSortIndex as Ht, isDeepEqualReact as De, handleCurrentPage as Wt, genColumnKey as mt, compareArray as _t, isNumber as vt, isString as Gt, filterEmpty as gt, classNames as je, getPrefixCls as Ge, getRandomNumber as We, handleShowIndex as qt, hanndleEmptyField as Ut, getSlotVNode as Se } from "@gx-design-vue/pro-utils";
2
+ import { reactive as fe, isReactive as Xt, watch as W, computed as T, ref as D, toRaw as ge, createVNode as r, mergeProps as X, isVNode as Ce, watchEffect as Ie, unref as x, onUnmounted as Jt, onDeactivated as Qt, onMounted as Zt, defineComponent as oe, Fragment as Ne, nextTick as el, h as yt, cloneVNode as qe, createTextVNode as Re, renderSlot as tl, toRef as ae } from "vue";
3
3
  import "ant-design-vue/es/_util/props-util";
4
4
  import { warning as ll } from "ant-design-vue/es/vc-util/warning";
5
5
  import { omit as Ee, cloneDeep as ie, pick as ot } from "lodash-es";
6
6
  import { tableProps as al } from "ant-design-vue/es/table/Table";
7
7
  import { UpOutlined as nl, DownOutlined as ul, SettingOutlined as bt, VerticalAlignTopOutlined as il, VerticalAlignMiddleOutlined as sl, VerticalAlignBottomOutlined as ol, FullscreenExitOutlined as rl, FullscreenOutlined as cl, ColumnHeightOutlined as dl, InfoCircleOutlined as fl, ReloadOutlined as hl, CopyOutlined as ml } from "@ant-design/icons-vue";
8
8
  import { useFullscreen as Ct, useWindowSize as vl } from "@vueuse/core";
9
- import { Form as rt, Grid as Ue, Space as de, Button as ct, Input as dt, TimePicker as gl, DatePicker as xt, TreeSelect as yl, Spin as _e, Select as bl, Popover as Cl, Checkbox as xl, Tooltip as le, Tree as Sl, Dropdown as wl, Menu as ke, Pagination as Tl, Table as pl, message as $l, Empty as Fl } from "ant-design-vue";
10
- import { useProAppContext as St } from "@gx-design-vue/pro-app";
9
+ import { Form as rt, Grid as Ue, Space as de, Button as ct, Input as dt, TimePicker as gl, DatePicker as St, TreeSelect as yl, Spin as _e, Select as bl, Popover as Cl, Checkbox as Sl, Tooltip as ne, Tree as xl, Dropdown as wl, Menu as ke, Pagination as Tl, Table as pl, message as $l, Empty as Fl } from "ant-design-vue";
10
+ import { useProAppContext as xt } from "@gx-design-vue/pro-app";
11
11
  import { useContext as Rl, useProStyle as ze } from "@gx-design-vue/pro-provider";
12
12
  import q from "dayjs";
13
13
  import { tryOnUnmounted as Pl, useMemo as Me } from "@gx-design-vue/pro-hooks";
14
14
  function Ia(e, a) {
15
15
  var C, p, v;
16
16
  function l() {
17
- return a != null && a.state && Q(a == null ? void 0 : a.state) ? ve(a == null ? void 0 : a.state) : {};
17
+ return a != null && a.state && Q(a == null ? void 0 : a.state) ? ge(a == null ? void 0 : a.state) : {};
18
18
  }
19
19
  const u = fe({
20
20
  // @ts-ignore
@@ -75,8 +75,8 @@ function Ia(e, a) {
75
75
  return (c = (n = o.value) == null ? void 0 : n.reloadAndReset) == null ? void 0 : c.call(n, s);
76
76
  },
77
77
  setPageAndReload: (s, n, c, g) => {
78
- var m, x;
79
- return (x = (m = o.value) == null ? void 0 : m.setPageAndReload) == null ? void 0 : x.call(m, s, n, c, g);
78
+ var m, S;
79
+ return (S = (m = o.value) == null ? void 0 : m.setPageAndReload) == null ? void 0 : S.call(m, s, n, c, g);
80
80
  },
81
81
  setPagination: (s) => {
82
82
  var n, c;
@@ -114,7 +114,7 @@ const Il = ["rowKey", "rowSelection", "columns", "pagination", "size", "bordered
114
114
  type: Object,
115
115
  default: void 0
116
116
  }
117
- }, ge = {
117
+ }, ye = {
118
118
  ...wt,
119
119
  rowSelection: {
120
120
  type: Object,
@@ -370,14 +370,14 @@ const Il = ["rowKey", "rowSelection", "columns", "pagination", "size", "bordered
370
370
  onColumnsStateChange: Function
371
371
  };
372
372
  function Bl(e) {
373
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !be(e);
373
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Ce(e);
374
374
  }
375
375
  function Ol(e, a, l, u) {
376
376
  if (!a) return e;
377
377
  let o = e;
378
378
  if (Q(a)) {
379
379
  const i = a.node === "a" ? "span" : a.node;
380
- return r(i, U((a == null ? void 0 : a.attr) || {}, {
380
+ return r(i, X((a == null ? void 0 : a.attr) || {}, {
381
381
  class: [a.class, a.node === "a" ? `${l}-a` : ""],
382
382
  onClick: a.click
383
383
  }), Bl(e) ? e : {
@@ -424,7 +424,7 @@ function jl({ emit: e, loading: a }) {
424
424
  }
425
425
  function Ml({ size: e, emit: a }) {
426
426
  const l = D("middle");
427
- Pe(() => {
427
+ Ie(() => {
428
428
  l.value = e.value;
429
429
  });
430
430
  function u(o) {
@@ -444,7 +444,7 @@ function Nl({
444
444
  o.value = !1;
445
445
  return;
446
446
  }
447
- const d = ht(e, S(a), "pageItemRender"), h = $e(d) ? {
447
+ const d = ht(e, x(a), "pageItemRender"), h = Fe(d) ? {
448
448
  itemRender: ({
449
449
  page: v,
450
450
  type: s,
@@ -561,13 +561,13 @@ function Al(e) {
561
561
  dataSource: u
562
562
  };
563
563
  }
564
- function Yl({ polling: e, request: a, postData: l, dataSource: u, waitRequest: o, debounceTime: i }, { columns: d, loading: h, setLoading: C, setColumns: p, removeRowKeys: v, syncSelectedRows: s, formParamsRef: n, setPagination: c, paginationInfo: g, onBeforeSearchSubmit: m, hasCustomRender: x }, P) {
564
+ function Yl({ polling: e, request: a, postData: l, dataSource: u, waitRequest: o, debounceTime: i }, { columns: d, loading: h, setLoading: C, setColumns: p, removeRowKeys: v, syncSelectedRows: s, formParamsRef: n, setPagination: c, paginationInfo: g, onBeforeSearchSubmit: m, hasCustomRender: S }, P) {
565
565
  const R = D(), k = D(!0), Y = D(!1), L = D(!1), z = D([]), H = D(), re = async (y = {}) => {
566
- var Ie;
566
+ var Be;
567
567
  const { pagination: $, filters: E = {}, sorter: K = {}, removeKeys: w = [], isPolling: Ke = !1 } = y;
568
- if (!a || !$e(a) || S(o) && h.value || Y.value)
568
+ if (!a || !Fe(a) || x(o) && h.value || Y.value)
569
569
  return u.value || [];
570
- if (Y.value = !0, !Ke || S(o) || k.value ? C(!0) : Se(!0), S(o)) {
570
+ if (Y.value = !0, !Ke || x(o) || k.value ? C(!0) : we(!0), x(o)) {
571
571
  k.value = !1, Y.value = !1;
572
572
  return;
573
573
  }
@@ -577,28 +577,28 @@ function Yl({ polling: e, request: a, postData: l, dataSource: u, waitRequest: o
577
577
  if (se($) && !$ || se(g))
578
578
  ce = {};
579
579
  else {
580
- const { current: A = 1, pageSize: me = 10, total: G } = S(g) || {};
580
+ const { current: A = 1, pageSize: me = 10, total: G } = x(g) || {};
581
581
  ce.pageNum = Wt({ current: A, pageSize: me, total: G }, w.length), w.length && v(w), ce.pageSize = me;
582
582
  }
583
- const Be = Q(K) ? [K] : K;
584
- Be.forEach((A) => {
583
+ const Oe = Q(K) ? [K] : K;
584
+ Oe.forEach((A) => {
585
585
  const me = (A == null ? void 0 : A.columnKey) || (A == null ? void 0 : A.field);
586
- A && (A != null && A.order) ? p(S(d).map((G) => (G.dataIndex === me ? G.sortOrder = A == null ? void 0 : A.order : G.sortOrder = null, G))) : A && p(S(d).map((G) => (G.dataIndex === me && (G.sortOrder = null), G)));
586
+ A && (A != null && A.order) ? p(x(d).map((G) => (G.dataIndex === me ? G.sortOrder = A == null ? void 0 : A.order : G.sortOrder = null, G))) : A && p(x(d).map((G) => (G.dataIndex === me && (G.sortOrder = null), G)));
587
587
  });
588
- let we = {
588
+ let Te = {
589
589
  ...ce || {},
590
590
  ...y.params,
591
591
  ...n
592
592
  };
593
- m && $e(m) && (we = await m(we, K, E));
594
- let X = [];
595
- const ae = await (a == null ? void 0 : a(we, Be, E));
596
- if (Y.value = !1, ae && (ae != null && ae.success)) {
597
- X = ae.data || [], l && $e(l) && (X = await (l == null ? void 0 : l(X))), s(X);
598
- const A = ae.total || (X == null ? void 0 : X.length) || 0;
599
- return A !== ((Ie = S(g)) == null ? void 0 : Ie.total) && c({
593
+ m && Fe(m) && (Te = await m(Te, K, E));
594
+ let J = [];
595
+ const ue = await (a == null ? void 0 : a(Te, Oe, E));
596
+ if (Y.value = !1, ue && (ue != null && ue.success)) {
597
+ J = ue.data || [], l && Fe(l) && (J = await (l == null ? void 0 : l(J))), s(J);
598
+ const A = ue.total || (J == null ? void 0 : J.length) || 0;
599
+ return A !== ((Be = x(g)) == null ? void 0 : Be.total) && c({
600
600
  total: A || 0
601
- }), b(X), X;
601
+ }), b(J), J;
602
602
  } else
603
603
  return [];
604
604
  } catch (ce) {
@@ -627,12 +627,12 @@ function Yl({ polling: e, request: a, postData: l, dataSource: u, waitRequest: o
627
627
  immediate: !0
628
628
  });
629
629
  const Z = T(() => {
630
- if (x.value)
631
- return S(z);
630
+ if (S.value)
631
+ return x(z);
632
632
  const y = d.value.filter(($) => $.show || $.show === void 0);
633
- return !S(z) || !y || y.length === 0 ? [] : S(z);
634
- }), _ = T(() => S(z).some((y) => ye(y.children) && y.children.length > 0));
635
- function Se(y) {
633
+ return !x(z) || !y || y.length === 0 ? [] : x(z);
634
+ }), _ = T(() => x(z).some((y) => be(y.children) && y.children.length > 0));
635
+ function we(y) {
636
636
  L.value = y;
637
637
  }
638
638
  function t(y, $, E, K) {
@@ -640,10 +640,10 @@ function Yl({ polling: e, request: a, postData: l, dataSource: u, waitRequest: o
640
640
  }
641
641
  function b(y) {
642
642
  var E;
643
- const $ = Ht(ie(y), S(g.value));
644
- if (!De($, z.value) && (z.value = $, !a || !$e(a))) {
643
+ const $ = Ht(ie(y), x(g.value));
644
+ if (!De($, z.value) && (z.value = $, !a || !Fe(a))) {
645
645
  const K = $.length || 0;
646
- K !== ((E = S(g)) == null ? void 0 : E.total) && c({
646
+ K !== ((E = x(g)) == null ? void 0 : E.total) && c({
647
647
  total: K
648
648
  });
649
649
  }
@@ -691,23 +691,23 @@ function Vl({ search: e, searchMap: a, params: l, columns: u, setPagination: o }
691
691
  var c, g;
692
692
  const n = [];
693
693
  if ((s === "all" || s === "searchMap") && ((c = a.value) == null || c.forEach((m) => n.push(m)), n.forEach((m) => {
694
- h.value.some((x) => x.name === m.name) ? h.value = h.value.map((x) => x.name === m.name ? {
695
- ...x,
694
+ h.value.some((S) => S.name === m.name) ? h.value = h.value.map((S) => S.name === m.name ? {
695
+ ...S,
696
696
  ...m
697
- } : x) : h.value.push(m);
697
+ } : S) : h.value.push(m);
698
698
  })), (s === "all" || s === "columns") && ((g = u.value) != null && g.length) && (u.value && u.value.forEach((m) => {
699
699
  m.searchConfig && n.push(m.searchConfig);
700
700
  }), n.forEach((m) => {
701
- h.value.some((x) => x.name === m.name) ? h.value = h.value.map((x) => x.name === m.name ? {
702
- ...x,
701
+ h.value.some((S) => S.name === m.name) ? h.value = h.value.map((S) => S.name === m.name ? {
702
+ ...S,
703
703
  ...m
704
- } : x) : h.value.push(m);
704
+ } : S) : h.value.push(m);
705
705
  })), s === "all" || s === "searchMap" || s === "columns") {
706
706
  o({ current: 1 });
707
707
  const m = Ll(n);
708
708
  Object.assign(d, { ...m });
709
- for (const x in m)
710
- i[x] || (i[x] = m[x]);
709
+ for (const S in m)
710
+ i[S] || (i[S] = m[S]);
711
711
  }
712
712
  (s === "all" || s === "params") && !C.value && (o({ current: 1 }), Object.assign(i, l.value));
713
713
  };
@@ -729,17 +729,17 @@ function Hl({ columns: e, columnsState: a, changeColumns: l }) {
729
729
  const u = D(void 0), o = fe({}), i = fe({}), d = fe({}), h = D([]);
730
730
  W(() => e.value, () => {
731
731
  var s;
732
- (s = S(e)) == null || s.forEach(({ show: n, key: c, fixed: g }, m) => {
733
- const x = mt(c, m);
734
- x && (d[x] = { show: n === void 0 ? !0 : n, fixed: g });
732
+ (s = x(e)) == null || s.forEach(({ show: n, key: c, fixed: g }, m) => {
733
+ const S = mt(c, m);
734
+ S && (d[S] = { show: n === void 0 ? !0 : n, fixed: g });
735
735
  });
736
- const v = S(e).map((n) => n.key);
736
+ const v = x(e).map((n) => n.key);
737
737
  p(v);
738
- }, { deep: !0, immediate: !0 }), Pe(() => {
738
+ }, { deep: !0, immediate: !0 }), Ie(() => {
739
739
  var s;
740
740
  const v = {
741
- ...(s = S(a)) == null ? void 0 : s.value,
742
- ...S(d)
741
+ ...(s = x(a)) == null ? void 0 : s.value,
742
+ ...x(d)
743
743
  };
744
744
  Object.assign(o, v), Object.assign(i, v);
745
745
  });
@@ -777,57 +777,57 @@ function _l({ scroll: e, columns: a, breakpoint: l, draggabled: u, autoScroll: o
777
777
  () => o.value,
778
778
  () => i.value
779
779
  ], () => {
780
- const g = v(ve(a.value));
781
- De(g, ve(d.value)) || (d.value = ie(g)), De(g, ve(h.value)) || (h.value = ie(g));
780
+ const g = v(ge(a.value));
781
+ De(g, ge(d.value)) || (d.value = ie(g)), De(g, ge(h.value)) || (h.value = ie(g));
782
782
  }, {
783
783
  deep: !0,
784
784
  immediate: !0
785
785
  });
786
786
  const C = T(() => {
787
- const g = p(S(d).filter((P) => P.fixed === "left")), m = p(S(d).filter((P) => P.fixed !== "left" && P.fixed !== "right")), x = p(S(d).filter((P) => P.fixed === "right"));
787
+ const g = p(x(d).filter((P) => P.fixed === "left")), m = p(x(d).filter((P) => P.fixed !== "left" && P.fixed !== "right")), S = p(x(d).filter((P) => P.fixed === "right"));
788
788
  return [
789
789
  ...g,
790
790
  ...m,
791
- ...x
791
+ ...S
792
792
  ];
793
793
  });
794
794
  function p(g) {
795
- return g.sort((m, x) => _t(m, x, "order", 0));
795
+ return g.sort((m, S) => _t(m, S, "order", 0));
796
796
  }
797
797
  function v(g) {
798
- return ie(g).map((m, x) => {
798
+ return ie(g).map((m, S) => {
799
799
  var P;
800
- if (m.dataIndex === "action" || x === g.length - 1 ? m.resizable = !1 : m.resizable = se(m.resizable) ? m.resizable : !!(vt(m.width) && S(u)), !m.width || S(i))
800
+ if (m.dataIndex === "action" || S === g.length - 1 ? m.resizable = !1 : m.resizable = se(m.resizable) ? m.resizable : !!(vt(m.width) && x(u)), !m.width || x(i))
801
801
  return m;
802
- if (m.dataIndex === "action" && S(o))
803
- if ((P = S(e)) != null && P.x || !S(l))
802
+ if (m.dataIndex === "action" && x(o))
803
+ if ((P = x(e)) != null && P.x || !x(l))
804
804
  m.width = m.width || 100, m.fixed = "right";
805
805
  else {
806
- const R = S(a).find((k) => k.dataIndex === m.dataIndex);
806
+ const R = x(a).find((k) => k.dataIndex === m.dataIndex);
807
807
  m.width = (R == null ? void 0 : R.width) || "", m.fixed = R == null ? void 0 : R.fixed;
808
808
  }
809
809
  return m;
810
810
  });
811
811
  }
812
812
  function s(g, m) {
813
- d.value = d.value.map((x) => (x.uuid === m.uuid && (x.width = g), x));
813
+ d.value = d.value.map((S) => (S.uuid === m.uuid && (S.width = g), S));
814
814
  }
815
815
  function n(g) {
816
816
  if (g.length <= 0) {
817
817
  d.value = [];
818
818
  return;
819
819
  }
820
- De(v(g), ve(d.value)) || (d.value = v(g));
820
+ De(v(g), ge(d.value)) || (d.value = v(g));
821
821
  }
822
822
  function c(g) {
823
- n(ie(ve(a.value)).map((m) => {
823
+ n(ie(ge(a.value)).map((m) => {
824
824
  var P, R, k;
825
- const x = m.key ? {
825
+ const S = m.key ? {
826
826
  show: (P = g[m.key]) == null ? void 0 : P.show,
827
827
  fixed: (R = g[m.key]) == null ? void 0 : R.fixed,
828
828
  order: (k = g[m.key]) == null ? void 0 : k.order
829
829
  } : {};
830
- return { ...m, ...x };
830
+ return { ...m, ...S };
831
831
  }));
832
832
  }
833
833
  return {
@@ -853,10 +853,10 @@ function Gl(e) {
853
853
  function ql({ scroll: e, columns: a, autoScroll: l, modalScroll: u, neverScroll: o, rowSelection: i, screens: d, innerWidth: h, scrollBreakpoint: C }) {
854
854
  const p = T(() => {
855
855
  var n, c, g;
856
- return S(C) ? vt(S(C)) ? h.value > S(C) : Gt(S(C)) ? (n = d.value) == null ? void 0 : n[S(C)] : (c = d.value) == null ? void 0 : c.xl : (g = d.value) == null ? void 0 : g.xl;
856
+ return x(C) ? vt(x(C)) ? h.value > x(C) : Gt(x(C)) ? (n = d.value) == null ? void 0 : n[x(C)] : (c = d.value) == null ? void 0 : c.xl : (g = d.value) == null ? void 0 : g.xl;
857
857
  }), v = T(() => {
858
858
  let n = 0;
859
- const c = S(i) ? 60 : 0, g = 150, m = ie(S(a));
859
+ const c = x(i) ? 60 : 0, g = 150, m = ie(x(a));
860
860
  m.forEach((R) => {
861
861
  n += Number.parseInt(String(R.width)) || 0;
862
862
  });
@@ -865,9 +865,9 @@ function ql({ scroll: e, columns: a, autoScroll: l, modalScroll: u, neverScroll:
865
865
  });
866
866
  return { proScroll: T(() => {
867
867
  var n, c;
868
- return S(o) ? {} : S(e) && Object.keys(S(e)).length ? S(e) : S(u) ? {
869
- y: ((n = S(e)) == null ? void 0 : n.y) || ((c = d.value) != null && c.xl ? 400 : 235)
870
- } : S(l) ? p.value ? {} : se(p.value) ? { x: S(v) } : {} : {};
868
+ return x(o) ? {} : x(e) && Object.keys(x(e)).length ? x(e) : x(u) ? {
869
+ y: ((n = x(e)) == null ? void 0 : n.y) || ((c = d.value) != null && c.xl ? 400 : 235)
870
+ } : x(l) ? p.value ? {} : se(p.value) ? { x: x(v) } : {} : {};
871
871
  }), breakpoint: p };
872
872
  }
873
873
  const { provideContext: Ul, useInjectContext: he } = Rl("pro-table");
@@ -883,7 +883,7 @@ function Xl(e, a) {
883
883
  e[i.rangeEndName || "end"]
884
884
  ] : []);
885
885
  }
886
- Pe(() => {
886
+ Ie(() => {
887
887
  u();
888
888
  });
889
889
  function o(i, d) {
@@ -933,7 +933,7 @@ const Jl = (e) => ({
933
933
  } = Ue, {
934
934
  MonthPicker: Zl,
935
935
  RangePicker: ea
936
- } = xt, Tt = /* @__PURE__ */ oe({
936
+ } = St, Tt = /* @__PURE__ */ oe({
937
937
  name: "ProTableForm",
938
938
  props: {
939
939
  search: {
@@ -943,7 +943,7 @@ const Jl = (e) => ({
943
943
  searchText: "查询"
944
944
  })
945
945
  },
946
- modal: ge.modalScroll,
946
+ modal: ye.modalScroll,
947
947
  searchMap: {
948
948
  type: Array,
949
949
  default: () => []
@@ -961,7 +961,7 @@ const Jl = (e) => ({
961
961
  const {
962
962
  wrapSSR: o,
963
963
  hashId: i
964
- } = ze("ProTableForm", [Jl], e.prefixCls), d = St(), h = Ql(), {
964
+ } = ze("ProTableForm", [Jl], e.prefixCls), d = xt(), h = Ql(), {
965
965
  formState: C,
966
966
  resetFormState: p,
967
967
  changeFormState: v
@@ -999,7 +999,7 @@ const Jl = (e) => ({
999
999
  }
1000
1000
  }
1001
1001
  return b;
1002
- }, x = T(() => {
1002
+ }, S = T(() => {
1003
1003
  var t;
1004
1004
  return m((t = e.search) == null ? void 0 : t.span);
1005
1005
  });
@@ -1019,7 +1019,7 @@ const Jl = (e) => ({
1019
1019
  marginRight: "2%"
1020
1020
  }, k = () => {
1021
1021
  const t = ie(C), b = e.searchMap.find(($) => $.valueType === "text") || "", B = e.searchMap.find(($) => $.valueType === "dateRange") || "", y = e.searchMap.find(($) => $.valueType === "treeSelect");
1022
- return b && (t[b.name] = C[b.name] || b.initialValue || ""), B && (t[B.rangeStartName || "start"] = t[B.name] ? t[B.name][0] : "", t[B.rangeEndName || "end"] = t[B.name] ? t[B.name][1] : "", delete t[B.name]), y && (y != null && y.name && ye(C[y == null ? void 0 : y.name]) && (t[y.name] = C[y.name].length ? C[y.name].map(($) => $[y.valueKey === "text" ? "label" : "value"]).join() : ""), y != null && y.name && ye(t[y == null ? void 0 : y.name]) && (t[y.name] = t[y.name].length ? t[y.name].map(($) => $[y.valueKey === "text" ? "label" : "value"]) : "")), t;
1022
+ return b && (t[b.name] = C[b.name] || b.initialValue || ""), B && (t[B.rangeStartName || "start"] = t[B.name] ? t[B.name][0] : "", t[B.rangeEndName || "end"] = t[B.name] ? t[B.name][1] : "", delete t[B.name]), y && (y != null && y.name && be(C[y == null ? void 0 : y.name]) && (t[y.name] = C[y.name].length ? C[y.name].map(($) => $[y.valueKey === "text" ? "label" : "value"]).join() : ""), y != null && y.name && be(t[y == null ? void 0 : y.name]) && (t[y.name] = t[y.name].length ? t[y.name].map(($) => $[y.valueKey === "text" ? "label" : "value"]) : "")), t;
1023
1023
  }, Y = (t = !1, b) => {
1024
1024
  el(() => {
1025
1025
  (!n.value || t) && a("search", k(), !!b);
@@ -1061,10 +1061,10 @@ const Jl = (e) => ({
1061
1061
  var b;
1062
1062
  const t = (b = d == null ? void 0 : d.emptyText) == null ? void 0 : b.value;
1063
1063
  if (t) {
1064
- const B = be(t), y = B ? yt(t) : gt(t || []);
1064
+ const B = Ce(t), y = B ? yt(t) : gt(t || []);
1065
1065
  return r("div", {
1066
1066
  class: je(`${e.prefixCls}-search-empty-text`, i.value)
1067
- }, [B ? y : ye(y) ? y.map(($) => qe($)) : void 0]);
1067
+ }, [B ? y : be(y) ? y.map(($) => qe($)) : void 0]);
1068
1068
  }
1069
1069
  }, re = () => (n.value || c.value) && r(de, null, {
1070
1070
  default: () => [c.value && r(ct, {
@@ -1107,7 +1107,7 @@ const Jl = (e) => ({
1107
1107
  const B = n.value ? dt : dt.Search;
1108
1108
  switch (t.valueType) {
1109
1109
  case "text":
1110
- b = r(B, U({
1110
+ b = r(B, X({
1111
1111
  style: {
1112
1112
  width: "100%"
1113
1113
  },
@@ -1119,7 +1119,7 @@ const Jl = (e) => ({
1119
1119
  }, t.field || {}), null);
1120
1120
  break;
1121
1121
  case "select":
1122
- b = r(bl, U({
1122
+ b = r(bl, X({
1123
1123
  style: {
1124
1124
  width: "100%"
1125
1125
  },
@@ -1141,7 +1141,7 @@ const Jl = (e) => ({
1141
1141
  }, t.field || {}), null);
1142
1142
  break;
1143
1143
  case "treeSelect":
1144
- b = r(yl, U({
1144
+ b = r(yl, X({
1145
1145
  style: {
1146
1146
  width: "100%"
1147
1147
  },
@@ -1158,7 +1158,7 @@ const Jl = (e) => ({
1158
1158
  }, t.field || {}), null);
1159
1159
  break;
1160
1160
  case "date":
1161
- b = r(xt, U({
1161
+ b = r(St, X({
1162
1162
  style: {
1163
1163
  width: "100%"
1164
1164
  },
@@ -1173,7 +1173,7 @@ const Jl = (e) => ({
1173
1173
  }, t.field || {}), null);
1174
1174
  break;
1175
1175
  case "dateMonth":
1176
- b = r(Zl, U({
1176
+ b = r(Zl, X({
1177
1177
  style: {
1178
1178
  width: "100%"
1179
1179
  },
@@ -1184,7 +1184,7 @@ const Jl = (e) => ({
1184
1184
  }, t.field || {}), null);
1185
1185
  break;
1186
1186
  case "dateRange":
1187
- b = r(ea, U({
1187
+ b = r(ea, X({
1188
1188
  style: {
1189
1189
  width: "100%"
1190
1190
  },
@@ -1197,7 +1197,7 @@ const Jl = (e) => ({
1197
1197
  }, t.field || {}), null);
1198
1198
  break;
1199
1199
  case "time":
1200
- b = r(gl, U({
1200
+ b = r(gl, X({
1201
1201
  style: {
1202
1202
  width: "100%"
1203
1203
  },
@@ -1220,14 +1220,14 @@ const Jl = (e) => ({
1220
1220
  style: t
1221
1221
  }, [r(rt.Item, null, {
1222
1222
  default: () => [b.__v_isVNode ? b : Z(b)]
1223
- })]), Se = () => {
1223
+ })]), we = () => {
1224
1224
  var b;
1225
1225
  const t = [...e.searchMap, ...((b = l.default) == null ? void 0 : b.call(l)) || []];
1226
1226
  return t.map((B, y) => {
1227
1227
  const $ = {
1228
- width: `${(100 - (x.value - 1) * 2) / x.value}%`
1229
- }, E = R(y, x.value, $);
1230
- return t.length < x.value || s.value ? r(Ne, null, [_({
1228
+ width: `${(100 - (S.value - 1) * 2) / S.value}%`
1229
+ }, E = R(y, S.value, $);
1230
+ return t.length < S.value || s.value ? r(Ne, null, [_({
1231
1231
  formItemStyle: E,
1232
1232
  item: B
1233
1233
  }), y === t.length - 1 && M({
@@ -1237,19 +1237,19 @@ const Jl = (e) => ({
1237
1237
  },
1238
1238
  advanced: s.value,
1239
1239
  showAdvanced: s.value
1240
- })]) : r(Ne, null, [y < x.value - 1 && _({
1240
+ })]) : r(Ne, null, [y < S.value - 1 && _({
1241
1241
  formItemStyle: E,
1242
1242
  item: B
1243
- }), y === x.value - 1 && (x.value - 1 === 0 || t.length === x.value) && _({
1243
+ }), y === S.value - 1 && (S.value - 1 === 0 || t.length === S.value) && _({
1244
1244
  formItemStyle: E,
1245
1245
  item: B
1246
- }), y === x.value - 1 && t.length !== x.value && M({
1246
+ }), y === S.value - 1 && t.length !== S.value && M({
1247
1247
  formItemStyle: {
1248
1248
  flex: 1,
1249
1249
  justifyContent: "flex-end"
1250
1250
  },
1251
1251
  advanced: !1,
1252
- showAdvanced: t.length >= x.value
1252
+ showAdvanced: t.length >= S.value
1253
1253
  })]);
1254
1254
  });
1255
1255
  };
@@ -1258,22 +1258,22 @@ const Jl = (e) => ({
1258
1258
  return o(r("div", {
1259
1259
  class: {
1260
1260
  [`${i.value}`]: !0,
1261
- [`${S(e.prefixCls)}-search`]: !0,
1261
+ [`${x(e.prefixCls)}-search`]: !0,
1262
1262
  [`${(t = e.search) == null ? void 0 : t.className}`]: (b = e.search) == null ? void 0 : b.className
1263
1263
  }
1264
1264
  }, [r(rt, {
1265
- class: `${S(e.prefixCls)}-form ${i.value}`,
1265
+ class: `${x(e.prefixCls)}-form ${i.value}`,
1266
1266
  layout: "horizontal"
1267
1267
  }, {
1268
1268
  default: () => [r("div", {
1269
- class: `${S(e.prefixCls)}-form-container ${i.value}`
1270
- }, [Se()])]
1269
+ class: `${x(e.prefixCls)}-form-container ${i.value}`
1270
+ }, [we()])]
1271
1271
  })]));
1272
1272
  };
1273
1273
  }
1274
1274
  });
1275
1275
  Tt.inheritAttrs = !1;
1276
- const Re = (e) => {
1276
+ const Pe = (e) => {
1277
1277
  const a = D(null);
1278
1278
  return a.value = e, (...l) => {
1279
1279
  var u;
@@ -1373,7 +1373,7 @@ const Re = (e) => {
1373
1373
  cacheColumns: i,
1374
1374
  settingsAction: d
1375
1375
  } = he();
1376
- return a ? r(le, {
1376
+ return a ? r(ne, {
1377
1377
  title: e
1378
1378
  }, {
1379
1379
  default: () => {
@@ -1382,7 +1382,7 @@ const Re = (e) => {
1382
1382
  onClick: (C) => {
1383
1383
  var c, g, m;
1384
1384
  C.stopPropagation(), C.preventDefault();
1385
- const p = ((g = (c = S(i)) == null ? void 0 : c.find((x) => x.uuid === l)) == null ? void 0 : g.key) || "", v = (d == null ? void 0 : d.columnsMap[p]) || {};
1385
+ const p = ((g = (c = x(i)) == null ? void 0 : c.find((S) => S.uuid === l)) == null ? void 0 : g.key) || "", v = (d == null ? void 0 : d.columnsMap[p]) || {};
1386
1386
  if (typeof v.disable == "boolean" ? v.disable : (m = v.disable) == null ? void 0 : m.icon) return;
1387
1387
  const n = {
1388
1388
  ...d == null ? void 0 : d.columnsMap,
@@ -1410,7 +1410,7 @@ const Re = (e) => {
1410
1410
  cacheColumns: a
1411
1411
  } = he(), l = T(() => {
1412
1412
  var o, i;
1413
- return ((i = (o = S(a)) == null ? void 0 : o.find((d) => d.uuid === e.treeKey)) == null ? void 0 : i.key) || "";
1413
+ return ((i = (o = x(a)) == null ? void 0 : o.find((d) => d.uuid === e.treeKey)) == null ? void 0 : i.key) || "";
1414
1414
  }), u = T(() => l.value === "action" && e.autoScroll);
1415
1415
  return () => {
1416
1416
  const o = r("span", {
@@ -1467,7 +1467,7 @@ const Re = (e) => {
1467
1467
  } = he(), C = (n, c) => n.map(({
1468
1468
  key: g,
1469
1469
  children: m,
1470
- uuid: x,
1470
+ uuid: S,
1471
1471
  ...P
1472
1472
  }) => {
1473
1473
  var L;
@@ -1477,7 +1477,7 @@ const Re = (e) => {
1477
1477
  let k = !1;
1478
1478
  R.show !== !1 && (c == null ? void 0 : c.show) !== !1 && !m && (k = !0);
1479
1479
  const Y = {
1480
- key: x || "",
1480
+ key: S || "",
1481
1481
  ...Ee(P, ["dataIndex"]),
1482
1482
  checked: k,
1483
1483
  selectable: !1,
@@ -1487,15 +1487,15 @@ const Re = (e) => {
1487
1487
  };
1488
1488
  return m && (Y.children = C(m, R)), Y;
1489
1489
  });
1490
- Pe(() => {
1490
+ Ie(() => {
1491
1491
  const n = C(e.list || []);
1492
1492
  u.value = n, o.value = n.filter((c) => c.checked).map((c) => c.key), (h == null ? void 0 : h.operationType.value) === "fixed" && (a.value = We().uuid(15));
1493
1493
  });
1494
- const p = Re((n, c, g) => {
1494
+ const p = Pe((n, c, g) => {
1495
1495
  var H, re;
1496
- const m = ((H = S(i).find((M) => M.uuid === n)) == null ? void 0 : H.key) || "", x = ((re = S(i).find((M) => M.uuid === c)) == null ? void 0 : re.key) || "", P = {
1496
+ const m = ((H = x(i).find((M) => M.uuid === n)) == null ? void 0 : H.key) || "", S = ((re = x(i).find((M) => M.uuid === c)) == null ? void 0 : re.key) || "", P = {
1497
1497
  ...h == null ? void 0 : h.columnsMap
1498
- }, R = [...h.sortKeyColumns.value], k = R.findIndex((M) => M === m), Y = R.findIndex((M) => M === x), L = g > k;
1498
+ }, R = [...h.sortKeyColumns.value], k = R.findIndex((M) => M === m), Y = R.findIndex((M) => M === S), L = g > k;
1499
1499
  if (k < 0)
1500
1500
  return;
1501
1501
  const z = R[k];
@@ -1505,19 +1505,19 @@ const Re = (e) => {
1505
1505
  order: Z
1506
1506
  };
1507
1507
  }), h == null || h.setColumnsMap(P, "drop"), h == null || h.setSortKeyColumns(R);
1508
- }), v = Re((n) => {
1508
+ }), v = Pe((n) => {
1509
1509
  var R;
1510
- const c = n.node.key, g = ((R = S(i).find((k) => k.uuid === c)) == null ? void 0 : R.key) || "", x = {
1510
+ const c = n.node.key, g = ((R = x(i).find((k) => k.uuid === c)) == null ? void 0 : R.key) || "", S = {
1511
1511
  ...(h == null ? void 0 : h.columnsMap[g]) || {}
1512
1512
  };
1513
- x.show = n.checked;
1513
+ S.show = n.checked;
1514
1514
  const P = {
1515
1515
  ...h == null ? void 0 : h.columnsMap,
1516
- [g]: x
1516
+ [g]: S
1517
1517
  };
1518
1518
  h == null || h.setColumnsMap(P, "show");
1519
1519
  }), s = (n) => {
1520
- const c = S(i).find((g) => g.uuid === n.key);
1520
+ const c = x(i).find((g) => g.uuid === n.key);
1521
1521
  return n.title || tl(d, "headerCell", {
1522
1522
  title: c.title,
1523
1523
  column: c
@@ -1527,7 +1527,7 @@ const Re = (e) => {
1527
1527
  var n, c;
1528
1528
  return l.value ? r(Ne, null, [e.showTitle && r("span", {
1529
1529
  class: [`${e.className}-list-title`, e.hashId]
1530
- }, [e.title]), r(Sl, {
1530
+ }, [e.title]), r(xl, {
1531
1531
  key: a.value,
1532
1532
  draggable: e.draggable && !!((n = u.value) != null && n.length) && ((c = u.value) == null ? void 0 : c.length) > 1,
1533
1533
  checkable: e.checkable,
@@ -1536,24 +1536,24 @@ const Re = (e) => {
1536
1536
  checkedKeys: o.value,
1537
1537
  height: 280,
1538
1538
  onDrop: (g) => {
1539
- const m = g.node.key, x = g.dragNode.key, {
1539
+ const m = g.node.key, S = g.dragNode.key, {
1540
1540
  dropPosition: P,
1541
1541
  dropToGap: R
1542
1542
  } = g, k = P === -1 || !R ? P + 1 : P;
1543
- p(x, m, k);
1543
+ p(S, m, k);
1544
1544
  },
1545
1545
  onCheck: (g, m) => v(m),
1546
1546
  treeData: u.value
1547
1547
  }, {
1548
1548
  title: (g) => {
1549
- var x;
1549
+ var S;
1550
1550
  const m = {
1551
1551
  ...g,
1552
1552
  children: void 0,
1553
1553
  title: s(g),
1554
- autoScroll: (x = h == null ? void 0 : h.autoScroll) == null ? void 0 : x.value
1554
+ autoScroll: (S = h == null ? void 0 : h.autoScroll) == null ? void 0 : S.value
1555
1555
  };
1556
- return r(la, U({
1556
+ return r(la, X({
1557
1557
  hashId: e.hashId,
1558
1558
  className: e.className
1559
1559
  }, m, {
@@ -1653,44 +1653,44 @@ const Re = (e) => {
1653
1653
  } = ze("ColumnSetting", [ta], a), {
1654
1654
  columns: o,
1655
1655
  settingsAction: i
1656
- } = he(), d = Re((s = !0) => {
1656
+ } = he(), d = Pe((s = !0) => {
1657
1657
  const n = {}, c = (g) => {
1658
1658
  g.forEach(({
1659
1659
  key: m,
1660
- fixed: x,
1660
+ fixed: S,
1661
1661
  index: P,
1662
1662
  children: R
1663
1663
  }) => {
1664
1664
  const k = mt(m, P);
1665
1665
  k && (n[k] = {
1666
1666
  show: s,
1667
- fixed: x
1667
+ fixed: S
1668
1668
  }), R && c(R);
1669
1669
  });
1670
1670
  };
1671
1671
  c(o.value), i == null || i.setColumnsMap(n, "show");
1672
- }), h = Re((s) => {
1672
+ }), h = Pe((s) => {
1673
1673
  s.target.checked ? d() : d(!1);
1674
- }), C = Re(() => {
1674
+ }), C = Pe(() => {
1675
1675
  i == null || i.setColumnsMap(i == null ? void 0 : i.cacheColumnsMap, "fixed");
1676
1676
  }), p = T(() => (
1677
1677
  // @ts-ignore
1678
1678
  Object.values(i == null ? void 0 : i.columnsMap).filter((s) => !s || s.show === !1)
1679
- )), v = T(() => S(p).length > 0 && S(p).length !== o.value.length);
1679
+ )), v = T(() => x(p).length > 0 && x(p).length !== o.value.length);
1680
1680
  return () => l(r(Cl, {
1681
1681
  arrowPointAtCenter: !0,
1682
1682
  title: r("div", {
1683
1683
  class: [`${a}-title`, u.value]
1684
- }, [r(xl, {
1684
+ }, [r(Sl, {
1685
1685
  indeterminate: v.value,
1686
- checked: S(p).length === 0 && S(p).length !== o.value.length,
1686
+ checked: x(p).length === 0 && x(p).length !== o.value.length,
1687
1687
  onChange: (s) => h(s)
1688
1688
  }, {
1689
- default: () => [Fe("列展示")]
1689
+ default: () => [Re("列展示")]
1690
1690
  }), e.checkedReset ? r("a", {
1691
1691
  onClick: C,
1692
1692
  class: [`${a}-action-rest-button`, u.value]
1693
- }, [Fe("重置")]) : null, e != null && e.extra ? r(de, {
1693
+ }, [Re("重置")]) : null, e != null && e.extra ? r(de, {
1694
1694
  size: 12,
1695
1695
  align: "center"
1696
1696
  }, {
@@ -1706,7 +1706,7 @@ const Re = (e) => {
1706
1706
  className: a
1707
1707
  }, null)
1708
1708
  }, {
1709
- default: () => [r(le, {
1709
+ default: () => [r(ne, {
1710
1710
  title: "列设置"
1711
1711
  }, {
1712
1712
  default: () => [r(bt, null, null)]
@@ -1718,11 +1718,11 @@ const Re = (e) => {
1718
1718
  const {
1719
1719
  isFullscreen: e
1720
1720
  } = Ct();
1721
- return () => e.value ? r(le, {
1721
+ return () => e.value ? r(ne, {
1722
1722
  title: "退出全屏"
1723
1723
  }, {
1724
1724
  default: () => [r(rl, null, null)]
1725
- }) : r(le, {
1725
+ }) : r(ne, {
1726
1726
  title: "全屏"
1727
1727
  }, {
1728
1728
  default: () => [r(cl, null, null)]
@@ -1749,20 +1749,20 @@ const Re = (e) => {
1749
1749
  default: () => [r(ke.Item, {
1750
1750
  key: "large"
1751
1751
  }, {
1752
- default: () => [Fe("默认")]
1752
+ default: () => [Re("默认")]
1753
1753
  }), r(ke.Item, {
1754
1754
  key: "middle"
1755
1755
  }, {
1756
- default: () => [Fe("中等")]
1756
+ default: () => [Re("中等")]
1757
1757
  }), r(ke.Item, {
1758
1758
  key: "small"
1759
1759
  }, {
1760
- default: () => [Fe("紧凑")]
1760
+ default: () => [Re("紧凑")]
1761
1761
  })]
1762
1762
  }),
1763
1763
  trigger: ["click"]
1764
1764
  }, {
1765
- default: () => [r(le, {
1765
+ default: () => [r(ne, {
1766
1766
  title: "表格密度"
1767
1767
  }, {
1768
1768
  default: () => [r(dl, null, null)]
@@ -1811,13 +1811,13 @@ const Re = (e) => {
1811
1811
  }
1812
1812
  });
1813
1813
  function ft(e) {
1814
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !be(e);
1814
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Ce(e);
1815
1815
  }
1816
1816
  const {
1817
1817
  useBreakpoint: sa
1818
1818
  } = Ue;
1819
1819
  function oa(e) {
1820
- if (be(e))
1820
+ if (Ce(e))
1821
1821
  return e;
1822
1822
  if (e) {
1823
1823
  const a = e, {
@@ -1826,7 +1826,7 @@ function oa(e) {
1826
1826
  onClick: o,
1827
1827
  key: i
1828
1828
  } = a;
1829
- return l && u ? r(le, {
1829
+ return l && u ? r(ne, {
1830
1830
  title: u
1831
1831
  }, {
1832
1832
  default: () => [r("span", {
@@ -1841,13 +1841,13 @@ function oa(e) {
1841
1841
  }
1842
1842
  const $t = /* @__PURE__ */ oe({
1843
1843
  props: {
1844
- actions: ge.toolBarBtn,
1844
+ actions: ye.toolBarBtn,
1845
1845
  settings: [Array],
1846
- titleTip: ge.titleTip,
1846
+ titleTip: ye.titleTip,
1847
1847
  prefixCls: String,
1848
- headerTitle: ge.headerTitle,
1849
- titleTipText: ge.titleTipText,
1850
- optionsExtra: ge.optionsExtra
1848
+ headerTitle: ye.headerTitle,
1849
+ titleTipText: ye.titleTipText,
1850
+ optionsExtra: ye.optionsExtra
1851
1851
  },
1852
1852
  setup(e) {
1853
1853
  const {
@@ -1866,7 +1866,7 @@ const $t = /* @__PURE__ */ oe({
1866
1866
  let n;
1867
1867
  return Array.isArray(e.actions) ? ((c = e.actions) == null ? void 0 : c.length) < 1 ? null : r(de, {
1868
1868
  align: "center"
1869
- }, ft(n = e.actions.map((g, m) => be(g) ? qe(g, {
1869
+ }, ft(n = e.actions.map((g, m) => Ce(g) ? qe(g, {
1870
1870
  key: m,
1871
1871
  ...g == null ? void 0 : g.props
1872
1872
  }) : r("template", {
@@ -1881,7 +1881,7 @@ const $t = /* @__PURE__ */ oe({
1881
1881
  }, {
1882
1882
  default: () => [r("div", {
1883
1883
  class: `${e.prefixCls}-title ${l.value}`
1884
- }, [e.headerTitle, e.titleTip && r(le, {
1884
+ }, [e.headerTitle, e.titleTip && r(ne, {
1885
1885
  title: e.titleTipText
1886
1886
  }, {
1887
1887
  default: () => [se(e.titleTip) && e.titleTip ? r(fl, null, null) : e.titleTip]
@@ -1909,11 +1909,11 @@ const $t = /* @__PURE__ */ oe({
1909
1909
  align: "center",
1910
1910
  class: `${e.prefixCls}-setting-items`
1911
1911
  }, ft(n = e.settings.map((g, m) => {
1912
- const x = oa(g);
1912
+ const S = oa(g);
1913
1913
  return r("div", {
1914
1914
  key: m,
1915
1915
  class: `${e.prefixCls}-setting-item`
1916
- }, [x]);
1916
+ }, [S]);
1917
1917
  })) ? n : {
1918
1918
  default: () => [n]
1919
1919
  }) : null];
@@ -1964,7 +1964,7 @@ function ca(e, a) {
1964
1964
  let o = u === !0 ? a[l] : () => u == null ? void 0 : u();
1965
1965
  if (typeof o != "function" && (o = () => {
1966
1966
  }), l === "setting")
1967
- return r(na, U(e[l], {
1967
+ return r(na, X(e[l], {
1968
1968
  key: l
1969
1969
  }), null);
1970
1970
  if (l === "fullScreen")
@@ -1976,7 +1976,7 @@ function ca(e, a) {
1976
1976
  return i ? r("span", {
1977
1977
  key: l,
1978
1978
  onClick: o
1979
- }, [r(le, {
1979
+ }, [r(ne, {
1980
1980
  title: i.text
1981
1981
  }, {
1982
1982
  default: () => [i.icon]
@@ -2024,7 +2024,7 @@ const da = {
2024
2024
  optionsExtra: e.optionsExtra,
2025
2025
  headerTitle: e.headerTitle,
2026
2026
  actions: o,
2027
- settings: S(u),
2027
+ settings: x(u),
2028
2028
  titleTip: e.titleTip,
2029
2029
  titleTipText: e.titleTipText
2030
2030
  }, null);
@@ -2243,7 +2243,7 @@ const da = {
2243
2243
  }, He = /* @__PURE__ */ oe({
2244
2244
  name: "GProTable",
2245
2245
  inheritAttrs: !1,
2246
- props: ge,
2246
+ props: ye,
2247
2247
  emits: ["reset", "reload", "submit", "sizeChange", "expandedRowsChange", "expand", "change", "requestError", "beforeSearchSubmit", "columnsStateChange", "loadingChange"],
2248
2248
  slots: Object,
2249
2249
  setup(e, {
@@ -2260,12 +2260,12 @@ const da = {
2260
2260
  hashId: h
2261
2261
  } = ze("ProBaseTable", [ha], i), C = ma(), {
2262
2262
  width: p
2263
- } = vl(), v = St(), s = D(), n = D(), c = D(e.waitRequest);
2264
- Pe(() => c.value = e.waitRequest);
2263
+ } = vl(), v = xt(), s = D(), n = D(), c = D(e.waitRequest);
2264
+ Ie(() => c.value = e.waitRequest);
2265
2265
  const {
2266
2266
  toggle: g,
2267
2267
  isFullscreen: m
2268
- } = Ct(s), x = T(() => ({
2268
+ } = Ct(s), S = T(() => ({
2269
2269
  ...e
2270
2270
  })), P = T(() => !C.value.xl), R = T(() => {
2271
2271
  var f, F;
@@ -2287,26 +2287,26 @@ const da = {
2287
2287
  setLoading: z
2288
2288
  } = jl({
2289
2289
  emit: a,
2290
- loading: te(e, "loading")
2290
+ loading: ae(e, "loading")
2291
2291
  }), {
2292
2292
  sizeRef: H,
2293
2293
  setTableSize: re
2294
2294
  } = Ml({
2295
2295
  emit: a,
2296
- size: te(e, "size")
2296
+ size: ae(e, "size")
2297
2297
  }), {
2298
2298
  paginationInfo: M,
2299
2299
  requestPagination: Z,
2300
2300
  setPagination: _
2301
2301
  } = Nl({
2302
2302
  slots: l,
2303
- props: x,
2304
- pagination: te(e, "pagination")
2305
- }), Se = Gl(e), {
2303
+ props: S,
2304
+ pagination: ae(e, "pagination")
2305
+ }), we = Gl(e), {
2306
2306
  proScroll: t,
2307
2307
  breakpoint: b
2308
2308
  } = ql({
2309
- ...Se,
2309
+ ...we,
2310
2310
  innerWidth: p,
2311
2311
  columns: k,
2312
2312
  screens: C
@@ -2323,24 +2323,24 @@ const da = {
2323
2323
  columns: k
2324
2324
  }), {
2325
2325
  columnsMap: Ke,
2326
- operationType: Ie,
2326
+ operationType: Be,
2327
2327
  setColumnsMap: ce,
2328
- sortKeyColumns: Be,
2329
- cacheColumnsMap: we,
2330
- setSortKeyColumns: X
2328
+ sortKeyColumns: Oe,
2329
+ cacheColumnsMap: Te,
2330
+ setSortKeyColumns: J
2331
2331
  } = Hl({
2332
2332
  columns: $,
2333
- columnsState: te(e, "columnsState"),
2333
+ columnsState: ae(e, "columnsState"),
2334
2334
  changeColumns: K
2335
2335
  }), {
2336
- formDataRef: ae,
2336
+ formDataRef: ue,
2337
2337
  formParamsRef: A,
2338
2338
  defaultParamsRef: me,
2339
2339
  setFormParams: G
2340
2340
  } = Vl({
2341
- search: te(e, "search"),
2342
- searchMap: te(e, "searchMap"),
2343
- params: te(e, "params"),
2341
+ search: ae(e, "search"),
2342
+ searchMap: ae(e, "searchMap"),
2343
+ params: ae(e, "params"),
2344
2344
  columns: k,
2345
2345
  setPagination: _
2346
2346
  }), {
@@ -2352,12 +2352,12 @@ const da = {
2352
2352
  syncSelectedRows: Ze,
2353
2353
  removeRowKeys: et,
2354
2354
  clearAllRowKeys: Pt
2355
- } = zl(te(e, "rowKey"), te(e, "rowSelection")), It = Al(e), {
2355
+ } = zl(ae(e, "rowKey"), ae(e, "rowSelection")), It = Al(e), {
2356
2356
  reload: Ae,
2357
2357
  reSetDataList: Bt,
2358
2358
  changeDataValue: Ot,
2359
2359
  isTreeDataRef: kt,
2360
- dataSource: Te,
2360
+ dataSource: pe,
2361
2361
  handleTableChange: tt
2362
2362
  } = Yl({
2363
2363
  ...It,
@@ -2374,16 +2374,16 @@ const da = {
2374
2374
  formParamsRef: A,
2375
2375
  onBeforeSearchSubmit: e.onBeforeSearchSubmit,
2376
2376
  hasCustomRender: T(() => xe(e.customRender || (l == null ? void 0 : l.customRender)))
2377
- }, a), pe = T(() => e.options ? {
2377
+ }, a), $e = T(() => e.options ? {
2378
2378
  ...va,
2379
2379
  ...Q(e.options) ? e.options : {}
2380
2380
  } : !1), Dt = T(() => ({
2381
- size: S(H),
2382
- scroll: S(t),
2383
- dataSource: S(Te),
2384
- pagination: S(M),
2381
+ size: x(H),
2382
+ scroll: x(t),
2383
+ dataSource: x(pe),
2384
+ pagination: x(M),
2385
2385
  virtualScroll: R.value,
2386
- columns: S(y).filter((f) => f.show || f.show === void 0)
2386
+ columns: x(y).filter((f) => f.show || f.show === void 0)
2387
2387
  })), lt = T(() => {
2388
2388
  var F, I;
2389
2389
  const f = Q(e.loading) ? Ee(e.loading, "spinning") : {};
@@ -2394,7 +2394,7 @@ const da = {
2394
2394
  }), at = T(() => {
2395
2395
  var j;
2396
2396
  let f;
2397
- const F = S(x).direction === "rtl" ? "bottomLeft" : "right", I = (j = S(M)) == null ? void 0 : j.position;
2397
+ const F = x(S).direction === "rtl" ? "bottomLeft" : "right", I = (j = x(M)) == null ? void 0 : j.position;
2398
2398
  if (I !== null && Array.isArray(I)) {
2399
2399
  const O = I.find((N) => N.includes("top")), V = I.find((N) => N.includes("bottom")), ee = I.every((N) => `${N}` == "none");
2400
2400
  !O && !V && !ee && (f = F), O && (f = O.toLowerCase().replace("top", "")), V && (f = V.toLowerCase().replace("bottom", ""));
@@ -2428,50 +2428,53 @@ const da = {
2428
2428
  }, zt = (f, F) => w(f, F), Kt = (f, F, I) => {
2429
2429
  var O, V, ee;
2430
2430
  let j = f;
2431
- if (F && (j = r("div", {
2432
- class: `${i}-ellipsis`
2433
- }, [r(le, {
2434
- title: f,
2435
- getPopupContainer: (N) => {
2436
- var J;
2437
- return (J = N == null ? void 0 : N.parentNode) == null ? void 0 : J.parentNode;
2438
- }
2439
- }, {
2440
- default: () => [r("div", {
2441
- class: `${i}-ellipsis-text`
2442
- }, [f])]
2443
- })]), I.copyable)) {
2444
- const N = ye(f) ? typeof ((O = f == null ? void 0 : f[0]) == null ? void 0 : O.children) == "string" ? (V = f == null ? void 0 : f[0]) == null ? void 0 : V.children : "" : f.toString(), J = typeof I.copyText == "function" ? (ee = I.copyText) == null ? void 0 : ee.call(I, I) : I.copyText || N;
2445
- j = r("div", {
2446
- class: `${i}-copyable`
2447
- }, [r(le, {
2431
+ if (F) {
2432
+ const N = document.querySelector(`.${i} .ant-table-tbody`);
2433
+ if (j = r("div", {
2434
+ class: `${i}-ellipsis`
2435
+ }, [r(ne, {
2448
2436
  title: f,
2449
- getPopupContainer: (ne) => {
2450
- var ue;
2451
- return (ue = ne == null ? void 0 : ne.parentNode) == null ? void 0 : ue.parentNode;
2437
+ getPopupContainer: (U) => {
2438
+ var te;
2439
+ return N ?? ((te = U == null ? void 0 : U.parentNode) == null ? void 0 : te.parentNode);
2452
2440
  }
2453
2441
  }, {
2454
2442
  default: () => [r("div", {
2455
2443
  class: `${i}-ellipsis-text`
2456
2444
  }, [f])]
2457
- }), r(ml, {
2458
- class: `${i}-copyable-icon`,
2459
- onClick: () => {
2460
- Dl(J), $l.success("复制成功");
2461
- }
2462
- }, null)]);
2445
+ })]), I.copyable) {
2446
+ const U = be(f) ? typeof ((O = f == null ? void 0 : f[0]) == null ? void 0 : O.children) == "string" ? (V = f == null ? void 0 : f[0]) == null ? void 0 : V.children : "" : f.toString(), te = typeof I.copyText == "function" ? (ee = I.copyText) == null ? void 0 : ee.call(I, I) : I.copyText || U;
2447
+ j = r("div", {
2448
+ class: `${i}-copyable`
2449
+ }, [r(ne, {
2450
+ title: f,
2451
+ getPopupContainer: (le) => {
2452
+ var ve;
2453
+ return N ?? ((ve = le == null ? void 0 : le.parentNode) == null ? void 0 : ve.parentNode);
2454
+ }
2455
+ }, {
2456
+ default: () => [r("div", {
2457
+ class: `${i}-ellipsis-text`
2458
+ }, [f])]
2459
+ }), r(ml, {
2460
+ class: `${i}-copyable-icon`,
2461
+ onClick: () => {
2462
+ Dl(te), $l.success("复制成功");
2463
+ }
2464
+ }, null)]);
2465
+ }
2463
2466
  }
2464
2467
  return j;
2465
2468
  };
2466
2469
  function it() {
2467
2470
  var I, j, O, V, ee;
2468
- const f = Ce(l, e, "emptyText");
2471
+ const f = Se(l, e, "emptyText");
2469
2472
  if (f !== !1 && ((I = v == null ? void 0 : v.emptyText) == null ? void 0 : I.value) !== !1) {
2470
- const N = ((j = e.emptyTextProps) == null ? void 0 : j.extraProps) || {}, J = f || ((O = v == null ? void 0 : v.emptyText) == null ? void 0 : O.value), ne = be(J), ue = ne ? yt(J, N) : gt(J || []);
2473
+ const N = ((j = e.emptyTextProps) == null ? void 0 : j.extraProps) || {}, U = f || ((O = v == null ? void 0 : v.emptyText) == null ? void 0 : O.value), te = Ce(U), le = te ? yt(U, N) : gt(U || []);
2471
2474
  return r("div", {
2472
2475
  class: je(`${i}-empty-text`, h.value, (V = e.emptyTextProps) == null ? void 0 : V.class),
2473
2476
  style: (ee = e.emptyTextProps) == null ? void 0 : ee.style
2474
- }, [ne ? ue : ye(ue) ? ue.map((Oe) => qe(Oe, N)) : r(Fl, null, null)]);
2477
+ }, [te ? le : be(le) ? le.map((ve) => qe(ve, N)) : r(Fl, null, null)]);
2475
2478
  }
2476
2479
  return null;
2477
2480
  }
@@ -2479,8 +2482,8 @@ const da = {
2479
2482
  var F;
2480
2483
  const f = ht(l, e, "customRender");
2481
2484
  if (f) {
2482
- if ((F = Te.value) != null && F.length) {
2483
- const I = ie(S(Te));
2485
+ if ((F = pe.value) != null && F.length) {
2486
+ const I = ie(x(pe));
2484
2487
  return f == null ? void 0 : f({
2485
2488
  dataSource: I,
2486
2489
  currentData: kl(I, M.value)
@@ -2491,18 +2494,18 @@ const da = {
2491
2494
  return r(Ne, null, null);
2492
2495
  }, Yt = (f) => {
2493
2496
  var O, V;
2494
- const F = Ce(l, e, "headerTitle"), I = Ce(l, e, "titleTip"), j = Ce(l, e, "toolBarBtn");
2497
+ const F = Se(l, e, "headerTitle"), I = Se(l, e, "titleTip"), j = Se(l, e, "toolBarBtn");
2495
2498
  return r(fa, {
2496
2499
  headerTitle: F,
2497
2500
  titleTip: I,
2498
2501
  titleTipText: e.titleTipText,
2499
- options: se(pe.value) ? pe.value : {
2500
- ...pe.value,
2501
- setting: f ? !1 : (O = pe.value) == null ? void 0 : O.setting,
2502
- density: f ? !1 : (V = pe.value) == null ? void 0 : V.density
2502
+ options: se($e.value) ? $e.value : {
2503
+ ...$e.value,
2504
+ setting: f ? !1 : (O = $e.value) == null ? void 0 : O.setting,
2505
+ density: f ? !1 : (V = $e.value) == null ? void 0 : V.density
2503
2506
  },
2504
- settingExtra: Ce(l, e, "settingExtra"),
2505
- optionsExtra: Ce(l, e, "optionsExtra"),
2507
+ settingExtra: Se(l, e, "settingExtra"),
2508
+ optionsExtra: Se(l, e, "optionsExtra"),
2506
2509
  toolBarBtn: j
2507
2510
  }, null);
2508
2511
  };
@@ -2517,20 +2520,20 @@ const da = {
2517
2520
  toggle: g
2518
2521
  },
2519
2522
  settingsAction: {
2520
- autoScroll: te(e, "autoScroll"),
2523
+ autoScroll: ae(e, "autoScroll"),
2521
2524
  columnsMap: Ke,
2522
- operationType: Ie,
2525
+ operationType: Be,
2523
2526
  setColumnsMap: ce,
2524
- sortKeyColumns: Be,
2525
- cacheColumnsMap: we,
2526
- setSortKeyColumns: X
2527
+ sortKeyColumns: Oe,
2528
+ cacheColumnsMap: Te,
2529
+ setSortKeyColumns: J
2527
2530
  },
2528
2531
  setPagination: _,
2529
2532
  changeColumns: K,
2530
2533
  slots: l
2531
2534
  }), o({
2532
2535
  formRef: () => ({
2533
- getFormState: () => S(A),
2536
+ getFormState: () => x(A),
2534
2537
  getFormInnerState: () => {
2535
2538
  var f;
2536
2539
  return ((f = n.value) == null ? void 0 : f.getFormState()) || {};
@@ -2542,7 +2545,7 @@ const da = {
2542
2545
  }),
2543
2546
  actionRef: () => ({
2544
2547
  loading: L,
2545
- dataSource: Te,
2548
+ dataSource: pe,
2546
2549
  pageState: Z,
2547
2550
  pagination: M.value,
2548
2551
  selectedKey: T(() => Xe.value),
@@ -2555,7 +2558,7 @@ const da = {
2555
2558
  selectAll: Qe
2556
2559
  },
2557
2560
  reload: Ae,
2558
- getLoadingStatus: () => S(Y),
2561
+ getLoadingStatus: () => x(Y),
2559
2562
  reloadAndReset: async (f) => {
2560
2563
  var F, I, j;
2561
2564
  c.value = !0, _({
@@ -2578,20 +2581,20 @@ const da = {
2578
2581
  [`${h.value}`]: !0,
2579
2582
  [`${i}`]: !0,
2580
2583
  [`${u.class}`]: u.class,
2581
- [`${i}-no-scroll`]: !Object.keys(S(t) || {}).length,
2584
+ [`${i}-no-scroll`]: !Object.keys(x(t) || {}).length,
2582
2585
  [`${i}-table-tree`]: kt.value,
2583
2586
  [`${i}-full-screen`]: m.value
2584
2587
  }]),
2585
2588
  style: u.style
2586
2589
  }, [r("div", {
2587
2590
  class: [`${i}-content`, h.value]
2588
- }, [(ae.value.length > 0 || xe(l.search)) && r(Tt, {
2591
+ }, [(ue.value.length > 0 || xe(l.search)) && r(Tt, {
2589
2592
  ref: n,
2590
2593
  search: e.search,
2591
2594
  modal: e.modalScroll,
2592
- searchMap: ae.value,
2595
+ searchMap: ue.value,
2593
2596
  prefixCls: i,
2594
- loading: !!S(Y),
2597
+ loading: !!x(Y),
2595
2598
  onSearch: jt,
2596
2599
  defaultParams: me
2597
2600
  }, {
@@ -2607,31 +2610,31 @@ const da = {
2607
2610
  }, [r("div", {
2608
2611
  class: je(`${i}-list`, h.value, (j = e.tableProps) == null ? void 0 : j.class),
2609
2612
  style: (O = e.tableProps) == null ? void 0 : O.style
2610
- }, [At()]), e.pagination !== !1 && ((V = Te.value) == null ? void 0 : V.length) > 0 && r(Tl, U({
2613
+ }, [At()]), e.pagination !== !1 && ((V = pe.value) == null ? void 0 : V.length) > 0 && r(Tl, X({
2611
2614
  class: {
2612
2615
  [`${i}-pagination ${h.value}`]: !0,
2613
2616
  [`${i}-pagination-${at.value} ${h.value}`]: !!at.value
2614
2617
  }
2615
- }, ve(S(M)), {
2618
+ }, ge(x(M)), {
2616
2619
  onChange: Mt
2617
2620
  }), null)])];
2618
2621
  }
2619
- }) : r(pl, U(ot(e, Object.keys(wt)), Dt.value, {
2622
+ }) : r(pl, X(ot(e, Object.keys(wt)), Dt.value, {
2620
2623
  style: (F = e.tableProps) == null ? void 0 : F.style,
2621
2624
  class: (I = e.tableProps) == null ? void 0 : I.class,
2622
2625
  loading: lt.value,
2623
2626
  rowKey: (j) => j[e.rowKey],
2624
2627
  transformCellText: (j) => {
2625
- var J, ne, ue;
2626
- e.transformCellText && typeof e.transformCellText && ((J = e.transformCellText) == null || J.call(e, j));
2628
+ var U, te, le;
2629
+ e.transformCellText && typeof e.transformCellText && ((U = e.transformCellText) == null || U.call(e, j));
2627
2630
  const {
2628
2631
  column: O
2629
2632
  } = j, V = (O == null ? void 0 : O.key) || (O == null ? void 0 : O.dataIndex);
2630
2633
  let ee = !0, N = j.text;
2631
- if (ye(N) && N.length === 1 && !be(N == null ? void 0 : N[0])) {
2634
+ if (be(N) && N.length === 1 && !Ce(N == null ? void 0 : N[0])) {
2632
2635
  N = N == null ? void 0 : N[0];
2633
- const Oe = Ut(N, (O == null ? void 0 : O.columnEmptyText) || (e == null ? void 0 : e.columnEmptyText) || "");
2634
- ee = Oe.success, N = Ol(Oe.value, (O == null ? void 0 : O.valueType) || ((ue = (ne = e.columns) == null ? void 0 : ne.find((st) => (st.key || st.dataIndex) === V)) == null ? void 0 : ue.valueType), i, h.value);
2636
+ const ve = Ut(N, (O == null ? void 0 : O.columnEmptyText) || (e == null ? void 0 : e.columnEmptyText) || "");
2637
+ ee = ve.success, N = Ol(ve.value, (O == null ? void 0 : O.valueType) || ((le = (te = e.columns) == null ? void 0 : te.find((st) => (st.key || st.dataIndex) === V)) == null ? void 0 : le.valueType), i, h.value);
2635
2638
  }
2636
2639
  return O != null && O.ellipsis ? Kt(N, ee, O) : N;
2637
2640
  },
@@ -2657,6 +2660,6 @@ He.install = (e) => (e.component(He.name, He), e);
2657
2660
  export {
2658
2661
  He as GProTable,
2659
2662
  He as default,
2660
- ge as proTableProps,
2663
+ ye as proTableProps,
2661
2664
  Ia as useTable
2662
2665
  };