bitz-react-admin-ui 1.9.5 → 1.9.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) 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/BitzConfigProvider/context.d.ts +5 -2
  7. package/dist/components/BitzDayJs/index.mjs +1 -1
  8. package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +1 -1
  9. package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +1 -1
  10. package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +1 -1
  11. package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +1 -1
  12. package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +1 -1
  13. package/dist/components/BitzFuiCalendar/ColumnData.mjs +1 -1
  14. package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +1 -1
  15. package/dist/components/BitzMeetingTime/index.mjs +1 -1
  16. package/dist/components/BitzTable/Store/index.d.ts +2 -0
  17. package/dist/components/BitzTable/Store/index.mjs +101 -99
  18. package/dist/components/BitzTable/Store/utils/index.d.ts +2 -0
  19. package/dist/components/BitzTable/Store/utils/index.mjs +15 -8
  20. package/dist/components/BitzTable/Table/index.d.ts +1 -1
  21. package/dist/components/BitzTable/Table/index.mjs +241 -255
  22. package/dist/components/BitzTable/Table/utils.d.ts +3 -0
  23. package/dist/components/BitzTable/Table/utils.mjs +18 -0
  24. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnSettingModal.mjs +16 -15
  25. package/dist/components/BitzTable/ToolBar/DensityIcon/index.mjs +37 -30
  26. package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +33 -43
  27. package/dist/components/BitzTable/ToolBar/index.d.ts +1 -1
  28. package/dist/node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs +1 -1
  29. package/dist/node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs +292 -292
  30. package/dist/node_modules/.store/dayjs@1.11.10/node_modules/dayjs/locale/zh-cn.mjs +13 -13
  31. package/dist/node_modules/.store/prop-types@15.8.1/node_modules/prop-types/index.mjs +1 -1
  32. package/dist/style.css +1 -1
  33. package/dist/utils/findNode.d.ts +8 -0
  34. package/dist/utils/findNode.mjs +14 -0
  35. package/dist/utils/time.mjs +1 -1
  36. package/package.json +1 -1
@@ -1,199 +1,185 @@
1
1
  import { j as o } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
- import { useContext as I, useState as $, useMemo as a, useEffect as ue, useRef as V, useCallback as fe } from "react";
3
- import { isMobile as F } from "../../../node_modules/.store/react-device-detect@2.2.3/node_modules/react-device-detect/dist/lib.mjs";
4
- import { Table as T, Skeleton as me } from "antd";
5
- import U from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
6
- import rr from "../../BitzDrawer/index.mjs";
7
- import tr from "../../BitzPagination/index.mjs";
8
- import or from "../../BitzNoData/index.mjs";
2
+ import { useContext as A, useState as _, useMemo as c, useEffect as he, useRef as K, useCallback as Ze } 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
+ import { Table as I, Skeleton as ue } from "antd";
5
+ import $ from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
6
+ import et from "../../BitzDrawer/index.mjs";
7
+ import tt from "../../BitzPagination/index.mjs";
8
+ import nt from "../../BitzNoData/index.mjs";
9
9
  import "../../BitzList/index.less.mjs";
10
- import nr from "../../BitzList/List.mjs";
10
+ import ot from "../../BitzList/List.mjs";
11
11
  import "../../BitzPullRefresh/style/index.less.mjs";
12
- import sr from "../../BitzPullRefresh/PullRefresh.mjs";
13
- import lr, { TableContext as ir } from "../Store/index.mjs";
14
- import { columnSort as pe, genColumnKey as xe } from "../Store/utils/index.mjs";
15
- import q from "../../../node_modules/.store/ahooks@3.7.10/node_modules/ahooks/es/useSize/index.mjs";
16
- import cr from "../ActionCol/style.mjs";
17
- import ar from "../../BitzTheme/index.mjs";
18
- import { BitzConfigContext as dr } from "../../BitzConfigProvider/context.mjs";
19
- import hr from "../../../node_modules/.store/antd@5.15.4/node_modules/antd/es/table/ExpandIcon.mjs";
12
+ import rt from "../../BitzPullRefresh/PullRefresh.mjs";
13
+ import st, { TableContext as lt } from "../Store/index.mjs";
14
+ import { loopFilter as it, columnSort as at, genColumnKey as ct } from "../Store/utils/index.mjs";
15
+ import V from "../../../node_modules/.store/ahooks@3.7.10/node_modules/ahooks/es/useSize/index.mjs";
16
+ import dt from "../ActionCol/style.mjs";
17
+ import ht from "../../BitzTheme/index.mjs";
18
+ import { BitzConfigContext as ut } from "../../BitzConfigProvider/context.mjs";
19
+ import ft from "../../../node_modules/.store/antd@5.15.4/node_modules/antd/es/table/ExpandIcon.mjs";
20
20
  import "../../../node_modules/.store/antd@5.15.4/node_modules/antd/es/config-provider/index.mjs";
