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