bitz-react-admin-ui 1.8.1 → 1.8.3

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