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