21
- import ur from "../../../node_modules/.store/antd@5.15.4/node_modules/antd/locale/en_US.mjs";
22
- import { getCssVar as fr } from "./style.mjs";
21
+ import mt from "../../../node_modules/.store/antd@5.15.4/node_modules/antd/locale/en_US.mjs";
22
+ import { getCssVar as pt } from "./style.mjs";
23
+ import { getColumnsWithTool as bt } from "./utils.mjs";
23
24
  import "./index.less.mjs";
24
- import { ConfigContext as mr } from "../../../node_modules/.store/antd@5.15.4/node_modules/antd/es/config-provider/context.mjs";
25
- import pr from "../../../node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/at.mjs";
26
- function xr({
27
- rowHoverable: v,
28
- fillEvenRow: G,
29
- showPagination: ge = !0,
30
- height: L,
31
- dataSource: s = [],
32
- total: E = 0,
33
- columns: B,
34
- loading: u = !1,
35
- skeletonNum: ye = 2,
36
- skeletonRender: S,
37
- skeletonRowNum: Ce = 4,
38
- skeletonRowsWidth: be = ["35%", "100%", "100%", "60%"],
39
- mobileLoadEmit: we,
40
- mobileRefreshEmit: X,
41
- operationFilter: W,
42
- enableControlPage: Be,
43
- pagination: je,
44
- paginationEmit: Ne = () => {
25
+ import { ConfigContext as gt } from "../../../node_modules/.store/antd@5.15.4/node_modules/antd/es/config-provider/context.mjs";
26
+ import xt from "../../../node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/at.mjs";
27
+ const fe = [I.SELECTION_COLUMN, I.EXPAND_COLUMN];
28
+ function Ct({
29
+ rowHoverable: k,
30
+ fillEvenRow: F,
31
+ showPagination: me = !0,
32
+ height: z,
33
+ dataSource: l = [],
34
+ total: v = 0,
35
+ columns: w,
36
+ loading: d = !1,
37
+ skeletonNum: pe = 2,
38
+ skeletonRender: q,
39
+ skeletonRowNum: be = 4,
40
+ skeletonRowsWidth: ge = ["35%", "100%", "100%", "60%"],
41
+ mobileLoadEmit: xe,
42
+ mobileRefreshEmit: G,
43
+ operationFilter: L,
44
+ enableControlPage: Ce,
45
+ pagination: ye,
46
+ paginationEmit: we = () => {
45
47
  },
46
- mobilePageHeight: gr = 500,
47
- mobileCancelText: ke = "取消",
48
- noDataTitle: ve,
49
- noDataImg: Le,
50
- color: yr,
51
- size: J,
52
- showTableTool: Te = !0,
48
+ mobilePageHeight: yt = 500,
49
+ mobileCancelText: Be = "取消",
50
+ noDataTitle: je,
51
+ noDataImg: Te,
52
+ color: wt,
53
+ size: S,
54
+ showTableTool: ke = !0,
53
55
  tableAction: ze,
54
- tableToolbar: Me,
55
- selectionBar: Ee,
56
- scroll: f,
57
- components: P,
58
- expandable: m,
59
- rowSelection: y,
60
- resetPage: We,
61
- ...b
56
+ tableToolbar: Ne,
57
+ selectionBar: ve,
58
+ scroll: u,
59
+ components: M,
60
+ expandable: f,
61
+ rowSelection: g,
62
+ resetPage: Le,
63
+ ...y
62
64
  }) {
63
- var de;
64
- const { token: x } = ar.useToken(), { Table: i } = x, { tableSpaceBetweenPage: Q = 10 } = i, { gap: Pe } = cr(), p = I(ir), { Table: c } = I(dr), [j, Y] = $(!1), [Re, R] = $(!1), De = a(() => !!(s != null && s.length) && (s == null ? void 0 : s.length) >= E, [s, E]), [Oe, Ae] = $([]), He = (r, e) => {
65
- var n;
66
- const t = (n = W == null ? void 0 : W(r, e)) == null ? void 0 : n.filter(
67
- (l) => l.type !== "divider"
65
+ var ae;
66
+ const { token: m } = ht.useToken(), { Table: i } = m, { tableSpaceBetweenPage: U = 10 } = i, { gap: Me } = dt(), p = A(lt), { Table: a } = A(ut), [B, X] = _(!1), [Ee, E] = _(!1), We = c(() => !!(l != null && l.length) && (l == null ? void 0 : l.length) >= v, [l, v]), [Re, Pe] = _([]), De = (t, e) => {
67
+ var r;
68
+ const n = (r = L == null ? void 0 : L(t, e)) == null ? void 0 : r.filter(
69
+ (s) => s.type !== "divider"
68
70
  );
69
- t != null && t.length && (Ae(t), R(!0));
70
- }, Z = () => {
71
- R(!1);
72
- }, _e = (r) => {
71
+ n != null && n.length && (Pe(n), E(!0));
72
+ }, J = () => {
73
+ E(!1);
74
+ }, He = (t) => {
73
75
  var e;
74
- R(!1), (e = r.onClick) == null || e.call(r);
76
+ E(!1), (e = t.onClick) == null || e.call(t);
75
77
  };
76
- ue(() => (document == null || document.addEventListener("fullscreenchange", (r) => {
77
- var e, t, n;
78
- (e = r.target) != null && e.classList.contains("bitzTableBlock") && (Y(!!document.fullscreenElement), (n = (t = document.fullscreenElement) == null ? void 0 : t.classList) != null && n.contains("bitzTableBlock") || Y(!1));
78
+ he(() => (document == null || document.addEventListener("fullscreenchange", (t) => {
79
+ var e, n, r;
80
+ (e = t.target) != null && e.classList.contains("bitzTableBlock") && (X(!!document.fullscreenElement), (r = (n = document.fullscreenElement) == null ? void 0 : n.classList) != null && r.contains("bitzTableBlock") || X(!1));
79
81
  }), document == null ? void 0 : document.removeEventListener("fullscreenchange", () => {
80
82
  })), []);
81
- const N = V(null), D = q(N), z = V(null), O = q(z), ee = V(null), k = q(ee), Ke = () => {
82
- var t;
83
- const r = (t = z.current) == null ? void 0 : t.querySelectorAll(
84
- ".ant-table-body tr:not(.ant-table-measure-row)"
83
+ const x = K(null), W = V(x), Q = K(null), R = V(Q), Y = K(null), j = V(Y), Ae = () => {
84
+ var n;
85
+ const t = (n = x.current) == null ? void 0 : n.querySelectorAll(
86
+ "& > .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)"
85
87
  ), e = [];
86
- if (r == null || r.forEach((n) => {
87
- var l;
88
+ if (t == null || t.forEach((r) => {
89
+ var s;
88
90
  e.push(
89
- ((l = n.querySelector(".operationCol .actionGroup")) == null ? void 0 : l.clientWidth) || 0
91
+ ((s = r.querySelector("& > .operationCol .actionGroup")) == null ? void 0 : s.clientWidth) || 0
90
92
  );
91
93
  }), e.length)
92
- return Math.ceil(Math.max(...e)) + Pe * 2;
93
- }, re = () => {
94
- var l;
95
- const r = (l = z.current) == null ? void 0 : l.querySelector(
96
- ".ant-table-body"
97
- ), e = r == null ? void 0 : r.clientWidth, t = ((r == null ? void 0 : r.offsetWidth) || 0) - e, n = t > 0;
98
- return { tbodyWidth: e, scrollBarWidth: t, hasScrollBar: n };
99
- }, { y: A, hasScrollBar: te } = a(() => {
100
- if (typeof L > "u")
94
+ return Math.ceil(Math.max(...e)) + Me * 2;
95
+ }, Z = () => {
96
+ var s;
97
+ const t = (s = x.current) == null ? void 0 : s.querySelector(
98
+ "& > .bitzTableContainerBody > .ant-table-wrapper.bitzTable > .ant-spin-nested-loading > .ant-spin-container > .ant-table > .ant-table-container > .ant-table-body"
99
+ ), e = t == null ? void 0 : t.clientWidth, n = ((t == null ? void 0 : t.offsetWidth) || 0) - e, r = n > 0;
100
+ return { tbodyWidth: e, scrollBarWidth: n, hasScrollBar: r };
101
+ }, { y: P, hasScrollBar: ee } = c(() => {
102
+ if (typeof z > "u")
101
103
  return {};
102
- const { hasScrollBar: r } = re();
103
- let e = 40, t = 40;
104
- if (N.current) {
105
- const w = window.getComputedStyle(N.current);
106
- e = parseInt(w.getPropertyValue("--cell-height")), t = parseInt(w.getPropertyValue("--toolbar-height"));
104
+ const { hasScrollBar: t } = Z();
105
+ let e = 40, n = 40;
106
+ if (x.current) {
107
+ const N = window.getComputedStyle(x.current);
108
+ e = parseInt(N.getPropertyValue("--cell-height")), n = parseInt(N.getPropertyValue("--toolbar-height"));
107
109
  }
108
- const n = (k == null ? void 0 : k.height) || 0, l = n ? Q : 0;
109
- return { y: (j ? window.innerHeight : L) - n - l - t - e, hasScrollBar: r };
110
+ const r = (j == null ? void 0 : j.height) || 0, s = r ? U : 0;
111
+ return { y: (B ? window.innerHeight : z) - r - s - n - e, hasScrollBar: t };
110
112
  }, [
111
- j,
112
- L,
113
- k == null ? void 0 : k.height,
114
- D == null ? void 0 : D.height,
115
- O == null ? void 0 : O.height
116
- ]), H = a(() => f != null && f.x ? { x: f.x, y: f.y || A } : f != null && f.y ? { x: 1e3, y: f.y } : { x: 1e3, y: A }, [f, A]), oe = fe(
117
- (r) => {
118
- const e = r.length, t = r.filter((C) => C.width), l = t.map((C) => C.width).reduce((C, K) => C + K, 0);
119
- let h = 0;
120
- if (N.current) {
121
- const C = window.getComputedStyle(N.current), K = parseInt(
122
- C.getPropertyValue("--toolCell-paddingInline")
123
- );
124
- h = parseInt(C.getPropertyValue("--fontSize")) + 4 + 2 * K;
125
- }
126
- let d = 0;
127
- y && (d += h), m && (d += h);
128
- const { tbodyWidth: M } = re(), w = parseInt(`${H.x}`) || 0, er = Math.max(w, M), he = (parseInt(`${er}`) || 0) - l - d;
129
- return he >= 0 ? he / (e - t.length) : void 0;
130
- },
131
- [m, y, H]
132
- ), g = a(() => {
133
- const r = (h) => h.map((d) => {
134
- const M = xe(
135
- (d == null ? void 0 : d.key) || (d == null ? void 0 : d.dataIndex),
136
- d.index
137
- ), w = p.columnsMap[M];
138
- return w && w.show === !1 ? !1 : d.children ? {
139
- ...d,
140
- children: r(d.children)
141
- } : d;
142
- }).filter(Boolean), e = r(B);
143
- if (F)
144
- return e.sort(pe(p.columnsMap));
145
- const t = e.sort(pe(p.columnsMap)), n = oe(t), l = t.map((h) => ({
113
+ B,
114
+ z,
115
+ j == null ? void 0 : j.height,
116
+ W == null ? void 0 : W.height,
117
+ R == null ? void 0 : R.height
118
+ ]), te = c(() => u != null && u.x ? { x: u.x, y: u.y || P } : u != null && u.y ? { x: 1e3, y: u.y } : { x: 1e3, y: P }, [u, P]), _e = (t) => {
119
+ const e = t.length, n = t.filter((C) => C.width), s = n.map((C) => C.width).reduce((C, H) => C + H, 0);
120
+ let T = 0;
121
+ if (x.current) {
122
+ const C = window.getComputedStyle(x.current), H = parseInt(
123
+ C.getPropertyValue("--toolCell-paddingInline")
124
+ );
125
+ T = parseInt(C.getPropertyValue("--fontSize")) + 4 + 2 * H;
126
+ }
127
+ let h = 0;
128
+ g && (h += T), f && (h += T);
129
+ const { tbodyWidth: ce } = Z(), N = parseInt(`${te.x}`) || 0, Ye = Math.max(N, ce), de = (parseInt(`${Ye}`) || 0) - s - h;
130
+ return de >= 0 ? de / (e - n.length) : void 0;
131
+ }, b = c(() => {
132
+ const t = w ?? [], e = t.filter((h) => !fe.includes(h)), r = it(e, p.columnsMap).sort(at(p.columnsMap));
133
+ if (O)
134
+ return r;
135
+ const s = _e(r), T = r.map((h) => ({
146
136
  ...h,
147
137
  ...h.width ? {
148
- width: h.useMaxWidth ? Ke() ?? h.width : h.width
138
+ width: h.useMaxWidth ? Ae() ?? h.width : h.width
149
139
  } : {
150
140
  // 给未设置width的列设置平均数
151
- width: n
141
+ width: s
152
142
  }
153
143
  }));
154
- return [T.SELECTION_COLUMN, T.EXPAND_COLUMN, ...l];
155
- }, [B, p.columnsMap, oe, p.sortKeyColumns]);
156
- ue(() => {
157
- if (B && B.length > 0) {
158
- const r = B.map(
144
+ return bt(t, T, g, f);
145
+ }, [w, p.columnsMap, p.sortKeyColumns]);
146
+ he(() => {
147
+ if (w && w.length > 0) {
148
+ const t = w.map(
159
149
  (e) => (
160
150
  // @ts-ignore
161
- xe((e == null ? void 0 : e.key) ?? (e == null ? void 0 : e.dataIndex), e == null ? void 0 : e.dataIndex)
151
+ ct((e == null ? void 0 : e.key) ?? (e == null ? void 0 : e.dataIndex), e == null ? void 0 : e.dataIndex)
162
152
  )
163
153
  );
164
- p.setSortKeyColumns(r);
154
+ p.setSortKeyColumns(t);
165
155
  }
166
- }, [B]);
167
- const ne = a(() => {
168
- var e;
169
- const r = (e = g == null ? void 0 : g.filter((t) => Object.keys(t).length !== 0)) == null ? void 0 : e.map((t) => t != null && t.isOperationCol ? t : {
170
- ...t,
171
- sorter: !1,
172
- render: (n, l, h) => /* @__PURE__ */ o.jsx(
173
- me,
174
- {
175
- active: !0,
176
- title: !1,
177
- paragraph: {
178
- rows: 1,
179
- width: (h + 1) % 2 === 0 ? "100%" : "60%"
180
- }
156
+ }, [w]);
157
+ const ne = c(() => b == null ? void 0 : b.map((e) => e != null && e.isOperationCol || fe.includes(e) ? e : {
158
+ ...e,
159
+ sorter: !1,
160
+ render: (n, r, s) => /* @__PURE__ */ o.jsx(
161
+ ue,
162
+ {
163
+ active: !0,
164
+ title: !1,
165
+ paragraph: {
166
+ rows: 1,
167
+ width: (s + 1) % 2 === 0 ? "100%" : "60%"
181
168
  }
182
- )
183
- });
184
- return [T.SELECTION_COLUMN, T.EXPAND_COLUMN, ...r];
185
- }, [g]), Ie = a(() => u ? ne : g, [u, g, ne]), se = a(() => {
186
- const r = s == null ? void 0 : s.length, e = r > 4 ? r >= 20 ? 20 : r : 4;
187
- return Array.from({ length: e }).map((n, l) => ({
188
- key: `${Date.now()}${l}`
169
+ }
170
+ )
171
+ }), [b]), Ke = c(() => d ? ne : b, [d, b, ne]), oe = c(() => {
172
+ const t = l == null ? void 0 : l.length, e = t > 4 ? t >= 20 ? 20 : t : 4;
173
+ return Array.from({ length: e }).map((r, s) => ({
174
+ key: `${Date.now()}${s}`
189
175
  }));
190
- }, [s]), $e = a(() => u ? se : s, [u, s, se]), { table: _, locale: Ve = ur } = I(mr), Fe = { ...Ve.Table }, Ue = ((de = _ == null ? void 0 : _.expandable) == null ? void 0 : de.expandIcon) || (m == null ? void 0 : m.expandIcon) || hr(Fe), le = a(() => {
191
- if (m)
176
+ }, [l]), Oe = c(() => d ? oe : l, [d, l, oe]), { table: D, locale: $e = mt } = A(gt), Ve = { ...$e.Table }, Ie = ((ae = D == null ? void 0 : D.expandable) == null ? void 0 : ae.expandIcon) || (f == null ? void 0 : f.expandIcon) || ft(Ve), re = c(() => {
177
+ if (f)
192
178
  return {
193
- ...m,
179
+ ...f,
194
180
  expandedRowRender: () => /* @__PURE__ */ o.jsx(o.Fragment, {}),
195
- expandIcon: (r) => {
196
- const e = Ue(r);
181
+ expandIcon: (t) => {
182
+ const e = Ie(t);
197
183
  return {
198
184
  ...e,
199
185
  props: {
@@ -201,51 +187,51 @@ function xr({
201
187
  disabled: !0,
202
188
  style: {
203
189
  ...e.props.style,
204
- backgroundColor: x.colorBgContainerDisabled
190
+ backgroundColor: m.colorBgContainerDisabled
205
191
  }
206
192
  }
207
193
  };
208
194
  }
209
195
  };
210
- }, [m]), qe = a(() => u ? le : m, [u, m, le]), ie = a(() => {
211
- if (y)
196
+ }, [f]), Fe = c(() => d ? re : f, [d, f, re]), se = c(() => {
197
+ if (g)
212
198
  return {
213
- ...y,
199
+ ...g,
214
200
  selectedRowKeys: [],
215
201
  getCheckboxProps: () => ({ disabled: !0 })
216
202
  };
217
- }, [y]), Ge = a(() => u ? ie : y, [u, y, ie]), ce = a(() => `${J ?? (p == null ? void 0 : p.tableSize) ?? "lg"}BitzTable`, [J, p.tableSize]), Se = a(() => b.bordered ?? (c == null ? void 0 : c.bordered), [b.bordered, c == null ? void 0 : c.bordered]), Xe = a(() => U(
203
+ }, [g]), qe = c(() => d ? se : g, [d, g, se]), le = c(() => `${S ?? (p == null ? void 0 : p.tableSize)}BitzTable`, [S, p.tableSize]), Ge = c(() => y.bordered ?? (a == null ? void 0 : a.bordered), [y.bordered, a == null ? void 0 : a.bordered]), Se = c(() => $(
218
204
  "bitzTableContainer",
219
205
  /* "hideBorder", */
220
- { hasScrollBar: te },
221
- ce
222
- ), [ce, te, j]), Je = a(() => ({
223
- "--container-bgColor": x.colorBgContainer
224
- }), [x.colorBgContainer]), Qe = a(() => {
225
- const r = G ?? (c == null ? void 0 : c.fillEvenRow) ?? !0;
226
- return fr({
227
- height: j ? "100%" : L,
228
- evenRowBgColor: r ? i == null ? void 0 : i.evenRowBgColor : x.colorBgContainer,
229
- colorBgContainer: x.colorBgContainer,
206
+ { hasScrollBar: ee },
207
+ le
208
+ ), [le, ee, B]), Ue = c(() => ({
209
+ "--container-bgColor": m.colorBgContainer
210
+ }), [m.colorBgContainer]), Xe = c(() => {
211
+ const t = F ?? (a == null ? void 0 : a.fillEvenRow) ?? !0;
212
+ return pt({
213
+ height: B ? "100%" : z,
214
+ evenRowBgColor: t ? i == null ? void 0 : i.evenRowBgColor : m.colorBgContainer,
215
+ colorBgContainer: m.colorBgContainer,
230
216
  table: i,
231
- gap: Q,
232
- borderColor: (i == null ? void 0 : i.borderColor) || x.colorBorderSecondary
217
+ gap: U,
218
+ borderColor: (i == null ? void 0 : i.borderColor) || m.colorBorderSecondary
233
219
  });
234
- }, [j, L, i, G, c == null ? void 0 : c.fillEvenRow]), Ye = fe(
235
- (r, e, t) => {
236
- const n = e % 2 === 0 ? "oddRow" : "evenRow";
237
- if (b.rowClassName) {
238
- const l = b.rowClassName(r, e, t);
239
- return U(n, l);
220
+ }, [B, z, i, F, a == null ? void 0 : a.fillEvenRow]), Je = Ze(
221
+ (t, e, n) => {
222
+ const r = e % 2 === 0 ? "oddRow" : "evenRow";
223
+ if (y.rowClassName) {
224
+ const s = y.rowClassName(t, e, n);
225
+ return $(r, s);
240
226
  }
241
- return n;
227
+ return r;
242
228
  },
243
- [b.rowClassName]
244
- ), ae = /* @__PURE__ */ o.jsx(
245
- nr,
229
+ [y.rowClassName]
230
+ ), ie = /* @__PURE__ */ o.jsx(
231
+ ot,
246
232
  {
247
- finished: De,
248
- onLoad: we,
233
+ finished: We,
234
+ onLoad: xe,
249
235
  loadingText: "加载中...",
250
236
  finishedText: "没有更多了",
251
237
  errorText: "加载失败",
@@ -255,50 +241,50 @@ function xr({
255
241
  className: "mobileList",
256
242
  style: { backgroundColor: i == null ? void 0 : i.mobileListBgColor },
257
243
  children: [
258
- s == null ? void 0 : s.map((r, e) => /* @__PURE__ */ o.jsx(
244
+ l == null ? void 0 : l.map((t, e) => /* @__PURE__ */ o.jsx(
259
245
  "div",
260
246
  {
261
247
  className: "listItem",
262
248
  style: { backgroundColor: i == null ? void 0 : i.listItemBgColor },
263
- onClick: () => He(r, e),
264
- children: g == null ? void 0 : g.map((t, n) => {
265
- var l;
266
- return !(t != null && t.mobileHide) && /* @__PURE__ */ o.jsxs(
249
+ onClick: () => De(t, e),
250
+ children: b == null ? void 0 : b.map((n, r) => {
251
+ var s;
252
+ return !(n != null && n.mobileHide) && /* @__PURE__ */ o.jsxs(
267
253
  "div",
268
254
  {
269
255
  className: "row",
270
- style: { color: x.colorText },
256
+ style: { color: m.colorText },
271
257
  children: [
272
- !t.mobileHideLabel && /* @__PURE__ */ o.jsxs("div", { className: "label", children: [
273
- `${t.title}`,
258
+ !n.mobileHideLabel && /* @__PURE__ */ o.jsxs("div", { className: "label", children: [
259
+ `${n.title}`,
274
260
  ":"
275
261
  ] }),
276
- /* @__PURE__ */ o.jsx("div", { className: "value", children: ((l = t == null ? void 0 : t.render) == null ? void 0 : l.call(
262
+ /* @__PURE__ */ o.jsx("div", { className: "value", children: ((s = n == null ? void 0 : n.render) == null ? void 0 : s.call(
263
+ n,
264
+ xt(t, (n == null ? void 0 : n.dataIndex) || ""),
277
265
  t,
278
- pr(r, (t == null ? void 0 : t.dataIndex) || ""),
279
- r,
280
266
  e
281
- )) || (r == null ? void 0 : r[t.dataIndex]) })
267
+ )) || (t == null ? void 0 : t[n.dataIndex]) })
282
268
  ]
283
269
  },
284
- n
270
+ r
285
271
  );
286
272
  })
287
273
  },
288
274
  e
289
275
  )),
290
- u && Array.from({ length: ye }).map((r, e) => /* @__PURE__ */ o.jsx(
276
+ d && Array.from({ length: pe }).map((t, e) => /* @__PURE__ */ o.jsx(
291
277
  "div",
292
278
  {
293
279
  className: "listItem",
294
280
  style: { backgroundColor: i == null ? void 0 : i.listItemBgColor },
295
- children: /* @__PURE__ */ o.jsx("div", { className: "row", children: S ? S() : /* @__PURE__ */ o.jsx(
296
- me,
281
+ children: /* @__PURE__ */ o.jsx("div", { className: "row", children: q ? q() : /* @__PURE__ */ o.jsx(
282
+ ue,
297
283
  {
298
284
  title: !1,
299
285
  paragraph: {
300
- rows: Ce,
301
- width: be
286
+ rows: be,
287
+ width: ge
302
288
  },
303
289
  active: !0
304
290
  }
@@ -310,89 +296,89 @@ function xr({
310
296
  }
311
297
  )
312
298
  }
313
- ), Ze = a(() => {
314
- if (P)
315
- return P;
316
- if (!(v ?? (c == null ? void 0 : c.rowHoverable) ?? !0))
299
+ ), Qe = c(() => {
300
+ if (M)
301
+ return M;
302
+ if (!(k ?? (a == null ? void 0 : a.rowHoverable) ?? !0))
317
303
  return {
318
304
  body: {
319
- cell: ({ onMouseEnter: e, onMouseLeave: t, ...n }) => /* @__PURE__ */ o.jsx("td", { ...n })
305
+ cell: ({ onMouseEnter: e, onMouseLeave: n, ...r }) => /* @__PURE__ */ o.jsx("td", { ...r })
320
306
  }
321
307
  };
322
- }, [P, v, c == null ? void 0 : c.rowHoverable]);
308
+ }, [M, k, a == null ? void 0 : a.rowHoverable]);
323
309
  return /* @__PURE__ */ o.jsxs(
324
310
  "div",
325
311
  {
326
- className: U("bitzTableBlock", { fullscreen: j }),
327
- style: Je,
312
+ className: $("bitzTableBlock", { fullscreen: B }),
313
+ style: Ue,
328
314
  children: [
329
- !F && /* @__PURE__ */ o.jsxs("div", { ref: N, className: Xe, style: Qe, children: [
330
- /* @__PURE__ */ o.jsxs("div", { className: "bitzTableContainerBody", ref: z, children: [
331
- Te && /* @__PURE__ */ o.jsxs("div", { className: "bitzTableToolbarBlock", children: [
315
+ !O && /* @__PURE__ */ o.jsxs("div", { ref: x, className: Se, style: Xe, children: [
316
+ /* @__PURE__ */ o.jsxs("div", { className: "bitzTableContainerBody", ref: Q, children: [
317
+ ke && /* @__PURE__ */ o.jsxs("div", { className: "bitzTableToolbarBlock", children: [
332
318
  ze || /* @__PURE__ */ o.jsx("div", {}),
333
- Me,
334
- y && /* @__PURE__ */ o.jsx(o.Fragment, { children: Ee })
319
+ Ne,
320
+ g && /* @__PURE__ */ o.jsx(o.Fragment, { children: ve })
335
321
  ] }),
336
322
  /* @__PURE__ */ o.jsx(
337
- T,
323
+ I,
338
324
  {
339
- ...b,
340
- bordered: Se,
341
- columns: Ie,
342
- dataSource: $e,
325
+ ...y,
326
+ bordered: Ge,
327
+ columns: Ke,
328
+ dataSource: Oe,
343
329
  loading: !1,
344
330
  pagination: !1,
345
- scroll: H,
346
- expandable: qe,
347
- rowSelection: Ge,
348
- rowClassName: Ye,
331
+ scroll: te,
332
+ expandable: Fe,
333
+ rowSelection: qe,
334
+ rowClassName: Je,
349
335
  className: "bitzTable",
350
- components: Ze,
351
- rowKey: u ? void 0 : b.rowKey
336
+ components: Qe,
337
+ rowKey: d ? void 0 : y.rowKey
352
338
  }
353
339
  )
354
340
  ] }),
355
- ge && /* @__PURE__ */ o.jsx(
356
- tr,
341
+ me && /* @__PURE__ */ o.jsx(
342
+ tt,
357
343
  {
358
344
  size: "small",
359
- elRefInstance: ee,
360
- enableControl: Be,
361
- pagination: je,
362
- total: E,
363
- dataSource: s,
364
- resetPage: We,
365
- paginationEmit: Ne
345
+ elRefInstance: Y,
346
+ enableControl: Ce,
347
+ pagination: ye,
348
+ total: v,
349
+ dataSource: l,
350
+ resetPage: Le,
351
+ paginationEmit: we
366
352
  }
367
353
  )
368
354
  ] }),
369
- F && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
370
- (u || (s == null ? void 0 : s.length) > 0) && /* @__PURE__ */ o.jsx(o.Fragment, { children: X ? /* @__PURE__ */ o.jsx(sr, { onRefresh: X, children: ae }) : ae }),
371
- !u && /* @__PURE__ */ o.jsx(or, { data: s, title: ve, img: Le }),
355
+ O && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
356
+ (d || (l == null ? void 0 : l.length) > 0) && /* @__PURE__ */ o.jsx(o.Fragment, { children: G ? /* @__PURE__ */ o.jsx(rt, { onRefresh: G, children: ie }) : ie }),
357
+ !d && /* @__PURE__ */ o.jsx(nt, { data: l, title: je, img: Te }),
372
358
  /* @__PURE__ */ o.jsx(
373
- rr,
359
+ et,
374
360
  {
375
361
  className: "tableMobileDrawer",
376
- open: Re,
362
+ open: Ee,
377
363
  placement: "bottom",
378
364
  height: "auto",
379
365
  closable: !1,
380
- onClose: Z,
366
+ onClose: J,
381
367
  children: /* @__PURE__ */ o.jsxs("div", { className: "drawerBox", children: [
382
- /* @__PURE__ */ o.jsx("div", { className: "boxBody", children: Oe.map((r, e) => /* @__PURE__ */ o.jsx(
368
+ /* @__PURE__ */ o.jsx("div", { className: "boxBody", children: Re.map((t, e) => /* @__PURE__ */ o.jsx(
383
369
  "div",
384
370
  {
385
371
  className: "operaList",
386
- onClick: () => _e(r),
387
- ...r.danger && {
388
- style: { color: x.colorError }
372
+ onClick: () => He(t),
373
+ ...t.danger && {
374
+ style: { color: m.colorError }
389
375
  },
390
- children: r.label
376
+ children: t.label
391
377
  },
392
378
  e
393
379
  )) }),
394
380
  /* @__PURE__ */ o.jsx("div", { className: "boxLine" }),
395
- /* @__PURE__ */ o.jsx("div", { className: "boxFooter", onClick: Z, children: ke })
381
+ /* @__PURE__ */ o.jsx("div", { className: "boxFooter", onClick: J, children: Be })
396
382
  ] })
397
383
  }
398
384
  )
@@ -401,7 +387,7 @@ function xr({
401
387
  }
402
388
  );
403
389
  }
404
- const Ur = (v) => /* @__PURE__ */ o.jsx(lr, { initValue: v, children: /* @__PURE__ */ o.jsx(xr, { ...v }) });
390
+ const Xt = (k) => /* @__PURE__ */ o.jsx(st, { initValue: k, children: /* @__PURE__ */ o.jsx(Ct, { ...k }) });
405
391
  export {
406
- Ur as default
392
+ Xt as default
407
393
  };