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