bitz-react-admin-ui 2.4.6 → 2.4.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/dist/_virtual/Draggable.mjs +4 -0
  2. package/dist/_virtual/DraggableCore.mjs +4 -0
  3. package/dist/_virtual/Resizable.mjs +4 -0
  4. package/dist/_virtual/ResizableBox.mjs +4 -0
  5. package/dist/_virtual/_commonjsHelpers.mjs +26 -4
  6. package/dist/_virtual/cjs.mjs +4 -0
  7. package/dist/_virtual/clsx.m.mjs +6 -0
  8. package/dist/_virtual/domFns.mjs +4 -0
  9. package/dist/_virtual/getPrefix.mjs +4 -0
  10. package/dist/_virtual/index6.mjs +4 -0
  11. package/dist/_virtual/log.mjs +4 -0
  12. package/dist/_virtual/positionFns.mjs +4 -0
  13. package/dist/_virtual/propTypes.mjs +4 -0
  14. package/dist/_virtual/shims.mjs +4 -0
  15. package/dist/_virtual/utils.mjs +4 -0
  16. package/dist/components/BitzTable/Table/ResizableTitle copy.mjs +67 -0
  17. package/dist/components/BitzTable/Table/index.d.ts +26 -26
  18. package/dist/components/BitzTable/Table/index.mjs +393 -368
  19. package/dist/components/BitzTable/ToolBar/Modal/style.mjs +6 -6
  20. package/dist/components/BitzTable/index.d.ts +3 -0
  21. package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +1 -1
  22. package/dist/components/BitzTableSelect/SingleSelect/index.mjs +50 -49
  23. package/dist/components/BitzTableSelect/TextBlock/index.mjs +4 -4
  24. package/dist/components/BitzTableSelect/index.d.ts +0 -1
  25. package/dist/components/BitzTableSelect/index.mjs +17 -19
  26. package/dist/components/BitzTableSelect/utils.d.ts +4 -0
  27. package/dist/components/BitzTableSelect/utils.mjs +5 -0
  28. package/dist/node_modules/.store/clsx@1.2.1/node_modules/clsx/dist/clsx.m.mjs +22 -0
  29. package/dist/node_modules/.store/prop-types@15.8.1/node_modules/prop-types/index.mjs +8 -7
  30. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/Draggable.mjs +343 -0
  31. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/DraggableCore.mjs +324 -0
  32. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/cjs.mjs +14 -0
  33. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/domFns.mjs +174 -0
  34. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/getPrefix.mjs +35 -0
  35. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/log.mjs +7 -0
  36. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/positionFns.mjs +107 -0
  37. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/shims.mjs +30 -0
  38. package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/Resizable.mjs +201 -0
  39. package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/ResizableBox.mjs +162 -0
  40. package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/propTypes.mjs +118 -0
  41. package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/utils.mjs +54 -0
  42. package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/index.mjs +13 -0
  43. package/dist/node_modules/.store/use-sync-external-store@1.2.0/node_modules/use-sync-external-store/shim/index.mjs +1 -1
  44. package/dist/style.css +1 -1
  45. package/package.json +1 -1
@@ -1,345 +1,368 @@
1
1
  import { j as r } from "../../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
2
- import { useContext as Oe, useState as B, useEffect as de, useMemo as h, useRef as _, useCallback as Z } from "react";
3
- import { isMobile as E } from "../../../node_modules/.store/react-device-detect@2.2.3/node_modules/react-device-detect/dist/lib.mjs";
4
- import { Skeleton as Pt, Typography as Ve, Table as Ht, Spin as vt } from "antd";
5
- import he from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
6
- import Rt from "../../BitzDrawer/index.mjs";
7
- import $t from "../../BitzPagination/index.mjs";
8
- import qt from "../../BitzNoData/index.mjs";
2
+ import { useContext as Ve, useState as S, useEffect as ue, useMemo as f, useRef as G, useCallback as E } from "react";
3
+ import { isMobile as A } from "../../../node_modules/.store/react-device-detect@2.2.3/node_modules/react-device-detect/dist/lib.mjs";
4
+ import { Skeleton as Ht, Typography as Ke, Table as Pt, Spin as vt } from "antd";
5
+ import F from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
6
+ import $t from "../../BitzDrawer/index.mjs";
7
+ import qt from "../../BitzPagination/index.mjs";
8
+ import Ot from "../../BitzNoData/index.mjs";
9
9
  import "../../BitzList/index.less.mjs";
10
- import Ot from "../../BitzList/List.mjs";
10
+ import Vt from "../../BitzList/List.mjs";
11
11
  import "../../BitzPullRefresh/style/index.less.mjs";
12
- import Vt from "../../BitzPullRefresh/PullRefresh.mjs";
13
- import Kt, { BitzTableContext as Dt, toolCols as _t } from "../Store/index.mjs";
14
- import { loopFilter as Gt, columnSort as It } from "../Store/utils/index.mjs";
15
- import fe from "../../../node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useSize/index.mjs";
16
- import Jt from "../../BitzTheme/index.mjs";
17
- import { tablePaddingInline as Qt } from "../../BitzConfigProvider/context.mjs";
18
- import Ke from "../../BitzHighlight/index.mjs";
19
- import Ut from "../../../node_modules/.store/antd@5.17.3/node_modules/antd/es/table/ExpandIcon.mjs";
12
+ import Kt from "../../BitzPullRefresh/PullRefresh.mjs";
13
+ import Dt, { BitzTableContext as _t, toolCols as Gt } from "../Store/index.mjs";
14
+ import { loopFilter as It, columnSort as Jt } from "../Store/utils/index.mjs";
15
+ import me from "../../../node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useSize/index.mjs";
16
+ import Qt from "../../BitzTheme/index.mjs";
17
+ import { tablePaddingInline as Ut } from "../../BitzConfigProvider/context.mjs";
18
+ import De from "../../BitzHighlight/index.mjs";
19
+ import Xt from "../../../node_modules/.store/antd@5.17.3/node_modules/antd/es/table/ExpandIcon.mjs";
20
20
  import "../../../node_modules/.store/antd@5.17.3/node_modules/antd/es/config-provider/index.mjs";
21
- import Xt from "../../../node_modules/.store/antd@5.17.3/node_modules/antd/locale/en_US.mjs";
22
- import { getColumnsWithTool as Yt, loopBuildSkeleton as Zt, resetScroll as De } from "./utils.mjs";
23
- import { getCssVar as Et } from "./style.mjs";
24
- import At from "./SortableRow.mjs";
25
- import Ft from "./SortTableContext.mjs";
26
- import es from "../TextOverflow/index.mjs";
21
+ import Yt from "../../../node_modules/.store/antd@5.17.3/node_modules/antd/locale/en_US.mjs";
22
+ import { getColumnsWithTool as Zt, loopBuildSkeleton as Et, resetScroll as _e } from "./utils.mjs";
23
+ import { getCssVar as At } from "./style.mjs";
24
+ import Ft from "./SortableRow.mjs";
25
+ import es from "./SortTableContext.mjs";
26
+ import ts from "./ResizableTitle copy.mjs";
27
+ import ss from "../TextOverflow/index.mjs";
27
28
  import "./index.less.mjs";
