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