bitz-react-admin-ui 2.10.2 → 2.10.4
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/components/BitzTable/Table/index.mjs +361 -411
- package/dist/components/BitzTable/Table/useScrollConfig.d.ts +1 -0
- package/dist/components/BitzTable/Table/useScrollConfig.mjs +29 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/node_modules/lodash-es/isNil.mjs +0 -6
|
@@ -1,254 +1,204 @@
|
|
|
1
1
|
import { j as r } from "../../../node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { isMobile as
|
|
4
|
-
import { Typography as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
2
|
+
import { useRef as L, useContext as Ke, useState as K, useEffect as He, useMemo as f, useLayoutEffect as Oe, useCallback as A } from "react";
|
|
3
|
+
import { isMobile as C } from "../../../node_modules/react-device-detect/dist/lib.mjs";
|
|
4
|
+
import { Typography as ae, Skeleton as qt, Alert as Kt, Table as Ht, Spin as Ot } from "antd";
|
|
5
|
+
import p from "../../../node_modules/classnames/index.mjs";
|
|
6
|
+
import Vt from "../../BitzDrawer/index.mjs";
|
|
7
|
+
import _t from "../../BitzPagination/index.mjs";
|
|
8
|
+
import vt from "../../BitzNoData/index.mjs";
|
|
9
9
|
import "../../BitzList/index.less.mjs";
|
|
10
|
-
import
|
|
10
|
+
import Gt from "../../BitzList/List.mjs";
|
|
11
11
|
import "../../BitzPullRefresh/style/index.less.mjs";
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import { loopFilter as
|
|
15
|
-
import
|
|
16
|
-
import { tablePaddingInline as
|
|
17
|
-
import
|
|
18
|
-
import
|
|
12
|
+
import It from "../../BitzPullRefresh/PullRefresh.mjs";
|
|
13
|
+
import Yt, { BitzTableContext as Dt, toolCols as Jt } from "../Store/index.mjs";
|
|
14
|
+
import { loopFilter as Qt, columnSort as Ut, genColumnKey as Xt } from "../Store/utils/index.mjs";
|
|
15
|
+
import Zt from "../../BitzTheme/index.mjs";
|
|
16
|
+
import { tablePaddingInline as Et } from "../../BitzConfigProvider/context.mjs";
|
|
17
|
+
import Ve from "../../BitzHighlight/index.mjs";
|
|
18
|
+
import At from "../../../node_modules/antd/es/table/ExpandIcon.mjs";
|
|
19
19
|
import "../../../node_modules/antd/es/config-provider/index.mjs";
|
|
20
|
-
import
|
|
21
|
-
import { getColumnsWithTool as
|
|
22
|
-
import { getCssVar as
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
20
|
+
import pt from "../../../node_modules/antd/locale/en_US.mjs";
|
|
21
|
+
import { getColumnsWithTool as Ft, resetScroll as _e } from "./utils.mjs";
|
|
22
|
+
import { getCssVar as es } from "./style.mjs";
|
|
23
|
+
import ts from "./SortableRow.mjs";
|
|
24
|
+
import ss from "./SortTableContext.mjs";
|
|
25
|
+
import rs from "./ResizableTitle copy.mjs";
|
|
26
|
+
import ls from "../TextOverflow/index.mjs";
|
|
27
27
|
import "./index.less.mjs";
|
|
28
|
-
import { querySelectorAll as
|
|
29
|
-
import { TdCell as
|
|
30
|
-
import
|
|
31
|
-
import { ConfigContext as
|
|
32
|
-
import
|
|
33
|
-
function
|
|
34
|
-
showPagination:
|
|
35
|
-
height:
|
|
36
|
-
minHeight:
|
|
28
|
+
import { querySelectorAll as os, querySelector as ns } from "../../../utils/select-query.mjs";
|
|
29
|
+
import { TdCell as cs } from "./TdCell.mjs";
|
|
30
|
+
import { useScrollConfig as is } from "./useScrollConfig.mjs";
|
|
31
|
+
import { ConfigContext as as } from "../../../node_modules/antd/es/config-provider/context.mjs";
|
|
32
|
+
import ds from "../../../node_modules/lodash-es/at.mjs";
|
|
33
|
+
function us({
|
|
34
|
+
showPagination: v = !0,
|
|
35
|
+
height: G,
|
|
36
|
+
minHeight: de,
|
|
37
37
|
dataSource: z,
|
|
38
|
-
total:
|
|
39
|
-
columns:
|
|
40
|
-
loading:
|
|
41
|
-
dataProps:
|
|
42
|
-
skeletonNum:
|
|
38
|
+
total: W = 0,
|
|
39
|
+
columns: F,
|
|
40
|
+
loading: a,
|
|
41
|
+
dataProps: ve = {},
|
|
42
|
+
skeletonNum: ue = {
|
|
43
43
|
pc: 10,
|
|
44
44
|
mobile: 10
|
|
45
45
|
},
|
|
46
|
-
skeletonRender:
|
|
47
|
-
skeletonRowNum:
|
|
48
|
-
skeletonRowsWidth:
|
|
46
|
+
skeletonRender: ee,
|
|
47
|
+
skeletonRowNum: Ge = 4,
|
|
48
|
+
skeletonRowsWidth: Ie = ["35%", "100%", "100%", "60%"],
|
|
49
49
|
// mobileLoadEmit,
|
|
50
|
-
mobileRefreshEmit:
|
|
51
|
-
operationFilter:
|
|
52
|
-
enableControlPage:
|
|
53
|
-
pagination:
|
|
54
|
-
paginationEmit:
|
|
50
|
+
mobileRefreshEmit: fe,
|
|
51
|
+
operationFilter: d,
|
|
52
|
+
enableControlPage: Ye,
|
|
53
|
+
pagination: m,
|
|
54
|
+
paginationEmit: H = () => {
|
|
55
55
|
},
|
|
56
|
-
onChange:
|
|
57
|
-
enabledRowDragSort:
|
|
58
|
-
onRowDragEnd:
|
|
59
|
-
resizableColumns:
|
|
56
|
+
onChange: te,
|
|
57
|
+
enabledRowDragSort: O,
|
|
58
|
+
onRowDragEnd: se,
|
|
59
|
+
resizableColumns: J,
|
|
60
60
|
// mobilePageHeight = 500,
|
|
61
|
-
mobileCancelText:
|
|
62
|
-
noDataTitle:
|
|
63
|
-
noDataImg:
|
|
61
|
+
mobileCancelText: De = "取消",
|
|
62
|
+
noDataTitle: Je,
|
|
63
|
+
noDataImg: Qe,
|
|
64
64
|
// color,
|
|
65
|
-
size:
|
|
66
|
-
showTableTool:
|
|
67
|
-
tableAction:
|
|
68
|
-
tableToolbar:
|
|
69
|
-
selectionBar:
|
|
65
|
+
size: he,
|
|
66
|
+
showTableTool: Ue = !0,
|
|
67
|
+
tableAction: Xe,
|
|
68
|
+
tableToolbar: Ze,
|
|
69
|
+
selectionBar: Ee,
|
|
70
70
|
scroll: b,
|
|
71
|
-
components:
|
|
72
|
-
expandable:
|
|
73
|
-
rowSelection:
|
|
74
|
-
selectionAlert:
|
|
75
|
-
resetPage:
|
|
76
|
-
inview:
|
|
77
|
-
...
|
|
71
|
+
components: B,
|
|
72
|
+
expandable: N,
|
|
73
|
+
rowSelection: $,
|
|
74
|
+
selectionAlert: h,
|
|
75
|
+
resetPage: Ae,
|
|
76
|
+
inview: me,
|
|
77
|
+
...n
|
|
78
78
|
}) {
|
|
79
|
-
var
|
|
80
|
-
const { token:
|
|
81
|
-
|
|
79
|
+
var Re;
|
|
80
|
+
const { token: k } = Zt.useToken(), be = L([]), { Table: u } = k, pe = u.tableSpaceBetweenPage ?? 10, Fe = u.cellPaddingInline ?? Et, ye = u.minHeight ?? 500, { showColumnBorder: re, hideRowBorder: Ce, rowHoverable: et, ...c } = Ke(Dt), [tt, Q] = K(!1), [x, st] = K([]);
|
|
81
|
+
He(() => {
|
|
82
82
|
let e = [...z ?? []];
|
|
83
|
-
(
|
|
84
|
-
}, [
|
|
85
|
-
const
|
|
86
|
-
var
|
|
87
|
-
let t,
|
|
88
|
-
if (typeof
|
|
89
|
-
t = (
|
|
90
|
-
(
|
|
83
|
+
(m == null ? void 0 : m.page) !== 1 && (e = [...x, ...e]), st(e);
|
|
84
|
+
}, [C ? z : 0]);
|
|
85
|
+
const xe = f(() => !!(x != null && x.length) && (x == null ? void 0 : x.length) >= W, [x, W]), [U, rt] = K([]), [lt, we] = K(!1), ot = async (e, s) => {
|
|
86
|
+
var o, i, T;
|
|
87
|
+
let t, l = !1;
|
|
88
|
+
if (typeof d == "function")
|
|
89
|
+
t = (o = d == null ? void 0 : d(e, s)) == null ? void 0 : o.filter(
|
|
90
|
+
(y) => y.type !== "divider"
|
|
91
91
|
);
|
|
92
|
-
else if (t = (
|
|
93
|
-
|
|
92
|
+
else if (t = (i = d == null ? void 0 : d.custom) == null ? void 0 : i.call(d, e, s), d != null && d.request) {
|
|
93
|
+
we(!0), Q(!0), l = !0;
|
|
94
94
|
try {
|
|
95
|
-
const
|
|
96
|
-
(
|
|
97
|
-
var
|
|
95
|
+
const y = await (d == null ? void 0 : d.request(e, s));
|
|
96
|
+
(T = d.fieldsName) != null && T.label ? t = y == null ? void 0 : y.map((j) => {
|
|
97
|
+
var _;
|
|
98
98
|
return {
|
|
99
|
-
...
|
|
100
|
-
label:
|
|
99
|
+
...j,
|
|
100
|
+
label: j == null ? void 0 : j[((_ = d.fieldsName) == null ? void 0 : _.label) ?? "label"]
|
|
101
101
|
};
|
|
102
|
-
}) : t =
|
|
102
|
+
}) : t = y ?? [];
|
|
103
103
|
} finally {
|
|
104
|
-
|
|
104
|
+
we(!1);
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
|
-
t != null && t.length && (
|
|
108
|
-
},
|
|
109
|
-
|
|
110
|
-
},
|
|
111
|
-
var t,
|
|
112
|
-
|
|
113
|
-
},
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
}
|
|
107
|
+
t != null && t.length && (rt(t), l || Q(!0));
|
|
108
|
+
}, Te = () => {
|
|
109
|
+
Q(!1);
|
|
110
|
+
}, nt = (e, s) => {
|
|
111
|
+
var t, l;
|
|
112
|
+
Q(!1), (t = e.onClick) == null || t.call(e), !(e != null && e.onClick) && typeof d != "function" && (d != null && d.onClick) && d.onClick((l = U == null ? void 0 : U[s]) == null ? void 0 : l.key);
|
|
113
|
+
}, le = L(null), je = L(null), g = L(null), S = L(null), ze = L(null), ct = is(g, {
|
|
114
|
+
height: G,
|
|
115
|
+
scroll: b,
|
|
116
|
+
fullscreen: c.fullscreen
|
|
117
|
+
}), it = (...e) => {
|
|
118
|
+
_e(le), te == null || te(...e);
|
|
119
|
+
}, at = (...e) => {
|
|
120
|
+
_e(le), H == null || H(...e);
|
|
121
|
+
}, X = f(() => !(b != null && b.auto) && J, [b == null ? void 0 : b.auto, J]), dt = () => {
|
|
118
122
|
var t;
|
|
119
|
-
const e =
|
|
123
|
+
const e = os(
|
|
120
124
|
"& > .bitzTableContainerBody > .ant-table-wrapper.bitzTable > .ant-spin-nested-loading > .ant-spin-container > .ant-table > .ant-table-container > .ant-table-tbody > table > .ant-table-tbody > tr:not(.ant-table-measure-row, .ant-table-expanded-row)",
|
|
121
|
-
(t =
|
|
125
|
+
(t = g.current) == null ? void 0 : t.querySelectorAll
|
|
122
126
|
), s = [];
|
|
123
|
-
if (e == null || e.forEach((
|
|
124
|
-
var
|
|
127
|
+
if (e == null || e.forEach((l) => {
|
|
128
|
+
var o;
|
|
125
129
|
s.push(
|
|
126
|
-
((
|
|
130
|
+
((o = ns("& > .operationCol .actionGroup", l.querySelector)) == null ? void 0 : o.clientWidth) || 0
|
|
127
131
|
);
|
|
128
132
|
}), s.length)
|
|
129
133
|
return Math.ceil(Math.max(...s));
|
|
130
|
-
},
|
|
131
|
-
var
|
|
132
|
-
let e = (
|
|
134
|
+
}, ut = () => {
|
|
135
|
+
var o, i, T, y;
|
|
136
|
+
let e = (o = g.current) == null ? void 0 : o.querySelector(
|
|
133
137
|
".ant-table-content"
|
|
134
138
|
);
|
|
135
|
-
e || (e = (
|
|
139
|
+
e || (e = (i = g.current) == null ? void 0 : i.querySelector(
|
|
136
140
|
".ant-table-tbody"
|
|
137
141
|
));
|
|
138
|
-
let s = 0, t = !1,
|
|
139
|
-
return e && (s = e.clientWidth - (
|
|
142
|
+
let s = 0, t = !1, l = 0;
|
|
143
|
+
return e && (s = e.clientWidth - (re ? 1 : 0), t = e.offsetWidth - e.clientWidth > 0, l = (y = (T = g.current) == null ? void 0 : T.querySelector(
|
|
140
144
|
".ant-table-cell-scrollbar"
|
|
141
|
-
)) == null ? void 0 :
|
|
142
|
-
},
|
|
143
|
-
var W, B, K, E, G, oe, O, N, I, De;
|
|
144
|
-
if (typeof H > "u" || Cs((W = i == null ? void 0 : i.current) == null ? void 0 : W.clientHeight))
|
|
145
|
-
return;
|
|
146
|
-
if (!F.fullscreen && F.y)
|
|
147
|
-
return F.y;
|
|
148
|
-
const e = ((E = (K = (B = i == null ? void 0 : i.current) == null ? void 0 : B.querySelector) == null ? void 0 : K.call(B, ".ant-table-header")) == null ? void 0 : E.clientHeight) ?? 50, s = ((O = (oe = (G = i == null ? void 0 : i.current) == null ? void 0 : G.querySelector) == null ? void 0 : oe.call(G, ".bitzTablePagination")) == null ? void 0 : O.clientHeight) ?? 30;
|
|
149
|
-
let t = 40;
|
|
150
|
-
if (i.current) {
|
|
151
|
-
const It = window.getComputedStyle(i.current);
|
|
152
|
-
t = parseInt(It.getPropertyValue("--toolbar-height"));
|
|
153
|
-
}
|
|
154
|
-
const o = ((((N = X == null ? void 0 : X.current) == null ? void 0 : N.clientHeight) || 30 ? Se : 0) || 10) + t + s + (e ?? 50), a = (De = (I = i == null ? void 0 : i.current) == null ? void 0 : I.querySelector) == null ? void 0 : De.call(
|
|
155
|
-
I,
|
|
156
|
-
".ant-table-tbody"
|
|
157
|
-
), d = (H > U ? H : U) - o, w = document.fullscreenElement;
|
|
158
|
-
if (setTimeout(() => {
|
|
159
|
-
if (!w && (a == null ? void 0 : a.clientHeight) > d)
|
|
160
|
-
return a.style.maxHeight = `${d}px`, be({ fullscreen: !1, y: d });
|
|
161
|
-
be({ fullscreen: !1, y: 0 });
|
|
162
|
-
}, 100), !w && (a == null ? void 0 : a.clientHeight) > d)
|
|
163
|
-
return a.style.maxHeight = `${d}px`, d;
|
|
164
|
-
}, [
|
|
165
|
-
(_e = i == null ? void 0 : i.current) == null ? void 0 : _e.clientHeight,
|
|
166
|
-
(Ie = (Ge = (le = i == null ? void 0 : i.current) == null ? void 0 : le.querySelector) == null ? void 0 : Ge.call(le, ".ant-table-tbody")) == null ? void 0 : Ie.clientHeight,
|
|
167
|
-
c.fullscreen,
|
|
168
|
-
H,
|
|
169
|
-
ue,
|
|
170
|
-
F,
|
|
171
|
-
U,
|
|
172
|
-
// paginationRect?.height,
|
|
173
|
-
se,
|
|
174
|
-
// containerBodyRect?.height,
|
|
175
|
-
c.tableSize
|
|
176
|
-
]), gt = () => {
|
|
145
|
+
)) == null ? void 0 : y.offsetWidth), { hasScrollBar: t, scrollbarSize: l, tbodyWidth: s };
|
|
146
|
+
}, oe = f(() => a ? be.current : (be.current = z, z), [a, z]), { hasScrollBar: q, scrollbarSize: M, tbodyWidth: Z } = f(() => ut(), [oe, c.fullscreen]), ft = () => {
|
|
177
147
|
let e = 0;
|
|
178
|
-
if (
|
|
179
|
-
const t = window.getComputedStyle(
|
|
148
|
+
if (g.current) {
|
|
149
|
+
const t = window.getComputedStyle(g.current), l = parseInt(
|
|
180
150
|
t.getPropertyValue("--toolCell-paddingInline")
|
|
181
151
|
);
|
|
182
|
-
e = parseInt(t.getPropertyValue("--fontSize")) + 4 + 2 *
|
|
152
|
+
e = parseInt(t.getPropertyValue("--fontSize")) + 4 + 2 * l;
|
|
183
153
|
}
|
|
184
154
|
let s = 0;
|
|
185
|
-
return
|
|
186
|
-
}, [
|
|
187
|
-
|
|
188
|
-
var
|
|
189
|
-
const e =
|
|
190
|
-
|
|
191
|
-
let
|
|
192
|
-
|
|
193
|
-
}, [c.columnsMap,
|
|
194
|
-
const [
|
|
195
|
-
|
|
196
|
-
if (
|
|
197
|
-
const e =
|
|
198
|
-
let
|
|
155
|
+
return $ && (s += e), N && (s += e), O && (s += e), s;
|
|
156
|
+
}, [P, ht] = K([]), [ne, mt] = K(0);
|
|
157
|
+
Oe(() => {
|
|
158
|
+
var y;
|
|
159
|
+
const e = F ?? [], s = (y = e.find((j) => j.isOperationCol)) == null ? void 0 : y.width, t = e.filter((j) => !Jt.includes(j)), o = Qt(t, c.columnsMap).sort(Ut(c.columnsMap)), i = o.findIndex((j) => j.isOperationCol);
|
|
160
|
+
i >= 0 && (o[i].width = s);
|
|
161
|
+
let T = 0;
|
|
162
|
+
C || (T = ft()), ht(o), mt(T);
|
|
163
|
+
}, [c.columnsMap, F]);
|
|
164
|
+
const [w, bt] = K([]);
|
|
165
|
+
He(() => {
|
|
166
|
+
if (X) {
|
|
167
|
+
const e = P.map((s, t) => {
|
|
168
|
+
let l = s.width;
|
|
199
169
|
if (s != null && s.isOperationCol && (s != null && s.useMaxWidth)) {
|
|
200
|
-
const
|
|
201
|
-
|
|
170
|
+
const i = dt();
|
|
171
|
+
i && (l = i + Fe * 2);
|
|
202
172
|
}
|
|
203
173
|
return {
|
|
204
|
-
key:
|
|
205
|
-
width:
|
|
174
|
+
key: Xt(s, t),
|
|
175
|
+
width: l ?? 0
|
|
206
176
|
};
|
|
207
177
|
});
|
|
208
|
-
|
|
178
|
+
bt(e);
|
|
209
179
|
}
|
|
210
|
-
}, [
|
|
211
|
-
const
|
|
212
|
-
let e;
|
|
213
|
-
|
|
214
|
-
return {
|
|
215
|
-
x: void 0,
|
|
216
|
-
y: e
|
|
217
|
-
};
|
|
218
|
-
let s = b == null ? void 0 : b.x;
|
|
219
|
-
return p && j.length && (s = j.reduce((l, o) => l + o.width, 0) + xe, re && s < re - (_ ? L : 0) && (Nt.current = !0, s = re)), b != null && b.y ? { x: s, y: b.y } : { x: s, y: e };
|
|
180
|
+
}, [P, X]);
|
|
181
|
+
const yt = L(!1), Ct = L(!1), ce = f(() => {
|
|
182
|
+
let e = b == null ? void 0 : b.x;
|
|
183
|
+
return J && w.length && (e = w.reduce((l, o) => l + o.width, 0) + ne, Z && e < Z - (q ? M : 0) && (yt.current = !0, e = Z)), b != null && b.y ? { x: e, y: b.y } : { x: e, y: scrollY };
|
|
220
184
|
}, [
|
|
221
185
|
b,
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
"bz-fullscreen"
|
|
234
|
-
) ? 50 : 0, o = 130, a = (t = (s = document.fullscreenElement) == null ? void 0 : s.querySelector) == null ? void 0 : t.call(
|
|
235
|
-
s,
|
|
236
|
-
".ant-table-tbody"
|
|
237
|
-
), d = n - o - l;
|
|
238
|
-
if ((a == null ? void 0 : a.clientHeight) > d)
|
|
239
|
-
return { y: d };
|
|
240
|
-
be({ fullscreen: !0, y: 0 });
|
|
241
|
-
}
|
|
242
|
-
}, [c.fullscreen]), Z = m(() => {
|
|
243
|
-
if (g)
|
|
244
|
-
return $;
|
|
245
|
-
const e = $.length - 1, s = $.map((t, n) => {
|
|
246
|
-
var l;
|
|
186
|
+
J,
|
|
187
|
+
w,
|
|
188
|
+
ne,
|
|
189
|
+
re,
|
|
190
|
+
q,
|
|
191
|
+
M
|
|
192
|
+
]), I = f(() => {
|
|
193
|
+
if (C)
|
|
194
|
+
return P;
|
|
195
|
+
const e = P.length - 1, s = P.map((t, l) => {
|
|
196
|
+
var o;
|
|
247
197
|
return {
|
|
248
198
|
...t,
|
|
249
199
|
...typeof t.title == "string" && {
|
|
250
200
|
title: /* @__PURE__ */ r.jsx(
|
|
251
|
-
|
|
201
|
+
ae.Paragraph,
|
|
252
202
|
{
|
|
253
203
|
className: "bitzTableTitle",
|
|
254
204
|
ellipsis: { rows: 2 },
|
|
@@ -256,68 +206,68 @@ function gs({
|
|
|
256
206
|
}
|
|
257
207
|
)
|
|
258
208
|
},
|
|
259
|
-
...e ===
|
|
260
|
-
className:
|
|
209
|
+
...e === l && {
|
|
210
|
+
className: p(t.className, "lastColumn")
|
|
261
211
|
},
|
|
262
|
-
width:
|
|
263
|
-
...
|
|
264
|
-
onHeaderCell: (
|
|
265
|
-
var
|
|
212
|
+
width: w.length ? (o = w[l]) == null ? void 0 : o.width : (t == null ? void 0 : t.width) || void 0,
|
|
213
|
+
...ce.x !== void 0 ? {
|
|
214
|
+
onHeaderCell: (i) => {
|
|
215
|
+
var T;
|
|
266
216
|
return {
|
|
267
|
-
...(
|
|
268
|
-
width:
|
|
269
|
-
stretchref:
|
|
270
|
-
datagridref:
|
|
271
|
-
onResize:
|
|
217
|
+
...(T = t.onHeaderCell) == null ? void 0 : T.call(t),
|
|
218
|
+
width: i.width,
|
|
219
|
+
stretchref: je,
|
|
220
|
+
datagridref: S,
|
|
221
|
+
onResize: xt(l)
|
|
272
222
|
};
|
|
273
223
|
}
|
|
274
224
|
} : {},
|
|
275
225
|
...!(t != null && t.render) && t.copyable ? {
|
|
276
|
-
render: (
|
|
226
|
+
render: (i) => ["number", "bigint"].includes(typeof i) ? i : /* @__PURE__ */ r.jsx(ls, { value: i })
|
|
277
227
|
} : {}
|
|
278
228
|
};
|
|
279
229
|
});
|
|
280
|
-
return
|
|
281
|
-
|
|
230
|
+
return Ft(
|
|
231
|
+
F,
|
|
282
232
|
s,
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
!!
|
|
233
|
+
O,
|
|
234
|
+
!!$,
|
|
235
|
+
!!N
|
|
286
236
|
);
|
|
287
|
-
}, [
|
|
288
|
-
const
|
|
289
|
-
if (
|
|
237
|
+
}, [P, w]), xt = (e) => (s, { size: t, minWidth: l }) => {
|
|
238
|
+
const i = (t.width > l ? t.width : l) - w[e].width;
|
|
239
|
+
if (i === 0)
|
|
290
240
|
return;
|
|
291
|
-
const
|
|
292
|
-
let
|
|
293
|
-
if (
|
|
294
|
-
|
|
295
|
-
const
|
|
296
|
-
(e ===
|
|
297
|
-
let
|
|
298
|
-
|
|
241
|
+
const y = w.reduce((D, R) => D + R.width, 0) + i + ne, _ = Z - (q ? M : 0);
|
|
242
|
+
let E = "", Y = -1, Le = 0;
|
|
243
|
+
if (i < 0 && y < _) {
|
|
244
|
+
Y = e + 1;
|
|
245
|
+
const D = P.length - 1, R = P[D];
|
|
246
|
+
(e === D - 1 && (R != null && R.isOperationCol) || e === D && !(R != null && R.isOperationCol)) && (Y = e - 1);
|
|
247
|
+
let qe = 0;
|
|
248
|
+
ce.x > _ && (qe = ce.x - _), E = `${w[Y].key}`, Le = w[Y].width - i - qe;
|
|
299
249
|
}
|
|
300
|
-
const
|
|
250
|
+
const $e = `${w[e].key}`, $t = {
|
|
301
251
|
...c.columnsMap,
|
|
302
|
-
[
|
|
303
|
-
...c.columnsMap[
|
|
304
|
-
width:
|
|
252
|
+
[$e]: {
|
|
253
|
+
...c.columnsMap[$e],
|
|
254
|
+
width: w[e].width + i
|
|
305
255
|
},
|
|
306
|
-
...
|
|
307
|
-
[
|
|
308
|
-
...c.columnsMap[
|
|
309
|
-
width:
|
|
256
|
+
...E && Y >= 0 && {
|
|
257
|
+
[E]: {
|
|
258
|
+
...c.columnsMap[E],
|
|
259
|
+
width: Le
|
|
310
260
|
}
|
|
311
261
|
}
|
|
312
262
|
};
|
|
313
|
-
c.setColumnsMap(
|
|
314
|
-
},
|
|
315
|
-
if (
|
|
263
|
+
c.setColumnsMap($t), Ct.current = !0, c.persistenceType === "online" && c.persistenceKey && c.startAutoSaveCountdown();
|
|
264
|
+
}, V = I, { table: ie, locale: wt = pt } = Ke(as), Tt = { ...wt.Table }, jt = ((Re = ie == null ? void 0 : ie.expandable) == null ? void 0 : Re.expandIcon) || (N == null ? void 0 : N.expandIcon) || At(Tt), Ne = f(() => {
|
|
265
|
+
if (N)
|
|
316
266
|
return {
|
|
317
|
-
...
|
|
267
|
+
...N,
|
|
318
268
|
expandedRowRender: () => /* @__PURE__ */ r.jsx(r.Fragment, {}),
|
|
319
269
|
expandIcon: (e) => {
|
|
320
|
-
const s =
|
|
270
|
+
const s = jt(e);
|
|
321
271
|
return {
|
|
322
272
|
...s,
|
|
323
273
|
props: {
|
|
@@ -325,86 +275,86 @@ function gs({
|
|
|
325
275
|
disabled: !0,
|
|
326
276
|
style: {
|
|
327
277
|
...s.props.style,
|
|
328
|
-
backgroundColor:
|
|
278
|
+
backgroundColor: k.colorBgContainerDisabled
|
|
329
279
|
}
|
|
330
280
|
}
|
|
331
281
|
};
|
|
332
282
|
}
|
|
333
283
|
};
|
|
334
|
-
}, [
|
|
335
|
-
if (
|
|
284
|
+
}, [N]), zt = f(() => a ? Ne : N, [a, N, Ne]), ke = f(() => {
|
|
285
|
+
if ($)
|
|
336
286
|
return {
|
|
337
|
-
|
|
287
|
+
...$,
|
|
338
288
|
selectedRowKeys: [],
|
|
339
289
|
getCheckboxProps: () => ({ disabled: !0 })
|
|
340
290
|
};
|
|
341
|
-
}, [
|
|
291
|
+
}, [$]), Nt = f(() => a ? ke : $, [a, $, ke]), We = f(() => a ? "key" : n.rowKey, [a, n.rowKey]), Be = f(() => `${he ?? c.stylesConfig.size}BitzTable`, [he, c.stylesConfig.size]), kt = A(
|
|
342
292
|
(e, s) => {
|
|
343
|
-
var
|
|
344
|
-
if (!
|
|
293
|
+
var l;
|
|
294
|
+
if (!n.onRow || a)
|
|
345
295
|
return {};
|
|
346
|
-
const t = (
|
|
296
|
+
const t = (l = n.onRow) == null ? void 0 : l.call(n, e, s);
|
|
347
297
|
return t.onClick && (t.className = "rowPointerCursor"), t;
|
|
348
298
|
},
|
|
349
|
-
[
|
|
350
|
-
),
|
|
299
|
+
[n.onRow, a]
|
|
300
|
+
), Wt = f(() => p(
|
|
351
301
|
"bitzTableContainer",
|
|
352
|
-
{ hideBorder:
|
|
353
|
-
{ hasScrollBar:
|
|
354
|
-
{ stickyTable: !!(
|
|
355
|
-
|
|
356
|
-
|
|
302
|
+
{ hideBorder: Ce },
|
|
303
|
+
{ hasScrollBar: q },
|
|
304
|
+
{ stickyTable: !!(n != null && n.sticky) },
|
|
305
|
+
Be,
|
|
306
|
+
n.className
|
|
357
307
|
), [
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
308
|
+
n.className,
|
|
309
|
+
Be,
|
|
310
|
+
q,
|
|
361
311
|
c.fullscreen,
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
]),
|
|
365
|
-
"--container-bgColor":
|
|
366
|
-
}), [
|
|
367
|
-
const e =
|
|
312
|
+
Ce,
|
|
313
|
+
n.sticky
|
|
314
|
+
]), Bt = f(() => ({
|
|
315
|
+
"--container-bgColor": k.colorBgContainer
|
|
316
|
+
}), [k.colorBgContainer]), gt = f(() => {
|
|
317
|
+
const e = de ?? ye;
|
|
368
318
|
let s;
|
|
369
|
-
|
|
319
|
+
G && (s = G >= e ? G : e);
|
|
370
320
|
const t = c.fullscreen ? "100%" : s;
|
|
371
|
-
let
|
|
372
|
-
return (
|
|
321
|
+
let l;
|
|
322
|
+
return (M ?? 0) > 0 && (l = M), es({
|
|
373
323
|
height: t ?? "auto",
|
|
374
|
-
token:
|
|
375
|
-
evenRowBgColor: c.zebra ?
|
|
376
|
-
table:
|
|
377
|
-
gap:
|
|
378
|
-
borderColor: (
|
|
379
|
-
scrollbarWidth:
|
|
380
|
-
other:
|
|
324
|
+
token: k,
|
|
325
|
+
evenRowBgColor: c.zebra ? u == null ? void 0 : u.evenRowBgColor : k.colorBgContainer,
|
|
326
|
+
table: u,
|
|
327
|
+
gap: pe,
|
|
328
|
+
borderColor: (u == null ? void 0 : u.borderColor) || k.colorBorderSecondary,
|
|
329
|
+
scrollbarWidth: l,
|
|
330
|
+
other: n.style
|
|
381
331
|
});
|
|
382
332
|
}, [
|
|
383
|
-
|
|
333
|
+
n.style,
|
|
384
334
|
c.fullscreen,
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
335
|
+
G,
|
|
336
|
+
de,
|
|
337
|
+
ye,
|
|
338
|
+
u,
|
|
389
339
|
c == null ? void 0 : c.zebra,
|
|
390
|
-
|
|
391
|
-
]),
|
|
340
|
+
M
|
|
341
|
+
]), St = A(
|
|
392
342
|
(e, s, t) => {
|
|
393
|
-
const
|
|
394
|
-
if (
|
|
395
|
-
const
|
|
396
|
-
return
|
|
343
|
+
const l = s % 2 === 0 ? "oddRow" : "evenRow";
|
|
344
|
+
if (n.rowClassName) {
|
|
345
|
+
const o = n.rowClassName(e, s, t);
|
|
346
|
+
return p(l, o);
|
|
397
347
|
}
|
|
398
|
-
return
|
|
348
|
+
return l;
|
|
399
349
|
},
|
|
400
|
-
[
|
|
401
|
-
),
|
|
402
|
-
|
|
350
|
+
[n.rowClassName]
|
|
351
|
+
), ge = f(() => /* @__PURE__ */ r.jsx(
|
|
352
|
+
Gt,
|
|
403
353
|
{
|
|
404
|
-
finished:
|
|
354
|
+
finished: xe,
|
|
405
355
|
onLoad: async () => (
|
|
406
356
|
// @ts-ignore
|
|
407
|
-
!
|
|
357
|
+
!a && (H == null ? void 0 : H((m == null ? void 0 : m.page) + 1, m == null ? void 0 : m.size))
|
|
408
358
|
),
|
|
409
359
|
loadingText: "加载中...",
|
|
410
360
|
finishedText: "没有更多了",
|
|
@@ -413,55 +363,55 @@ function gs({
|
|
|
413
363
|
"div",
|
|
414
364
|
{
|
|
415
365
|
className: "mobileList",
|
|
416
|
-
style: { backgroundColor:
|
|
366
|
+
style: { backgroundColor: u == null ? void 0 : u.mobileListBgColor },
|
|
417
367
|
children: [
|
|
418
|
-
|
|
368
|
+
x == null ? void 0 : x.map((e, s) => /* @__PURE__ */ r.jsx(
|
|
419
369
|
"div",
|
|
420
370
|
{
|
|
421
371
|
className: "listItem",
|
|
422
|
-
style: { backgroundColor:
|
|
423
|
-
onClick: () =>
|
|
424
|
-
children:
|
|
425
|
-
var
|
|
372
|
+
style: { backgroundColor: u == null ? void 0 : u.listItemBgColor },
|
|
373
|
+
onClick: () => ot(e, s),
|
|
374
|
+
children: I == null ? void 0 : I.map((t, l) => {
|
|
375
|
+
var o;
|
|
426
376
|
return !(t != null && t.mobileHide) && /* @__PURE__ */ r.jsxs(
|
|
427
377
|
"div",
|
|
428
378
|
{
|
|
429
379
|
className: "row",
|
|
430
|
-
style: { color:
|
|
380
|
+
style: { color: k.colorText },
|
|
431
381
|
children: [
|
|
432
382
|
!t.mobileHideLabel && /* @__PURE__ */ r.jsxs("div", { className: "label", children: [
|
|
433
383
|
`${t.title}`,
|
|
434
384
|
":"
|
|
435
385
|
] }),
|
|
436
|
-
/* @__PURE__ */ r.jsx("div", { className: "value", children: ((
|
|
386
|
+
/* @__PURE__ */ r.jsx("div", { className: "value", children: ((o = t == null ? void 0 : t.render) == null ? void 0 : o.call(
|
|
437
387
|
t,
|
|
438
|
-
|
|
388
|
+
ds(e, (t == null ? void 0 : t.dataIndex) || ""),
|
|
439
389
|
e,
|
|
440
390
|
s
|
|
441
391
|
)) || (e == null ? void 0 : e[t.dataIndex]) })
|
|
442
392
|
]
|
|
443
393
|
},
|
|
444
|
-
|
|
394
|
+
l
|
|
445
395
|
);
|
|
446
396
|
})
|
|
447
397
|
},
|
|
448
398
|
s
|
|
449
399
|
)),
|
|
450
|
-
Array.from({ length:
|
|
400
|
+
Array.from({ length: ue.mobile ?? 2 }).map((e, s) => /* @__PURE__ */ r.jsx(
|
|
451
401
|
"div",
|
|
452
402
|
{
|
|
453
403
|
className: "listItem",
|
|
454
404
|
style: {
|
|
455
|
-
display:
|
|
456
|
-
backgroundColor:
|
|
405
|
+
display: a ? "block" : "none",
|
|
406
|
+
backgroundColor: u == null ? void 0 : u.listItemBgColor
|
|
457
407
|
},
|
|
458
|
-
children: /* @__PURE__ */ r.jsx("div", { className: "row", children:
|
|
459
|
-
|
|
408
|
+
children: /* @__PURE__ */ r.jsx("div", { className: "row", children: ee ? ee() : /* @__PURE__ */ r.jsx(
|
|
409
|
+
qt,
|
|
460
410
|
{
|
|
461
411
|
title: !1,
|
|
462
412
|
paragraph: {
|
|
463
|
-
rows:
|
|
464
|
-
width:
|
|
413
|
+
rows: Ge,
|
|
414
|
+
width: Ie
|
|
465
415
|
},
|
|
466
416
|
active: !0
|
|
467
417
|
}
|
|
@@ -474,118 +424,118 @@ function gs({
|
|
|
474
424
|
)
|
|
475
425
|
}
|
|
476
426
|
), [
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
427
|
+
C ? xe : 0,
|
|
428
|
+
C ? a : 0,
|
|
429
|
+
C ? m : 0,
|
|
430
|
+
C ? u : 0,
|
|
431
|
+
C ? x : 0,
|
|
432
|
+
C ? I : 0,
|
|
433
|
+
C ? ue : 0,
|
|
434
|
+
C ? ee : 0
|
|
485
435
|
]);
|
|
486
|
-
|
|
487
|
-
c.setSelected(!!(
|
|
488
|
-
}, [
|
|
489
|
-
const
|
|
436
|
+
Oe(() => {
|
|
437
|
+
c.setSelected(!!(h != null && h.num));
|
|
438
|
+
}, [h]);
|
|
439
|
+
const Se = f(() => /* @__PURE__ */ r.jsxs("div", { className: "alert", children: [
|
|
490
440
|
/* @__PURE__ */ r.jsx(
|
|
491
|
-
|
|
441
|
+
Ve,
|
|
492
442
|
{
|
|
493
443
|
highlightTag: "strong",
|
|
494
|
-
keywords: `${
|
|
495
|
-
sourceString: `共 ${
|
|
444
|
+
keywords: `${W}`,
|
|
445
|
+
sourceString: `共 ${W} 条`,
|
|
496
446
|
tagClass: "totalText"
|
|
497
447
|
}
|
|
498
448
|
),
|
|
499
|
-
!!
|
|
500
|
-
/* @__PURE__ */ r.jsx(
|
|
449
|
+
!!h && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
450
|
+
/* @__PURE__ */ r.jsx(ae.Text, { className: "splitBorder", children: "/" }),
|
|
501
451
|
/* @__PURE__ */ r.jsx(
|
|
502
|
-
|
|
452
|
+
Ve,
|
|
503
453
|
{
|
|
504
454
|
highlightTag: "strong",
|
|
505
|
-
keywords: `${(
|
|
506
|
-
sourceString: `已选中 ${(
|
|
455
|
+
keywords: `${(h == null ? void 0 : h.num) ?? 0}`,
|
|
456
|
+
sourceString: `已选中 ${(h == null ? void 0 : h.num) ?? 0} 条`
|
|
507
457
|
}
|
|
508
458
|
),
|
|
509
|
-
!!(
|
|
510
|
-
|
|
459
|
+
!!(h != null && h.num) && /* @__PURE__ */ r.jsx(
|
|
460
|
+
ae.Link,
|
|
511
461
|
{
|
|
512
462
|
className: "cleanSelected",
|
|
513
|
-
onClick:
|
|
463
|
+
onClick: h == null ? void 0 : h.onClear,
|
|
514
464
|
children: "取消选中"
|
|
515
465
|
}
|
|
516
466
|
)
|
|
517
467
|
] })
|
|
518
|
-
] }), [
|
|
519
|
-
|
|
520
|
-
},
|
|
521
|
-
row: (e) =>
|
|
522
|
-
} : {}, [
|
|
468
|
+
] }), [W, h]), Mt = (e) => {
|
|
469
|
+
a || se == null || se(e);
|
|
470
|
+
}, Me = A(() => O ? {
|
|
471
|
+
row: (e) => ts({ ...e, loading: a == null ? void 0 : a.toString() })
|
|
472
|
+
} : {}, [O, O ? a : !1]), Pe = A(
|
|
523
473
|
(e) => {
|
|
524
|
-
if (
|
|
525
|
-
return
|
|
474
|
+
if (X)
|
|
475
|
+
return rs({ ...e, hasScrollBar: q, scrollbarSize: M });
|
|
526
476
|
const s = { ...e };
|
|
527
477
|
return /* @__PURE__ */ r.jsx("th", { ...s });
|
|
528
478
|
},
|
|
529
|
-
[
|
|
530
|
-
),
|
|
531
|
-
...
|
|
479
|
+
[q, M, X, c.fullscreen]
|
|
480
|
+
), Pt = f(() => n != null && n.virtual ? {} : me ?? (m == null ? void 0 : m.size) > 10 ? { cell: cs } : {}, [me, n == null ? void 0 : n.virtual, z, m, c.fullscreen]), Rt = f(() => ({
|
|
481
|
+
...B,
|
|
532
482
|
header: {
|
|
533
|
-
...
|
|
534
|
-
cell:
|
|
483
|
+
...B == null ? void 0 : B.header,
|
|
484
|
+
cell: Pe
|
|
535
485
|
},
|
|
536
486
|
body: {
|
|
537
|
-
...
|
|
538
|
-
...
|
|
539
|
-
...
|
|
487
|
+
...Pt,
|
|
488
|
+
...B == null ? void 0 : B.body,
|
|
489
|
+
...Me()
|
|
540
490
|
}
|
|
541
|
-
}), [
|
|
491
|
+
}), [B, Pe, Me]), Lt = f(() => {
|
|
542
492
|
var e;
|
|
543
|
-
if ((
|
|
544
|
-
const s =
|
|
545
|
-
(
|
|
493
|
+
if ((V == null ? void 0 : V.length) > 5 && (S != null && S.current)) {
|
|
494
|
+
const s = V.reduce(
|
|
495
|
+
(l, o) => (o.fixed && (l += o.width), l),
|
|
546
496
|
0
|
|
547
|
-
), t = (e =
|
|
497
|
+
), t = (e = S == null ? void 0 : S.current) == null ? void 0 : e.clientWidth;
|
|
548
498
|
return s > t - 300;
|
|
549
499
|
}
|
|
550
500
|
return !1;
|
|
551
|
-
}, [
|
|
501
|
+
}, [V]);
|
|
552
502
|
return /* @__PURE__ */ r.jsxs(
|
|
553
503
|
"div",
|
|
554
504
|
{
|
|
555
|
-
className:
|
|
505
|
+
className: p("bitzTableBlock", {
|
|
556
506
|
fullscreen: c.fullscreen
|
|
557
507
|
}),
|
|
558
|
-
style:
|
|
559
|
-
...
|
|
508
|
+
style: Bt,
|
|
509
|
+
...ve,
|
|
560
510
|
children: [
|
|
561
|
-
!
|
|
562
|
-
/* @__PURE__ */ r.jsxs("div", { className: "bitzTableContainerBody", ref:
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
511
|
+
!C && /* @__PURE__ */ r.jsxs("div", { ref: g, className: Wt, style: gt, children: [
|
|
512
|
+
/* @__PURE__ */ r.jsxs("div", { className: "bitzTableContainerBody", ref: S, children: [
|
|
513
|
+
Ue && /* @__PURE__ */ r.jsxs("div", { className: "bitzTableToolbarBlock", children: [
|
|
514
|
+
Xe || /* @__PURE__ */ r.jsx("div", {}),
|
|
515
|
+
Ze,
|
|
516
|
+
Ee
|
|
567
517
|
] }),
|
|
568
518
|
/* @__PURE__ */ r.jsx(
|
|
569
519
|
"div",
|
|
570
520
|
{
|
|
571
521
|
className: "stretchLine",
|
|
572
|
-
ref:
|
|
522
|
+
ref: je,
|
|
573
523
|
style: {
|
|
574
|
-
background:
|
|
524
|
+
background: k.colorPrimary,
|
|
575
525
|
bottom: 0
|
|
576
526
|
}
|
|
577
527
|
}
|
|
578
528
|
),
|
|
579
529
|
/* @__PURE__ */ r.jsxs(
|
|
580
|
-
|
|
530
|
+
ss,
|
|
581
531
|
{
|
|
582
|
-
enabledRowDragSort:
|
|
583
|
-
dataSource:
|
|
584
|
-
mergeRowKey:
|
|
585
|
-
onDragEnd:
|
|
532
|
+
enabledRowDragSort: O,
|
|
533
|
+
dataSource: oe,
|
|
534
|
+
mergeRowKey: We,
|
|
535
|
+
onDragEnd: Mt,
|
|
586
536
|
children: [
|
|
587
|
-
|
|
588
|
-
|
|
537
|
+
Lt && /* @__PURE__ */ r.jsx(
|
|
538
|
+
Kt,
|
|
589
539
|
{
|
|
590
540
|
closable: !0,
|
|
591
541
|
type: "error",
|
|
@@ -593,85 +543,85 @@ function gs({
|
|
|
593
543
|
}
|
|
594
544
|
),
|
|
595
545
|
/* @__PURE__ */ r.jsx(
|
|
596
|
-
|
|
546
|
+
Ht,
|
|
597
547
|
{
|
|
598
|
-
...
|
|
599
|
-
bordered:
|
|
600
|
-
columns:
|
|
601
|
-
dataSource:
|
|
602
|
-
loading:
|
|
548
|
+
...n,
|
|
549
|
+
bordered: re,
|
|
550
|
+
columns: V,
|
|
551
|
+
dataSource: oe,
|
|
552
|
+
loading: a,
|
|
603
553
|
pagination: !1,
|
|
604
|
-
scroll:
|
|
605
|
-
expandable:
|
|
606
|
-
rowSelection:
|
|
607
|
-
onRow:
|
|
608
|
-
rowHoverable:
|
|
609
|
-
rowClassName:
|
|
554
|
+
scroll: ct,
|
|
555
|
+
expandable: zt,
|
|
556
|
+
rowSelection: Nt,
|
|
557
|
+
onRow: kt,
|
|
558
|
+
rowHoverable: et,
|
|
559
|
+
rowClassName: St,
|
|
610
560
|
className: "bitzTable",
|
|
611
|
-
components:
|
|
612
|
-
rowKey:
|
|
613
|
-
onChange:
|
|
614
|
-
ref:
|
|
561
|
+
components: Rt,
|
|
562
|
+
rowKey: We,
|
|
563
|
+
onChange: it,
|
|
564
|
+
ref: le
|
|
615
565
|
}
|
|
616
566
|
)
|
|
617
567
|
]
|
|
618
568
|
}
|
|
619
569
|
)
|
|
620
570
|
] }),
|
|
621
|
-
|
|
622
|
-
|
|
571
|
+
v && !!W && /* @__PURE__ */ r.jsxs("div", { className: "bitzTablePagination", ref: ze, children: [
|
|
572
|
+
Se,
|
|
623
573
|
/* @__PURE__ */ r.jsx(
|
|
624
|
-
|
|
574
|
+
_t,
|
|
625
575
|
{
|
|
626
576
|
size: "small",
|
|
627
|
-
enableControl:
|
|
628
|
-
pagination:
|
|
629
|
-
total:
|
|
577
|
+
enableControl: Ye,
|
|
578
|
+
pagination: m,
|
|
579
|
+
total: W,
|
|
630
580
|
dataSource: z,
|
|
631
|
-
resetPage:
|
|
581
|
+
resetPage: Ae,
|
|
632
582
|
hideTotalText: !0,
|
|
633
|
-
paginationEmit:
|
|
583
|
+
paginationEmit: at
|
|
634
584
|
}
|
|
635
585
|
)
|
|
636
586
|
] }),
|
|
637
|
-
!
|
|
587
|
+
!v && !!h && !!W && /* @__PURE__ */ r.jsx("div", { className: "bitzTablePagination", ref: ze, children: Se })
|
|
638
588
|
] }),
|
|
639
|
-
|
|
640
|
-
(
|
|
589
|
+
C && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
590
|
+
(a || !!(z != null && z.length)) && /* @__PURE__ */ r.jsx(r.Fragment, { children: fe ? (
|
|
641
591
|
// @ts-ignore
|
|
642
592
|
/* @__PURE__ */ r.jsx(
|
|
643
|
-
|
|
593
|
+
It,
|
|
644
594
|
{
|
|
645
|
-
onRefresh: async () => !
|
|
646
|
-
children:
|
|
595
|
+
onRefresh: async () => !a && fe(),
|
|
596
|
+
children: ge
|
|
647
597
|
}
|
|
648
598
|
)
|
|
649
|
-
) :
|
|
650
|
-
!
|
|
599
|
+
) : ge }),
|
|
600
|
+
!a && /* @__PURE__ */ r.jsx(vt, { data: z, title: Je, img: Qe }),
|
|
651
601
|
/* @__PURE__ */ r.jsx(
|
|
652
|
-
|
|
602
|
+
Vt,
|
|
653
603
|
{
|
|
654
604
|
className: "tableMobileDrawer",
|
|
655
|
-
open:
|
|
605
|
+
open: tt,
|
|
656
606
|
placement: "bottom",
|
|
657
607
|
height: "auto",
|
|
658
608
|
closable: !1,
|
|
659
|
-
onClose:
|
|
609
|
+
onClose: Te,
|
|
660
610
|
children: /* @__PURE__ */ r.jsxs("div", { className: "drawerBox", children: [
|
|
661
|
-
/* @__PURE__ */ r.jsx("div", { className: "boxBody", children:
|
|
611
|
+
/* @__PURE__ */ r.jsx("div", { className: "boxBody", children: lt ? /* @__PURE__ */ r.jsx("div", { className: "operaList", children: /* @__PURE__ */ r.jsx(Ot, {}) }) : U.map((e, s) => /* @__PURE__ */ r.jsx(
|
|
662
612
|
"div",
|
|
663
613
|
{
|
|
664
614
|
className: "operaList",
|
|
665
|
-
onClick: () =>
|
|
615
|
+
onClick: () => nt(e, s),
|
|
666
616
|
...e.danger && {
|
|
667
|
-
style: { color:
|
|
617
|
+
style: { color: k.colorError }
|
|
668
618
|
},
|
|
669
619
|
children: e.label
|
|
670
620
|
},
|
|
671
621
|
s
|
|
672
622
|
)) }),
|
|
673
623
|
/* @__PURE__ */ r.jsx("div", { className: "boxLine" }),
|
|
674
|
-
/* @__PURE__ */ r.jsx("div", { className: "boxFooter", onClick:
|
|
624
|
+
/* @__PURE__ */ r.jsx("div", { className: "boxFooter", onClick: Te, children: De })
|
|
675
625
|
] })
|
|
676
626
|
}
|
|
677
627
|
)
|
|
@@ -680,7 +630,7 @@ function gs({
|
|
|
680
630
|
}
|
|
681
631
|
);
|
|
682
632
|
}
|
|
683
|
-
const
|
|
633
|
+
const Ds = (v) => /* @__PURE__ */ r.jsx(Yt, { initValue: v, children: /* @__PURE__ */ r.jsx(us, { ...v }) });
|
|
684
634
|
export {
|
|
685
|
-
|
|
635
|
+
Ds as default
|
|
686
636
|
};
|