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

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 Z, isBoolean as ue, getSlot as mt, isFunction as $e, arrayRepeat as Lt, runFunction as Vt, convertValueBoolean as Ce, isArray as ye, getSortIndex as Ht, isDeepEqualReact as De, handleCurrentPage as Wt, genColumnKey as vt, compareArray as _t, isNumber as gt, isString as Gt, filterEmpty as yt, classNames as je, getPrefixCls as Ge, getRandomNumber as We, handleShowIndex as qt, hanndleEmptyField as Ut, getSlotVNode as be } 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 xe, watchEffect as Pe, unref as S, onUnmounted as Jt, onDeactivated as Qt, onMounted as Zt, defineComponent as se, Fragment as Ne, nextTick as el, h as bt, cloneVNode as qe, createTextVNode as Fe, renderSlot as tl, toRef as le } from "vue";
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";
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
- import { omit as Ee, cloneDeep as ne, pick as rt } from "lodash-es";
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
- import { UpOutlined as nl, DownOutlined as ul, SettingOutlined as Ct, 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
- import { useFullscreen as xt, useWindowSize as vl } from "@vueuse/core";
9
- import { Form as ct, Grid as Ue, Space as de, Button as dt, Input as ft, TimePicker as gl, DatePicker as St, TreeSelect as yl, Spin as _e, Select as bl, Popover as Cl, Checkbox as xl, Tooltip as ie, 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 wt } from "@gx-design-vue/pro-app";
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
+ 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";
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 && Z(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) ? ve(a == null ? void 0 : a.state) : {};
18
18
  }
19
19
  const u = fe({
20
20
  // @ts-ignore
@@ -93,7 +93,7 @@ function Ia(e, a) {
93
93
  }
94
94
  };
95
95
  }
