bitz-react-admin-ui 1.9.7 → 1.9.9

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