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