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.
- package/dist/_virtual/dayjs.min.mjs +2 -5
- package/dist/components/BitzCalendar/index.mjs +1 -1
- package/dist/components/BitzConfigProvider/context.d.ts +8 -1
- package/dist/components/BitzConfigProvider/index.mjs +26 -9
- package/dist/components/BitzDayJs/index.mjs +1 -1
- package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +1 -1
- package/dist/components/BitzFuiCalendar/ColumnData.mjs +1 -1
- package/dist/components/BitzHighlight/Highlight.mjs +19 -19
- package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +1 -1
- package/dist/components/BitzMeetingTime/index.mjs +1 -1
- package/dist/components/BitzTabbar/BitzTabbar.d.ts +2 -2
- package/dist/components/BitzTabbar/BitzTabbar.mjs +33 -30
- package/dist/components/BitzTable/ActionCol/index.mjs +19 -18
- package/dist/components/BitzTable/Dropdown/index.d.ts +4 -0
- package/dist/components/BitzTable/Dropdown/index.mjs +21 -0
- package/dist/components/BitzTable/Dropdown/style.d.ts +4 -0
- package/dist/components/BitzTable/Dropdown/style.mjs +108 -0
- package/dist/components/BitzTable/Table/index.d.ts +2 -12
- package/dist/components/BitzTable/Table/index.mjs +221 -211
- package/dist/components/BitzTable/ToolBar/DensityIcon/index.mjs +14 -13
- package/dist/config.d.ts +2 -0
- package/dist/node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs +292 -292
- package/dist/node_modules/.store/dayjs@1.11.10/node_modules/dayjs/locale/zh-cn.mjs +13 -13
- package/dist/style.css +1 -1
- package/dist/utils/time.mjs +1 -1
- package/package.json +2 -2
- 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
|
|
3
|
-
import { isMobile as
|
|
4
|
-
import { Table as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
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
|
|
10
|
+
import hl from "../../BitzList/List.mjs";
|
|
11
11
|
import "../../BitzPullRefresh/style/index.less.mjs";
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import { columnSort as
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
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
|
|
21
|
-
function
|
|
22
|
-
showPagination:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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:
|
|
42
|
-
mobileCancelText:
|
|
43
|
-
noDataTitle:
|
|
44
|
-
noDataImg:
|
|
45
|
-
color:
|
|
46
|
-
size:
|
|
47
|
-
showTableTool:
|
|
48
|
-
tableAction:
|
|
49
|
-
tableToolbar:
|
|
50
|
-
selectionBar:
|
|
51
|
-
scroll:
|
|
52
|
-
resetPage:
|
|
53
|
-
...
|
|
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
|
|
56
|
-
const { token:
|
|
57
|
-
var
|
|
58
|
-
const
|
|
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
|
-
|
|
60
|
+
n != null && n.length && (Ze(n), $(!0));
|
|
62
61
|
}, U = () => {
|
|
63
|
-
|
|
64
|
-
},
|
|
62
|
+
$(!1);
|
|
63
|
+
}, ll = (l) => {
|
|
65
64
|
var e;
|
|
66
|
-
|
|
65
|
+
$(!1), (e = l.onClick) == null || e.call(l);
|
|
67
66
|
};
|
|
68
|
-
|
|
69
|
-
var e,
|
|
70
|
-
(e = l.target) != null && e.classList.contains("bitzTableBlock") && (
|
|
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 =
|
|
74
|
-
var
|
|
75
|
-
const l = (
|
|
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((
|
|
77
|
+
if (l == null || l.forEach((r) => {
|
|
79
78
|
var s;
|
|
80
79
|
e.push(
|
|
81
|
-
((s =
|
|
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)) +
|
|
85
|
-
},
|
|
83
|
+
return Math.ceil(Math.max(...e)) + Xe * 2;
|
|
84
|
+
}, J = () => {
|
|
86
85
|
var s;
|
|
87
|
-
const l = (s =
|
|
86
|
+
const l = (s = k.current) == null ? void 0 : s.querySelector(
|
|
88
87
|
".ant-table-body"
|
|
89
|
-
), e = l == null ? void 0 : l.clientWidth,
|
|
90
|
-
return { tbodyWidth: e, scrollBarWidth:
|
|
91
|
-
}, { y:
|
|
92
|
-
if (typeof
|
|
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 } =
|
|
95
|
-
let e = 40,
|
|
93
|
+
const { hasScrollBar: l } = J();
|
|
94
|
+
let e = 40, n = 40, r = 10;
|
|
96
95
|
if (C.current) {
|
|
97
|
-
const
|
|
98
|
-
e = parseInt(
|
|
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 = (
|
|
101
|
-
return { y: (
|
|
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
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
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
|
-
]),
|
|
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,
|
|
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
|
|
114
|
-
|
|
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
|
-
|
|
118
|
-
const { tbodyWidth:
|
|
119
|
-
return j >= 0 ? j / (e -
|
|
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
|
-
[
|
|
122
|
-
),
|
|
122
|
+
[d.expandable, d.rowSelection, H]
|
|
123
|
+
), v = f(() => {
|
|
123
124
|
const l = (a) => a.map((i) => {
|
|
124
|
-
const
|
|
125
|
+
const m = Ee(
|
|
125
126
|
(i == null ? void 0 : i.key) || (i == null ? void 0 : i.dataIndex),
|
|
126
127
|
i.index
|
|
127
|
-
),
|
|
128
|
-
return
|
|
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(
|
|
133
|
-
if (
|
|
134
|
-
return e.sort(
|
|
135
|
-
const
|
|
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 ?
|
|
139
|
+
width: a.useMaxWidth ? ol() ?? a.width : a.width
|
|
139
140
|
} : {
|
|
140
141
|
// 给未设置width的列设置平均数
|
|
141
|
-
width:
|
|
142
|
+
width: r
|
|
142
143
|
}
|
|
143
144
|
}));
|
|
144
|
-
return [
|
|
145
|
-
}, [
|
|
146
|
-
|
|
147
|
-
if (
|
|
148
|
-
const l =
|
|
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
|
-
|
|
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
|
-
|
|
155
|
+
g.setSortKeyColumns(l);
|
|
155
156
|
}
|
|
156
|
-
}, [
|
|
157
|
-
const
|
|
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:
|
|
161
|
-
|
|
162
|
-
), [
|
|
163
|
-
"--container-bgColor":
|
|
164
|
-
}), [
|
|
165
|
-
var l, e,
|
|
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:
|
|
168
|
-
"--toolbar-bgColor": (l =
|
|
169
|
-
"--thead-bgColor": (e =
|
|
170
|
-
"--thead-hoverBgColor": (
|
|
171
|
-
"--evenRow-BgColor": (
|
|
172
|
-
"--
|
|
173
|
-
"--
|
|
174
|
-
"--
|
|
175
|
-
"--
|
|
176
|
-
"--
|
|
177
|
-
"--
|
|
178
|
-
"--
|
|
179
|
-
"--
|
|
180
|
-
"--
|
|
181
|
-
"--
|
|
182
|
-
"--
|
|
183
|
-
"--
|
|
184
|
-
"--
|
|
185
|
-
"--
|
|
186
|
-
"--
|
|
187
|
-
"--
|
|
188
|
-
"--
|
|
189
|
-
"--
|
|
190
|
-
"--
|
|
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
|
-
}, [
|
|
194
|
-
|
|
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:
|
|
200
|
-
onLoad:
|
|
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: (
|
|
207
|
+
style: { backgroundColor: (ne = t.Table) == null ? void 0 : ne.mobileListBgColor },
|
|
209
208
|
children: [
|
|
210
|
-
|
|
211
|
-
var
|
|
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: (
|
|
217
|
-
onClick: () =>
|
|
218
|
-
children:
|
|
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 !(
|
|
219
|
+
return !(r != null && r.mobileHide) && /* @__PURE__ */ o.jsxs(
|
|
221
220
|
"div",
|
|
222
221
|
{
|
|
223
222
|
className: "row",
|
|
224
|
-
style: { color:
|
|
223
|
+
style: { color: t.colorText },
|
|
225
224
|
children: [
|
|
226
|
-
!
|
|
227
|
-
`${
|
|
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 =
|
|
231
|
-
|
|
232
|
-
|
|
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[
|
|
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
|
-
|
|
246
|
-
var
|
|
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: (
|
|
252
|
-
children: /* @__PURE__ */ o.jsx("div", { className: "row", children:
|
|
253
|
-
|
|
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:
|
|
258
|
-
width:
|
|
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:
|
|
276
|
-
style:
|
|
281
|
+
className: Le("bitzTableBlock", { fullscreen: y }),
|
|
282
|
+
style: nl,
|
|
277
283
|
children: [
|
|
278
|
-
!
|
|
279
|
-
/* @__PURE__ */ o.jsxs("div", { className: "bitzTableContainerBody", ref:
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
(
|
|
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
|
-
|
|
292
|
+
K,
|
|
287
293
|
{
|
|
288
|
-
|
|
289
|
-
|
|
294
|
+
bordered: ee,
|
|
295
|
+
columns: v,
|
|
296
|
+
dataSource: h,
|
|
290
297
|
loading: !1,
|
|
291
298
|
pagination: !1,
|
|
292
|
-
scroll:
|
|
293
|
-
...
|
|
294
|
-
rowClassName:
|
|
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
|
-
|
|
307
|
+
gl,
|
|
300
308
|
{
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
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
|
-
|
|
314
|
-
|
|
323
|
+
N && /* @__PURE__ */ o.jsx(
|
|
324
|
+
il,
|
|
315
325
|
{
|
|
316
326
|
elRefInstance: X,
|
|
317
|
-
enableControl:
|
|
318
|
-
pagination:
|
|
319
|
-
total:
|
|
320
|
-
dataSource:
|
|
321
|
-
resetPage:
|
|
322
|
-
paginationEmit:
|
|
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
|
-
|
|
327
|
-
(
|
|
328
|
-
!
|
|
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
|
-
|
|
340
|
+
al,
|
|
331
341
|
{
|
|
332
342
|
className: "tableMobileDrawer",
|
|
333
|
-
open:
|
|
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:
|
|
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: () =>
|
|
353
|
+
onClick: () => ll(l),
|
|
344
354
|
...l.danger && {
|
|
345
|
-
style: { color:
|
|
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:
|
|
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
|
|
371
|
+
const Dl = (N) => /* @__PURE__ */ o.jsx(bl, { initValue: N, children: /* @__PURE__ */ o.jsx(pl, { ...N }) });
|
|
362
372
|
export {
|
|
363
|
-
|
|
373
|
+
Dl as default
|
|
364
374
|
};
|