bitz-react-admin-ui 2.5.4 → 2.5.6

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