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