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