bitz-react-admin-ui 2.6.1 → 2.6.2

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