bitz-react-admin-ui 1.9.2 → 1.9.5

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