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