bitz-react-admin-ui 2.3.0 → 2.3.1

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,5 +1,5 @@
1
- import { j as s } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
- import { useContext as Se, useRef as q, useState as S, useEffect as Me, useMemo as l, useCallback as oe } from "react";
1
+ import { j as o } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
+ import { useContext as Se, useRef as q, useState as S, useEffect as Me, useMemo as a, useCallback as oe } from "react";
3
3
  import { isMobile as D } from "../../../node_modules/.store/react-device-detect@2.2.3/node_modules/react-device-detect/dist/lib.mjs";
4
4
  import { Skeleton as wt, Typography as Le, Table as zt } from "antd";
5
5
  import F from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
@@ -30,10 +30,10 @@ import _t from "../../../node_modules/.store/lodash-es@4.17.21/node_modules/loda
30
30
  function Gt({
31
31
  showPagination: R = !0,
32
32
  height: v,
33
- dataSource: m,
33
+ dataSource: b,
34
34
  total: j = 0,
35
35
  columns: P,
36
- loading: i,
36
+ loading: l,
37
37
  skeletonNum: _ = {
38
38
  pc: 10,
39
39
  mobile: 10
@@ -54,7 +54,7 @@ function Gt({
54
54
  mobileCancelText: $e = "取消",
55
55
  noDataTitle: Oe,
56
56
  noDataImg: Ve,
57
- color: Jt,
57
+ color: It,
58
58
  size: le,
59
59
  showTableTool: Ke = !0,
60
60
  tableAction: qe,
@@ -62,50 +62,50 @@ function Gt({
62
62
  selectionBar: Fe,
63
63
  scroll: c,
64
64
  components: W,
65
- expandable: x,
65
+ expandable: g,
66
66
  rowSelection: p,
67
- selectionAlert: d,
67
+ selectionAlert: f,
68
68
  resetPage: _e,
69
- ...u
69
+ ...m
70
70
  }) {
71
71
  var Ne;
72
- const { token: g } = Rt.useToken(), { Table: a } = g, { tableSpaceBetweenPage: ce = 10 } = a, { gap: Ge } = Ht(), { showColumnBorder: Ee, hideRowBorder: ae, rowHoverable: Je, ...h } = Se(kt), b = q(void 0), [J, Qe] = S(0), [Q, Ue] = S(0), [U, Xe] = S(0), [Ye, X] = S(!1), [C, Ze] = S([]);
72
+ const { token: w } = Rt.useToken(), { Table: h } = w, { tableSpaceBetweenPage: ae = 10 } = h, { gap: Ge } = Ht(), { showColumnBorder: Ee, hideRowBorder: ce, rowHoverable: Ie, ...d } = Se(kt), C = q(void 0), [I, Je] = S(0), [J, Qe] = S(0), [Q, Ue] = S(0), [Xe, U] = S(!1), [x, Ye] = S([]);
73
73
  Me(() => {
74
- let e = [...m ?? []];
75
- (y == null ? void 0 : y.page) !== 1 && (e = [...C, ...e]), Ze(e);
76
- }, [m]);
77
- const Ie = l(() => !!(C != null && C.length) && (C == null ? void 0 : C.length) >= j, [C, j]), [Ae, et] = S([]), tt = (e, t) => {
78
- var o;
79
- const r = (o = G == null ? void 0 : G(e, t)) == null ? void 0 : o.filter(
74
+ let e = [...b ?? []];
75
+ (y == null ? void 0 : y.page) !== 1 && (e = [...x, ...e]), Ye(e);
76
+ }, [b]);
77
+ const Ze = a(() => !!(x != null && x.length) && (x == null ? void 0 : x.length) >= j, [x, j]), [Ae, et] = S([]), tt = (e, t) => {
78
+ var s;
79
+ const r = (s = G == null ? void 0 : G(e, t)) == null ? void 0 : s.filter(
80
80
  (n) => n.type !== "divider"
81
81
  );
82
- r != null && r.length && (et(r), X(!0));
82
+ r != null && r.length && (et(r), U(!0));
83
83
  }, he = () => {
84
- X(!1);
84
+ U(!1);
85
85
  }, rt = (e) => {
86
86
  var t;
87
- X(!1), (t = e.onClick) == null || t.call(e);
88
- }, z = q(null), Y = se(z), de = q(null), Z = se(de), I = q(null), L = se(I), ot = () => {
87
+ U(!1), (t = e.onClick) == null || t.call(e);
88
+ }, z = q(null), X = se(z), de = q(null), Y = se(de), Z = q(null), L = se(Z), ot = () => {
89
89
  var r;
90
90
  const e = (r = z.current) == null ? void 0 : r.querySelectorAll(
91
91
  "& > .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)"
92
92
  ), t = [];
93
- if (e == null || e.forEach((o) => {
93
+ if (e == null || e.forEach((s) => {
94
94
  var n;
95
95
  t.push(
96
- ((n = o.querySelector("& > .operationCol .actionGroup")) == null ? void 0 : n.clientWidth) || 0
96
+ ((n = s.querySelector("& > .operationCol .actionGroup")) == null ? void 0 : n.clientWidth) || 0
97
97
  );
98
98
  }), t.length)
99
99
  return Math.ceil(Math.max(...t)) + Ge * 2;
100
100
  }, ue = () => {
101
- var f, w, K;
102
- const e = (f = z.current) == null ? void 0 : f.querySelector(
101
+ var i, u, K;
102
+ const e = (i = z.current) == null ? void 0 : i.querySelector(
103
103
  ".ant-table-body"
104
- ), t = e == null ? void 0 : e.clientWidth, o = ((e == null ? void 0 : e.offsetWidth) || 0) - t > 0, n = (K = (w = z.current) == null ? void 0 : w.querySelector(
104
+ ), t = e == null ? void 0 : e.clientWidth, s = ((e == null ? void 0 : e.offsetWidth) || 0) - t > 0, n = (K = (u = z.current) == null ? void 0 : u.querySelector(
105
105
  ".ant-table-cell-scrollbar"
106
106
  )) == null ? void 0 : K.offsetWidth;
107
- return { tbodyWidth: t, hasScrollBar: o, scrollbarSize: n };
108
- }, { y: A, tbodyWidth: H, hasScrollBar: V, scrollbarSize: $ } = l(() => {
107
+ return { tbodyWidth: t, hasScrollBar: s, scrollbarSize: n };
108
+ }, { y: A, tbodyWidth: H, hasScrollBar: V, scrollbarSize: $ } = a(() => {
109
109
  const { tbodyWidth: e, hasScrollBar: t, scrollbarSize: r } = ue();
110
110
  if (typeof v > "u")
111
111
  return {
@@ -113,81 +113,82 @@ function Gt({
113
113
  hasScrollBar: t,
114
114
  scrollbarSize: r
115
115
  };
116
- let o = 40, n = 40;
116
+ let s = 40, n = 40;
117
117
  if (z.current) {
118
118
  const T = window.getComputedStyle(z.current);
119
- o = parseInt(T.getPropertyValue("--cell-height")), n = parseInt(T.getPropertyValue("--toolbar-height"));
119
+ s = parseInt(T.getPropertyValue("--cell-height")), n = parseInt(T.getPropertyValue("--toolbar-height"));
120
120
  }
121
- const f = (L == null ? void 0 : L.height) || 0, w = f ? ce : 0;
122
- return { y: (h.fullscreen ? window.innerHeight : v) - f - w - n - o, tbodyWidth: e, hasScrollBar: t, scrollbarSize: r };
121
+ const i = (L == null ? void 0 : L.height) || 0, u = i ? ae : 0;
122
+ return { y: (d.fullscreen ? window.innerHeight : v) - i - u - n - s, tbodyWidth: e, hasScrollBar: t, scrollbarSize: r };
123
123
  }, [
124
- h.fullscreen,
124
+ d.fullscreen,
125
125
  v,
126
126
  L == null ? void 0 : L.height,
127
- Y == null ? void 0 : Y.height,
128
- Z == null ? void 0 : Z.height
129
- ]), ee = l(() => {
127
+ X == null ? void 0 : X.height,
128
+ Y == null ? void 0 : Y.height
129
+ ]), ee = a(() => {
130
130
  let e = (c == null ? void 0 : c.x) ?? 1e3;
131
- return J && (e -= J), Q && b.current && (e -= Q * b.current), H && (c != null && c.x && e < H && (c == null ? void 0 : c.x) > H && Xe(H - e), e = Math.max(e, H)), c != null && c.x ? { x: e, y: c.y || A } : c != null && c.y ? { x: e, y: c.y } : { x: e, y: A };
132
- }, [c, A, H, J, Q]), fe = () => {
131
+ return I && (e -= I), J && C.current && (e -= J * C.current), H && (c != null && c.x && e < H && (c == null ? void 0 : c.x) > H && Ue(H - e), e = Math.max(e, H)), c != null && c.x ? { x: e, y: c.y || A } : c != null && c.y ? { x: e, y: c.y } : { x: e, y: A };
132
+ }, [c, A, H, I, J]), fe = () => {
133
133
  let e = 0;
134
134
  if (z.current) {
135
- const r = window.getComputedStyle(z.current), o = parseInt(
135
+ const r = window.getComputedStyle(z.current), s = parseInt(
136
136
  r.getPropertyValue("--toolCell-paddingInline")
137
137
  );
138
- e = parseInt(r.getPropertyValue("--fontSize")) + 4 + 2 * o;
138
+ e = parseInt(r.getPropertyValue("--fontSize")) + 4 + 2 * s;
139
139
  }
140
140
  let t = 0;
141
- return p && (t += e), x && (t += e), M && (t += e), t;
141
+ return p && (t += e), g && (t += e), M && (t += e), t;
142
142
  }, st = (e, t) => {
143
- const r = e.length, o = e.filter((T) => T.width), f = o.map((T) => T.width).reduce((T, gt) => T + gt, 0), { tbodyWidth: w } = ue(), re = Math.max((c == null ? void 0 : c.x) ?? 0, w ?? 0) - f - t, ke = r - o.length;
143
+ const r = e.length, s = e.filter((T) => T.width), i = s.map((T) => T.width).reduce((T, gt) => T + gt, 0), { tbodyWidth: u } = ue(), re = Math.max((c == null ? void 0 : c.x) ?? 0, u ?? 0) - i - t, ke = r - s.length;
144
144
  return re >= 0 ? Math.floor(re / ke) : 0;
145
- }, me = l(() => {
145
+ }, me = a(() => {
146
146
  var e;
147
147
  return ((e = (P ?? []).find((t) => t.isOperationCol)) == null ? void 0 : e.width) ?? 0;
148
- }, [P]), B = l(() => {
149
- const t = (P ?? []).filter((w) => !St.includes(w)), { filterColumns: r, hiddenTotalWidth: o, autoWidthColLength: n } = Mt(
148
+ }, [P]), B = a(() => {
149
+ const t = (P ?? []).filter((u) => !St.includes(u)), { filterColumns: r, hiddenTotalWidth: s, autoWidthColLength: n } = Mt(
150
150
  t,
151
- h.columnsMap
152
- ), f = r.sort(Lt(h.columnsMap));
151
+ d.columnsMap
152
+ ), i = r.sort(Lt(d.columnsMap));
153
153
  if (!D) {
154
- const w = fe();
155
- b.current = st(t, w), Qe(o), Ue(n);
154
+ const u = fe();
155
+ C.current = st(t, u), Je(s), Qe(n);
156
156
  }
157
- return f;
158
- }, [h.columnsMap, me]), be = l(() => fe(), [h.columnsMap, me]), [N, Ce] = S([]);
157
+ return i;
158
+ }, [d.columnsMap, me]), be = a(() => fe(), [d.columnsMap, me]), [N, Ce] = S([]);
159
159
  Me(() => {
160
- if (b.current) {
160
+ if (C.current) {
161
161
  let e = 0;
162
- if (U) {
163
- const o = B == null ? void 0 : B.filter(
164
- (n) => !n.width && !(n != null && n.isOperationCol)
162
+ if (Q) {
163
+ const n = B == null ? void 0 : B.filter(
164
+ (i) => !i.width && !(i != null && i.isOperationCol)
165
165
  ).length;
166
- e = Math.floor(U / o);
166
+ e = Math.floor(Q / n);
167
167
  }
168
- let t = 0;
169
- const r = B.map((o) => {
170
- let n = o.width;
171
- return o != null && o.useMaxWidth && (o != null && o.isOperationCol) && (n = ot() ?? o.width), !n && (b != null && b.current) && (n = b.current + e), t += n ?? 0, n;
168
+ let t = 0, r = -1;
169
+ const s = B.map((n, i) => {
170
+ let u = n.width;
171
+ return n != null && n.isOperationCol && (r = i, n != null && n.useMaxWidth && (u = ot() ?? n.width)), !u && (C != null && C.current) && (u = C.current + e), t += u ?? 0, u;
172
172
  });
173
173
  if (t < ee.x - be) {
174
- const o = ee.x - be - t;
175
- r[0] = (r[0] ?? 0) + o;
174
+ const n = ee.x - be - t;
175
+ let i = 0;
176
+ r === 0 && s.length > 1 && i++, s[i] = (s[i] ?? 0) + n;
176
177
  }
177
- Ce(r);
178
+ Ce(s);
178
179
  }
179
- }, [B, U]);
180
- const k = l(() => {
180
+ }, [B, Q]);
181
+ const k = a(() => {
181
182
  if (D)
182
183
  return B;
183
184
  const e = B.map((t, r) => {
184
- var o;
185
+ var s;
185
186
  return {
186
187
  ...t,
187
- ...((o = B[r + 1]) == null ? void 0 : o.isOperationCol) && {
188
+ ...((s = B[r + 1]) == null ? void 0 : s.isOperationCol) && {
188
189
  className: F(t.className, "disabledResize")
189
190
  },
190
- width: N.length ? N[r] : b == null ? void 0 : b.current,
191
+ width: N.length ? N[r] : C == null ? void 0 : C.current,
191
192
  onHeaderCell: (n) => ({
192
193
  width: n.width,
193
194
  onResize: nt(r)
@@ -199,23 +200,23 @@ function Gt({
199
200
  e,
200
201
  M,
201
202
  !!p,
202
- !!x
203
+ !!g
203
204
  );
204
205
  }, [P, B, N]), nt = (e) => (t, { size: r }) => {
205
- const o = [...N], n = e + 1, f = r.width - N[e];
206
- o[e] = N[e] + f, o[n] = N[n] - f, o[e] > 48 && o[n] > 48 && Ce(o);
207
- }, ye = l(() => Ot(k), [k]), it = l(() => i ? ye : k, [i, k, ye]), xe = l(() => {
208
- const e = (m ?? []).length, t = e > (_.pc ?? 10) ? e >= 20 ? 20 : e : _.pc ?? 10;
209
- return Array.from({ length: t }).map((o, n) => ({
206
+ const s = [...N], n = e + 1, i = r.width - N[e];
207
+ s[e] = N[e] + i, s[n] = N[n] - i, s[e] > 48 && s[n] > 48 && Ce(s);
208
+ }, xe = a(() => Ot(k), [k]), it = a(() => l ? xe : k, [l, k, xe]), ye = a(() => {
209
+ const e = (b ?? []).length, t = e > (_.pc ?? 10) ? e >= 20 ? 20 : e : _.pc ?? 10;
210
+ return Array.from({ length: t }).map((s, n) => ({
210
211
  key: `${Date.now()}${n}`
211
212
  }));
212
- }, [m]), ge = l(() => i ? xe : m ?? [], [i, m, xe]), { table: te, locale: lt = Pt } = Se(Ft), ct = { ...lt.Table }, at = ((Ne = te == null ? void 0 : te.expandable) == null ? void 0 : Ne.expandIcon) || (x == null ? void 0 : x.expandIcon) || vt(ct), we = l(() => {
213
- if (x)
213
+ }, [b]), ge = a(() => l ? ye : b ?? [], [l, b, ye]), { table: te, locale: lt = Pt } = Se(Ft), at = { ...lt.Table }, ct = ((Ne = te == null ? void 0 : te.expandable) == null ? void 0 : Ne.expandIcon) || (g == null ? void 0 : g.expandIcon) || vt(at), we = a(() => {
214
+ if (g)
214
215
  return {
215
- ...x,
216
- expandedRowRender: () => /* @__PURE__ */ s.jsx(s.Fragment, {}),
216
+ ...g,
217
+ expandedRowRender: () => /* @__PURE__ */ o.jsx(o.Fragment, {}),
217
218
  expandIcon: (e) => {
218
- const t = at(e);
219
+ const t = ct(e);
219
220
  return {
220
221
  ...t,
221
222
  props: {
@@ -223,109 +224,109 @@ function Gt({
223
224
  disabled: !0,
224
225
  style: {
225
226
  ...t.props.style,
226
- backgroundColor: g.colorBgContainerDisabled
227
+ backgroundColor: w.colorBgContainerDisabled
227
228
  }
228
229
  }
229
230
  };
230
231
  }
231
232
  };
232
- }, [x]), ht = l(() => i ? we : x, [i, x, we]), ze = l(() => {
233
+ }, [g]), ht = a(() => l ? we : g, [l, g, we]), ze = a(() => {
233
234
  if (p)
234
235
  return {
235
236
  ...p,
236
237
  selectedRowKeys: [],
237
238
  getCheckboxProps: () => ({ disabled: !0 })
238
239
  };
239
- }, [p]), dt = l(() => i ? ze : p, [i, p, ze]), Be = l(() => i ? "key" : u.rowKey, [i, u.rowKey]), je = l(() => `${le ?? h.stylesConfig.size}BitzTable`, [le, h.stylesConfig.size]), ut = oe(
240
+ }, [p]), dt = a(() => l ? ze : p, [l, p, ze]), Be = a(() => l ? "key" : m.rowKey, [l, m.rowKey]), je = a(() => `${le ?? d.stylesConfig.size}BitzTable`, [le, d.stylesConfig.size]), ut = oe(
240
241
  (e, t) => {
241
- var o;
242
- if (!u.onRow || i)
242
+ var s;
243
+ if (!m.onRow || l)
243
244
  return {};
244
- const r = (o = u.onRow) == null ? void 0 : o.call(u, e, t);
245
+ const r = (s = m.onRow) == null ? void 0 : s.call(m, e, t);
245
246
  return r.onClick && (r.className = "rowPointerCursor"), r;
246
247
  },
247
- [u.onRow, i]
248
- ), ft = l(() => F(
248
+ [m.onRow, l]
249
+ ), ft = a(() => F(
249
250
  "bitzTableContainer",
250
- { hideBorder: ae },
251
+ { hideBorder: ce },
251
252
  { hasScrollBar: V },
252
253
  je,
253
- u.className
254
+ m.className
254
255
  ), [
255
- u.className,
256
+ m.className,
256
257
  je,
257
258
  V,
258
- h.fullscreen,
259
- ae
260
- ]), mt = l(() => ({
261
- "--container-bgColor": g.colorBgContainer
262
- }), [g.colorBgContainer]), bt = l(() => {
263
- const e = h.fullscreen ? "100%" : v;
259
+ d.fullscreen,
260
+ ce
261
+ ]), mt = a(() => ({
262
+ "--container-bgColor": w.colorBgContainer
263
+ }), [w.colorBgContainer]), bt = a(() => {
264
+ const e = d.fullscreen ? "100%" : v;
264
265
  let t;
265
266
  return ($ ?? 0) > 0 && (t = $), Vt({
266
267
  height: e,
267
- fontFamily: g.fontFamily,
268
- evenRowBgColor: h.zebra ? a == null ? void 0 : a.evenRowBgColor : g.colorBgContainer,
269
- colorBgContainer: g.colorBgContainer,
270
- table: a,
271
- gap: ce,
272
- borderColor: (a == null ? void 0 : a.borderColor) || g.colorBorderSecondary,
268
+ fontFamily: w.fontFamily,
269
+ evenRowBgColor: d.zebra ? h == null ? void 0 : h.evenRowBgColor : w.colorBgContainer,
270
+ colorBgContainer: w.colorBgContainer,
271
+ table: h,
272
+ gap: ae,
273
+ borderColor: (h == null ? void 0 : h.borderColor) || w.colorBorderSecondary,
273
274
  scrollbarWidth: t,
274
- other: u.style
275
+ other: m.style
275
276
  });
276
277
  }, [
277
- u.style,
278
- h.fullscreen,
278
+ m.style,
279
+ d.fullscreen,
279
280
  v,
280
- a,
281
- h == null ? void 0 : h.zebra,
281
+ h,
282
+ d == null ? void 0 : d.zebra,
282
283
  $
283
284
  ]), Ct = oe(
284
285
  (e, t, r) => {
285
- const o = t % 2 === 0 ? "oddRow" : "evenRow";
286
- if (u.rowClassName) {
287
- const n = u.rowClassName(e, t, r);
288
- return F(o, n);
286
+ const s = t % 2 === 0 ? "oddRow" : "evenRow";
287
+ if (m.rowClassName) {
288
+ const n = m.rowClassName(e, t, r);
289
+ return F(s, n);
289
290
  }
290
- return o;
291
+ return s;
291
292
  },
292
- [u.rowClassName]
293
- ), We = /* @__PURE__ */ s.jsx(
293
+ [m.rowClassName]
294
+ ), We = /* @__PURE__ */ o.jsx(
294
295
  Tt,
295
296
  {
296
- finished: Ie,
297
+ finished: Ze,
297
298
  onLoad: async () => (
298
299
  // @ts-ignore
299
- !i && (O == null ? void 0 : O((y == null ? void 0 : y.page) + 1, y == null ? void 0 : y.size))
300
+ !l && (O == null ? void 0 : O((y == null ? void 0 : y.page) + 1, y == null ? void 0 : y.size))
300
301
  ),
301
302
  loadingText: "加载中...",
302
303
  finishedText: "没有更多了",
303
304
  errorText: "加载失败",
304
- children: /* @__PURE__ */ s.jsxs(
305
+ children: /* @__PURE__ */ o.jsxs(
305
306
  "div",
306
307
  {
307
308
  className: "mobileList",
308
- style: { backgroundColor: a == null ? void 0 : a.mobileListBgColor },
309
+ style: { backgroundColor: h == null ? void 0 : h.mobileListBgColor },
309
310
  children: [
310
- C == null ? void 0 : C.map((e, t) => /* @__PURE__ */ s.jsx(
311
+ x == null ? void 0 : x.map((e, t) => /* @__PURE__ */ o.jsx(
311
312
  "div",
312
313
  {
313
314
  className: "listItem",
314
- style: { backgroundColor: a == null ? void 0 : a.listItemBgColor },
315
+ style: { backgroundColor: h == null ? void 0 : h.listItemBgColor },
315
316
  onClick: () => tt(e, t),
316
- children: k == null ? void 0 : k.map((r, o) => {
317
+ children: k == null ? void 0 : k.map((r, s) => {
317
318
  var n;
318
- return !(r != null && r.mobileHide) && /* @__PURE__ */ s.jsxs(
319
+ return !(r != null && r.mobileHide) && /* @__PURE__ */ o.jsxs(
319
320
  "div",
320
321
  {
321
322
  className: "row",
322
- style: { color: g.colorText },
323
+ style: { color: w.colorText },
323
324
  children: [
324
- !r.mobileHideLabel && /* @__PURE__ */ s.jsxs("div", { className: "label", children: [
325
+ !r.mobileHideLabel && /* @__PURE__ */ o.jsxs("div", { className: "label", children: [
325
326
  `${r.title}`,
326
327
  ":"
327
328
  ] }),
328
- /* @__PURE__ */ s.jsx("div", { className: "value", children: ((n = r == null ? void 0 : r.render) == null ? void 0 : n.call(
329
+ /* @__PURE__ */ o.jsx("div", { className: "value", children: ((n = r == null ? void 0 : r.render) == null ? void 0 : n.call(
329
330
  r,
330
331
  _t(e, (r == null ? void 0 : r.dataIndex) || ""),
331
332
  e,
@@ -333,21 +334,21 @@ function Gt({
333
334
  )) || (e == null ? void 0 : e[r.dataIndex]) })
334
335
  ]
335
336
  },
336
- o
337
+ s
337
338
  );
338
339
  })
339
340
  },
340
341
  t
341
342
  )),
342
- Array.from({ length: _.mobile ?? 2 }).map((e, t) => /* @__PURE__ */ s.jsx(
343
+ Array.from({ length: _.mobile ?? 2 }).map((e, t) => /* @__PURE__ */ o.jsx(
343
344
  "div",
344
345
  {
345
346
  className: "listItem",
346
347
  style: {
347
- display: i ? "block" : "none",
348
- backgroundColor: a == null ? void 0 : a.listItemBgColor
348
+ display: l ? "block" : "none",
349
+ backgroundColor: h == null ? void 0 : h.listItemBgColor
349
350
  },
350
- children: /* @__PURE__ */ s.jsx("div", { className: "row", children: ne ? ne() : /* @__PURE__ */ s.jsx(
351
+ children: /* @__PURE__ */ o.jsx("div", { className: "row", children: ne ? ne() : /* @__PURE__ */ o.jsx(
351
352
  wt,
352
353
  {
353
354
  title: !1,
@@ -365,8 +366,8 @@ function Gt({
365
366
  }
366
367
  )
367
368
  }
368
- ), Te = l(() => /* @__PURE__ */ s.jsxs("div", { className: "alert", children: [
369
- /* @__PURE__ */ s.jsx(
369
+ ), Te = a(() => /* @__PURE__ */ o.jsxs("div", { className: "alert", children: [
370
+ /* @__PURE__ */ o.jsx(
370
371
  He,
371
372
  {
372
373
  highlightTag: "strong",
@@ -375,31 +376,31 @@ function Gt({
375
376
  tagClass: "totalText"
376
377
  }
377
378
  ),
378
- !!d && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
379
- /* @__PURE__ */ s.jsx(Le.Text, { className: "splitBorder", children: "/" }),
380
- /* @__PURE__ */ s.jsx(
379
+ !!f && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
380
+ /* @__PURE__ */ o.jsx(Le.Text, { className: "splitBorder", children: "/" }),
381
+ /* @__PURE__ */ o.jsx(
381
382
  He,
382
383
  {
383
384
  highlightTag: "strong",
384
- keywords: `${(d == null ? void 0 : d.num) ?? 0}`,
385
- sourceString: `已选中 ${(d == null ? void 0 : d.num) ?? 0} 条`
385
+ keywords: `${(f == null ? void 0 : f.num) ?? 0}`,
386
+ sourceString: `已选中 ${(f == null ? void 0 : f.num) ?? 0} 条`
386
387
  }
387
388
  ),
388
- !!(d != null && d.num) && /* @__PURE__ */ s.jsx(
389
+ !!(f != null && f.num) && /* @__PURE__ */ o.jsx(
389
390
  Le.Link,
390
391
  {
391
392
  className: "cleanSelected",
392
- onClick: d == null ? void 0 : d.onClear,
393
+ onClick: f == null ? void 0 : f.onClear,
393
394
  children: "取消选中"
394
395
  }
395
396
  )
396
397
  ] })
397
- ] }), [j, d]), yt = (e) => {
398
+ ] }), [j, f]), xt = (e) => {
398
399
  var t;
399
- i || e.active.id !== ((t = e.over) == null ? void 0 : t.id) && (E == null || E(e));
400
+ l || e.active.id !== ((t = e.over) == null ? void 0 : t.id) && (E == null || E(e));
400
401
  }, pe = oe(() => M ? {
401
- row: (e) => Kt({ ...e, loading: i == null ? void 0 : i.toString() })
402
- } : {}, [M, M ? i : !1]), xt = l(() => ({
402
+ row: (e) => Kt({ ...e, loading: l == null ? void 0 : l.toString() })
403
+ } : {}, [M, M ? l : !1]), yt = a(() => ({
403
404
  ...W,
404
405
  header: {
405
406
  ...W == null ? void 0 : W.header,
@@ -410,32 +411,32 @@ function Gt({
410
411
  ...pe()
411
412
  }
412
413
  }), [W, V, $, pe]);
413
- return /* @__PURE__ */ s.jsxs(
414
+ return /* @__PURE__ */ o.jsxs(
414
415
  "div",
415
416
  {
416
417
  className: F("bitzTableBlock", {
417
- fullscreen: h.fullscreen
418
+ fullscreen: d.fullscreen
418
419
  }),
419
420
  style: mt,
420
421
  children: [
421
- !D && /* @__PURE__ */ s.jsxs("div", { ref: z, className: ft, style: bt, children: [
422
- /* @__PURE__ */ s.jsxs("div", { className: "bitzTableContainerBody", ref: de, children: [
423
- Ke && /* @__PURE__ */ s.jsxs("div", { className: "bitzTableToolbarBlock", children: [
424
- qe || /* @__PURE__ */ s.jsx("div", {}),
422
+ !D && /* @__PURE__ */ o.jsxs("div", { ref: z, className: ft, style: bt, children: [
423
+ /* @__PURE__ */ o.jsxs("div", { className: "bitzTableContainerBody", ref: de, children: [
424
+ Ke && /* @__PURE__ */ o.jsxs("div", { className: "bitzTableToolbarBlock", children: [
425
+ qe || /* @__PURE__ */ o.jsx("div", {}),
425
426
  De,
426
427
  Fe
427
428
  ] }),
428
- /* @__PURE__ */ s.jsx(
429
+ /* @__PURE__ */ o.jsx(
429
430
  qt,
430
431
  {
431
432
  enabledRowDragSort: M,
432
433
  dataSource: ge,
433
434
  mergeRowKey: Be,
434
- onDragEnd: yt,
435
- children: /* @__PURE__ */ s.jsx(
435
+ onDragEnd: xt,
436
+ children: /* @__PURE__ */ o.jsx(
436
437
  zt,
437
438
  {
438
- ...u,
439
+ ...m,
439
440
  bordered: Ee,
440
441
  columns: it,
441
442
  dataSource: ge,
@@ -445,70 +446,70 @@ function Gt({
445
446
  expandable: ht,
446
447
  rowSelection: dt,
447
448
  onRow: ut,
448
- rowHoverable: Je,
449
+ rowHoverable: Ie,
449
450
  rowClassName: Ct,
450
451
  className: "bitzTable",
451
- components: xt,
452
+ components: yt,
452
453
  rowKey: Be
453
454
  }
454
455
  )
455
456
  }
456
457
  )
457
458
  ] }),
458
- R && !!j && /* @__PURE__ */ s.jsxs("div", { className: "bitzTablePagination", ref: I, children: [
459
+ R && !!j && /* @__PURE__ */ o.jsxs("div", { className: "bitzTablePagination", ref: Z, children: [
459
460
  Te,
460
- /* @__PURE__ */ s.jsx(
461
+ /* @__PURE__ */ o.jsx(
461
462
  jt,
462
463
  {
463
464
  size: "small",
464
465
  enableControl: Pe,
465
466
  pagination: y,
466
467
  total: j,
467
- dataSource: m,
468
+ dataSource: b,
468
469
  resetPage: _e,
469
470
  hideTotalText: !0,
470
471
  paginationEmit: O
471
472
  }
472
473
  )
473
474
  ] }),
474
- !R && !!d && !!j && /* @__PURE__ */ s.jsx("div", { className: "bitzTablePagination", ref: I, children: Te })
475
+ !R && !!f && !!j && /* @__PURE__ */ o.jsx("div", { className: "bitzTablePagination", ref: Z, children: Te })
475
476
  ] }),
476
- D && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
477
- (i || !!(m != null && m.length)) && /* @__PURE__ */ s.jsx(s.Fragment, { children: ie ? (
477
+ D && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
478
+ (l || !!(b != null && b.length)) && /* @__PURE__ */ o.jsx(o.Fragment, { children: ie ? (
478
479
  // @ts-ignore
479
- /* @__PURE__ */ s.jsx(
480
+ /* @__PURE__ */ o.jsx(
480
481
  pt,
481
482
  {
482
- onRefresh: async () => !i && ie(),
483
+ onRefresh: async () => !l && ie(),
483
484
  children: We
484
485
  }
485
486
  )
486
487
  ) : We }),
487
- !i && /* @__PURE__ */ s.jsx(Wt, { data: m, title: Oe, img: Ve }),
488
- /* @__PURE__ */ s.jsx(
488
+ !l && /* @__PURE__ */ o.jsx(Wt, { data: b, title: Oe, img: Ve }),
489
+ /* @__PURE__ */ o.jsx(
489
490
  Bt,
490
491
  {
491
492
  className: "tableMobileDrawer",
492
- open: Ye,
493
+ open: Xe,
493
494
  placement: "bottom",
494
495
  height: "auto",
495
496
  closable: !1,
496
497
  onClose: he,
497
- children: /* @__PURE__ */ s.jsxs("div", { className: "drawerBox", children: [
498
- /* @__PURE__ */ s.jsx("div", { className: "boxBody", children: Ae.map((e, t) => /* @__PURE__ */ s.jsx(
498
+ children: /* @__PURE__ */ o.jsxs("div", { className: "drawerBox", children: [
499
+ /* @__PURE__ */ o.jsx("div", { className: "boxBody", children: Ae.map((e, t) => /* @__PURE__ */ o.jsx(
499
500
  "div",
500
501
  {
501
502
  className: "operaList",
502
503
  onClick: () => rt(e),
503
504
  ...e.danger && {
504
- style: { color: g.colorError }
505
+ style: { color: w.colorError }
505
506
  },
506
507
  children: e.label
507
508
  },
508
509
  t
509
510
  )) }),
510
- /* @__PURE__ */ s.jsx("div", { className: "boxLine" }),
511
- /* @__PURE__ */ s.jsx("div", { className: "boxFooter", onClick: he, children: $e })
511
+ /* @__PURE__ */ o.jsx("div", { className: "boxLine" }),
512
+ /* @__PURE__ */ o.jsx("div", { className: "boxFooter", onClick: he, children: $e })
512
513
  ] })
513
514
  }
514
515
  )
@@ -517,7 +518,7 @@ function Gt({
517
518
  }
518
519
  );
519
520
  }
520
- const Br = (R) => /* @__PURE__ */ s.jsx(Nt, { initValue: R, children: /* @__PURE__ */ s.jsx(Gt, { ...R }) });
521
+ const Br = (R) => /* @__PURE__ */ o.jsx(Nt, { initValue: R, children: /* @__PURE__ */ o.jsx(Gt, { ...R }) });
521
522
  export {
522
523
  Br as default
523
524
  };