bitz-react-admin-ui 2.2.1 → 2.2.3

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 (30) hide show
  1. package/dist/_virtual/index.mjs +2 -2
  2. package/dist/_virtual/index2.mjs +2 -2
  3. package/dist/components/BitzTable/ActionCol/index.mjs +1 -7
  4. package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +11 -16
  5. package/dist/components/BitzTable/Store/index.mjs +1 -3
  6. package/dist/components/BitzTable/Table/SortTableContext.d.ts +2 -2
  7. package/dist/components/BitzTable/Table/SortableRow.d.ts +1 -1
  8. package/dist/components/BitzTable/Table/index.mjs +153 -137
  9. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +17 -2
  10. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +11 -2
  11. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.d.ts +1 -1
  12. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +21 -28
  13. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +6 -1
  14. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.d.ts +2 -2
  15. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.mjs +19 -24
  16. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.d.ts +1 -1
  17. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +41 -31
  18. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +118 -126
  19. package/dist/components/BitzTable/ToolBar/ColConfigIcon/style.mjs +6 -2
  20. package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +9 -1
  21. package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +27 -1
  22. package/dist/components/BitzTable/ToolBar/Modal/index.mjs +14 -4
  23. package/dist/components/BitzTable/ToolBar/Modal/style.mjs +0 -1
  24. package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +1 -6
  25. package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +39 -33
  26. package/dist/components/BitzTable/ToolBar/style.mjs +6 -1
  27. package/dist/node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs +1 -1
  28. package/dist/node_modules/.store/prop-types@15.8.1/node_modules/prop-types/index.mjs +1 -1
  29. package/dist/style.css +1 -1
  30. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
- import { j as s } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
- import { useContext as pe, useRef as P, useState as D, useEffect as Ct, useMemo as i, useCallback as ee } from "react";
3
- import { isMobile as K } from "../../../node_modules/.store/react-device-detect@2.2.3/node_modules/react-device-detect/dist/lib.mjs";
1
+ import { j as o } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
+ import { useContext as pe, useRef as P, useState as K, useEffect as Ct, useMemo as i, useCallback as ee } from "react";
3
+ import { isMobile as O } from "../../../node_modules/.store/react-device-detect@2.2.3/node_modules/react-device-detect/dist/lib.mjs";
4
4
  import { Table as se, Skeleton as xt, Typography as We } from "antd";
5
5
  import te from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
6
6
  import gt from "../../BitzDrawer/index.mjs";
@@ -20,14 +20,14 @@ import Lt from "../../../node_modules/.store/antd@5.16.2/node_modules/antd/es/ta
20
20
  import "../../../node_modules/.store/antd@5.16.2/node_modules/antd/es/config-provider/index.mjs";
21
21
  import Pt from "../../../node_modules/.store/antd@5.16.2/node_modules/antd/locale/en_US.mjs";
22
22
  import { getColumnsWithTool as Rt, loopBuildSkeleton as St } from "./utils.mjs";
23
- import { getCssVar as vt } from "./style.mjs";
24
- import Ht from "./SortableRow.mjs";
25
- import $t from "./SortTableContext.mjs";
23
+ import { getCssVar as Ht } from "./style.mjs";
24
+ import $t from "./SortableRow.mjs";
25
+ import At from "./SortTableContext.mjs";
26
26
  import "./index.less.mjs";
27
- import { ConfigContext as At } from "../../../node_modules/.store/antd@5.16.2/node_modules/antd/es/config-provider/context.mjs";
28
- import Dt from "../../../node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/at.mjs";
27
+ import { ConfigContext as Dt } from "../../../node_modules/.store/antd@5.16.2/node_modules/antd/es/config-provider/context.mjs";
28
+ import Kt from "../../../node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/at.mjs";
29
29
  const Le = [se.SELECTION_COLUMN, se.EXPAND_COLUMN];
