bitz-react-admin-ui 2.4.6 → 2.4.7

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