bitz-react-admin-ui 2.7.7 → 2.7.9

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