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