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