bitz-react-admin-ui 1.9.8 → 2.0.0

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