28
- import { ConfigContext as ts } from "../../../node_modules/.store/antd@5.17.3/node_modules/antd/es/config-provider/context.mjs";
29
- import ss from "../../../node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/at.mjs";
30
- function rs({
31
- showPagination: q = !0,
32
- height: z,
33
- minHeight: G,
34
- dataSource: x,
35
- total: k = 0,
36
- columns: A,
37
- loading: c,
38
- skeletonNum: F = {
29
+ import { ConfigContext as os } from "../../../node_modules/.store/antd@5.17.3/node_modules/antd/es/config-provider/context.mjs";
30
+ import rs from "../../../node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/at.mjs";
31
+ function ns({
32
+ showPagination: _ = !0,
33
+ height: p,
34
+ minHeight: I,
35
+ dataSource: C,
36
+ total: M = 0,
37
+ columns: ee,
38
+ loading: d,
39
+ skeletonNum: te = {
39
40
  pc: 10,
40
41
  mobile: 10
41
42
  },
42
- skeletonRender: ue,
43
- skeletonRowNum: _e = 4,
44
- skeletonRowsWidth: Ge = ["35%", "100%", "100%", "60%"],
43
+ skeletonRender: be,
44
+ skeletonRowNum: Ge = 4,
45
+ skeletonRowsWidth: Ie = ["35%", "100%", "100%", "60%"],
45
46
  // mobileLoadEmit,
46
- mobileRefreshEmit: me,
47
- operationFilter: d,
48
- enableControlPage: Ie,
49
- pagination: g,
50
- paginationEmit: H = () => {
47
+ mobileRefreshEmit: ye,
48
+ operationFilter: h,
49
+ enableControlPage: Je,
50
+ pagination: W,
51
+ paginationEmit: V = () => {
51
52
  },
52
- onChange: ee,
53
- enabledRowDragSort: v,
54
- onRowDragEnd: te,
55
- mobilePageHeight: os = 500,
56
- mobileCancelText: Je = "取消",
57
- noDataTitle: Qe,
58
- noDataImg: Ue,
59
- color: ns,
60
- size: be,
61
- showTableTool: Xe = !0,
62
- tableAction: Ye,
63
- tableToolbar: Ze,
64
- selectionBar: Ee,
65
- scroll: i,
66
- components: N,
67
- expandable: w,
68
- rowSelection: M,
69
- selectionAlert: f,
70
- resetPage: Ae,
71
- ...y
53
+ onChange: se,
54
+ enabledRowDragSort: K,
55
+ onRowDragEnd: oe,
56
+ mobilePageHeight: ls = 500,
57
+ mobileCancelText: Qe = "取消",
58
+ noDataTitle: Ue,
59
+ noDataImg: Xe,
60
+ color: is,
61
+ size: xe,
62
+ showTableTool: Ye = !0,
63
+ tableAction: Ze,
64
+ tableToolbar: Ee,
65
+ selectionBar: Ae,
66
+ scroll: c,
67
+ components: L,
68
+ expandable: j,
69
+ rowSelection: H,
70
+ selectionAlert: u,
71
+ resetPage: Fe,
72
+ ...x
72
73
  }) {
73
- var $e;
74
- const { token: W } = Jt.useToken(), { Table: m } = W, {
75
- tableSpaceBetweenPage: ye = 10,
76
- minHeight: I = 500,
77
- cellPaddingInline: Fe = Qt
78
- } = m, { showColumnBorder: xe, hideRowBorder: Ce, rowHoverable: et, ...b } = Oe(Dt), [L, tt] = B(void 0), [se, st] = B(0), [re, rt] = B(0), [J, ot] = B(0), [ge, ls] = B(0), [nt, Q] = B(!1), [C, lt] = B([]);
79
- de(() => {
80
- let e = [...x ?? []];
81
- (g == null ? void 0 : g.page) !== 1 && (e = [...C, ...e]), lt(e);
82
- }, [x]);
83
- const it = h(() => !!(C != null && C.length) && (C == null ? void 0 : C.length) >= k, [C, k]), [U, ct] = B([]), [at, we] = B(!1), dt = async (e, t) => {
84
- var n, l;
85
- let s, o = !1;
86
- if (typeof d == "function")
87
- s = (n = d == null ? void 0 : d(e, t)) == null ? void 0 : n.filter(
88
- (a) => a.type !== "divider"
74
+ var qe;
75
+ const { token: z } = Qt.useToken(), { Table: m } = z, {
76
+ tableSpaceBetweenPage: Ce = 10,
77
+ minHeight: J = 500,
78
+ cellPaddingInline: et = Ut
79
+ } = m, { showColumnBorder: ge, hideRowBorder: we, rowHoverable: tt, ...y } = Ve(_t), [P, st] = S(void 0), [re, ot] = S(0), [ne, rt] = S(0), [Q, nt] = S(0), [le, lt] = S(0), [it, U] = S(!1), [g, at] = S([]);
80
+ ue(() => {
81
+ let e = [...C ?? []];
82
+ (W == null ? void 0 : W.page) !== 1 && (e = [...g, ...e]), at(e);
83
+ }, [C]);
84
+ const ct = f(() => !!(g != null && g.length) && (g == null ? void 0 : g.length) >= M, [g, M]), [X, dt] = S([]), [ht, We] = S(!1), ft = async (e, s) => {
85
+ var l, n, a;
86
+ let t, o = !1;
87
+ if (typeof h == "function")
88
+ t = (l = h == null ? void 0 : h(e, s)) == null ? void 0 : l.filter(
89
+ (i) => i.type !== "divider"
89
90
  );
90
- else if (s = (l = d == null ? void 0 : d.custom) == null ? void 0 : l.call(d, e, t), d != null && d.request) {
91
- we(!0), Q(!0), o = !0;
91
+ else if (t = (n = h == null ? void 0 : h.custom) == null ? void 0 : n.call(h, e, s), h != null && h.request) {
92
+ We(!0), U(!0), o = !0;
92
93
  try {
93
- s = await (d == null ? void 0 : d.request(e, t));
94
+ const i = await (h == null ? void 0 : h.request(e, s));
95
+ (a = h.fieldsName) != null && a.label ? t = i == null ? void 0 : i.map((b) => {
96
+ var w;
97
+ return {
98
+ ...b,
99
+ label: b == null ? void 0 : b[((w = h.fieldsName) == null ? void 0 : w.label) ?? "label"]
100
+ };
101
+ }) : t = i ?? [];
94
102
  } finally {
95
- we(!1);
103
+ We(!1);
96
104
  }
97
105
  }
98
- s != null && s.length && (ct(s), o || Q(!0));
99
- }, We = () => {
100
- Q(!1);
101
- }, ht = (e, t) => {
102
- var s, o;
103
- Q(!1), (s = e.onClick) == null || s.call(e), !(e != null && e.onClick) && typeof d != "function" && (d != null && d.onClick) && d.onClick((o = U == null ? void 0 : U[t]) == null ? void 0 : o.key);
104
- }, oe = _(null), ft = _(null), j = _(null), ne = fe(j), je = _(null), le = fe(je), ie = _(null), R = fe(ie), ut = (...e) => {
105
- De(oe), ee == null || ee(...e);
106
- }, mt = (...e) => {
107
- De(oe), H == null || H(...e);
108
- }, bt = () => {
109
- var s;
110
- const e = (s = j.current) == null ? void 0 : s.querySelectorAll(
106
+ t != null && t.length && (dt(t), o || U(!0));
107
+ }, je = () => {
108
+ U(!1);
109
+ }, ut = (e, s) => {
110
+ var t, o;
111
+ U(!1), (t = e.onClick) == null || t.call(e), !(e != null && e.onClick) && typeof h != "function" && (h != null && h.onClick) && h.onClick((o = X == null ? void 0 : X[s]) == null ? void 0 : o.key);
112
+ }, ie = G(null), ze = G(null), B = G(null), ae = me(B), ce = G(null), de = me(ce), he = G(null), D = me(he), mt = (...e) => {
113
+ _e(ie), se == null || se(...e);
114
+ }, bt = (...e) => {
115
+ _e(ie), V == null || V(...e);
116
+ }, yt = () => {
117
+ var t;
118
+ const e = (t = B.current) == null ? void 0 : t.querySelectorAll(
111
119
  "& > .bitzTableContainerBody > .ant-table-wrapper.bitzTable > .ant-spin-nested-loading > .ant-spin-container > .ant-table > .ant-table-container > .ant-table-body > table > .ant-table-tbody > tr:not(.ant-table-measure-row, .ant-table-expanded-row)"
112
- ), t = [];
120
+ ), s = [];
113
121
  if (e == null || e.forEach((o) => {
114
- var n;
115
- t.push(
116
- ((n = o.querySelector("& > .operationCol .actionGroup")) == null ? void 0 : n.clientWidth) || 0
122
+ var l;
123
+ s.push(
124
+ ((l = o.querySelector("& > .operationCol .actionGroup")) == null ? void 0 : l.clientWidth) || 0
117
125
  );
118
- }), t.length)
119
- return Math.ceil(Math.max(...t)) + Fe * 2;
126
+ }), s.length)
127
+ return Math.ceil(Math.max(...s)) + et * 2;
120
128
  }, Be = () => {
121
- var n, l, a, u;
122
- let e = (n = j.current) == null ? void 0 : n.querySelector(
129
+ var l, n, a, i;
130
+ let e = (l = B.current) == null ? void 0 : l.querySelector(
123
131
  ".ant-table-content"
124
132
  );
125
- e || (e = (l = j.current) == null ? void 0 : l.querySelector(
133
+ e || (e = (n = B.current) == null ? void 0 : n.querySelector(
126
134
  ".ant-table-body"
127
135
  ));
128
- let t = 0, s = !1, o = 0;
129
- return e && (t = e.clientWidth - (xe ? 1 : 0), s = e.offsetWidth - e.clientWidth > 0, o = (u = (a = j.current) == null ? void 0 : a.querySelector(
136
+ let s = 0, t = !1, o = 0;
137
+ return e && (s = e.clientWidth - (ge ? 1 : 0), t = e.offsetWidth - e.clientWidth > 0, o = (i = (a = B.current) == null ? void 0 : a.querySelector(
130
138
  ".ant-table-cell-scrollbar"
131
- )) == null ? void 0 : u.offsetWidth), { tbodyWidth: t, hasScrollBar: s, scrollbarSize: o };
132
- }, { y: X, tbodyWidth: $, hasScrollBar: O, scrollbarSize: V } = h(() => {
133
- const { tbodyWidth: e, hasScrollBar: t, scrollbarSize: s } = Be();
134
- if (typeof z > "u")
139
+ )) == null ? void 0 : i.offsetWidth), { tbodyWidth: s, hasScrollBar: t, scrollbarSize: o };
140
+ }, { y: Y, tbodyWidth: T, hasScrollBar: v, scrollbarSize: $ } = f(() => {
141
+ const { tbodyWidth: e, hasScrollBar: s, scrollbarSize: t } = Be();
142
+ if (typeof p > "u")
135
143
  return {
136
144
  tbodyWidth: e,
137
- hasScrollBar: t,
138
- scrollbarSize: s
145
+ hasScrollBar: s,
146
+ scrollbarSize: t
139
147
  };
140
- let o = 40, n = 40;
141
- if (j.current) {
142
- const qe = window.getComputedStyle(j.current);
143
- o = parseInt(qe.getPropertyValue("--cell-height")), n = parseInt(qe.getPropertyValue("--toolbar-height"));
148
+ let o = 40, l = 40;
149
+ if (B.current) {
150
+ const Oe = window.getComputedStyle(B.current);
151
+ o = parseInt(Oe.getPropertyValue("--cell-height")), l = parseInt(Oe.getPropertyValue("--toolbar-height"));
144
152
  }
145
- const l = (R == null ? void 0 : R.height) || 0, a = l ? ye : 0, u = G ?? I, T = z >= u ? z : u;
146
- return { y: (b.fullscreen ? window.innerHeight : T) - l - a - n - o, tbodyWidth: e, hasScrollBar: t, scrollbarSize: s };
153
+ const n = (D == null ? void 0 : D.height) || 0, a = n ? Ce : 0, i = I ?? J, b = p >= i ? p : i;
154
+ return { y: (y.fullscreen ? window.innerHeight : b) - n - a - l - o, tbodyWidth: e, hasScrollBar: s, scrollbarSize: t };
147
155
  }, [
148
- b.fullscreen,
149
- z,
150
- G,
156
+ y.fullscreen,
157
+ p,
151
158
  I,
152
- R == null ? void 0 : R.height,
153
- ne == null ? void 0 : ne.height,
154
- le == null ? void 0 : le.height
155
- ]), K = h(() => {
156
- if (i != null && i.auto)
159
+ J,
160
+ D == null ? void 0 : D.height,
161
+ ae == null ? void 0 : ae.height,
162
+ de == null ? void 0 : de.height
163
+ ]), k = f(() => {
164
+ if (c != null && c.auto)
157
165
  return {
158
166
  x: void 0,
159
- y: i.y || X
167
+ y: c.y || Y
160
168
  };
161
- let e = (i == null ? void 0 : i.x) ?? 1e3;
162
- return se && (e -= se), re && L && (e -= re * L), $ && (i != null && i.x && e < $ && (i == null ? void 0 : i.x) > $ && ot($ - e), e = Math.max(e, $), e += ge), i != null && i.x ? { x: e, y: i.y || X } : i != null && i.y ? { x: e, y: i.y } : { x: e, y: X };
163
- }, [i, X, $, se, re, ge]), yt = () => {
169
+ let e = (c == null ? void 0 : c.x) ?? 1e3;
170
+ return re && (e -= re), ne && P && (e -= ne * P), T && (c != null && c.x && e < T && (c == null ? void 0 : c.x) > T && nt(T - e), e = Math.max(e, T), e += le), c != null && c.x ? { x: e, y: c.y || Y } : c != null && c.y ? { x: e, y: c.y } : { x: e, y: Y };
171
+ }, [c, Y, T, re, ne, le]), xt = () => {
164
172
  let e = 0;
165
- if (j.current) {
166
- const s = window.getComputedStyle(j.current), o = parseInt(
167
- s.getPropertyValue("--toolCell-paddingInline")
173
+ if (B.current) {
174
+ const t = window.getComputedStyle(B.current), o = parseInt(
175
+ t.getPropertyValue("--toolCell-paddingInline")
168
176
  );
169
- e = parseInt(s.getPropertyValue("--fontSize")) + 4 + 2 * o;
177
+ e = parseInt(t.getPropertyValue("--fontSize")) + 4 + 2 * o;
170
178
  }
171
- let t = 0;
172
- return M && (t += e), w && (t += e), v && (t += e), t;
173
- }, xt = (e, t) => {
174
- const s = e.length, o = e.filter((p) => p.width), l = o.map((p) => p.width).reduce((p, Y) => p + Y, 0), { tbodyWidth: a } = Be(), T = Math.max((i == null ? void 0 : i.x) ?? 1e3, a ?? 0) - l - t, D = s - o.length;
175
- return T >= 0 ? Math.floor(T / D) : 0;
176
- }, { sortColumns: S, toolColWidth: Te } = h(() => {
177
- const t = (A ?? []).filter((u) => !_t.includes(u)), { filterColumns: s, hiddenTotalWidth: o, autoWidthColLength: n } = Gt(
178
- t,
179
- b.columnsMap
180
- ), l = s.sort(It(b.columnsMap));
179
+ let s = 0;
180
+ return H && (s += e), j && (s += e), K && (s += e), s;
181
+ }, Ct = (e, s) => {
182
+ const t = e.length, o = e.filter((R) => R.width), n = o.map((R) => R.width).reduce((R, Z) => R + Z, 0), { tbodyWidth: a } = Be(), b = Math.max((c == null ? void 0 : c.x) ?? 1e3, a ?? 0) - n - s, w = t - o.length;
183
+ return b >= 0 ? Math.floor(b / w) : 0;
184
+ }, { sortColumns: N, toolColWidth: Te } = f(() => {
185
+ const s = (ee ?? []).filter((i) => !Gt.includes(i)), { filterColumns: t, hiddenTotalWidth: o, autoWidthColLength: l } = It(
186
+ s,
187
+ y.columnsMap
188
+ ), n = t.sort(Jt(y.columnsMap));
181
189
  let a = 0;
182
- return E || (a = yt(), K.x !== void 0 && tt(xt(t, a)), st(o), rt(n)), { sortColumns: l, toolColWidth: a };
183
- }, [b.columnsMap, A]), [ce, Ct] = B([]);
184
- de(() => {
185
- if (L && K.x !== void 0) {
186
- let e = 0, t = 0;
187
- if (J) {
188
- const l = S == null ? void 0 : S.filter(
190
+ return A || (a = xt(), k.x !== void 0 && st(Ct(s, a)), ot(o), rt(l)), { sortColumns: n, toolColWidth: a };
191
+ }, [y.columnsMap, ee]), [q, Ne] = S([]);
192
+ ue(() => {
193
+ if (P && k.x !== void 0) {
194
+ let e = 0, s = 0;
195
+ if (Q) {
196
+ const n = N == null ? void 0 : N.filter(
189
197
  (a) => !a.width && !(a != null && a.isOperationCol)
190
198
  ).length;
191
- e = Math.floor(J / l), t = J - e * l;
199
+ e = Math.floor(Q / n), s = Q - e * n;
192
200
  }
193
- let s = 0, o = -1, n = S.map((l, a) => {
194
- let u = l.width;
195
- return l != null && l.isOperationCol && (o = a, l != null && l.useMaxWidth && (u = bt() ?? l.width)), !u && L && (u = L + e), s += u ?? 0, u;
201
+ let t = 0, o = -1, l = N.map((n, a) => {
202
+ let i = n.width;
203
+ return n != null && n.isOperationCol && (o = a, n != null && n.useMaxWidth && (i = yt() ?? n.width)), !i && P && (i = P + e), t += i ?? 0, i;
196
204
  });
197
- if (s < K.x - Te) {
198
- const l = K.x - Te - s;
199
- let a = l, u = S.length;
200
- if (o >= 0 && u--, l >= u) {
201
- let D = Math.floor(l / u);
202
- n = n.map(
203
- (p, Y) => p + (o === Y ? 0 : D)
204
- ), a = l - D * u;
205
+ if (t < k.x - Te) {
206
+ const n = k.x - Te - t;
207
+ let a = n, i = N.length;
208
+ if (o >= 0 && i--, n >= i) {
209
+ let w = Math.floor(n / i);
210
+ l = l.map(
211
+ (R, Z) => R + (o === Z ? 0 : w)
212
+ ), a = n - w * i;
205
213
  }
206
- let T = 0;
207
- o === 0 && n.length > 1 && T++, n[T] = (n[T] ?? 0) + a + t;
214
+ let b = 0;
215
+ o === 0 && l.length > 1 && b++, l[b] = (l[b] ?? 0) + a + s;
208
216
  }
209
- Ct(n);
217
+ Ne(l);
210
218
  }
211
- }, [L, J]);
212
- const P = h(() => {
213
- if (E)
214
- return S;
215
- const e = S.map((t, s) => ({
216
- ...t,
217
- // ...(last === i || sortColumns[i + 1]?.isOperationCol) && {
218
- // className: classNames(v.className, 'disabledResize'),
219
- // },
220
- width: ce.length ? ce[s] : L || (t == null ? void 0 : t.width),
221
- // ...tableScroll.x !== undefined ? {
222
- // onHeaderCell: (column: BitzTableColumnsType<T>[number]) => ({
223
- // width: column.width,
224
- // stretchref,
225
- // datagridref: containerBodyRef,
226
- // onResize: handleResize(i),
227
- // })
228
- // } : {},
229
- // ...tableScroll.x !== undefined ? {
230
- // onHeaderCell: (column: BitzTableColumnsType<T>[number]) => ({
231
- // width: column.width,
232
- // onResize: handleResize(i) as React.ReactEventHandler<any>,
233
- // })
234
- // } : {},
235
- ...!(t != null && t.render) && t.copyable ? {
236
- render: (o) => ["number", "bigint"].includes(typeof o) ? o : /* @__PURE__ */ r.jsx(es, { value: o })
237
- } : {}
238
- }));
239
- return Yt(
240
- A,
241
- e,
242
- v,
243
- !!M,
244
- !!w
219
+ }, [P, Q]);
220
+ const O = f(() => {
221
+ if (A)
222
+ return N;
223
+ const e = N.length - 1, s = N.map((t, o) => {
224
+ var l;
225
+ return {
226
+ ...t,
227
+ ...(e === o || ((l = N[o + 1]) == null ? void 0 : l.isOperationCol)) && {
228
+ className: F(t.className, "disabledResize")
229
+ },
230
+ width: q.length ? q[o] : P || (t == null ? void 0 : t.width),
231
+ ...k.x !== void 0 ? {
232
+ onHeaderCell: (n) => ({
233
+ width: n.width,
234
+ stretchref: ze,
235
+ datagridref: ce,
236
+ onResize: gt(o)
237
+ })
238
+ } : {},
239
+ // ...tableScroll.x !== undefined ? {
240
+ // onHeaderCell: (column: BitzTableColumnsType<T>[number]) => ({
241
+ // width: column.width,
242
+ // onResize: handleResize(i) as React.ReactEventHandler<any>,
243
+ // })
244
+ // } : {},
245
+ ...!(t != null && t.render) && t.copyable ? {
246
+ render: (n) => ["number", "bigint"].includes(typeof n) ? n : /* @__PURE__ */ r.jsx(ss, { value: n })
247
+ } : {}
248
+ };
249
+ });
250
+ return Zt(
251
+ ee,
252
+ s,
253
+ K,
254
+ !!H,
255
+ !!j
245
256
  );
246
- }, [S, ce]), ze = h(() => Zt(P), [P]), gt = h(() => c ? ze : P, [c, P, ze]), ke = h(() => {
247
- const e = (x ?? []).length, t = e > (F.pc ?? 10) ? e >= 20 ? 20 : e : F.pc ?? 10;
248
- return Array.from({ length: t }).map((o, n) => ({
249
- key: `${Date.now()}${n}`
257
+ }, [N, q]), gt = (e) => (s, { size: t }) => {
258
+ const o = [...q], n = (t.width > 48 ? t.width : 48) - q[e];
259
+ o[e] = q[e] + n;
260
+ let a = n + le;
261
+ const i = k.x + n;
262
+ if (n < 0 && i < T) {
263
+ a = a + T - i;
264
+ const b = e + 1;
265
+ let w = 0;
266
+ k.x > T && (w = k.x - T), o[b] = q[b] - n - w;
267
+ }
268
+ Ne(o), lt(a);
269
+ }, Se = f(() => Et(O), [O]), wt = f(() => d ? Se : O, [d, O, Se]), ke = f(() => {
270
+ const e = (C ?? []).length, s = e > (te.pc ?? 10) ? e >= 20 ? 20 : e : te.pc ?? 10;
271
+ return Array.from({ length: s }).map((o, l) => ({
272
+ key: `${Date.now()}${l}`
250
273
  }));
251
- }, [x]), Ne = h(() => c ? ke : x ?? [], [c, x, ke]), { table: ae, locale: wt = Xt } = Oe(ts), Wt = { ...wt.Table }, jt = (($e = ae == null ? void 0 : ae.expandable) == null ? void 0 : $e.expandIcon) || (w == null ? void 0 : w.expandIcon) || Ut(Wt), Se = h(() => {
252
- if (w)
274
+ }, [C]), pe = f(() => d ? ke : C ?? [], [d, C, ke]), { table: fe, locale: Wt = Yt } = Ve(os), jt = { ...Wt.Table }, zt = ((qe = fe == null ? void 0 : fe.expandable) == null ? void 0 : qe.expandIcon) || (j == null ? void 0 : j.expandIcon) || Xt(jt), Me = f(() => {
275
+ if (j)
253
276
  return {
254
- ...w,
277
+ ...j,
255
278
  expandedRowRender: () => /* @__PURE__ */ r.jsx(r.Fragment, {}),
256
279
  expandIcon: (e) => {
257
- const t = jt(e);
280
+ const s = zt(e);
258
281
  return {
259
- ...t,
282
+ ...s,
260
283
  props: {
261
- ...t.props,
284
+ ...s.props,
262
285
  disabled: !0,
263
286
  style: {
264
- ...t.props.style,
265
- backgroundColor: W.colorBgContainerDisabled
287
+ ...s.props.style,
288
+ backgroundColor: z.colorBgContainerDisabled
266
289
  }
267
290
  }
268
291
  };
269
292
  }
270
293
  };
271
- }, [w]), Bt = h(() => c ? Se : w, [c, w, Se]), pe = h(() => {
272
- if (M)
294
+ }, [j]), Bt = f(() => d ? Me : j, [d, j, Me]), Le = f(() => {
295
+ if (H)
273
296
  return {
274
- ...M,
297
+ ...H,
275
298
  selectedRowKeys: [],
276
299
  getCheckboxProps: () => ({ disabled: !0 })
277
300
  };
278
- }, [M]), Tt = h(() => c ? pe : M, [c, M, pe]), Me = h(() => c ? "key" : y.rowKey, [c, y.rowKey]), Le = h(() => `${be ?? b.stylesConfig.size}BitzTable`, [be, b.stylesConfig.size]), zt = Z(
279
- (e, t) => {
301
+ }, [H]), Tt = f(() => d ? Le : H, [d, H, Le]), Re = f(() => d ? "key" : x.rowKey, [d, x.rowKey]), He = f(() => `${xe ?? y.stylesConfig.size}BitzTable`, [xe, y.stylesConfig.size]), Nt = E(
302
+ (e, s) => {
280
303
  var o;
281
- if (!y.onRow || c)
304
+ if (!x.onRow || d)
282
305
  return {};
283
- const s = (o = y.onRow) == null ? void 0 : o.call(y, e, t);
284
- return s.onClick && (s.className = "rowPointerCursor"), s;
306
+ const t = (o = x.onRow) == null ? void 0 : o.call(x, e, s);
307
+ return t.onClick && (t.className = "rowPointerCursor"), t;
285
308
  },
286
- [y.onRow, c]
287
- ), kt = h(() => he(
309
+ [x.onRow, d]
310
+ ), St = f(() => F(
288
311
  "bitzTableContainer",
289
- { hideBorder: Ce },
290
- { hasScrollBar: O },
291
- Le,
292
- y.className
312
+ { hideBorder: we },
313
+ { hasScrollBar: v },
314
+ He,
315
+ x.className
293
316
  ), [
294
- y.className,
295
- Le,
296
- O,
297
- b.fullscreen,
298
- Ce
299
- ]), Nt = h(() => ({
300
- "--container-bgColor": W.colorBgContainer
301
- }), [W.colorBgContainer]), St = h(() => {
302
- const e = G ?? I;
303
- let t;
304
- z && (t = z >= e ? z : e);
305
- const s = b.fullscreen ? "100%" : t;
317
+ x.className,
318
+ He,
319
+ v,
320
+ y.fullscreen,
321
+ we
322
+ ]), kt = f(() => ({
323
+ "--container-bgColor": z.colorBgContainer
324
+ }), [z.colorBgContainer]), pt = f(() => {
325
+ const e = I ?? J;
326
+ let s;
327
+ p && (s = p >= e ? p : e);
328
+ const t = y.fullscreen ? "100%" : s;
306
329
  let o;
307
- return (V ?? 0) > 0 && (o = V), Et({
308
- height: s,
309
- token: W,
310
- evenRowBgColor: b.zebra ? m == null ? void 0 : m.evenRowBgColor : W.colorBgContainer,
330
+ return ($ ?? 0) > 0 && (o = $), At({
331
+ height: t,
332
+ token: z,
333
+ evenRowBgColor: y.zebra ? m == null ? void 0 : m.evenRowBgColor : z.colorBgContainer,
311
334
  table: m,
312
- gap: ye,
313
- borderColor: (m == null ? void 0 : m.borderColor) || W.colorBorderSecondary,
335
+ gap: Ce,
336
+ borderColor: (m == null ? void 0 : m.borderColor) || z.colorBorderSecondary,
314
337
  scrollbarWidth: o,
315
- other: y.style
338
+ other: x.style
316
339
  });
317
340
  }, [
318
- y.style,
319
- b.fullscreen,
320
- z,
321
- G,
341
+ x.style,
342
+ y.fullscreen,
343
+ p,
322
344
  I,
345
+ J,
323
346
  m,
324
- b == null ? void 0 : b.zebra,
325
- V
326
- ]), pt = Z(
327
- (e, t, s) => {
328
- const o = t % 2 === 0 ? "oddRow" : "evenRow";
329
- if (y.rowClassName) {
330
- const n = y.rowClassName(e, t, s);
331
- return he(o, n);
347
+ y == null ? void 0 : y.zebra,
348
+ $
349
+ ]), Mt = E(
350
+ (e, s, t) => {
351
+ const o = s % 2 === 0 ? "oddRow" : "evenRow";
352
+ if (x.rowClassName) {
353
+ const l = x.rowClassName(e, s, t);
354
+ return F(o, l);
332
355
  }
333
356
  return o;
334
357
  },
335
- [y.rowClassName]
358
+ [x.rowClassName]
336
359
  ), Pe = /* @__PURE__ */ r.jsx(
337
- Ot,
360
+ Vt,
338
361
  {
339
- finished: it,
362
+ finished: ct,
340
363
  onLoad: async () => (
341
364
  // @ts-ignore
342
- !c && (H == null ? void 0 : H((g == null ? void 0 : g.page) + 1, g == null ? void 0 : g.size))
365
+ !d && (V == null ? void 0 : V((W == null ? void 0 : W.page) + 1, W == null ? void 0 : W.size))
343
366
  ),
344
367
  loadingText: "加载中...",
345
368
  finishedText: "没有更多了",
@@ -350,233 +373,235 @@ function rs({
350
373
  className: "mobileList",
351
374
  style: { backgroundColor: m == null ? void 0 : m.mobileListBgColor },
352
375
  children: [
353
- C == null ? void 0 : C.map((e, t) => /* @__PURE__ */ r.jsx(
376
+ g == null ? void 0 : g.map((e, s) => /* @__PURE__ */ r.jsx(
354
377
  "div",
355
378
  {
356
379
  className: "listItem",
357
380
  style: { backgroundColor: m == null ? void 0 : m.listItemBgColor },
358
- onClick: () => dt(e, t),
359
- children: P == null ? void 0 : P.map((s, o) => {
360
- var n;
361
- return !(s != null && s.mobileHide) && /* @__PURE__ */ r.jsxs(
381
+ onClick: () => ft(e, s),
382
+ children: O == null ? void 0 : O.map((t, o) => {
383
+ var l;
384
+ return !(t != null && t.mobileHide) && /* @__PURE__ */ r.jsxs(
362
385
  "div",
363
386
  {
364
387
  className: "row",
365
- style: { color: W.colorText },
388
+ style: { color: z.colorText },
366
389
  children: [
367
- !s.mobileHideLabel && /* @__PURE__ */ r.jsxs("div", { className: "label", children: [
368
- `${s.title}`,
390
+ !t.mobileHideLabel && /* @__PURE__ */ r.jsxs("div", { className: "label", children: [
391
+ `${t.title}`,
369
392
  ":"
370
393
  ] }),
371
- /* @__PURE__ */ r.jsx("div", { className: "value", children: ((n = s == null ? void 0 : s.render) == null ? void 0 : n.call(
372
- s,
373
- ss(e, (s == null ? void 0 : s.dataIndex) || ""),
394
+ /* @__PURE__ */ r.jsx("div", { className: "value", children: ((l = t == null ? void 0 : t.render) == null ? void 0 : l.call(
395
+ t,
396
+ rs(e, (t == null ? void 0 : t.dataIndex) || ""),
374
397
  e,
375
- t
376
- )) || (e == null ? void 0 : e[s.dataIndex]) })
398
+ s
399
+ )) || (e == null ? void 0 : e[t.dataIndex]) })
377
400
  ]
378
401
  },
379
402
  o
380
403
  );
381
404
  })
382
405
  },
383
- t
406
+ s
384
407
  )),
385
- Array.from({ length: F.mobile ?? 2 }).map((e, t) => /* @__PURE__ */ r.jsx(
408
+ Array.from({ length: te.mobile ?? 2 }).map((e, s) => /* @__PURE__ */ r.jsx(
386
409
  "div",
387
410
  {
388
411
  className: "listItem",
389
412
  style: {
390
- display: c ? "block" : "none",
413
+ display: d ? "block" : "none",
391
414
  backgroundColor: m == null ? void 0 : m.listItemBgColor
392
415
  },
393
- children: /* @__PURE__ */ r.jsx("div", { className: "row", children: ue ? ue() : /* @__PURE__ */ r.jsx(
394
- Pt,
416
+ children: /* @__PURE__ */ r.jsx("div", { className: "row", children: be ? be() : /* @__PURE__ */ r.jsx(
417
+ Ht,
395
418
  {
396
419
  title: !1,
397
420
  paragraph: {
398
- rows: _e,
399
- width: Ge
421
+ rows: Ge,
422
+ width: Ie
400
423
  },
401
424
  active: !0
402
425
  }
403
426
  ) })
404
427
  },
405
- `${Date.now()}${t}`
428
+ `${Date.now()}${s}`
406
429
  ))
407
430
  ]
408
431
  }
409
432
  )
410
433
  }
411
434
  );
412
- de(() => {
413
- b.setSelected(!!(f != null && f.num));
414
- }, [f]);
415
- const He = h(() => /* @__PURE__ */ r.jsxs("div", { className: "alert", children: [
435
+ ue(() => {
436
+ y.setSelected(!!(u != null && u.num));
437
+ }, [u]);
438
+ const ve = f(() => /* @__PURE__ */ r.jsxs("div", { className: "alert", children: [
416
439
  /* @__PURE__ */ r.jsx(
417
- Ke,
440
+ De,
418
441
  {
419
442
  highlightTag: "strong",
420
- keywords: `${k}`,
421
- sourceString: `共 ${k} 条`,
443
+ keywords: `${M}`,
444
+ sourceString: `共 ${M} 条`,
422
445
  tagClass: "totalText"
423
446
  }
424
447
  ),
425
- !!f && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
426
- /* @__PURE__ */ r.jsx(Ve.Text, { className: "splitBorder", children: "/" }),
448
+ !!u && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
449
+ /* @__PURE__ */ r.jsx(Ke.Text, { className: "splitBorder", children: "/" }),
427
450
  /* @__PURE__ */ r.jsx(
428
- Ke,
451
+ De,
429
452
  {
430
453
  highlightTag: "strong",
431
- keywords: `${(f == null ? void 0 : f.num) ?? 0}`,
432
- sourceString: `已选中 ${(f == null ? void 0 : f.num) ?? 0} 条`
454
+ keywords: `${(u == null ? void 0 : u.num) ?? 0}`,
455
+ sourceString: `已选中 ${(u == null ? void 0 : u.num) ?? 0} 条`
433
456
  }
434
457
  ),
435
- !!(f != null && f.num) && /* @__PURE__ */ r.jsx(
436
- Ve.Link,
458
+ !!(u != null && u.num) && /* @__PURE__ */ r.jsx(
459
+ Ke.Link,
437
460
  {
438
461
  className: "cleanSelected",
439
- onClick: f == null ? void 0 : f.onClear,
462
+ onClick: u == null ? void 0 : u.onClear,
440
463
  children: "取消选中"
441
464
  }
442
465
  )
443
466
  ] })
444
- ] }), [k, f]), Mt = (e) => {
445
- c || te == null || te(e);
446
- }, ve = Z(() => v ? {
447
- row: (e) => At({ ...e, loading: c == null ? void 0 : c.toString() })
448
- } : {}, [v, v ? c : !1]), Re = Z(
467
+ ] }), [M, u]), Lt = (e) => {
468
+ d || oe == null || oe(e);
469
+ }, $e = E(() => K ? {
470
+ row: (e) => Ft({ ...e, loading: d == null ? void 0 : d.toString() })
471
+ } : {}, [K, K ? d : !1]);
472
+ E(
449
473
  (e) => {
450
- var o, n;
451
- const t = { ...e };
452
- return ((o = t.className) == null ? void 0 : o.includes(
474
+ var o, l;
475
+ const s = { ...e };
476
+ return ((o = s.className) == null ? void 0 : o.includes(
453
477
  "ant-table-cell-fix-right"
454
- )) && !O && ((n = t.style) != null && n.right) && (t.style = { ...t.style ?? {} }, t.style.right = Number(t.style.right ?? 0) - (V || 0)), /* @__PURE__ */ r.jsx("th", { ...t });
478
+ )) && !v && ((l = s.style) != null && l.right) && (s.style = { ...s.style ?? {} }, s.style.right = Number(s.style.right ?? 0) - ($ || 0)), /* @__PURE__ */ r.jsx("th", { ...s });
455
479
  },
456
- [O, V]
457
- ), Lt = h(() => ({
458
- ...N,
480
+ [v, $]
481
+ );
482
+ const Rt = f(() => ({
483
+ ...L,
459
484
  header: {
460
- ...N == null ? void 0 : N.header,
461
- cell: Re
485
+ ...L == null ? void 0 : L.header,
486
+ cell: (e) => ts({ ...e, hasScrollBar: v, scrollbarSize: $ })
462
487
  },
463
488
  body: {
464
- ...N == null ? void 0 : N.body,
465
- ...ve()
489
+ ...L == null ? void 0 : L.body,
490
+ ...$e()
466
491
  }
467
- }), [N, Re, ve]);
492
+ }), [L, v, $, $e]);
468
493
  return /* @__PURE__ */ r.jsxs(
469
494
  "div",
470
495
  {
471
- className: he("bitzTableBlock", {
472
- fullscreen: b.fullscreen
496
+ className: F("bitzTableBlock", {
497
+ fullscreen: y.fullscreen
473
498
  }),
474
- style: Nt,
499
+ style: kt,
475
500
  children: [
476
- !E && /* @__PURE__ */ r.jsxs("div", { ref: j, className: kt, style: St, children: [
477
- /* @__PURE__ */ r.jsxs("div", { className: "bitzTableContainerBody", ref: je, children: [
478
- Xe && /* @__PURE__ */ r.jsxs("div", { className: "bitzTableToolbarBlock", children: [
479
- Ye || /* @__PURE__ */ r.jsx("div", {}),
480
- Ze,
481
- Ee
501
+ !A && /* @__PURE__ */ r.jsxs("div", { ref: B, className: St, style: pt, children: [
502
+ /* @__PURE__ */ r.jsxs("div", { className: "bitzTableContainerBody", ref: ce, children: [
503
+ Ye && /* @__PURE__ */ r.jsxs("div", { className: "bitzTableToolbarBlock", children: [
504
+ Ze || /* @__PURE__ */ r.jsx("div", {}),
505
+ Ee,
506
+ Ae
482
507
  ] }),
483
508
  /* @__PURE__ */ r.jsx(
484
509
  "div",
485
510
  {
486
511
  className: "stretchLine",
487
- ref: ft,
512
+ ref: ze,
488
513
  style: {
489
- background: W.colorPrimary,
490
- bottom: O ? "var(--scrollbar-width)" : 0
514
+ background: z.colorPrimary,
515
+ bottom: v ? "var(--scrollbar-width)" : 0
491
516
  }
492
517
  }
493
518
  ),
494
519
  /* @__PURE__ */ r.jsx(
495
- Ft,
520
+ es,
496
521
  {
497
- enabledRowDragSort: v,
498
- dataSource: Ne,
499
- mergeRowKey: Me,
500
- onDragEnd: Mt,
522
+ enabledRowDragSort: K,
523
+ dataSource: pe,
524
+ mergeRowKey: Re,
525
+ onDragEnd: Lt,
501
526
  children: /* @__PURE__ */ r.jsx(
502
- Ht,
527
+ Pt,
503
528
  {
504
- ...y,
505
- bordered: xe,
506
- columns: gt,
507
- dataSource: Ne,
529
+ ...x,
530
+ bordered: ge,
531
+ columns: wt,
532
+ dataSource: pe,
508
533
  loading: !1,
509
534
  pagination: !1,
510
- scroll: K,
535
+ scroll: k,
511
536
  expandable: Bt,
512
537
  rowSelection: Tt,
513
- onRow: zt,
514
- rowHoverable: et,
515
- rowClassName: pt,
538
+ onRow: Nt,
539
+ rowHoverable: tt,
540
+ rowClassName: Mt,
516
541
  className: "bitzTable",
517
- components: Lt,
518
- rowKey: Me,
519
- onChange: ut,
520
- ref: oe
542
+ components: Rt,
543
+ rowKey: Re,
544
+ onChange: mt,
545
+ ref: ie
521
546
  }
522
547
  )
523
548
  }
524
549
  )
525
550
  ] }),
526
- q && !!k && /* @__PURE__ */ r.jsxs("div", { className: "bitzTablePagination", ref: ie, children: [
527
- He,
551
+ _ && !!M && /* @__PURE__ */ r.jsxs("div", { className: "bitzTablePagination", ref: he, children: [
552
+ ve,
528
553
  /* @__PURE__ */ r.jsx(
529
- $t,
554
+ qt,
530
555
  {
531
556
  size: "small",
532
- enableControl: Ie,
533
- pagination: g,
534
- total: k,
535
- dataSource: x,
536
- resetPage: Ae,
557
+ enableControl: Je,
558
+ pagination: W,
559
+ total: M,
560
+ dataSource: C,
561
+ resetPage: Fe,
537
562
  hideTotalText: !0,
538
- paginationEmit: mt
563
+ paginationEmit: bt
539
564
  }
540
565
  )
541
566
  ] }),
542
- !q && !!f && !!k && /* @__PURE__ */ r.jsx("div", { className: "bitzTablePagination", ref: ie, children: He })
567
+ !_ && !!u && !!M && /* @__PURE__ */ r.jsx("div", { className: "bitzTablePagination", ref: he, children: ve })
543
568
  ] }),
544
- E && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
545
- (c || !!(x != null && x.length)) && /* @__PURE__ */ r.jsx(r.Fragment, { children: me ? (
569
+ A && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
570
+ (d || !!(C != null && C.length)) && /* @__PURE__ */ r.jsx(r.Fragment, { children: ye ? (
546
571
  // @ts-ignore
547
572
  /* @__PURE__ */ r.jsx(
548
- Vt,
573
+ Kt,
549
574
  {
550
- onRefresh: async () => !c && me(),
575
+ onRefresh: async () => !d && ye(),
551
576
  children: Pe
552
577
  }
553
578
  )
554
579
  ) : Pe }),
555
- !c && /* @__PURE__ */ r.jsx(qt, { data: x, title: Qe, img: Ue }),
580
+ !d && /* @__PURE__ */ r.jsx(Ot, { data: C, title: Ue, img: Xe }),
556
581
  /* @__PURE__ */ r.jsx(
557
- Rt,
582
+ $t,
558
583
  {
559
584
  className: "tableMobileDrawer",
560
- open: nt,
585
+ open: it,
561
586
  placement: "bottom",
562
587
  height: "auto",
563
588
  closable: !1,
564
- onClose: We,
589
+ onClose: je,
565
590
  children: /* @__PURE__ */ r.jsxs("div", { className: "drawerBox", children: [
566
- /* @__PURE__ */ r.jsx("div", { className: "boxBody", children: at ? /* @__PURE__ */ r.jsx("div", { className: "operaList", children: /* @__PURE__ */ r.jsx(vt, {}) }) : U.map((e, t) => /* @__PURE__ */ r.jsx(
591
+ /* @__PURE__ */ r.jsx("div", { className: "boxBody", children: ht ? /* @__PURE__ */ r.jsx("div", { className: "operaList", children: /* @__PURE__ */ r.jsx(vt, {}) }) : X.map((e, s) => /* @__PURE__ */ r.jsx(
567
592
  "div",
568
593
  {
569
594
  className: "operaList",
570
- onClick: () => ht(e, t),
595
+ onClick: () => ut(e, s),
571
596
  ...e.danger && {
572
- style: { color: W.colorError }
597
+ style: { color: z.colorError }
573
598
  },
574
599
  children: e.label
575
600
  },
576
- t
601
+ s
577
602
  )) }),
578
603
  /* @__PURE__ */ r.jsx("div", { className: "boxLine" }),
579
- /* @__PURE__ */ r.jsx("div", { className: "boxFooter", onClick: We, children: Je })
604
+ /* @__PURE__ */ r.jsx("div", { className: "boxFooter", onClick: je, children: Qe })
580
605
  ] })
581
606
  }
582
607
  )
@@ -585,7 +610,7 @@ function rs({
585
610
  }
586
611
  );
587
612
  }
588
- const $s = (q) => /* @__PURE__ */ r.jsx(Kt, { initValue: q, children: /* @__PURE__ */ r.jsx(rs, { ...q }) });
613
+ const Os = (_) => /* @__PURE__ */ r.jsx(Dt, { initValue: _, children: /* @__PURE__ */ r.jsx(ns, { ..._ }) });
589
614
  export {
590
- $s as default
615
+ Os as default
591
616
  };