bitz-react-admin-ui 2.3.2 → 2.3.4

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