30
- function Kt({
30
+ function Ot({
31
31
  showPagination: p = !0,
32
32
  showSelected: oe = !0,
33
33
  height: W,
@@ -35,7 +35,7 @@ function Kt({
35
35
  total: w = 0,
36
36
  columns: N,
37
37
  loading: l = !1,
38
- skeletonNum: O = {
38
+ skeletonNum: V = {
39
39
  pc: 10,
40
40
  mobile: 10
41
41
  },
@@ -44,93 +44,93 @@ function Kt({
44
44
  skeletonRowsWidth: Re = ["35%", "100%", "100%", "60%"],
45
45
  // mobileLoadEmit,
46
46
  mobileRefreshEmit: le,
47
- operationFilter: V,
47
+ operationFilter: _,
48
48
  enableControlPage: Se,
49
49
  pagination: C,
50
50
  paginationEmit: R = () => {
51
51
  },
52
52
  enabledRowDragSort: S,
53
- onRowDragEnd: _,
54
- mobilePageHeight: Ot = 500,
55
- mobileCancelText: ve = "取消",
56
- noDataTitle: He,
57
- noDataImg: $e,
58
- color: Vt,
53
+ onRowDragEnd: q,
54
+ mobilePageHeight: Vt = 500,
55
+ mobileCancelText: He = "取消",
56
+ noDataTitle: $e,
57
+ noDataImg: Ae,
58
+ color: _t,
59
59
  size: ie,
60
- showTableTool: Ae = !0,
61
- tableAction: De,
62
- tableToolbar: Ke,
63
- selectionBar: Oe,
60
+ showTableTool: De = !0,
61
+ tableAction: Ke,
62
+ tableToolbar: Oe,
63
+ selectionBar: Ve,
64
64
  scroll: d,
65
65
  components: j,
66
66
  expandable: x,
67
67
  rowSelection: a,
68
- resetPage: Ve,
68
+ resetPage: _e,
69
69
  ...h
70
70
  }) {
71
71
  var we, Ne, Te, ke;
72
- const { token: g } = Mt.useToken(), { Table: c } = g, { tableSpaceBetweenPage: ce = 10 } = c, { gap: _e } = Wt(), { showColumnBorder: qe, hideRowBorder: ae, rowHoverable: Fe, ...u } = pe(Tt), v = P(void 0), q = P(0), [F, Ge] = D(0), [Ee, G] = D(!1), [y, Ue] = D([]);
72
+ const { token: g } = Mt.useToken(), { Table: c } = g, { tableSpaceBetweenPage: ce = 10 } = c, { gap: qe } = Wt(), { showColumnBorder: Fe, hideRowBorder: ae, rowHoverable: Ge, ...u } = pe(Tt), H = P(void 0), F = P(0), [G, Ee] = K(0), [Ue, E] = K(!1), [y, ve] = K([]);
73
73
  Ct(() => {
74
74
  let e = [...m];
75
- (C == null ? void 0 : C.page) !== 1 && (e = [...y, ...e]), Ue(e);
75
+ (C == null ? void 0 : C.page) !== 1 && (e = [...y, ...e]), ve(e);
76
76
  }, [m]);
77
- const Ie = i(() => !!(y != null && y.length) && (y == null ? void 0 : y.length) >= w, [y, w]), [Xe, Je] = D([]), Qe = (e, t) => {
77
+ const Ie = i(() => !!(y != null && y.length) && (y == null ? void 0 : y.length) >= w, [y, w]), [Xe, Je] = K([]), Qe = (e, t) => {
78
78
  var n;
79
- const r = (n = V == null ? void 0 : V(e, t)) == null ? void 0 : n.filter(
80
- (o) => o.type !== "divider"
79
+ const s = (n = _ == null ? void 0 : _(e, t)) == null ? void 0 : n.filter(
80
+ (r) => r.type !== "divider"
81
81
  );
82
- r != null && r.length && (Je(r), G(!0));
82
+ s != null && s.length && (Je(s), E(!0));
83
83
  }, de = () => {
84
- G(!1);
84
+ E(!1);
85
85
  }, Ye = (e) => {
86
86
  var t;
87
- G(!1), (t = e.onClick) == null || t.call(e);
88
- }, B = P(null), E = re(B), he = P(null), U = re(he), I = P(null), k = re(I), Ze = () => {
89
- var r;
90
- const e = (r = B.current) == null ? void 0 : r.querySelectorAll(
87
+ E(!1), (t = e.onClick) == null || t.call(e);
88
+ }, B = P(null), U = re(B), he = P(null), v = re(he), I = P(null), k = re(I), Ze = () => {
89
+ var s;
90
+ const e = (s = B.current) == null ? void 0 : s.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
93
  if (e == null || e.forEach((n) => {
94
- var o;
94
+ var r;
95
95
  t.push(
96
- ((o = n.querySelector("& > .operationCol .actionGroup")) == null ? void 0 : o.clientWidth) || 0
96
+ ((r = n.querySelector("& > .operationCol .actionGroup")) == null ? void 0 : r.clientWidth) || 0
97
97
  );
98
98
  }), t.length)
99
- return Math.ceil(Math.max(...t)) + _e * 2;
99
+ return Math.ceil(Math.max(...t)) + qe * 2;
100
100
  }, ue = () => {
101
101
  var b, f, L;
102
102
  const e = (b = B.current) == null ? void 0 : b.querySelector(
103
103
  ".ant-table-body"
104
- ), t = e == null ? void 0 : e.clientWidth, n = ((e == null ? void 0 : e.offsetWidth) || 0) - t > 0, o = (L = (f = B.current) == null ? void 0 : f.querySelector(
104
+ ), t = e == null ? void 0 : e.clientWidth, n = ((e == null ? void 0 : e.offsetWidth) || 0) - t > 0, r = (L = (f = B.current) == null ? void 0 : f.querySelector(
105
105
  ".ant-table-cell-scrollbar"
106
106
  )) == null ? void 0 : L.offsetWidth;
107
- return { tbodyWidth: t, hasScrollBar: n, scrollbarSize: o };
108
- }, { y: X, tbodyWidth: J, hasScrollBar: H, scrollbarSize: M } = i(() => {
109
- const { tbodyWidth: e, hasScrollBar: t, scrollbarSize: r } = ue();
107
+ return { tbodyWidth: t, hasScrollBar: n, scrollbarSize: r };
108
+ }, { y: X, tbodyWidth: J, hasScrollBar: $, scrollbarSize: M } = i(() => {
109
+ const { tbodyWidth: e, hasScrollBar: t, scrollbarSize: s } = ue();
110
110
  if (typeof W > "u")
111
111
  return {
112
112
  tbodyWidth: e,
113
113
  hasScrollBar: t,
114
- scrollbarSize: r
114
+ scrollbarSize: s
115
115
  };
116
- let n = 40, o = 40;
116
+ let n = 40, r = 40;
117
117
  if (B.current) {
118
- const A = window.getComputedStyle(B.current);
119
- n = parseInt(A.getPropertyValue("--cell-height")), o = parseInt(A.getPropertyValue("--toolbar-height"));
118
+ const D = window.getComputedStyle(B.current);
119
+ n = parseInt(D.getPropertyValue("--cell-height")), r = parseInt(D.getPropertyValue("--toolbar-height"));
120
120
  }
121
121
  const b = (k == null ? void 0 : k.height) || 0, f = b ? ce : 0;
122
- return { y: (u.fullscreen ? window.innerHeight : W) - b - f - o - n, tbodyWidth: e, hasScrollBar: t, scrollbarSize: r };
122
+ return { y: (u.fullscreen ? window.innerHeight : W) - b - f - r - n, tbodyWidth: e, hasScrollBar: t, scrollbarSize: s };
123
123
  }, [
124
124
  u.fullscreen,
125
125
  W,
126
126
  k == null ? void 0 : k.height,
127
- E == null ? void 0 : E.height,
128
- U == null ? void 0 : U.height
127
+ U == null ? void 0 : U.height,
128
+ v == null ? void 0 : v.height
129
129
  ]), et = i(() => {
130
130
  let e = (d == null ? void 0 : d.x) ?? 1e3;
131
- return q.current && (e -= q.current), F && v.current && (e -= F * v.current), J && (e = Math.max(e, J)), d != null && d.x ? { x: e, y: d.y || X } : d != null && d.y ? { x: e, y: d.y } : { x: e, y: X };
132
- }, [d, X, J, F]), tt = (e) => {
133
- const t = e.length, r = e.filter((z) => z.width), o = r.map((z) => z.width).reduce((z, Z) => z + Z, 0);
131
+ return F.current && (e -= F.current), G && H.current && (e -= G * H.current), J && (e = Math.max(e, J)), d != null && d.x ? { x: e, y: d.y || X } : d != null && d.y ? { x: e, y: d.y } : { x: e, y: X };
132
+ }, [d, X, J, G]), tt = (e) => {
133
+ const t = e.length, s = e.filter((z) => z.width), r = s.map((z) => z.width).reduce((z, Z) => z + Z, 0);
134
134
  let b = 0;
135
135
  if (B.current) {
136
136
  const z = window.getComputedStyle(B.current), Z = parseInt(
@@ -140,52 +140,52 @@ function Kt({
140
140
  }
141
141
  let f = 0;
142
142
  a && (f += b), x && (f += b);
143
- const { tbodyWidth: L } = ue(), Y = Math.max((d == null ? void 0 : d.x) ?? 0, L ?? 0) - o - f, A = t - r.length;
144
- return Y >= 0 ? Y / A : void 0;
145
- }, $ = i(() => {
146
- const t = (N ?? []).filter((f) => !Le.includes(f)), { filterColumns: r, width: n, autoWidthColLength: o } = kt(
143
+ const { tbodyWidth: L } = ue(), Y = Math.max((d == null ? void 0 : d.x) ?? 0, L ?? 0) - r - f, D = t - s.length;
144
+ return Y >= 0 ? Y / D : void 0;
145
+ }, A = i(() => {
146
+ const t = (N ?? []).filter((f) => !Le.includes(f)), { filterColumns: s, width: n, autoWidthColLength: r } = kt(
147
147
  t,
148
148
  u.columnsMap
149
- ), b = r.sort(pt(u.columnsMap));
150
- if (!K) {
149
+ ), b = s.sort(pt(u.columnsMap));
150
+ if (!O) {
151
151
  const f = tt(t);
152
- v.current = Math.ceil(f ?? 0), q.current = Math.ceil(n), Ge(o);
152
+ H.current = Math.ceil(f ?? 0), F.current = Math.ceil(n), Ee(r);
153
153
  }
154
154
  return b;
155
155
  }, [u.columnsMap]), T = i(() => {
156
- if (K)
157
- return $;
158
- const e = $.findIndex((o) => o == null ? void 0 : o.isOperationCol), t = (N ?? []).findIndex((o) => o == null ? void 0 : o.isOperationCol), r = $.slice();
159
- r.splice(e, 1, N == null ? void 0 : N[t]);
160
- const n = r.map((o) => ({
161
- ...o,
162
- ...o.isDragSortCol ? {
156
+ if (O)
157
+ return A;
158
+ const e = A.findIndex((r) => r == null ? void 0 : r.isOperationCol), t = (N ?? []).findIndex((r) => r == null ? void 0 : r.isOperationCol), s = A.slice();
159
+ s.splice(e, 1, N == null ? void 0 : N[t]);
160
+ const n = s.map((r) => ({
161
+ ...r,
162
+ ...r != null && r.isDragSortCol ? {
163
163
  onCell: (...b) => {
164
164
  var f;
165
165
  return {
166
- ...(f = o == null ? void 0 : o.onCell) == null ? void 0 : f.call(o, b),
166
+ ...(f = r == null ? void 0 : r.onCell) == null ? void 0 : f.call(r, b),
167
167
  "data-column-name": "dragSortCell"
168
168
  };
169
169
  }
170
170
  } : {},
171
- ...o.width ? {
172
- width: o.useMaxWidth ? Ze() ?? o.width : o.width
171
+ ...r != null && r.width ? {
172
+ width: r != null && r.useMaxWidth ? Ze() ?? r.width : r.width
173
173
  } : {
174
174
  // 给未设置width的列设置平均数
175
- width: v
175
+ width: H
176
176
  }
177
177
  }));
178
178
  return Rt(N, n, a, x);
179
- }, [N, $]), fe = i(() => St(T, Le), [T]), rt = i(() => l ? fe : T, [l, T, fe]), me = i(() => {
180
- const e = m == null ? void 0 : m.length, t = e > (O.pc ?? 10) ? e >= 20 ? 20 : e : O.pc ?? 10;
181
- return Array.from({ length: t }).map((n, o) => ({
182
- key: `${Date.now()}${o}`
179
+ }, [N, A]), fe = i(() => St(T, Le), [T]), rt = i(() => l ? fe : T, [l, T, fe]), me = i(() => {
180
+ const e = m == null ? void 0 : m.length, t = e > (V.pc ?? 10) ? e >= 20 ? 20 : e : V.pc ?? 10;
181
+ return Array.from({ length: t }).map((n, r) => ({
182
+ key: `${Date.now()}${r}`
183
183
  }));
184
- }, [m]), be = i(() => l ? me : m, [l, m, me]), { table: Q, locale: st = Pt } = pe(At), ot = { ...st.Table }, nt = ((we = Q == null ? void 0 : Q.expandable) == null ? void 0 : we.expandIcon) || (x == null ? void 0 : x.expandIcon) || Lt(ot), ye = i(() => {
184
+ }, [m]), be = i(() => l ? me : m, [l, m, me]), { table: Q, locale: st = Pt } = pe(Dt), ot = { ...st.Table }, nt = ((we = Q == null ? void 0 : Q.expandable) == null ? void 0 : we.expandIcon) || (x == null ? void 0 : x.expandIcon) || Lt(ot), ye = i(() => {
185
185
  if (x)
186
186
  return {
187
187
  ...x,
188
- expandedRowRender: () => /* @__PURE__ */ s.jsx(s.Fragment, {}),
188
+ expandedRowRender: () => /* @__PURE__ */ o.jsx(o.Fragment, {}),
189
189
  expandIcon: (e) => {
190
190
  const t = nt(e);
191
191
  return {
@@ -213,20 +213,20 @@ function Kt({
213
213
  var n;
214
214
  if (!h.onRow || l)
215
215
  return {};
216
- const r = (n = h.onRow) == null ? void 0 : n.call(h, e, t);
217
- return r.onClick && (r.className = "rowPointerCursor"), r;
216
+ const s = (n = h.onRow) == null ? void 0 : n.call(h, e, t);
217
+ return s.onClick && (s.className = "rowPointerCursor"), s;
218
218
  },
219
219
  [h.onRow, l]
220
220
  ), at = i(() => te(
221
221
  "bitzTableContainer",
222
222
  { hideBorder: ae },
223
- { hasScrollBar: H },
223
+ { hasScrollBar: $ },
224
224
  ge,
225
225
  h.className
226
226
  ), [
227
227
  h.className,
228
228
  ge,
229
- H,
229
+ $,
230
230
  u.fullscreen,
231
231
  ae
232
232
  ]), dt = i(() => ({
@@ -234,7 +234,7 @@ function Kt({
234
234
  }), [g.colorBgContainer]), ht = i(() => {
235
235
  const e = u.fullscreen ? "100%" : W;
236
236
  let t;
237
- return (M ?? 0) > 0 && (t = M), vt({
237
+ return (M ?? 0) > 0 && (t = M), Ht({
238
238
  height: e,
239
239
  fontFamily: g.fontFamily,
240
240
  evenRowBgColor: u.zebra ? c == null ? void 0 : c.evenRowBgColor : g.colorBgContainer,
@@ -245,17 +245,24 @@ function Kt({
245
245
  scrollbarWidth: t,
246
246
  other: h.style
247
247
  });
248
- }, [h.style, u.fullscreen, W, c, u == null ? void 0 : u.zebra, M]), ut = ee(
249
- (e, t, r) => {
248
+ }, [
249
+ h.style,
250
+ u.fullscreen,
251
+ W,
252
+ c,
253
+ u == null ? void 0 : u.zebra,
254
+ M
255
+ ]), ut = ee(
256
+ (e, t, s) => {
250
257
  const n = t % 2 === 0 ? "oddRow" : "evenRow";
251
258
  if (h.rowClassName) {
252
- const o = h.rowClassName(e, t, r);
253
- return te(n, o);
259
+ const r = h.rowClassName(e, t, s);
260
+ return te(n, r);
254
261
  }
255
262
  return n;
256
263
  },
257
264
  [h.rowClassName]
258
- ), Be = /* @__PURE__ */ s.jsx(
265
+ ), Be = /* @__PURE__ */ o.jsx(
259
266
  zt,
260
267
  {
261
268
  finished: Ie,
@@ -266,36 +273,36 @@ function Kt({
266
273
  loadingText: "加载中...",
267
274
  finishedText: "没有更多了",
268
275
  errorText: "加载失败",
269
- children: /* @__PURE__ */ s.jsxs(
276
+ children: /* @__PURE__ */ o.jsxs(
270
277
  "div",
271
278
  {
272
279
  className: "mobileList",
273
280
  style: { backgroundColor: c == null ? void 0 : c.mobileListBgColor },
274
281
  children: [
275
- y == null ? void 0 : y.map((e, t) => /* @__PURE__ */ s.jsx(
282
+ y == null ? void 0 : y.map((e, t) => /* @__PURE__ */ o.jsx(
276
283
  "div",
277
284
  {
278
285
  className: "listItem",
279
286
  style: { backgroundColor: c == null ? void 0 : c.listItemBgColor },
280
287
  onClick: () => Qe(e, t),
281
- children: T == null ? void 0 : T.map((r, n) => {
282
- var o;
283
- return !(r != null && r.mobileHide) && /* @__PURE__ */ s.jsxs(
288
+ children: T == null ? void 0 : T.map((s, n) => {
289
+ var r;
290
+ return !(s != null && s.mobileHide) && /* @__PURE__ */ o.jsxs(
284
291
  "div",
285
292
  {
286
293
  className: "row",
287
294
  style: { color: g.colorText },
288
295
  children: [
289
- !r.mobileHideLabel && /* @__PURE__ */ s.jsxs("div", { className: "label", children: [
290
- `${r.title}`,
296
+ !s.mobileHideLabel && /* @__PURE__ */ o.jsxs("div", { className: "label", children: [
297
+ `${s.title}`,
291
298
  ":"
292
299
  ] }),
293
- /* @__PURE__ */ s.jsx("div", { className: "value", children: ((o = r == null ? void 0 : r.render) == null ? void 0 : o.call(
294
- r,
295
- Dt(e, (r == null ? void 0 : r.dataIndex) || ""),
300
+ /* @__PURE__ */ o.jsx("div", { className: "value", children: ((r = s == null ? void 0 : s.render) == null ? void 0 : r.call(
301
+ s,
302
+ Kt(e, (s == null ? void 0 : s.dataIndex) || ""),
296
303
  e,
297
304
  t
298
- )) || (e == null ? void 0 : e[r.dataIndex]) })
305
+ )) || (e == null ? void 0 : e[s.dataIndex]) })
299
306
  ]
300
307
  },
301
308
  n
@@ -304,7 +311,7 @@ function Kt({
304
311
  },
305
312
  t
306
313
  )),
307
- Array.from({ length: O.mobile ?? 2 }).map((e, t) => /* @__PURE__ */ s.jsx(
314
+ Array.from({ length: V.mobile ?? 2 }).map((e, t) => /* @__PURE__ */ o.jsx(
308
315
  "div",
309
316
  {
310
317
  className: "listItem",
@@ -312,7 +319,7 @@ function Kt({
312
319
  display: l ? "block" : "none",
313
320
  backgroundColor: c == null ? void 0 : c.listItemBgColor
314
321
  },
315
- children: /* @__PURE__ */ s.jsx("div", { className: "row", children: ne ? ne() : /* @__PURE__ */ s.jsx(
322
+ children: /* @__PURE__ */ o.jsx("div", { className: "row", children: ne ? ne() : /* @__PURE__ */ o.jsx(
316
323
  xt,
317
324
  {
318
325
  title: !1,
@@ -330,8 +337,8 @@ function Kt({
330
337
  }
331
338
  )
332
339
  }
333
- ), je = /* @__PURE__ */ s.jsxs("div", { className: "alert", children: [
334
- /* @__PURE__ */ s.jsx(
340
+ ), je = /* @__PURE__ */ o.jsxs("div", { className: "alert", children: [
341
+ /* @__PURE__ */ o.jsx(
335
342
  Me,
336
343
  {
337
344
  highlightTag: "strong",
@@ -340,9 +347,9 @@ function Kt({
340
347
  tagClass: "totalText"
341
348
  }
342
349
  ),
343
- oe && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
344
- /* @__PURE__ */ s.jsx(We.Text, { className: "splitBorder", children: "/" }),
345
- /* @__PURE__ */ s.jsx(
350
+ oe && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
351
+ /* @__PURE__ */ o.jsx(We.Text, { className: "splitBorder", children: "/" }),
352
+ /* @__PURE__ */ o.jsx(
346
353
  Me,
347
354
  {
348
355
  highlightTag: "strong",
@@ -350,20 +357,27 @@ function Kt({
350
357
  sourceString: `已选中 ${((Te = a == null ? void 0 : a.selectedRowKeys) == null ? void 0 : Te.length) ?? 0} 条`
351
358
  }
352
359
  ),
353
- !!((ke = a == null ? void 0 : a.selectedRowKeys) != null && ke.length) && /* @__PURE__ */ s.jsx(We.Link, { className: "cleanSelected", onClick: a.onClear, children: "取消选中" })
360
+ !!((ke = a == null ? void 0 : a.selectedRowKeys) != null && ke.length) && /* @__PURE__ */ o.jsx(
361
+ We.Link,
362
+ {
363
+ className: "cleanSelected",
364
+ onClick: a.onClear,
365
+ children: "取消选中"
366
+ }
367
+ )
354
368
  ] })
355
369
  ] }), ft = (e) => {
356
- var r;
370
+ var s;
357
371
  const t = { ...e };
358
- return t.className.includes("ant-table-cell-fix-right") && !H && ((r = t.style) != null && r.right) && (t.style = {
372
+ return t.className.includes("ant-table-cell-fix-right") && !$ && ((s = t.style) != null && s.right) && (t.style = {
359
373
  ...t.style,
360
374
  right: t.style.right - (M || 0)
361
- }), /* @__PURE__ */ s.jsx("th", { ...t });
375
+ }), /* @__PURE__ */ o.jsx("th", { ...t });
362
376
  }, mt = (e) => {
363
377
  var t;
364
- l || e.active.id !== ((t = e.over) == null ? void 0 : t.id) && (_ == null || _(e));
378
+ l || e.active.id !== ((t = e.over) == null ? void 0 : t.id) && (q == null || q(e));
365
379
  }, ze = ee(() => S ? {
366
- row: (e) => Ht({ ...e, loading: l.toString() })
380
+ row: (e) => $t({ ...e, loading: l.toString() })
367
381
  } : {}, [S, S ? l : !1]), bt = i(() => ({
368
382
  ...j,
369
383
  header: {
@@ -374,32 +388,34 @@ function Kt({
374
388
  ...j == null ? void 0 : j.body,
375
389
  ...ze()
376
390
  }
377
- }), [j, H, M, ze]);
378
- return /* @__PURE__ */ s.jsxs(
391
+ }), [j, $, M, ze]);
392
+ return /* @__PURE__ */ o.jsxs(
379
393
  "div",
380
394
  {
381
- className: te("bitzTableBlock", { fullscreen: u.fullscreen }),
395
+ className: te("bitzTableBlock", {
396
+ fullscreen: u.fullscreen
397
+ }),
382
398
  style: dt,
383
399
  children: [
384
- !K && /* @__PURE__ */ s.jsxs("div", { ref: B, className: at, style: ht, children: [
385
- /* @__PURE__ */ s.jsxs("div", { className: "bitzTableContainerBody", ref: he, children: [
386
- Ae && /* @__PURE__ */ s.jsxs("div", { className: "bitzTableToolbarBlock", children: [
387
- De || /* @__PURE__ */ s.jsx("div", {}),
388
- Ke,
389
- Oe
400
+ !O && /* @__PURE__ */ o.jsxs("div", { ref: B, className: at, style: ht, children: [
401
+ /* @__PURE__ */ o.jsxs("div", { className: "bitzTableContainerBody", ref: he, children: [
402
+ De && /* @__PURE__ */ o.jsxs("div", { className: "bitzTableToolbarBlock", children: [
403
+ Ke || /* @__PURE__ */ o.jsx("div", {}),
404
+ Oe,
405
+ Ve
390
406
  ] }),
391
- /* @__PURE__ */ s.jsx(
392
- $t,
407
+ /* @__PURE__ */ o.jsx(
408
+ At,
393
409
  {
394
410
  enabledRowDragSort: S,
395
411
  dataSource: be,
396
412
  mergeRowKey: xe,
397
413
  onDragEnd: mt,
398
- children: /* @__PURE__ */ s.jsx(
414
+ children: /* @__PURE__ */ o.jsx(
399
415
  se,
400
416
  {
401
417
  ...h,
402
- bordered: qe,
418
+ bordered: Fe,
403
419
  columns: rt,
404
420
  dataSource: be,
405
421
  loading: !1,
@@ -408,7 +424,7 @@ function Kt({
408
424
  expandable: lt,
409
425
  rowSelection: it,
410
426
  onRow: ct,
411
- rowHoverable: Fe,
427
+ rowHoverable: Ge,
412
428
  rowClassName: ut,
413
429
  className: "bitzTable",
414
430
  components: bt,
@@ -418,9 +434,9 @@ function Kt({
418
434
  }
419
435
  )
420
436
  ] }),
421
- p && !!w && /* @__PURE__ */ s.jsxs("div", { className: "bitzTablePagination", ref: I, children: [
437
+ p && !!w && /* @__PURE__ */ o.jsxs("div", { className: "bitzTablePagination", ref: I, children: [
422
438
  je,
423
- /* @__PURE__ */ s.jsx(
439
+ /* @__PURE__ */ o.jsx(
424
440
  Bt,
425
441
  {
426
442
  size: "small",
@@ -428,18 +444,18 @@ function Kt({
428
444
  pagination: C,
429
445
  total: w,
430
446
  dataSource: m,
431
- resetPage: Ve,
447
+ resetPage: _e,
432
448
  hideTotalText: !0,
433
449
  paginationEmit: R
434
450
  }
435
451
  )
436
452
  ] }),
437
- !p && oe && !!w && /* @__PURE__ */ s.jsx("div", { className: "bitzTablePagination", ref: I, children: je })
453
+ !p && oe && !!w && /* @__PURE__ */ o.jsx("div", { className: "bitzTablePagination", ref: I, children: je })
438
454
  ] }),
439
- K && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
440
- (l || (m == null ? void 0 : m.length) > 0) && /* @__PURE__ */ s.jsx(s.Fragment, { children: le ? (
455
+ O && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
456
+ (l || (m == null ? void 0 : m.length) > 0) && /* @__PURE__ */ o.jsx(o.Fragment, { children: le ? (
441
457
  // @ts-ignore
442
- /* @__PURE__ */ s.jsx(
458
+ /* @__PURE__ */ o.jsx(
443
459
  wt,
444
460
  {
445
461
  onRefresh: async () => !l && le(),
@@ -447,18 +463,18 @@ function Kt({
447
463
  }
448
464
  )
449
465
  ) : Be }),
450
- !l && /* @__PURE__ */ s.jsx(jt, { data: m, title: He, img: $e }),
451
- /* @__PURE__ */ s.jsx(
466
+ !l && /* @__PURE__ */ o.jsx(jt, { data: m, title: $e, img: Ae }),
467
+ /* @__PURE__ */ o.jsx(
452
468
  gt,
453
469
  {
454
470
  className: "tableMobileDrawer",
455
- open: Ee,
471
+ open: Ue,
456
472
  placement: "bottom",
457
473
  height: "auto",
458
474
  closable: !1,
459
475
  onClose: de,
460
- children: /* @__PURE__ */ s.jsxs("div", { className: "drawerBox", children: [
461
- /* @__PURE__ */ s.jsx("div", { className: "boxBody", children: Xe.map((e, t) => /* @__PURE__ */ s.jsx(
476
+ children: /* @__PURE__ */ o.jsxs("div", { className: "drawerBox", children: [
477
+ /* @__PURE__ */ o.jsx("div", { className: "boxBody", children: Xe.map((e, t) => /* @__PURE__ */ o.jsx(
462
478
  "div",
463
479
  {
464
480
  className: "operaList",
@@ -470,8 +486,8 @@ function Kt({
470
486
  },
471
487
  t
472
488
  )) }),
473
- /* @__PURE__ */ s.jsx("div", { className: "boxLine" }),
474
- /* @__PURE__ */ s.jsx("div", { className: "boxFooter", onClick: de, children: ve })
489
+ /* @__PURE__ */ o.jsx("div", { className: "boxLine" }),
490
+ /* @__PURE__ */ o.jsx("div", { className: "boxFooter", onClick: de, children: He })
475
491
  ] })
476
492
  }
477
493
  )
@@ -480,7 +496,7 @@ function Kt({
480
496
  }
481
497
  );
482
498
  }
483
- const Cr = (p) => /* @__PURE__ */ s.jsx(Nt, { initValue: p, children: /* @__PURE__ */ s.jsx(Kt, { ...p }) });
499
+ const Cr = (p) => /* @__PURE__ */ o.jsx(Nt, { initValue: p, children: /* @__PURE__ */ o.jsx(Ot, { ...p }) });
484
500
  export {
485
501
  Cr as default
486
502
  };
@@ -97,8 +97,23 @@ const fe = "导出设置", he = ({
97
97
  ),
98
98
  children: (t) => /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
99
99
  /* @__PURE__ */ e.jsx(oe, { ref: k, display: i === 1 }),
100
- /* @__PURE__ */ e.jsx(re, { parentHeight: t, ref: s, display: i === 2 }),
101
- /* @__PURE__ */ e.jsx(se, { parentHeight: t, refInstance: x, display: i === 3, showSelectRadio: !1 })
100
+ /* @__PURE__ */ e.jsx(
101
+ re,
102
+ {
103
+ parentHeight: t,
104
+ ref: s,
105
+ display: i === 2
106
+ }
107
+ ),
108
+ /* @__PURE__ */ e.jsx(
109
+ se,
110
+ {
111
+ parentHeight: t,
112
+ refInstance: x,
113
+ display: i === 3,
114
+ showSelectRadio: !1
115
+ }
116
+ )
102
117
  ] })
103
118
  }
104
119
  );
@@ -45,7 +45,14 @@ const j = ({ icon: t, className: n, open: r, title: e, onClick: i }) => {
45
45
  getTooltipContainer: (p) => p.parentElement,
46
46
  title: e,
47
47
  open: r ? !1 : void 0,
48
- children: /* @__PURE__ */ o.jsx(t, { size: s.fontSize + 4, className: n, onClick: i })
48
+ children: /* @__PURE__ */ o.jsx(
49
+ t,
50
+ {
51
+ size: s.fontSize + 4,
52
+ className: n,
53
+ onClick: i
54
+ }
55
+ )
49
56
  }
50
57
  );
51
58
  }, B = ({
@@ -107,7 +114,9 @@ const j = ({ icon: t, className: n, open: r, title: e, onClick: i }) => {
107
114
  return /* @__PURE__ */ o.jsxs(
108
115
  "div",
109
116
  {
110
- className: q({ sortItemDragging: m }, "sortItem", { showSortItemOperat: a && !n }),
117
+ className: q({ sortItemDragging: m }, "sortItem", {
118
+ showSortItemOperat: a && !n
119
+ }),
111
120
  style: z,
112
121
  ref: S,
113
122
  onMouseEnter: () => c(!0),
@@ -1,4 +1,4 @@
1
- import { FC } from "react";
1
+ import { FC } from 'react';
2
2
  interface DndListProps {
3
3
  placement: 'left' | 'center' | 'right';
4
4
  dataList: any[];