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