96
- const Il = ["rowKey", "rowSelection", "columns", "pagination", "size", "bordered", "loading"], Tt = {
96
+ const Il = ["rowKey", "rowSelection", "columns", "pagination", "size", "bordered", "loading"], wt = {
97
97
  ...Ee(al(), Il),
98
98
  transformCellText: Function,
99
99
  /**
@@ -115,7 +115,7 @@ const Il = ["rowKey", "rowSelection", "columns", "pagination", "size", "bordered
115
115
  default: void 0
116
116
  }
117
117
  }, ge = {
118
- ...Tt,
118
+ ...wt,
119
119
  rowSelection: {
120
120
  type: Object,
121
121
  default: void 0
@@ -370,12 +370,12 @@ 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]" && !xe(e);
373
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !be(e);
374
374
  }
375
375
  function Ol(e, a, l, u) {
376
376
  if (!a) return e;
377
377
  let o = e;
378
- if (Z(a)) {
378
+ if (Q(a)) {
379
379
  const i = a.node === "a" ? "span" : a.node;
380
380
  return r(i, U((a == null ? void 0 : a.attr) || {}, {
381
381
  class: [a.class, a.node === "a" ? `${l}-a` : ""],
@@ -412,9 +412,9 @@ function Dl(e) {
412
412
  }
413
413
  function jl({ emit: e, loading: a }) {
414
414
  var i;
415
- const l = D(ue(a.value) ? a.value : Z(a.value) ? (i = a.value) == null ? void 0 : i.spinning : !1);
415
+ const l = D(se(a.value) ? a.value : Q(a.value) ? (i = a.value) == null ? void 0 : i.spinning : !1);
416
416
  W(() => a.value, (d) => {
417
- l.value = ue(d) ? d : Z(d) ? d == null ? void 0 : d.spinning : l.value;
417
+ l.value = se(d) ? d : Q(d) ? d == null ? void 0 : d.spinning : l.value;
418
418
  });
419
419
  const u = T(() => l.value);
420
420
  function o(d) {
@@ -440,11 +440,11 @@ function Nl({
440
440
  const u = fe({}), o = D();
441
441
  W(() => l.value, () => {
442
442
  var p;
443
- if (ue(l.value) && !l.value) {
443
+ if (se(l.value) && !l.value) {
444
444
  o.value = !1;
445
445
  return;
446
446
  }
447
- const d = mt(e, S(a), "pageItemRender"), h = $e(d) ? {
447
+ const d = ht(e, S(a), "pageItemRender"), h = $e(d) ? {
448
448
  itemRender: ({
449
449
  page: v,
450
450
  type: s,
@@ -473,7 +473,7 @@ function Nl({
473
473
  immediate: !0
474
474
  });
475
475
  function i(d) {
476
- if (Z(o.value) && Z(d)) {
476
+ if (Q(o.value) && Q(d)) {
477
477
  const h = {};
478
478
  Object.keys(d).forEach((C) => {
479
479
  Object.prototype.hasOwnProperty.call(d, C) && o.value[C] === d[C] || (h[C] = d[C]);
@@ -524,7 +524,7 @@ function zl(e, a) {
524
524
  if (e.value && l.value.length !== u.value.length) {
525
525
  const s = u.value.map((c) => c[e.value]), n = l.value.filter((c) => !s.includes(c));
526
526
  v.forEach((c) => {
527
- n.includes(c[e.value]) && u.value.push(ne(c));
527
+ n.includes(c[e.value]) && u.value.push(ie(c));
528
528
  });
529
529
  }
530
530
  },
@@ -561,117 +561,117 @@ 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 }, I) {
565
- const R = D(), k = D(!0), A = D(!1), Y = D(!1), E = D([]), H = D(), oe = async (y = {}) => {
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) {
565
+ const R = D(), k = D(!0), Y = D(!1), L = D(!1), z = D([]), H = D(), re = async (y = {}) => {
566
566
  var Ie;
567
- const { pagination: $, filters: N = {}, sorter: z = {}, removeKeys: w = [], isPolling: Ke = !1 } = y;
568
- if (!a || !$e(a) || S(o) && h.value || A.value)
567
+ const { pagination: $, filters: E = {}, sorter: K = {}, removeKeys: w = [], isPolling: Ke = !1 } = y;
568
+ if (!a || !$e(a) || S(o) && h.value || Y.value)
569
569
  return u.value || [];
570
- if (A.value = !0, !Ke || S(o) || k.value ? C(!0) : Se(!0), S(o)) {
571
- k.value = !1, A.value = !1;
570
+ if (Y.value = !0, !Ke || S(o) || k.value ? C(!0) : Se(!0), S(o)) {
571
+ k.value = !1, Y.value = !1;
572
572
  return;
573
573
  }
574
574
  $ && c($);
575
575
  try {
576
- let re = {};
577
- if (ue($) && !$ || ue(g))
578
- re = {};
576
+ let ce = {};
577
+ if (se($) && !$ || se(g))
578
+ ce = {};
579
579
  else {
580
- const { current: K = 1, pageSize: me = 10, total: G } = S(g) || {};
581
- re.pageNum = Wt({ current: K, pageSize: me, total: G }, w.length), w.length && v(w), re.pageSize = me;
580
+ const { current: A = 1, pageSize: me = 10, total: G } = S(g) || {};
581
+ ce.pageNum = Wt({ current: A, pageSize: me, total: G }, w.length), w.length && v(w), ce.pageSize = me;
582
582
  }
583
- const Be = Z(z) ? [z] : z;
584
- Be.forEach((K) => {
585
- const me = (K == null ? void 0 : K.columnKey) || (K == null ? void 0 : K.field);
586
- K && (K != null && K.order) ? p(S(d).map((G) => (G.dataIndex === me ? G.sortOrder = K == null ? void 0 : K.order : G.sortOrder = null, G))) : K && p(S(d).map((G) => (G.dataIndex === me && (G.sortOrder = null), G)));
583
+ const Be = Q(K) ? [K] : K;
584
+ Be.forEach((A) => {
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)));
587
587
  });
588
588
  let we = {
589
- ...re || {},
589
+ ...ce || {},
590
590
  ...y.params,
591
591
  ...n
592
592
  };
593
- m && $e(m) && (we = await m(we, z, N));
593
+ m && $e(m) && (we = await m(we, K, E));
594
594
  let X = [];
595
- const ae = await (a == null ? void 0 : a(we, Be, N));
596
- if (A.value = !1, ae && (ae != null && ae.success)) {
595
+ const ae = await (a == null ? void 0 : a(we, Be, E));
596
+ if (Y.value = !1, ae && (ae != null && ae.success)) {
597
597
  X = ae.data || [], l && $e(l) && (X = await (l == null ? void 0 : l(X))), s(X);
598
- const K = ae.total || (X == null ? void 0 : X.length) || 0;
599
- return K !== ((Ie = S(g)) == null ? void 0 : Ie.total) && c({
600
- total: K || 0
598
+ const A = ae.total || (X == null ? void 0 : X.length) || 0;
599
+ return A !== ((Ie = S(g)) == null ? void 0 : Ie.total) && c({
600
+ total: A || 0
601
601
  }), b(X), X;
602
602
  } else
603
603
  return [];
604
- } catch (re) {
605
- E.value === void 0 && b([]), I("requestError", re);
604
+ } catch (ce) {
605
+ z.value === void 0 && b([]), P("requestError", ce);
606
606
  } finally {
607
607
  k.value = !1, C(!1);
608
608
  }
609
609
  return [];
610
- }, j = Kl(async (y) => {
610
+ }, M = Kl(async (y) => {
611
611
  H.value && clearTimeout(H.value);
612
- const $ = await oe(y), N = Vt(e.value, $);
613
- return N && !R.value && (H.value = setTimeout(() => {
614
- j.run({ ...y, isPolling: N });
615
- }, Math.max(N, 2e3))), $;
612
+ const $ = await re(y), E = Vt(e.value, $);
613
+ return E && !R.value && (H.value = setTimeout(() => {
614
+ M.run({ ...y, isPolling: E });
615
+ }, Math.max(E, 2e3))), $;
616
616
  }, i.value || 10);
617
617
  Jt(() => {
618
618
  R.value = !0, clearTimeout(H.value);
619
619
  }), Qt(() => {
620
620
  R.value = !0, clearTimeout(H.value);
621
621
  }), W(() => e.value, () => {
622
- e.value ? j.run({ isPolling: !0 }) : clearTimeout(H.value);
622
+ e.value ? M.run({ isPolling: !0 }) : clearTimeout(H.value);
623
623
  }, { immediate: !0 }), W([() => o.value, () => u.value, () => n], () => {
624
- Ce(a) ? (!k.value || !e.value) && j.run({ isPolling: !1 }) : b(u.value || []);
624
+ xe(a) ? (!k.value || !e.value) && M.run({ isPolling: !1 }) : b(u.value || []);
625
625
  }, {
626
626
  deep: !0,
627
627
  immediate: !0
628
628
  });
629
- const ee = T(() => {
629
+ const Z = T(() => {
630
630
  if (x.value)
631
- return S(E);
631
+ return S(z);
632
632
  const y = d.value.filter(($) => $.show || $.show === void 0);
633
- return !S(E) || !y || y.length === 0 ? [] : S(E);
634
- }), _ = T(() => S(E).some((y) => ye(y.children) && y.children.length > 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
635
  function Se(y) {
636
- Y.value = y;
636
+ L.value = y;
637
637
  }
638
- function t(y, $, N, z) {
639
- j.run({ pagination: y, filters: $, sorter: N, extra: z, isPolling: !1 }), I("change", y, $, N, z);
638
+ function t(y, $, E, K) {
639
+ M.run({ pagination: y, filters: $, sorter: E, extra: K, isPolling: !1 }), P("change", y, $, E, K);
640
640
  }
641
641
  function b(y) {
642
- var N;
643
- const $ = Ht(ne(y), S(g.value));
644
- if (!De($, E.value) && (E.value = $, !a || !$e(a))) {
645
- const z = $.length || 0;
646
- z !== ((N = S(g)) == null ? void 0 : N.total) && c({
647
- total: z
642
+ var E;
643
+ const $ = Ht(ie(y), S(g.value));
644
+ if (!De($, z.value) && (z.value = $, !a || !$e(a))) {
645
+ const K = $.length || 0;
646
+ K !== ((E = S(g)) == null ? void 0 : E.total) && c({
647
+ total: K
648
648
  });
649
649
  }
650
650
  }
651
- function O({ key: y, record: $, type: N = "update" }) {
652
- switch (N) {
651
+ function B({ key: y, record: $, type: E = "update" }) {
652
+ switch (E) {
653
653
  case "update":
654
- E.value = E.value.map((z) => y && $[y] === z[y] ? { ...z, ...$ } : z);
654
+ z.value = z.value.map((K) => y && $[y] === K[y] ? { ...K, ...$ } : K);
655
655
  break;
656
656
  case "push":
657
- E.value.push($);
657
+ z.value.push($);
658
658
  break;
659
659
  case "unshift":
660
- E.value.unshift($);
660
+ z.value.unshift($);
661
661
  break;
662
662
  case "delete":
663
- E.value = E.value.filter((z) => y ? y && $[y] !== z[y] : !0);
663
+ z.value = z.value.filter((K) => y ? y && $[y] !== K[y] : !0);
664
664
  break;
665
665
  }
666
666
  }
667
667
  return {
668
- dataSource: ee,
668
+ dataSource: Z,
669
669
  isTreeDataRef: _,
670
670
  reSetDataList: b,
671
- changeDataValue: O,
671
+ changeDataValue: B,
672
672
  handleTableChange: t,
673
673
  reload: async (y) => {
674
- Ce(a) ? await j.run({ ...y, isPolling: !1 }) : I("reload");
674
+ xe(a) ? await M.run({ ...y, isPolling: !1 }) : P("reload");
675
675
  }
676
676
  };
677
677
  }
@@ -686,7 +686,7 @@ function Ll(e) {
686
686
  function Vl({ search: e, searchMap: a, params: l, columns: u, setPagination: o }) {
687
687
  const i = fe({}), d = fe({}), h = D([]), C = T(() => {
688
688
  var s;
689
- return Z(e.value) ? !!((s = e.value) != null && s.showSearch) : !!e.value;
689
+ return Q(e.value) ? !!((s = e.value) != null && s.showSearch) : !!e.value;
690
690
  }), p = (s) => {
691
691
  var c, g;
692
692
  const n = [];
@@ -730,7 +730,7 @@ function Hl({ columns: e, columnsState: a, changeColumns: l }) {
730
730
  W(() => e.value, () => {
731
731
  var s;
732
732
  (s = S(e)) == null || s.forEach(({ show: n, key: c, fixed: g }, m) => {
733
- const x = vt(c, m);
733
+ const x = mt(c, m);
734
734
  x && (d[x] = { show: n === void 0 ? !0 : n, fixed: g });
735
735
  });
736
736
  const v = S(e).map((n) => n.key);
@@ -778,13 +778,13 @@ function _l({ scroll: e, columns: a, breakpoint: l, draggabled: u, autoScroll: o
778
778
  () => i.value
779
779
  ], () => {
780
780
  const g = v(ve(a.value));
781
- De(g, ve(d.value)) || (d.value = ne(g)), De(g, ve(h.value)) || (h.value = ne(g));
781
+ De(g, ve(d.value)) || (d.value = ie(g)), De(g, ve(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((I) => I.fixed === "left")), m = p(S(d).filter((I) => I.fixed !== "left" && I.fixed !== "right")), x = p(S(d).filter((I) => I.fixed === "right"));
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"));
788
788
  return [
789
789
  ...g,
790
790
  ...m,
@@ -795,12 +795,12 @@ function _l({ scroll: e, columns: a, breakpoint: l, draggabled: u, autoScroll: o
795
795
  return g.sort((m, x) => _t(m, x, "order", 0));
796
796
  }
797
797
  function v(g) {
798
- return ne(g).map((m, x) => {
799
- var I;
800
- if (m.dataIndex === "action" || x === g.length - 1 ? m.resizable = !1 : m.resizable = ue(m.resizable) ? m.resizable : !!(gt(m.width) && S(u)), !m.width || S(i))
798
+ return ie(g).map((m, x) => {
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))
801
801
  return m;
802
802
  if (m.dataIndex === "action" && S(o))
803
- if ((I = S(e)) != null && I.x || !S(l))
803
+ if ((P = S(e)) != null && P.x || !S(l))
804
804
  m.width = m.width || 100, m.fixed = "right";
805
805
  else {
806
806
  const R = S(a).find((k) => k.dataIndex === m.dataIndex);
@@ -820,10 +820,10 @@ function _l({ scroll: e, columns: a, breakpoint: l, draggabled: u, autoScroll: o
820
820
  De(v(g), ve(d.value)) || (d.value = v(g));
821
821
  }
822
822
  function c(g) {
823
- n(ne(ve(a.value)).map((m) => {
824
- var I, R, k;
823
+ n(ie(ve(a.value)).map((m) => {
824
+ var P, R, k;
825
825
  const x = m.key ? {
826
- show: (I = g[m.key]) == null ? void 0 : I.show,
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
  } : {};
@@ -853,21 +853,21 @@ 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) ? gt(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 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;
857
857
  }), v = T(() => {
858
858
  let n = 0;
859
- const c = S(i) ? 60 : 0, g = 150, m = ne(S(a));
859
+ const c = S(i) ? 60 : 0, g = 150, m = ie(S(a));
860
860
  m.forEach((R) => {
861
861
  n += Number.parseInt(String(R.width)) || 0;
862
862
  });
863
- const I = m.filter((R) => !Reflect.has(R, "width")).length;
864
- return I !== 0 && (n += I * g), c && (n += c), n;
863
+ const P = m.filter((R) => !Reflect.has(R, "width")).length;
864
+ return P !== 0 && (n += P * g), c && (n += c), n;
865
865
  });
866
866
  return { proScroll: T(() => {
867
867
  var n, c;
868
868
  return S(o) ? {} : S(e) && Object.keys(S(e)).length ? S(e) : S(u) ? {
869
869
  y: ((n = S(e)) == null ? void 0 : n.y) || ((c = d.value) != null && c.xl ? 400 : 235)
870
- } : S(l) ? p.value ? {} : ue(p.value) ? { x: S(v) } : {} : {};
870
+ } : S(l) ? p.value ? {} : se(p.value) ? { x: S(v) } : {} : {};
871
871
  }), breakpoint: p };
872
872
  }
873
873
  const { provideContext: Ul, useInjectContext: he } = Rl("pro-table");
@@ -933,7 +933,7 @@ const Jl = (e) => ({
933
933
  } = Ue, {
934
934
  MonthPicker: Zl,
935
935
  RangePicker: ea
936
- } = St, pt = /* @__PURE__ */ se({
936
+ } = xt, Tt = /* @__PURE__ */ oe({
937
937
  name: "ProTableForm",
938
938
  props: {
939
939
  search: {
@@ -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 = wt(), h = Ql(), {
964
+ } = ze("ProTableForm", [Jl], e.prefixCls), d = St(), h = Ql(), {
965
965
  formState: C,
966
966
  resetFormState: p,
967
967
  changeFormState: v
@@ -991,10 +991,10 @@ const Jl = (e) => ({
991
991
  span: 1
992
992
  }], m = (t) => {
993
993
  let b = 4;
994
- for (let O = 0; O < g.length; O += 1) {
995
- const y = g[O].value;
994
+ for (let B = 0; B < g.length; B += 1) {
995
+ const y = g[B].value;
996
996
  if (h.value[y]) {
997
- b = (t == null ? void 0 : t[y]) || (e.modal ? 3 : g[O].span);
997
+ b = (t == null ? void 0 : t[y]) || (e.modal ? 3 : g[B].span);
998
998
  break;
999
999
  }
1000
1000
  }
@@ -1009,23 +1009,23 @@ const Jl = (e) => ({
1009
1009
  }, (t) => {
1010
1010
  s.value = s.value || !!t;
1011
1011
  });
1012
- const I = (t) => {
1012
+ const P = (t) => {
1013
1013
  s.value = t;
1014
- }, R = (t, b, O) => (t + 1) % b === 0 ? {
1015
- ...O,
1014
+ }, R = (t, b, B) => (t + 1) % b === 0 ? {
1015
+ ...B,
1016
1016
  marginRight: 0
1017
1017
  } : {
1018
- ...O,
1018
+ ...B,
1019
1019
  marginRight: "2%"
1020
1020
  }, k = () => {
1021
- const t = ne(C), b = e.searchMap.find(($) => $.valueType === "text") || "", O = e.searchMap.find(($) => $.valueType === "dateRange") || "", y = e.searchMap.find(($) => $.valueType === "treeSelect");
1022
- return b && (t[b.name] = C[b.name] || b.initialValue || ""), O && (t[O.rangeStartName || "start"] = t[O.name] ? t[O.name][0] : "", t[O.rangeEndName || "end"] = t[O.name] ? t[O.name][1] : "", delete t[O.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;
1023
- }, A = (t = !1, b) => {
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;
1023
+ }, Y = (t = !1, b) => {
1024
1024
  el(() => {
1025
1025
  (!n.value || t) && a("search", k(), !!b);
1026
1026
  });
1027
- }, Y = (t, b) => {
1028
- var O, y, $;
1027
+ }, L = (t, b) => {
1028
+ var B, y, $;
1029
1029
  switch (b.valueType) {
1030
1030
  case "text":
1031
1031
  v(b.name || "", t || b.initialValue || "");
@@ -1034,7 +1034,7 @@ const Jl = (e) => ({
1034
1034
  v(b.name || "", t || t === 0 ? t : b.initialValue || void 0);
1035
1035
  break;
1036
1036
  case "treeSelect":
1037
- v(b.name || "", t || t === 0 ? t : b.initialValue || ((O = b.field) != null && O.treeCheckable || (y = b.field) != null && y.multiple ? [] : null));
1037
+ v(b.name || "", t || t === 0 ? t : b.initialValue || ((B = b.field) != null && B.treeCheckable || (y = b.field) != null && y.multiple ? [] : null));
1038
1038
  break;
1039
1039
  case "date":
1040
1040
  v(b.name || "", t ? q(t).format(b.valueFormat || "YYYY-MM-DD") : b.initialValue || null);
@@ -1049,45 +1049,45 @@ const Jl = (e) => ({
1049
1049
  v(b.name || "", t ? q(t).format(b.valueFormat || "HH:mm:ss") : b.initialValue || null);
1050
1050
  break;
1051
1051
  }
1052
- ($ = e.search) != null && $.showSearch || b.valueType === "text" || (b.valueType === "treeSelect" || b.valueType, A());
1053
- }, E = (t = !0) => {
1054
- p(), A(!0, t);
1052
+ ($ = e.search) != null && $.showSearch || b.valueType === "text" || (b.valueType === "treeSelect" || b.valueType, Y());
1053
+ }, z = (t = !0) => {
1054
+ p(), Y(!0, t);
1055
1055
  };
1056
1056
  u({
1057
1057
  getFormState: () => k(),
1058
- resetForm: E
1058
+ resetForm: z
1059
1059
  });
1060
1060
  const H = () => {
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 O = xe(t), y = O ? bt(t) : yt(t || []);
1064
+ const B = be(t), y = B ? yt(t) : gt(t || []);
1065
1065
  return r("div", {
1066
1066
  class: je(`${e.prefixCls}-search-empty-text`, i.value)
1067
- }, [O ? y : ye(y) ? y.map(($) => qe($)) : void 0]);
1067
+ }, [B ? y : ye(y) ? y.map(($) => qe($)) : void 0]);
1068
1068
  }
1069
- }, oe = () => (n.value || c.value) && r(de, null, {
1070
- default: () => [c.value && r(dt, {
1071
- onClick: () => E()
1069
+ }, re = () => (n.value || c.value) && r(de, null, {
1070
+ default: () => [c.value && r(ct, {
1071
+ onClick: () => z()
1072
1072
  }, {
1073
1073
  default: () => {
1074
1074
  var t;
1075
1075
  return [((t = e.search) == null ? void 0 : t.resetText) || "重置"];
1076
1076
  }
1077
- }), n.value && r(dt, {
1077
+ }), n.value && r(ct, {
1078
1078
  loading: e.loading,
1079
1079
  type: "primary",
1080
- onClick: () => A(!0)
1080
+ onClick: () => Y(!0)
1081
1081
  }, {
1082
1082
  default: () => {
1083
1083
  var t;
1084
1084
  return [((t = e.search) == null ? void 0 : t.searchText) || "查询"];
1085
1085
  }
1086
1086
  })]
1087
- }), j = ({
1087
+ }), M = ({
1088
1088
  formItemStyle: t,
1089
1089
  advanced: b,
1090
- showAdvanced: O = !0
1090
+ showAdvanced: B = !0
1091
1091
  }) => r("div", {
1092
1092
  style: t,
1093
1093
  class: `${e.prefixCls}-form-collapse-button ${i.value}`
@@ -1096,26 +1096,26 @@ const Jl = (e) => ({
1096
1096
  }, {
1097
1097
  default: () => {
1098
1098
  var y, $;
1099
- return [oe(), O && r("span", {
1099
+ return [re(), B && r("span", {
1100
1100
  class: `${e.prefixCls}-a ${i.value}`,
1101
- onClick: () => I(!b)
1101
+ onClick: () => P(!b)
1102
1102
  }, [b ? "收起" : "展开", (y = e.search) != null && y.collapseRender ? ($ = e.search) == null ? void 0 : $.collapseRender() : b ? r(nl, null, null) : r(ul, null, null)])];
1103
1103
  }
1104
- })]), ee = (t) => {
1105
- var y, $, N, z;
1104
+ })]), Z = (t) => {
1105
+ var y, $, E, K;
1106
1106
  let b;
1107
- const O = n.value ? ft : ft.Search;
1107
+ const B = n.value ? dt : dt.Search;
1108
1108
  switch (t.valueType) {
1109
1109
  case "text":
1110
- b = r(O, U({
1110
+ b = r(B, U({
1111
1111
  style: {
1112
1112
  width: "100%"
1113
1113
  },
1114
1114
  value: C[t.name],
1115
1115
  placeholder: t.placeholder || "请输入",
1116
1116
  allowClear: t.allowClear || t.allowClear === !1 ? t.allowClear : !0,
1117
- onChange: (w) => Y(w.target.value, t),
1118
- onSearch: (w) => A()
1117
+ onChange: (w) => L(w.target.value, t),
1118
+ onSearch: (w) => Y()
1119
1119
  }, t.field || {}), null);
1120
1120
  break;
1121
1121
  case "select":
@@ -1133,7 +1133,7 @@ const Jl = (e) => ({
1133
1133
  size: "small",
1134
1134
  indicator: (y = d == null ? void 0 : d.indicator) == null ? void 0 : y.value
1135
1135
  }, null) : H(),
1136
- onChange: (w) => Y(w, t),
1136
+ onChange: (w) => L(w, t),
1137
1137
  options: t.loading ? [] : ($ = t == null ? void 0 : t.valueEnum) == null ? void 0 : $.map((w) => ({
1138
1138
  label: w.text,
1139
1139
  value: w.value
@@ -1152,13 +1152,13 @@ const Jl = (e) => ({
1152
1152
  getPopupContainer: (w) => w && w.parentNode ? w.parentNode : w,
1153
1153
  notFoundContent: t.loading === void 0 ? void 0 : t.loading ? r(_e, {
1154
1154
  size: "small",
1155
- indicator: (N = d == null ? void 0 : d.indicator) == null ? void 0 : N.value
1155
+ indicator: (E = d == null ? void 0 : d.indicator) == null ? void 0 : E.value
1156
1156
  }, null) : H(),
1157
- onChange: (w) => Y(w, t)
1157
+ onChange: (w) => L(w, t)
1158
1158
  }, t.field || {}), null);
1159
1159
  break;
1160
1160
  case "date":
1161
- b = r(St, U({
1161
+ b = r(xt, U({
1162
1162
  style: {
1163
1163
  width: "100%"
1164
1164
  },
@@ -1169,7 +1169,7 @@ const Jl = (e) => ({
1169
1169
  format: t.valueFormat || "YYYY-MM-DD",
1170
1170
  showTime: t.showTime,
1171
1171
  showToday: t.showToday || !0,
1172
- onChange: (w) => Y(w, t)
1172
+ onChange: (w) => L(w, t)
1173
1173
  }, t.field || {}), null);
1174
1174
  break;
1175
1175
  case "dateMonth":
@@ -1180,7 +1180,7 @@ const Jl = (e) => ({
1180
1180
  value: C[t.name] ? q(C[t.name], t.valueFormat || "YYYY-MM") : void 0,
1181
1181
  getPopupContainer: (w) => w && w.parentNode ? w.parentNode : w,
1182
1182
  placeholder: t.placeholder || "请选择",
1183
- onChange: (w) => Y(w, t)
1183
+ onChange: (w) => L(w, t)
1184
1184
  }, t.field || {}), null);
1185
1185
  break;
1186
1186
  case "dateRange":
@@ -1188,12 +1188,12 @@ const Jl = (e) => ({
1188
1188
  style: {
1189
1189
  width: "100%"
1190
1190
  },
1191
- value: (z = C[t.name]) != null && z.length ? [q(C[t.name][0], t.valueFormat || "YYYY-MM-DD HH:mm:ss"), q(C[t.name][1], t.valueFormat || "YYYY-MM-DD HH:mm:ss")] : void 0,
1191
+ value: (K = C[t.name]) != null && K.length ? [q(C[t.name][0], t.valueFormat || "YYYY-MM-DD HH:mm:ss"), q(C[t.name][1], t.valueFormat || "YYYY-MM-DD HH:mm:ss")] : void 0,
1192
1192
  getPopupContainer: (w) => w && w.parentNode ? w.parentNode : w,
1193
1193
  placeholder: t.placeholder || ["开始日期", "结束日期"],
1194
1194
  format: t.valueFormat || "YYYY-MM-DD HH:mm:ss",
1195
1195
  showTime: t.showTime,
1196
- onChange: (w) => Y(w, t)
1196
+ onChange: (w) => L(w, t)
1197
1197
  }, t.field || {}), null);
1198
1198
  break;
1199
1199
  case "time":
@@ -1207,7 +1207,7 @@ const Jl = (e) => ({
1207
1207
  allowClear: t.allowClear || t.allowClear === !1 ? t.allowClear : !0,
1208
1208
  use12Hours: t.use12Hours,
1209
1209
  format: t.valueFormat || "HH:mm:ss",
1210
- onChange: (w) => Y(w, t)
1210
+ onChange: (w) => L(w, t)
1211
1211
  }, t.field || {}), null);
1212
1212
  break;
1213
1213
  }
@@ -1218,19 +1218,19 @@ const Jl = (e) => ({
1218
1218
  }) => r("div", {
1219
1219
  class: `${e.prefixCls}-form-item`,
1220
1220
  style: t
1221
- }, [r(ct.Item, null, {
1222
- default: () => [b.__v_isVNode ? b : ee(b)]
1221
+ }, [r(rt.Item, null, {
1222
+ default: () => [b.__v_isVNode ? b : Z(b)]
1223
1223
  })]), Se = () => {
1224
1224
  var b;
1225
1225
  const t = [...e.searchMap, ...((b = l.default) == null ? void 0 : b.call(l)) || []];
1226
- return t.map((O, y) => {
1226
+ return t.map((B, y) => {
1227
1227
  const $ = {
1228
1228
  width: `${(100 - (x.value - 1) * 2) / x.value}%`
1229
- }, N = R(y, x.value, $);
1229
+ }, E = R(y, x.value, $);
1230
1230
  return t.length < x.value || s.value ? r(Ne, null, [_({
1231
- formItemStyle: N,
1232
- item: O
1233
- }), y === t.length - 1 && j({
1231
+ formItemStyle: E,
1232
+ item: B
1233
+ }), y === t.length - 1 && M({
1234
1234
  formItemStyle: {
1235
1235
  flex: 1,
1236
1236
  justifyContent: "flex-end"
@@ -1238,12 +1238,12 @@ const Jl = (e) => ({
1238
1238
  advanced: s.value,
1239
1239
  showAdvanced: s.value
1240
1240
  })]) : r(Ne, null, [y < x.value - 1 && _({
1241
- formItemStyle: N,
1242
- item: O
1241
+ formItemStyle: E,
1242
+ item: B
1243
1243
  }), y === x.value - 1 && (x.value - 1 === 0 || t.length === x.value) && _({
1244
- formItemStyle: N,
1245
- item: O
1246
- }), y === x.value - 1 && t.length !== x.value && j({
1244
+ formItemStyle: E,
1245
+ item: B
1246
+ }), y === x.value - 1 && t.length !== x.value && M({
1247
1247
  formItemStyle: {
1248
1248
  flex: 1,
1249
1249
  justifyContent: "flex-end"
@@ -1261,7 +1261,7 @@ const Jl = (e) => ({
1261
1261
  [`${S(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
- }, [r(ct, {
1264
+ }, [r(rt, {
1265
1265
  class: `${S(e.prefixCls)}-form ${i.value}`,
1266
1266
  layout: "horizontal"
1267
1267
  }, {
@@ -1272,7 +1272,7 @@ const Jl = (e) => ({
1272
1272
  };
1273
1273
  }
1274
1274
  });
1275
- pt.inheritAttrs = !1;
1275
+ Tt.inheritAttrs = !1;
1276
1276
  const Re = (e) => {
1277
1277
  const a = D(null);
1278
1278
  return a.value = e, (...l) => {
@@ -1373,7 +1373,7 @@ const Re = (e) => {
1373
1373
  cacheColumns: i,
1374
1374
  settingsAction: d
1375
1375
  } = he();
1376
- return a ? r(ie, {
1376
+ return a ? r(le, {
1377
1377
  title: e
1378
1378
  }, {
1379
1379
  default: () => {
@@ -1396,7 +1396,7 @@ const Re = (e) => {
1396
1396
  }, [(h = o.default) == null ? void 0 : h.call(o)])];
1397
1397
  }
1398
1398
  }) : null;
1399
- }, la = /* @__PURE__ */ se({
1399
+ }, la = /* @__PURE__ */ oe({
1400
1400
  props: {
1401
1401
  treeKey: String,
1402
1402
  hashId: String,
@@ -1445,7 +1445,7 @@ const Re = (e) => {
1445
1445
  }, [e.title]), o]);
1446
1446
  };
1447
1447
  }
1448
- }), Le = /* @__PURE__ */ se({
1448
+ }), Le = /* @__PURE__ */ oe({
1449
1449
  props: {
1450
1450
  list: Array,
1451
1451
  keys: Array,
@@ -1468,54 +1468,54 @@ const Re = (e) => {
1468
1468
  key: g,
1469
1469
  children: m,
1470
1470
  uuid: x,
1471
- ...I
1471
+ ...P
1472
1472
  }) => {
1473
- var Y;
1473
+ var L;
1474
1474
  const R = (h == null ? void 0 : h.columnsMap[g || "null"]) || {
1475
1475
  show: !0
1476
1476
  };
1477
1477
  let k = !1;
1478
1478
  R.show !== !1 && (c == null ? void 0 : c.show) !== !1 && !m && (k = !0);
1479
- const A = {
1479
+ const Y = {
1480
1480
  key: x || "",
1481
- ...Ee(I, ["dataIndex"]),
1481
+ ...Ee(P, ["dataIndex"]),
1482
1482
  checked: k,
1483
1483
  selectable: !1,
1484
1484
  disabled: R.disable === !0,
1485
- disableCheckbox: typeof R.disable == "boolean" ? R.disable : (Y = R.disable) == null ? void 0 : Y.checkbox,
1485
+ disableCheckbox: typeof R.disable == "boolean" ? R.disable : (L = R.disable) == null ? void 0 : L.checkbox,
1486
1486
  isLeaf: !0
1487
1487
  };
1488
- return m && (A.children = C(m, R)), A;
1488
+ return m && (Y.children = C(m, R)), Y;
1489
1489
  });
1490
1490
  Pe(() => {
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
1494
  const p = Re((n, c, g) => {
1495
- var H, oe;
1496
- const m = ((H = S(i).find((j) => j.uuid === n)) == null ? void 0 : H.key) || "", x = ((oe = S(i).find((j) => j.uuid === c)) == null ? void 0 : oe.key) || "", I = {
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 = {
1497
1497
  ...h == null ? void 0 : h.columnsMap
1498
- }, R = [...h.sortKeyColumns.value], k = R.findIndex((j) => j === m), A = R.findIndex((j) => j === x), Y = g > k;
1498
+ }, R = [...h.sortKeyColumns.value], k = R.findIndex((M) => M === m), Y = R.findIndex((M) => M === x), L = g > k;
1499
1499
  if (k < 0)
1500
1500
  return;
1501
- const E = R[k];
1502
- R.splice(k, 1), g === 0 ? R.unshift(E) : R.splice(Y ? A : A + 1, 0, E), R.forEach((j, ee) => {
1503
- I[j] = {
1504
- ...I[j] || {},
1505
- order: ee
1501
+ const z = R[k];
1502
+ R.splice(k, 1), g === 0 ? R.unshift(z) : R.splice(L ? Y : Y + 1, 0, z), R.forEach((M, Z) => {
1503
+ P[M] = {
1504
+ ...P[M] || {},
1505
+ order: Z
1506
1506
  };
1507
- }), h == null || h.setColumnsMap(I, "drop"), h == null || h.setSortKeyColumns(R);
1507
+ }), h == null || h.setColumnsMap(P, "drop"), h == null || h.setSortKeyColumns(R);
1508
1508
  }), v = Re((n) => {
1509
1509
  var R;
1510
1510
  const c = n.node.key, g = ((R = S(i).find((k) => k.uuid === c)) == null ? void 0 : R.key) || "", x = {
1511
1511
  ...(h == null ? void 0 : h.columnsMap[g]) || {}
1512
1512
  };
1513
1513
  x.show = n.checked;
1514
- const I = {
1514
+ const P = {
1515
1515
  ...h == null ? void 0 : h.columnsMap,
1516
1516
  [g]: x
1517
1517
  };
1518
- h == null || h.setColumnsMap(I, "show");
1518
+ h == null || h.setColumnsMap(P, "show");
1519
1519
  }), s = (n) => {
1520
1520
  const c = S(i).find((g) => g.uuid === n.key);
1521
1521
  return n.title || tl(d, "headerCell", {
@@ -1537,9 +1537,9 @@ const Re = (e) => {
1537
1537
  height: 280,
1538
1538
  onDrop: (g) => {
1539
1539
  const m = g.node.key, x = g.dragNode.key, {
1540
- dropPosition: I,
1540
+ dropPosition: P,
1541
1541
  dropToGap: R
1542
- } = g, k = I === -1 || !R ? I + 1 : I;
1542
+ } = g, k = P === -1 || !R ? P + 1 : P;
1543
1543
  p(x, m, k);
1544
1544
  },
1545
1545
  onCheck: (g, m) => v(m),
@@ -1563,7 +1563,7 @@ const Re = (e) => {
1563
1563
  })]) : null;
1564
1564
  };
1565
1565
  }
1566
- }), aa = /* @__PURE__ */ se({
1566
+ }), aa = /* @__PURE__ */ oe({
1567
1567
  props: {
1568
1568
  hashId: String,
1569
1569
  className: String,
@@ -1630,7 +1630,7 @@ const Re = (e) => {
1630
1630
  className: e.className
1631
1631
  }, null)]);
1632
1632
  }
1633
- }), na = /* @__PURE__ */ se({
1633
+ }), na = /* @__PURE__ */ oe({
1634
1634
  props: {
1635
1635
  draggable: {
1636
1636
  type: Boolean,
@@ -1658,10 +1658,10 @@ const Re = (e) => {
1658
1658
  g.forEach(({
1659
1659
  key: m,
1660
1660
  fixed: x,
1661
- index: I,
1661
+ index: P,
1662
1662
  children: R
1663
1663
  }) => {
1664
- const k = vt(m, I);
1664
+ const k = mt(m, P);
1665
1665
  k && (n[k] = {
1666
1666
  show: s,
1667
1667
  fixed: x
@@ -1706,23 +1706,23 @@ const Re = (e) => {
1706
1706
  className: a
1707
1707
  }, null)
1708
1708
  }, {
1709
- default: () => [r(ie, {
1709
+ default: () => [r(le, {
1710
1710
  title: "列设置"
1711
1711
  }, {
1712
- default: () => [r(Ct, null, null)]
1712
+ default: () => [r(bt, null, null)]
1713
1713
  })]
1714
1714
  }));
1715
1715
  }
1716
- }), $t = /* @__PURE__ */ se({
1716
+ }), pt = /* @__PURE__ */ oe({
1717
1717
  setup() {
1718
1718
  const {
1719
1719
  isFullscreen: e
1720
- } = xt();
1721
- return () => e.value ? r(ie, {
1720
+ } = Ct();
1721
+ return () => e.value ? r(le, {
1722
1722
  title: "退出全屏"
1723
1723
  }, {
1724
1724
  default: () => [r(rl, null, null)]
1725
- }) : r(ie, {
1725
+ }) : r(le, {
1726
1726
  title: "全屏"
1727
1727
  }, {
1728
1728
  default: () => [r(cl, null, null)]
@@ -1762,7 +1762,7 @@ const Re = (e) => {
1762
1762
  }),
1763
1763
  trigger: ["click"]
1764
1764
  }, {
1765
- default: () => [r(ie, {
1765
+ default: () => [r(le, {
1766
1766
  title: "表格密度"
1767
1767
  }, {
1768
1768
  default: () => [r(dl, null, null)]
@@ -1810,14 +1810,14 @@ const Re = (e) => {
1810
1810
  }
1811
1811
  }
1812
1812
  });
1813
- function ht(e) {
1814
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !xe(e);
1813
+ function ft(e) {
1814
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !be(e);
1815
1815
  }
1816
1816
  const {
1817
1817
  useBreakpoint: sa
1818
1818
  } = Ue;
1819
1819
  function oa(e) {
1820
- if (xe(e))
1820
+ if (be(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(ie, {
1829
+ return l && u ? r(le, {
1830
1830
  title: u
1831
1831
  }, {
1832
1832
  default: () => [r("span", {
@@ -1839,7 +1839,7 @@ function oa(e) {
1839
1839
  }
1840
1840
  return null;
1841
1841
  }
1842
- const Ft = /* @__PURE__ */ se({
1842
+ const $t = /* @__PURE__ */ oe({
1843
1843
  props: {
1844
1844
  actions: ge.toolBarBtn,
1845
1845
  settings: [Array],
@@ -1866,7 +1866,7 @@ const Ft = /* @__PURE__ */ se({
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
- }, ht(n = e.actions.map((g, m) => xe(g) ? qe(g, {
1869
+ }, ft(n = e.actions.map((g, m) => be(g) ? qe(g, {
1870
1870
  key: m,
1871
1871
  ...g == null ? void 0 : g.props
1872
1872
  }) : r("template", {
@@ -1881,10 +1881,10 @@ const Ft = /* @__PURE__ */ se({
1881
1881
  }, {
1882
1882
  default: () => [r("div", {
1883
1883
  class: `${e.prefixCls}-title ${l.value}`
1884
- }, [e.headerTitle, e.titleTip && r(ie, {
1884
+ }, [e.headerTitle, e.titleTip && r(le, {
1885
1885
  title: e.titleTipText
1886
1886
  }, {
1887
- default: () => [ue(e.titleTip) && e.titleTip ? r(fl, null, null) : e.titleTip]
1887
+ default: () => [se(e.titleTip) && e.titleTip ? r(fl, null, null) : e.titleTip]
1888
1888
  })]), C.value && r("div", {
1889
1889
  class: `${e.prefixCls}-actions ${l.value}`
1890
1890
  }, [C.value])]
@@ -1908,7 +1908,7 @@ const Ft = /* @__PURE__ */ se({
1908
1908
  size: 12,
1909
1909
  align: "center",
1910
1910
  class: `${e.prefixCls}-setting-items`
1911
- }, ht(n = e.settings.map((g, m) => {
1911
+ }, ft(n = e.settings.map((g, m) => {
1912
1912
  const x = oa(g);
1913
1913
  return r("div", {
1914
1914
  key: m,
@@ -1935,7 +1935,7 @@ const Ft = /* @__PURE__ */ se({
1935
1935
  }, [s.value]));
1936
1936
  }
1937
1937
  });
1938
- Ft.inheritAttrs = !1;
1938
+ $t.inheritAttrs = !1;
1939
1939
  function ra() {
1940
1940
  return {
1941
1941
  reload: {
@@ -1948,11 +1948,11 @@ function ra() {
1948
1948
  },
1949
1949
  setting: {
1950
1950
  text: "列设置",
1951
- icon: r(Ct, null, null)
1951
+ icon: r(bt, null, null)
1952
1952
  },
1953
1953
  fullScreen: {
1954
1954
  text: "全屏",
1955
- icon: r($t, null, null)
1955
+ icon: r(pt, null, null)
1956
1956
  }
1957
1957
  };
1958
1958
  }
@@ -1971,12 +1971,12 @@ function ca(e, a) {
1971
1971
  return r("span", {
1972
1972
  key: l,
1973
1973
  onClick: o
1974
- }, [r($t, null, null)]);
1974
+ }, [r(pt, null, null)]);
1975
1975
  const i = ra()[l];
1976
1976
  return i ? r("span", {
1977
1977
  key: l,
1978
1978
  onClick: o
1979
- }, [r(ie, {
1979
+ }, [r(le, {
1980
1980
  title: i.text
1981
1981
  }, {
1982
1982
  default: () => [i.icon]
@@ -1991,7 +1991,7 @@ const da = {
1991
1991
  titleTipText: [String],
1992
1992
  toolBarBtn: [Function, Boolean, Object, Array],
1993
1993
  headerTitle: [Function, Boolean, Object, Array, String]
1994
- }, fa = /* @__PURE__ */ se({
1994
+ }, fa = /* @__PURE__ */ oe({
1995
1995
  props: da,
1996
1996
  inheritAttrs: !1,
1997
1997
  setup(e) {
@@ -2019,7 +2019,7 @@ const da = {
2019
2019
  }, [() => l, () => e.options]);
2020
2020
  return () => {
2021
2021
  const o = e.toolBarBtn || [];
2022
- return r(Ft, {
2022
+ return r($t, {
2023
2023
  prefixCls: a,
2024
2024
  optionsExtra: e.optionsExtra,
2025
2025
  headerTitle: e.headerTitle,
@@ -2142,7 +2142,7 @@ const da = {
2142
2142
  cursor: "pointer"
2143
2143
  }
2144
2144
  },
2145
- [`${e.componentCls}-ellipsis`]: {
2145
+ [`${e.componentCls}-ellipsis-text`]: {
2146
2146
  overflow: "hidden",
2147
2147
  textOverflow: "ellipsis",
2148
2148
  wordBreak: "break-word",
@@ -2240,7 +2240,7 @@ const da = {
2240
2240
  density: !0,
2241
2241
  setting: !0,
2242
2242
  fullScreen: !0
2243
- }, He = /* @__PURE__ */ se({
2243
+ }, He = /* @__PURE__ */ oe({
2244
2244
  name: "GProTable",
2245
2245
  inheritAttrs: !1,
2246
2246
  props: ge,
@@ -2260,14 +2260,14 @@ const da = {
2260
2260
  hashId: h
2261
2261
  } = ze("ProBaseTable", [ha], i), C = ma(), {
2262
2262
  width: p
2263
- } = vl(), v = wt(), s = D(), n = D(), c = D(e.waitRequest);
2263
+ } = vl(), v = St(), s = D(), n = D(), c = D(e.waitRequest);
2264
2264
  Pe(() => c.value = e.waitRequest);
2265
2265
  const {
2266
2266
  toggle: g,
2267
2267
  isFullscreen: m
2268
- } = xt(s), x = T(() => ({
2268
+ } = Ct(s), x = T(() => ({
2269
2269
  ...e
2270
- })), I = T(() => !C.value.xl), R = T(() => {
2270
+ })), P = T(() => !C.value.xl), R = T(() => {
2271
2271
  var f, F;
2272
2272
  return e.virtualScroll && ll(!((f = e.scroll) != null && f.y), "参数scroll的Y值不能为空!"), !!((F = e.scroll) != null && F.y && e.virtualScroll);
2273
2273
  }), k = T(() => {
@@ -2282,26 +2282,26 @@ const da = {
2282
2282
  showIndex: e.showIndex || !1
2283
2283
  });
2284
2284
  }), {
2285
- loadingComputed: A,
2286
- loading: Y,
2287
- setLoading: E
2285
+ loadingComputed: Y,
2286
+ loading: L,
2287
+ setLoading: z
2288
2288
  } = jl({
2289
2289
  emit: a,
2290
- loading: le(e, "loading")
2290
+ loading: te(e, "loading")
2291
2291
  }), {
2292
2292
  sizeRef: H,
2293
- setTableSize: oe
2293
+ setTableSize: re
2294
2294
  } = Ml({
2295
2295
  emit: a,
2296
- size: le(e, "size")
2296
+ size: te(e, "size")
2297
2297
  }), {
2298
- paginationInfo: j,
2299
- requestPagination: ee,
2298
+ paginationInfo: M,
2299
+ requestPagination: Z,
2300
2300
  setPagination: _
2301
2301
  } = Nl({
2302
2302
  slots: l,
2303
2303
  props: x,
2304
- pagination: le(e, "pagination")
2304
+ pagination: te(e, "pagination")
2305
2305
  }), Se = Gl(e), {
2306
2306
  proScroll: t,
2307
2307
  breakpoint: b
@@ -2310,220 +2310,227 @@ const da = {
2310
2310
  innerWidth: p,
2311
2311
  columns: k,
2312
2312
  screens: C
2313
- }), O = Wl(e), {
2313
+ }), B = Wl(e), {
2314
2314
  proColumns: y,
2315
2315
  cacheProColumns: $,
2316
- setColumns: N,
2317
- changeColumns: z,
2316
+ setColumns: E,
2317
+ changeColumns: K,
2318
2318
  resizeColumnWidth: w
2319
2319
  } = _l({
2320
- ...O,
2320
+ ...B,
2321
2321
  breakpoint: b,
2322
2322
  scroll: t,
2323
2323
  columns: k
2324
2324
  }), {
2325
2325
  columnsMap: Ke,
2326
2326
  operationType: Ie,
2327
- setColumnsMap: re,
2327
+ setColumnsMap: ce,
2328
2328
  sortKeyColumns: Be,
2329
2329
  cacheColumnsMap: we,
2330
2330
  setSortKeyColumns: X
2331
2331
  } = Hl({
2332
2332
  columns: $,
2333
- columnsState: le(e, "columnsState"),
2334
- changeColumns: z
2333
+ columnsState: te(e, "columnsState"),
2334
+ changeColumns: K
2335
2335
  }), {
2336
2336
  formDataRef: ae,
2337
- formParamsRef: K,
2337
+ formParamsRef: A,
2338
2338
  defaultParamsRef: me,
2339
2339
  setFormParams: G
2340
2340
  } = Vl({
2341
- search: le(e, "search"),
2342
- searchMap: le(e, "searchMap"),
2343
- params: le(e, "params"),
2341
+ search: te(e, "search"),
2342
+ searchMap: te(e, "searchMap"),
2343
+ params: te(e, "params"),
2344
2344
  columns: k,
2345
2345
  setPagination: _
2346
2346
  }), {
2347
2347
  selectedKey: Xe,
2348
- selectedItem: Rt,
2349
- changeRowKey: Pt,
2348
+ selectedItem: Ft,
2349
+ changeRowKey: Rt,
2350
2350
  selectRowKey: Je,
2351
2351
  selectAllRowKey: Qe,
2352
2352
  syncSelectedRows: Ze,
2353
2353
  removeRowKeys: et,
2354
- clearAllRowKeys: It
2355
- } = zl(le(e, "rowKey"), le(e, "rowSelection")), Bt = Al(e), {
2354
+ clearAllRowKeys: Pt
2355
+ } = zl(te(e, "rowKey"), te(e, "rowSelection")), It = Al(e), {
2356
2356
  reload: Ae,
2357
- reSetDataList: Ot,
2358
- changeDataValue: kt,
2359
- isTreeDataRef: tt,
2357
+ reSetDataList: Bt,
2358
+ changeDataValue: Ot,
2359
+ isTreeDataRef: kt,
2360
2360
  dataSource: Te,
2361
- handleTableChange: lt
2361
+ handleTableChange: tt
2362
2362
  } = Yl({
2363
- ...Bt,
2363
+ ...It,
2364
2364
  waitRequest: c
2365
2365
  }, {
2366
- loading: A,
2367
- paginationInfo: j,
2366
+ loading: Y,
2367
+ paginationInfo: M,
2368
2368
  setPagination: _,
2369
2369
  removeRowKeys: et,
2370
2370
  syncSelectedRows: Ze,
2371
- setLoading: E,
2372
- setColumns: N,
2371
+ setLoading: z,
2372
+ setColumns: E,
2373
2373
  columns: y,
2374
- formParamsRef: K,
2374
+ formParamsRef: A,
2375
2375
  onBeforeSearchSubmit: e.onBeforeSearchSubmit,
2376
- hasCustomRender: T(() => Ce(e.customRender || (l == null ? void 0 : l.customRender)))
2376
+ hasCustomRender: T(() => xe(e.customRender || (l == null ? void 0 : l.customRender)))
2377
2377
  }, a), pe = T(() => e.options ? {
2378
2378
  ...va,
2379
- ...Z(e.options) ? e.options : {}
2379
+ ...Q(e.options) ? e.options : {}
2380
2380
  } : !1), Dt = T(() => ({
2381
2381
  size: S(H),
2382
2382
  scroll: S(t),
2383
2383
  dataSource: S(Te),
2384
- pagination: S(j),
2384
+ pagination: S(M),
2385
2385
  virtualScroll: R.value,
2386
2386
  columns: S(y).filter((f) => f.show || f.show === void 0)
2387
- })), at = T(() => {
2388
- var F, P;
2389
- const f = Z(e.loading) ? Ee(e.loading, "spinning") : {};
2390
- return !f.indicator && ((F = v == null ? void 0 : v.indicator) != null && F.value) && (f.indicator = (P = v == null ? void 0 : v.indicator) == null ? void 0 : P.value), {
2391
- spinning: e.showLoading ? Ce(Y.value) : !1,
2387
+ })), lt = T(() => {
2388
+ var F, I;
2389
+ const f = Q(e.loading) ? Ee(e.loading, "spinning") : {};
2390
+ return !f.indicator && ((F = v == null ? void 0 : v.indicator) != null && F.value) && (f.indicator = (I = v == null ? void 0 : v.indicator) == null ? void 0 : I.value), {
2391
+ spinning: e.showLoading ? xe(L.value) : !1,
2392
2392
  ...f
2393
2393
  };
2394
- }), nt = T(() => {
2395
- var M;
2394
+ }), at = T(() => {
2395
+ var j;
2396
2396
  let f;
2397
- const F = S(x).direction === "rtl" ? "bottomLeft" : "right", P = (M = S(j)) == null ? void 0 : M.position;
2398
- if (P !== null && Array.isArray(P)) {
2399
- const B = P.find((V) => V.includes("top")), L = P.find((V) => V.includes("bottom")), te = P.every((V) => `${V}` == "none");
2400
- !B && !L && !te && (f = F), B && (f = B.toLowerCase().replace("top", "")), L && (f = L.toLowerCase().replace("bottom", ""));
2397
+ const F = S(x).direction === "rtl" ? "bottomLeft" : "right", I = (j = S(M)) == null ? void 0 : j.position;
2398
+ if (I !== null && Array.isArray(I)) {
2399
+ const O = I.find((N) => N.includes("top")), V = I.find((N) => N.includes("bottom")), ee = I.every((N) => `${N}` == "none");
2400
+ !O && !V && !ee && (f = F), O && (f = O.toLowerCase().replace("top", "")), V && (f = V.toLowerCase().replace("bottom", ""));
2401
2401
  } else
2402
2402
  f = F;
2403
2403
  return f;
2404
- }), ut = async (f) => {
2404
+ }), nt = async (f) => {
2405
2405
  var F;
2406
- Z(e.search) && ((F = e.search) != null && F.showSearch) ? (G({
2406
+ Q(e.search) && ((F = e.search) != null && F.showSearch) ? (G({
2407
2407
  ...f,
2408
2408
  ...e.params || {}
2409
2409
  }), await Ae()) : G(f);
2410
2410
  }, jt = async (f, F) => {
2411
- F ? (a("reset", f), e.request && await ut(f)) : e.request ? (a("submit", f), await ut(f)) : a("submit", f);
2412
- }, it = (f, F, P, M) => {
2413
- _(rt(f, ["current", "pageSize"])), lt(f, F, P, M);
2411
+ F ? (a("reset", f), e.request && await nt(f)) : e.request ? (a("submit", f), await nt(f)) : a("submit", f);
2412
+ }, ut = (f, F, I, j) => {
2413
+ _(ot(f, ["current", "pageSize"])), tt(f, F, I, j);
2414
2414
  }, Mt = (f, F) => {
2415
- var P;
2415
+ var I;
2416
2416
  _({
2417
2417
  current: f,
2418
2418
  pageSize: F
2419
- }), lt({
2419
+ }), tt({
2420
2420
  current: f,
2421
2421
  pageSize: F,
2422
- total: j.value && ((P = j.value) == null ? void 0 : P.total) || 0
2422
+ total: M.value && ((I = M.value) == null ? void 0 : I.total) || 0
2423
2423
  }, {}, {});
2424
2424
  }, Nt = (f) => {
2425
2425
  a("expandedRowsChange", f);
2426
2426
  }, Et = (f, F) => {
2427
2427
  a("expand", f, F);
2428
- }, zt = (f, F) => w(f, F), Kt = (f, F, P) => {
2429
- var L, te, V;
2430
- const M = P.align === "center" ? "top" : P.align === "left" || !P.align ? "topLeft" : "topRight";
2431
- let B = f;
2432
- if (F) {
2433
- const ce = r(ie, {
2428
+ }, zt = (f, F) => w(f, F), Kt = (f, F, I) => {
2429
+ var O, V, ee;
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, {
2434
2448
  title: f,
2435
- placement: M,
2436
- getPopupContainer: (J) => {
2437
- var Q;
2438
- return (Q = J == null ? void 0 : J.parentNode) == null ? void 0 : Q.parentNode;
2449
+ getPopupContainer: (ne) => {
2450
+ var ue;
2451
+ return (ue = ne == null ? void 0 : ne.parentNode) == null ? void 0 : ue.parentNode;
2439
2452
  }
2440
2453
  }, {
2441
- default: () => [tt.value ? f : r("div", {
2442
- class: `${i}-ellipsis`
2454
+ default: () => [r("div", {
2455
+ class: `${i}-ellipsis-text`
2443
2456
  }, [f])]
2444
- });
2445
- if (P.copyable) {
2446
- const J = ye(f) ? typeof ((L = f == null ? void 0 : f[0]) == null ? void 0 : L.children) == "string" ? (te = f == null ? void 0 : f[0]) == null ? void 0 : te.children : "" : f.toString(), Q = typeof P.copyText == "function" ? (V = P.copyText) == null ? void 0 : V.call(P, P) : P.copyText || J;
2447
- B = r("div", {
2448
- class: `${i}-copyable`
2449
- }, [ce, r(ml, {
2450
- class: `${i}-copyable-icon`,
2451
- onClick: () => {
2452
- Dl(Q), $l.success("复制成功");
2453
- }
2454
- }, null)]);
2455
- }
2457
+ }), r(ml, {
2458
+ class: `${i}-copyable-icon`,
2459
+ onClick: () => {
2460
+ Dl(J), $l.success("复制成功");
2461
+ }
2462
+ }, null)]);
2456
2463
  }
2457
- return B;
2464
+ return j;
2458
2465
  };
2459
- function st() {
2460
- var P, M, B, L, te;
2461
- const f = be(l, e, "emptyText");
2462
- if (f !== !1 && ((P = v == null ? void 0 : v.emptyText) == null ? void 0 : P.value) !== !1) {
2463
- const V = ((M = e.emptyTextProps) == null ? void 0 : M.extraProps) || {}, ce = f || ((B = v == null ? void 0 : v.emptyText) == null ? void 0 : B.value), J = xe(ce), Q = J ? bt(ce, V) : yt(ce || []);
2466
+ function it() {
2467
+ var I, j, O, V, ee;
2468
+ const f = Ce(l, e, "emptyText");
2469
+ 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 || []);
2464
2471
  return r("div", {
2465
- class: je(`${i}-empty-text`, h.value, (L = e.emptyTextProps) == null ? void 0 : L.class),
2466
- style: (te = e.emptyTextProps) == null ? void 0 : te.style
2467
- }, [J ? Q : ye(Q) ? Q.map((Oe) => qe(Oe, V)) : r(Fl, null, null)]);
2472
+ class: je(`${i}-empty-text`, h.value, (V = e.emptyTextProps) == null ? void 0 : V.class),
2473
+ style: (ee = e.emptyTextProps) == null ? void 0 : ee.style
2474
+ }, [ne ? ue : ye(ue) ? ue.map((Oe) => qe(Oe, N)) : r(Fl, null, null)]);
2468
2475
  }
2469
2476
  return null;
2470
2477
  }
2471
2478
  const At = () => {
2472
2479
  var F;
2473
- const f = mt(l, e, "customRender");
2480
+ const f = ht(l, e, "customRender");
2474
2481
  if (f) {
2475
2482
  if ((F = Te.value) != null && F.length) {
2476
- const P = ne(S(Te));
2483
+ const I = ie(S(Te));
2477
2484
  return f == null ? void 0 : f({
2478
- dataSource: P,
2479
- currentData: kl(P, j.value)
2485
+ dataSource: I,
2486
+ currentData: kl(I, M.value)
2480
2487
  });
2481
2488
  }
2482
- return st();
2489
+ return it();
2483
2490
  }
2484
2491
  return r(Ne, null, null);
2485
2492
  }, Yt = (f) => {
2486
- var B, L;
2487
- const F = be(l, e, "headerTitle"), P = be(l, e, "titleTip"), M = be(l, e, "toolBarBtn");
2493
+ var O, V;
2494
+ const F = Ce(l, e, "headerTitle"), I = Ce(l, e, "titleTip"), j = Ce(l, e, "toolBarBtn");
2488
2495
  return r(fa, {
2489
2496
  headerTitle: F,
2490
- titleTip: P,
2497
+ titleTip: I,
2491
2498
  titleTipText: e.titleTipText,
2492
- options: ue(pe.value) ? pe.value : {
2499
+ options: se(pe.value) ? pe.value : {
2493
2500
  ...pe.value,
2494
- setting: f ? !1 : (B = pe.value) == null ? void 0 : B.setting,
2495
- density: f ? !1 : (L = pe.value) == null ? void 0 : L.density
2501
+ setting: f ? !1 : (O = pe.value) == null ? void 0 : O.setting,
2502
+ density: f ? !1 : (V = pe.value) == null ? void 0 : V.density
2496
2503
  },
2497
- settingExtra: be(l, e, "settingExtra"),
2498
- optionsExtra: be(l, e, "optionsExtra"),
2499
- toolBarBtn: M
2504
+ settingExtra: Ce(l, e, "settingExtra"),
2505
+ optionsExtra: Ce(l, e, "optionsExtra"),
2506
+ toolBarBtn: j
2500
2507
  }, null);
2501
2508
  };
2502
2509
  return Ul({
2503
2510
  tableSize: H,
2504
2511
  columns: y,
2505
2512
  cacheColumns: k,
2506
- isMobile: I,
2513
+ isMobile: P,
2507
2514
  action: {
2508
- setTableSize: oe,
2515
+ setTableSize: re,
2509
2516
  reload: (f) => Ae(f),
2510
2517
  toggle: g
2511
2518
  },
2512
2519
  settingsAction: {
2513
- autoScroll: le(e, "autoScroll"),
2520
+ autoScroll: te(e, "autoScroll"),
2514
2521
  columnsMap: Ke,
2515
2522
  operationType: Ie,
2516
- setColumnsMap: re,
2523
+ setColumnsMap: ce,
2517
2524
  sortKeyColumns: Be,
2518
2525
  cacheColumnsMap: we,
2519
2526
  setSortKeyColumns: X
2520
2527
  },
2521
2528
  setPagination: _,
2522
- changeColumns: z,
2529
+ changeColumns: K,
2523
2530
  slots: l
2524
2531
  }), o({
2525
2532
  formRef: () => ({
2526
- getFormState: () => S(K),
2533
+ getFormState: () => S(A),
2527
2534
  getFormInnerState: () => {
2528
2535
  var f;
2529
2536
  return ((f = n.value) == null ? void 0 : f.getFormState()) || {};
@@ -2534,37 +2541,37 @@ const da = {
2534
2541
  }
2535
2542
  }),
2536
2543
  actionRef: () => ({
2537
- loading: Y,
2544
+ loading: L,
2538
2545
  dataSource: Te,
2539
- pageState: ee,
2540
- pagination: j.value,
2546
+ pageState: Z,
2547
+ pagination: M.value,
2541
2548
  selectedKey: T(() => Xe.value),
2542
- selectedItem: T(() => Rt.value),
2549
+ selectedItem: T(() => Ft.value),
2543
2550
  rowsSelection: {
2544
- clear: It,
2551
+ clear: Pt,
2545
2552
  select: Je,
2546
2553
  remove: et,
2547
2554
  sync: Ze,
2548
2555
  selectAll: Qe
2549
2556
  },
2550
2557
  reload: Ae,
2551
- getLoadingStatus: () => S(A),
2558
+ getLoadingStatus: () => S(Y),
2552
2559
  reloadAndReset: async (f) => {
2553
- var F, P, M;
2560
+ var F, I, j;
2554
2561
  c.value = !0, _({
2555
2562
  current: 1,
2556
- pageSize: (ee == null ? void 0 : ee.pageSize) || 10
2557
- }), f != null && f.callBack && (f != null && f.wait ? await ((F = f == null ? void 0 : f.callBack) == null ? void 0 : F.call(f)) : (P = f == null ? void 0 : f.callBack) == null || P.call(f)), (M = n.value) == null || M.resetForm(!1), c.value = !1;
2563
+ pageSize: (Z == null ? void 0 : Z.pageSize) || 10
2564
+ }), f != null && f.callBack && (f != null && f.wait ? await ((F = f == null ? void 0 : f.callBack) == null ? void 0 : F.call(f)) : (I = f == null ? void 0 : f.callBack) == null || I.call(f)), (j = n.value) == null || j.resetForm(!1), c.value = !1;
2558
2565
  },
2559
- reSetDataList: Ot,
2560
- setPageAndReload: it,
2566
+ reSetDataList: Bt,
2567
+ setPageAndReload: ut,
2561
2568
  setPagination: _,
2562
- setData: kt,
2563
- setLoading: E
2569
+ setData: Ot,
2570
+ setLoading: z
2564
2571
  })
2565
2572
  }), () => {
2566
- var F, P;
2567
- const f = Ce(e.customRender || l.customRender);
2573
+ var F, I;
2574
+ const f = xe(e.customRender || l.customRender);
2568
2575
  return d(r("div", {
2569
2576
  ref: s,
2570
2577
  class: je([{
@@ -2572,75 +2579,76 @@ const da = {
2572
2579
  [`${i}`]: !0,
2573
2580
  [`${u.class}`]: u.class,
2574
2581
  [`${i}-no-scroll`]: !Object.keys(S(t) || {}).length,
2575
- [`${i}-table-tree`]: tt.value,
2582
+ [`${i}-table-tree`]: kt.value,
2576
2583
  [`${i}-full-screen`]: m.value
2577
2584
  }]),
2578
2585
  style: u.style
2579
2586
  }, [r("div", {
2580
2587
  class: [`${i}-content`, h.value]
2581
- }, [(ae.value.length > 0 || Ce(l.search)) && r(pt, {
2588
+ }, [(ae.value.length > 0 || xe(l.search)) && r(Tt, {
2582
2589
  ref: n,
2583
2590
  search: e.search,
2584
2591
  modal: e.modalScroll,
2585
2592
  searchMap: ae.value,
2586
2593
  prefixCls: i,
2587
- loading: !!S(A),
2594
+ loading: !!S(Y),
2588
2595
  onSearch: jt,
2589
2596
  defaultParams: me
2590
2597
  }, {
2591
2598
  default: l.search ? () => {
2592
- var M;
2593
- return (M = l.search) == null ? void 0 : M.call(l);
2599
+ var j;
2600
+ return (j = l.search) == null ? void 0 : j.call(l);
2594
2601
  } : null
2595
- }), !R.value && Yt(f), f ? r(_e, at.value, {
2602
+ }), !R.value && Yt(f), f ? r(_e, lt.value, {
2596
2603
  default: () => {
2597
- var M, B, L;
2604
+ var j, O, V;
2598
2605
  return [r("div", {
2599
2606
  class: `${i}-wrapper ${h.value}`
2600
2607
  }, [r("div", {
2601
- class: je(`${i}-list`, h.value, (M = e.tableProps) == null ? void 0 : M.class),
2602
- style: (B = e.tableProps) == null ? void 0 : B.style
2603
- }, [At()]), e.pagination !== !1 && ((L = Te.value) == null ? void 0 : L.length) > 0 && r(Tl, U({
2608
+ class: je(`${i}-list`, h.value, (j = e.tableProps) == null ? void 0 : j.class),
2609
+ 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({
2604
2611
  class: {
2605
2612
  [`${i}-pagination ${h.value}`]: !0,
2606
- [`${i}-pagination-${nt.value} ${h.value}`]: !!nt.value
2613
+ [`${i}-pagination-${at.value} ${h.value}`]: !!at.value
2607
2614
  }
2608
- }, ve(S(j)), {
2615
+ }, ve(S(M)), {
2609
2616
  onChange: Mt
2610
2617
  }), null)])];
2611
2618
  }
2612
- }) : r(pl, U(rt(e, Object.keys(Tt)), Dt.value, {
2619
+ }) : r(pl, U(ot(e, Object.keys(wt)), Dt.value, {
2613
2620
  style: (F = e.tableProps) == null ? void 0 : F.style,
2614
- class: (P = e.tableProps) == null ? void 0 : P.class,
2615
- loading: at.value,
2616
- rowKey: (M) => M[e.rowKey],
2617
- transformCellText: (M) => {
2618
- var ce, J, Q;
2619
- e.transformCellText && typeof e.transformCellText && ((ce = e.transformCellText) == null || ce.call(e, M));
2621
+ class: (I = e.tableProps) == null ? void 0 : I.class,
2622
+ loading: lt.value,
2623
+ rowKey: (j) => j[e.rowKey],
2624
+ transformCellText: (j) => {
2625
+ var J, ne, ue;
2626
+ e.transformCellText && typeof e.transformCellText && ((J = e.transformCellText) == null || J.call(e, j));
2620
2627
  const {
2621
- column: B
2622
- } = M, L = (B == null ? void 0 : B.key) || (B == null ? void 0 : B.dataIndex);
2623
- let te = !0, V = M.text;
2624
- if (!ye(V) && B) {
2625
- const Oe = Ut(V, (B == null ? void 0 : B.columnEmptyText) || (e == null ? void 0 : e.columnEmptyText) || "");
2626
- te = Oe.success, V = Ol(Oe.value, (B == null ? void 0 : B.valueType) || ((Q = (J = e.columns) == null ? void 0 : J.find((ot) => (ot.key || ot.dataIndex) === L)) == null ? void 0 : Q.valueType), i, h.value);
2628
+ column: O
2629
+ } = j, V = (O == null ? void 0 : O.key) || (O == null ? void 0 : O.dataIndex);
2630
+ let ee = !0, N = j.text;
2631
+ if (ye(N) && N.length === 1 && !be(N == null ? void 0 : N[0])) {
2632
+ 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);
2627
2635
  }
2628
- return B != null && B.ellipsis ? Kt(V, te, B) : V;
2636
+ return O != null && O.ellipsis ? Kt(N, ee, O) : N;
2629
2637
  },
2630
2638
  rowSelection: e.rowSelection ? {
2631
2639
  ...Ee(e.rowSelection, ["onSelect", "onSelectAll", "onChange", "selectedRowKeys"]),
2632
2640
  selectedRowKeys: Xe.value,
2633
2641
  onSelect: Je,
2634
2642
  onSelectAll: Qe,
2635
- onChange: Pt
2643
+ onChange: Rt
2636
2644
  } : void 0,
2637
- onChange: it,
2645
+ onChange: ut,
2638
2646
  onExpandedRowsChange: Nt,
2639
2647
  onExpand: Et,
2640
- onResizeColumn: (M, B) => zt(M, B)
2648
+ onResizeColumn: (j, O) => zt(j, O)
2641
2649
  }), {
2642
2650
  ...l,
2643
- emptyText: () => st()
2651
+ emptyText: () => it()
2644
2652
  })])]));
2645
2653
  };
2646
2654
  }