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