bitz-react-admin-ui 2.5.5 → 2.5.7
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 +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/BitzFluentTimePicker/index.mjs +1 -1
- 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.d.ts +4 -3
- package/dist/components/BitzTable/ActionBar/ActionBar.mjs +80 -12
- package/dist/components/BitzTable/ActionBar/Button.d.ts +7 -3
- package/dist/components/BitzTable/ActionBar/Button.mjs +26 -7
- package/dist/components/BitzTable/ActionBar/index.d.ts +2 -0
- package/dist/components/BitzTable/ActionBar/style.mjs +12 -9
- package/dist/components/BitzTable/ActionCol/index.mjs +129 -33
- 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.d.ts +14 -1
- package/dist/components/BitzTable/Store/index.mjs +91 -54
- package/dist/components/BitzTable/Store/utils/index.mjs +18 -18
- package/dist/components/BitzTable/SubTable/index.mjs +91 -43
- 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/index.d.ts +2 -5
- package/dist/components/BitzTable/Table/index.mjs +477 -232
- 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 +94 -38
- 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 +258 -152
- 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.d.ts +1 -1
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +120 -45
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +9 -2
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +100 -46
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +28 -6
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/style.mjs +6 -4
- package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.d.ts +1 -1
- package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +55 -30
- package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +43 -16
- package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +17 -4
- package/dist/components/BitzTable/ToolBar/Modal/index.d.ts +3 -2
- package/dist/components/BitzTable/ToolBar/Modal/index.mjs +46 -20
- package/dist/components/BitzTable/ToolBar/Modal/style.mjs +12 -8
- 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/index.d.ts +1 -1
- 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 +60 -30
- package/dist/components/BitzTooltip/style.d.ts +2 -1
- package/dist/components/BitzTooltip/style.mjs +15 -12
- 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/.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 +27 -5
- package/dist/utils/create.mjs +7 -1
- package/package.json +1 -1
|
@@ -1,217 +1,242 @@
|
|
|
1
1
|
import { j as r } from "../../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { useContext as
|
|
2
|
+
import { useContext as qe, useState as z, useEffect as V, useMemo as i, useRef as D, useCallback as A } 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 Nt, Typography as Ke, Table as Wt, Spin as Mt } from "antd";
|
|
5
|
+
import F from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
6
|
+
import Pt from "../../BitzDrawer/index.mjs";
|
|
7
|
+
import Rt from "../../BitzPagination/index.mjs";
|
|
8
|
+
import Lt from "../../BitzNoData/index.mjs";
|
|
9
9
|
import "../../BitzList/index.less.mjs";
|
|
10
|
-
import
|
|
10
|
+
import Ht from "../../BitzList/List.mjs";
|
|
11
11
|
import "../../BitzPullRefresh/style/index.less.mjs";
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import { loopFilter as
|
|
15
|
-
import
|
|
12
|
+
import $t from "../../BitzPullRefresh/PullRefresh.mjs";
|
|
13
|
+
import qt, { BitzTableContext as Kt, toolCols as Ot } from "../Store/index.mjs";
|
|
14
|
+
import { loopFilter as Vt, columnSort as Dt, genColumnKey as Oe } from "../Store/utils/index.mjs";
|
|
15
|
+
import _t 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 Ve from "../../BitzHighlight/index.mjs";
|
|
19
|
+
import It 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 Jt from "../../../node_modules/.store/antd@5.17.3/node_modules/antd/locale/en_US.mjs";
|
|
22
|
+
import { getColumnsWithTool as Qt, loopBuildSkeleton as Ut, resetScroll as De } from "./utils.mjs";
|
|
23
|
+
import { getCssVar as Xt } from "./style.mjs";
|
|
24
|
+
import Zt from "./SortableRow.mjs";
|
|
25
|
+
import pt from "./SortTableContext.mjs";
|
|
26
26
|
import vt from "./ResizableTitle copy.mjs";
|
|
27
|
-
import
|
|
27
|
+
import Et from "../TextOverflow/index.mjs";
|
|
28
28
|
import "./index.less.mjs";
|
|
29
|
-
import { ConfigContext as
|
|
30
|
-
import
|
|
31
|
-
function
|
|
32
|
-
showPagination:
|
|
29
|
+
import { ConfigContext as At } from "../../../node_modules/.store/antd@5.17.3/node_modules/antd/es/config-provider/context.mjs";
|
|
30
|
+
import Ft from "../../../node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/at.mjs";
|
|
31
|
+
function es({
|
|
32
|
+
showPagination: _ = !0,
|
|
33
33
|
height: B,
|
|
34
|
-
minHeight:
|
|
34
|
+
minHeight: I,
|
|
35
35
|
dataSource: C,
|
|
36
|
-
total:
|
|
37
|
-
columns:
|
|
36
|
+
total: T = 0,
|
|
37
|
+
columns: ee,
|
|
38
38
|
loading: c,
|
|
39
|
-
skeletonNum:
|
|
39
|
+
skeletonNum: J = {
|
|
40
40
|
pc: 10,
|
|
41
41
|
mobile: 10
|
|
42
42
|
},
|
|
43
|
-
skeletonRender:
|
|
44
|
-
skeletonRowNum:
|
|
45
|
-
skeletonRowsWidth:
|
|
43
|
+
skeletonRender: te,
|
|
44
|
+
skeletonRowNum: _e = 4,
|
|
45
|
+
skeletonRowsWidth: Ge = ["35%", "100%", "100%", "60%"],
|
|
46
46
|
// mobileLoadEmit,
|
|
47
|
-
mobileRefreshEmit:
|
|
47
|
+
mobileRefreshEmit: ue,
|
|
48
48
|
operationFilter: a,
|
|
49
|
-
enableControlPage:
|
|
49
|
+
enableControlPage: Ye,
|
|
50
50
|
pagination: x,
|
|
51
|
-
paginationEmit:
|
|
51
|
+
paginationEmit: q = () => {
|
|
52
52
|
},
|
|
53
|
-
onChange:
|
|
54
|
-
enabledRowDragSort:
|
|
55
|
-
onRowDragEnd:
|
|
56
|
-
resizableColumns:
|
|
57
|
-
mobilePageHeight:
|
|
58
|
-
mobileCancelText:
|
|
59
|
-
noDataTitle:
|
|
60
|
-
noDataImg:
|
|
61
|
-
color:
|
|
62
|
-
size:
|
|
63
|
-
showTableTool:
|
|
64
|
-
tableAction:
|
|
65
|
-
tableToolbar:
|
|
66
|
-
selectionBar:
|
|
53
|
+
onChange: se,
|
|
54
|
+
enabledRowDragSort: K,
|
|
55
|
+
onRowDragEnd: re,
|
|
56
|
+
resizableColumns: Q,
|
|
57
|
+
mobilePageHeight: ts = 500,
|
|
58
|
+
mobileCancelText: Ie = "取消",
|
|
59
|
+
noDataTitle: Je,
|
|
60
|
+
noDataImg: Qe,
|
|
61
|
+
color: ss,
|
|
62
|
+
size: fe,
|
|
63
|
+
showTableTool: Ue = !0,
|
|
64
|
+
tableAction: Xe,
|
|
65
|
+
tableToolbar: Ze,
|
|
66
|
+
selectionBar: pe,
|
|
67
67
|
scroll: u,
|
|
68
|
-
components:
|
|
69
|
-
expandable:
|
|
70
|
-
rowSelection:
|
|
68
|
+
components: S,
|
|
69
|
+
expandable: w,
|
|
70
|
+
rowSelection: $,
|
|
71
71
|
selectionAlert: h,
|
|
72
|
-
resetPage:
|
|
72
|
+
resetPage: ve,
|
|
73
73
|
...d
|
|
74
74
|
}) {
|
|
75
|
-
var
|
|
76
|
-
const { token:
|
|
77
|
-
|
|
75
|
+
var $e;
|
|
76
|
+
const { token: g } = Gt.useToken(), { Table: f } = g, de = f.tableSpaceBetweenPage ?? 10, Ee = f.cellPaddingInline ?? Yt, U = f.minHeight ?? 500, { showColumnBorder: X, hideRowBorder: he, rowHoverable: Ae, ...l } = qe(Kt), [Fe, Z] = z(!1), [y, et] = z([]);
|
|
77
|
+
V(() => {
|
|
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]), et(e);
|
|
80
80
|
}, [b ? C : 0]);
|
|
81
|
-
const
|
|
82
|
-
var o, m,
|
|
81
|
+
const me = i(() => !!(y != null && y.length) && (y == null ? void 0 : y.length) >= T, [y, T]), [p, tt] = z([]), [st, be] = z(!1), rt = async (e, t) => {
|
|
82
|
+
var o, m, k;
|
|
83
83
|
let s, n = !1;
|
|
84
84
|
if (typeof a == "function")
|
|
85
|
-
s = (o = a == null ? void 0 : a(e, t)) == null ? void 0 : o.filter(
|
|
85
|
+
s = (o = a == null ? void 0 : a(e, t)) == null ? void 0 : o.filter(
|
|
86
|
+
(H) => H.type !== "divider"
|
|
87
|
+
);
|
|
86
88
|
else if (s = (m = a == null ? void 0 : a.custom) == null ? void 0 : m.call(a, e, t), a != null && a.request) {
|
|
87
|
-
|
|
89
|
+
be(!0), Z(!0), n = !0;
|
|
88
90
|
try {
|
|
89
|
-
const
|
|
90
|
-
(
|
|
91
|
-
var
|
|
91
|
+
const H = await (a == null ? void 0 : a.request(e, t));
|
|
92
|
+
(k = a.fieldsName) != null && k.label ? s = H == null ? void 0 : H.map((G) => {
|
|
93
|
+
var Y;
|
|
92
94
|
return {
|
|
93
|
-
...
|
|
94
|
-
label:
|
|
95
|
+
...G,
|
|
96
|
+
label: G == null ? void 0 : G[((Y = a.fieldsName) == null ? void 0 : Y.label) ?? "label"]
|
|
95
97
|
};
|
|
96
|
-
}) : s =
|
|
98
|
+
}) : s = H ?? [];
|
|
97
99
|
} finally {
|
|
98
|
-
|
|
100
|
+
be(!1);
|
|
99
101
|
}
|
|
100
102
|
}
|
|
101
|
-
s != null && s.length && (
|
|
102
|
-
},
|
|
103
|
-
|
|
104
|
-
},
|
|
103
|
+
s != null && s.length && (tt(s), n || Z(!0));
|
|
104
|
+
}, ye = () => {
|
|
105
|
+
Z(!1);
|
|
106
|
+
}, nt = (e, t) => {
|
|
105
107
|
var s, n;
|
|
106
|
-
|
|
107
|
-
},
|
|
108
|
-
|
|
109
|
-
},
|
|
110
|
-
|
|
111
|
-
},
|
|
108
|
+
Z(!1), (s = e.onClick) == null || s.call(e), !(e != null && e.onClick) && typeof a != "function" && (a != null && a.onClick) && a.onClick((n = p == null ? void 0 : p[t]) == null ? void 0 : n.key);
|
|
109
|
+
}, ne = D(null), Ce = D(null), j = D(null), xe = D(null), oe = D(null), O = _t(oe), ot = (...e) => {
|
|
110
|
+
De(ne), se == null || se(...e);
|
|
111
|
+
}, lt = (...e) => {
|
|
112
|
+
De(ne), q == null || q(...e);
|
|
113
|
+
}, N = i(() => !(u != null && u.auto) && Q, [u == null ? void 0 : u.auto, Q]), we = () => {
|
|
112
114
|
var s;
|
|
113
|
-
const e = (s =
|
|
115
|
+
const e = (s = j.current) == null ? void 0 : s.querySelectorAll(
|
|
116
|
+
"& > .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)"
|
|
117
|
+
), t = [];
|
|
114
118
|
if (e == null || e.forEach((n) => {
|
|
115
119
|
var o;
|
|
116
|
-
t.push(
|
|
120
|
+
t.push(
|
|
121
|
+
((o = n.querySelector("& > .operationCol .actionGroup")) == null ? void 0 : o.clientWidth) || 0
|
|
122
|
+
);
|
|
117
123
|
}), t.length)
|
|
118
|
-
return Math.ceil(Math.max(...t)) +
|
|
119
|
-
},
|
|
120
|
-
var n, o, m,
|
|
121
|
-
let e = (n =
|
|
122
|
-
|
|
124
|
+
return Math.ceil(Math.max(...t)) + Ee * 2;
|
|
125
|
+
}, ct = () => {
|
|
126
|
+
var n, o, m, k;
|
|
127
|
+
let e = (n = j.current) == null ? void 0 : n.querySelector(
|
|
128
|
+
".ant-table-content"
|
|
129
|
+
);
|
|
130
|
+
e || (e = (o = j.current) == null ? void 0 : o.querySelector(
|
|
131
|
+
".ant-table-body"
|
|
132
|
+
));
|
|
123
133
|
let t = !1, s = 0;
|
|
124
|
-
return e && (e.clientWidth - (
|
|
125
|
-
|
|
126
|
-
|
|
134
|
+
return e && (e.clientWidth - (X ? 1 : 0), t = e.offsetWidth - e.clientWidth > 0, s = (k = (m = j.current) == null ? void 0 : m.querySelector(
|
|
135
|
+
".ant-table-cell-scrollbar"
|
|
136
|
+
)) == null ? void 0 : k.offsetWidth), { hasScrollBar: t, scrollbarSize: s };
|
|
137
|
+
}, ge = i(() => {
|
|
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) => ({
|
|
140
|
+
key: `${Date.now()}${o}`
|
|
141
|
+
}));
|
|
142
|
+
}, [C]), v = i(() => c ? ge : C ?? [], [c, C, ge]), [W, it] = z(!1), [M, at] = z(0);
|
|
143
|
+
V(() => {
|
|
144
|
+
const { hasScrollBar: e, scrollbarSize: t } = ct();
|
|
145
|
+
it(e), at(t);
|
|
146
|
+
}, [v, l.fullscreen]);
|
|
147
|
+
const le = i(() => {
|
|
127
148
|
if (typeof B > "u")
|
|
128
|
-
return
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
s = parseInt(Oe.getPropertyValue(`--${l.tableSize}Table-height`)), n = parseInt(Oe.getPropertyValue("--toolbar-height"));
|
|
149
|
+
return;
|
|
150
|
+
let e = 40, t = 40;
|
|
151
|
+
if (j.current) {
|
|
152
|
+
const Y = window.getComputedStyle(j.current);
|
|
153
|
+
e = parseInt(
|
|
154
|
+
Y.getPropertyValue(`--${l.tableSize}Table-height`)
|
|
155
|
+
), t = parseInt(Y.getPropertyValue("--toolbar-height"));
|
|
136
156
|
}
|
|
137
|
-
const
|
|
138
|
-
return
|
|
157
|
+
const s = (O == null ? void 0 : O.height) || 0, n = s ? de : 0, o = I ?? U, m = B >= o ? B : o;
|
|
158
|
+
return (l.fullscreen ? window.innerHeight : m) - s - n - t - e;
|
|
139
159
|
}, [
|
|
140
160
|
l.fullscreen,
|
|
141
161
|
B,
|
|
142
|
-
G,
|
|
143
162
|
I,
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
163
|
+
U,
|
|
164
|
+
O == null ? void 0 : O.height,
|
|
165
|
+
v,
|
|
147
166
|
l.tableSize
|
|
148
|
-
]),
|
|
167
|
+
]), ut = () => {
|
|
149
168
|
let e = 0;
|
|
150
|
-
if (
|
|
151
|
-
const s = window.getComputedStyle(
|
|
169
|
+
if (j.current) {
|
|
170
|
+
const s = window.getComputedStyle(j.current), n = parseInt(
|
|
171
|
+
s.getPropertyValue("--toolCell-paddingInline")
|
|
172
|
+
);
|
|
152
173
|
e = parseInt(s.getPropertyValue("--fontSize")) + 4 + 2 * n;
|
|
153
174
|
}
|
|
154
175
|
let t = 0;
|
|
155
|
-
return
|
|
156
|
-
}, { sortColumns: P, toolColWidth:
|
|
157
|
-
const t = (
|
|
176
|
+
return $ && (t += e), w && (t += e), K && (t += e), t;
|
|
177
|
+
}, { sortColumns: P, toolColWidth: je } = i(() => {
|
|
178
|
+
const t = (ee ?? []).filter((m) => !Ot.includes(m)), n = Vt(
|
|
179
|
+
t,
|
|
180
|
+
l.columnsMap,
|
|
181
|
+
l.finish
|
|
182
|
+
).sort(Dt(l.columnsMap));
|
|
158
183
|
let o = 0;
|
|
159
|
-
return b || (o =
|
|
160
|
-
}, [l.columnsMap, l.finish,
|
|
161
|
-
|
|
184
|
+
return b || (o = ut()), { sortColumns: n, toolColWidth: o };
|
|
185
|
+
}, [l.columnsMap, l.finish, ee]), [R, ke] = z([]), [ce, ze] = z(!1), E = D(!1);
|
|
186
|
+
V(() => {
|
|
162
187
|
var s;
|
|
163
188
|
const e = d.columnsState ?? {};
|
|
164
|
-
((s = Object.keys(e)) == null ? void 0 : s.length) || (
|
|
165
|
-
}, []),
|
|
166
|
-
if (
|
|
189
|
+
((s = Object.keys(e)) == null ? void 0 : s.length) || (E.current = !0);
|
|
190
|
+
}, []), V(() => {
|
|
191
|
+
if (N && (!ce || !E.current)) {
|
|
167
192
|
const e = P.map((t, s) => {
|
|
168
193
|
let n = t.width;
|
|
169
|
-
return t != null && t.isOperationCol && (t != null && t.useMaxWidth) && (n =
|
|
170
|
-
key:
|
|
194
|
+
return t != null && t.isOperationCol && (t != null && t.useMaxWidth) && (n = we() ?? t.width), {
|
|
195
|
+
key: Oe(t, s),
|
|
171
196
|
width: n ?? 0
|
|
172
197
|
};
|
|
173
198
|
});
|
|
174
|
-
|
|
199
|
+
ke(e), l.finish && (E.current = !0, ze(!0));
|
|
175
200
|
}
|
|
176
|
-
}, [P,
|
|
177
|
-
if (
|
|
201
|
+
}, [P, N, ce, l.finish]), V(() => {
|
|
202
|
+
if (N && ce && E.current) {
|
|
178
203
|
const e = P.map((t, s) => {
|
|
179
204
|
let n = t.width;
|
|
180
|
-
return t != null && t.isOperationCol && (t != null && t.useMaxWidth) && (n =
|
|
181
|
-
key:
|
|
205
|
+
return t != null && t.isOperationCol && (t != null && t.useMaxWidth) && (n = we() ?? t.width), {
|
|
206
|
+
key: Oe(t, s),
|
|
182
207
|
width: n ?? 0
|
|
183
208
|
};
|
|
184
209
|
});
|
|
185
|
-
|
|
210
|
+
ke(e);
|
|
186
211
|
}
|
|
187
|
-
}, [P,
|
|
188
|
-
const [
|
|
189
|
-
if (
|
|
212
|
+
}, [P, N]);
|
|
213
|
+
const [ie, ft] = z(0), dt = i(() => {
|
|
214
|
+
if (N && ie)
|
|
190
215
|
return {
|
|
191
|
-
width:
|
|
216
|
+
width: ie,
|
|
192
217
|
maxWidth: "100%"
|
|
193
218
|
};
|
|
194
|
-
}, [
|
|
219
|
+
}, [N, ie]), Be = i(() => {
|
|
195
220
|
let e;
|
|
196
|
-
if (typeof
|
|
221
|
+
if (typeof le == "number" && (e = le - 1), typeof (u == null ? void 0 : u.y) == "number" && (e = u.y - 2), u != null && u.auto)
|
|
197
222
|
return {
|
|
198
223
|
x: void 0,
|
|
199
224
|
y: e
|
|
200
225
|
};
|
|
201
226
|
let t = u == null ? void 0 : u.x;
|
|
202
|
-
if (
|
|
203
|
-
t = R.reduce((o, m) => o + m.width, 0), t +=
|
|
204
|
-
const s =
|
|
205
|
-
|
|
227
|
+
if (Q) {
|
|
228
|
+
t = R.reduce((o, m) => o + m.width, 0), t += je;
|
|
229
|
+
const s = X ? 1 : 0, n = W ? +M : 0;
|
|
230
|
+
ft(t + s + n);
|
|
206
231
|
}
|
|
207
232
|
return u != null && u.y ? { x: t, y: u.y } : { x: t, y: e };
|
|
208
233
|
}, [
|
|
209
234
|
u,
|
|
210
|
-
|
|
211
|
-
|
|
235
|
+
le,
|
|
236
|
+
Q,
|
|
212
237
|
R,
|
|
213
|
-
|
|
214
|
-
|
|
238
|
+
je,
|
|
239
|
+
X,
|
|
215
240
|
W,
|
|
216
241
|
M
|
|
217
242
|
]), L = i(() => {
|
|
@@ -222,44 +247,45 @@ function ts({
|
|
|
222
247
|
return {
|
|
223
248
|
...s,
|
|
224
249
|
...e === n && {
|
|
225
|
-
className:
|
|
250
|
+
className: F(s.className, "lastColumn")
|
|
226
251
|
},
|
|
227
252
|
width: R.length ? (o = R[n]) == null ? void 0 : o.width : (s == null ? void 0 : s.width) || void 0,
|
|
228
|
-
...
|
|
253
|
+
...Be.x !== void 0 ? {
|
|
229
254
|
onHeaderCell: (m) => ({
|
|
230
255
|
width: m.width,
|
|
231
|
-
stretchref:
|
|
232
|
-
datagridref:
|
|
233
|
-
onResize:
|
|
256
|
+
stretchref: Ce,
|
|
257
|
+
datagridref: xe,
|
|
258
|
+
onResize: ht(n)
|
|
234
259
|
})
|
|
235
260
|
} : {},
|
|
236
261
|
...!(s != null && s.render) && s.copyable ? {
|
|
237
|
-
render: (m) => ["number", "bigint"].includes(typeof m) ? m : r.jsx(
|
|
262
|
+
render: (m) => ["number", "bigint"].includes(typeof m) ? m : /* @__PURE__ */ r.jsx(Et, { value: m })
|
|
238
263
|
} : {}
|
|
239
264
|
};
|
|
240
265
|
});
|
|
241
|
-
return
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
266
|
+
return Qt(
|
|
267
|
+
ee,
|
|
268
|
+
t,
|
|
269
|
+
K,
|
|
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({
|
|
245
276
|
...l.columnsMap,
|
|
246
|
-
[
|
|
247
|
-
...l.columnsMap[
|
|
277
|
+
[k]: {
|
|
278
|
+
...l.columnsMap[k],
|
|
248
279
|
width: R[e].width + m
|
|
249
280
|
}
|
|
250
281
|
});
|
|
251
|
-
},
|
|
252
|
-
|
|
253
|
-
return Array.from({ length: t }).map((n, o) => ({
|
|
254
|
-
key: `${Date.now()}${o}`
|
|
255
|
-
}));
|
|
256
|
-
}, [C]), We = i(() => c ? Se : C ?? [], [c, C, Se]), { table: ue, locale: Ct = It } = Ve(Ft), xt = { ...Ct.Table }, wt = ((Ke = ue == null ? void 0 : ue.expandable) == null ? void 0 : Ke.expandIcon) || (g == null ? void 0 : g.expandIcon) || pt(xt), Me = i(() => {
|
|
257
|
-
if (g)
|
|
282
|
+
}, Te = i(() => Ut(L), [L]), mt = i(() => c ? Te : L, [c, L, Te]), { table: ae, locale: bt = Jt } = qe(At), yt = { ...bt.Table }, Ct = (($e = ae == null ? void 0 : ae.expandable) == null ? void 0 : $e.expandIcon) || (w == null ? void 0 : w.expandIcon) || It(yt), Se = i(() => {
|
|
283
|
+
if (w)
|
|
258
284
|
return {
|
|
259
|
-
...
|
|
260
|
-
expandedRowRender: () => r.jsx(r.Fragment, {}),
|
|
285
|
+
...w,
|
|
286
|
+
expandedRowRender: () => /* @__PURE__ */ r.jsx(r.Fragment, {}),
|
|
261
287
|
expandIcon: (e) => {
|
|
262
|
-
const t =
|
|
288
|
+
const t = Ct(e);
|
|
263
289
|
return {
|
|
264
290
|
...t,
|
|
265
291
|
props: {
|
|
@@ -267,47 +293,57 @@ function ts({
|
|
|
267
293
|
disabled: !0,
|
|
268
294
|
style: {
|
|
269
295
|
...t.props.style,
|
|
270
|
-
backgroundColor:
|
|
296
|
+
backgroundColor: g.colorBgContainerDisabled
|
|
271
297
|
}
|
|
272
298
|
}
|
|
273
299
|
};
|
|
274
300
|
}
|
|
275
301
|
};
|
|
276
|
-
}, [
|
|
277
|
-
if (
|
|
302
|
+
}, [w]), xt = i(() => c ? Se : w, [c, w, Se]), Ne = i(() => {
|
|
303
|
+
if ($)
|
|
278
304
|
return {
|
|
279
|
-
|
|
305
|
+
...$,
|
|
280
306
|
selectedRowKeys: [],
|
|
281
307
|
getCheckboxProps: () => ({ disabled: !0 })
|
|
282
308
|
};
|
|
283
|
-
}, [
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
309
|
+
}, [$]), wt = i(() => c ? Ne : $, [c, $, Ne]), We = i(() => c ? "key" : d.rowKey, [c, d.rowKey]), Me = i(() => `${fe ?? l.stylesConfig.size}BitzTable`, [fe, l.stylesConfig.size]), gt = A(
|
|
310
|
+
(e, t) => {
|
|
311
|
+
var n;
|
|
312
|
+
if (!d.onRow || c)
|
|
313
|
+
return {};
|
|
314
|
+
const s = (n = d.onRow) == null ? void 0 : n.call(d, e, t);
|
|
315
|
+
return s.onClick && (s.className = "rowPointerCursor"), s;
|
|
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
|
+
), [
|
|
290
326
|
d.className,
|
|
291
|
-
|
|
327
|
+
Me,
|
|
292
328
|
W,
|
|
293
329
|
l.fullscreen,
|
|
294
|
-
|
|
330
|
+
he,
|
|
295
331
|
d.sticky
|
|
296
|
-
]),
|
|
297
|
-
"--container-bgColor":
|
|
298
|
-
}), [
|
|
299
|
-
const e =
|
|
332
|
+
]), kt = i(() => ({
|
|
333
|
+
"--container-bgColor": g.colorBgContainer
|
|
334
|
+
}), [g.colorBgContainer]), zt = i(() => {
|
|
335
|
+
const e = I ?? U;
|
|
300
336
|
let t;
|
|
301
337
|
B && (t = B >= e ? B : e);
|
|
302
338
|
const s = l.fullscreen ? "100%" : t;
|
|
303
339
|
let n;
|
|
304
|
-
return (M ?? 0) > 0 && (n = M),
|
|
340
|
+
return (M ?? 0) > 0 && (n = M), Xt({
|
|
305
341
|
height: s ?? "auto",
|
|
306
|
-
token:
|
|
307
|
-
evenRowBgColor: l.zebra ? f == null ? void 0 : f.evenRowBgColor :
|
|
342
|
+
token: g,
|
|
343
|
+
evenRowBgColor: l.zebra ? f == null ? void 0 : f.evenRowBgColor : g.colorBgContainer,
|
|
308
344
|
table: f,
|
|
309
|
-
gap:
|
|
310
|
-
borderColor: (f == null ? void 0 : f.borderColor) ||
|
|
345
|
+
gap: de,
|
|
346
|
+
borderColor: (f == null ? void 0 : f.borderColor) || g.colorBorderSecondary,
|
|
311
347
|
scrollbarWidth: n,
|
|
312
348
|
other: d.style
|
|
313
349
|
});
|
|
@@ -315,77 +351,286 @@ function ts({
|
|
|
315
351
|
d.style,
|
|
316
352
|
l.fullscreen,
|
|
317
353
|
B,
|
|
318
|
-
G,
|
|
319
354
|
I,
|
|
355
|
+
U,
|
|
320
356
|
f,
|
|
321
357
|
l == null ? void 0 : l.zebra,
|
|
322
358
|
M
|
|
323
|
-
]),
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
359
|
+
]), Bt = A(
|
|
360
|
+
(e, t, s) => {
|
|
361
|
+
const n = t % 2 === 0 ? "oddRow" : "evenRow";
|
|
362
|
+
if (d.rowClassName) {
|
|
363
|
+
const o = d.rowClassName(e, t, s);
|
|
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
|
+
)
|
|
328
443
|
}
|
|
329
|
-
|
|
330
|
-
|
|
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: r.jsxs("div", { className: "mobileList", style: { backgroundColor: f == null ? void 0 : f.mobileListBgColor }, children: [y == null ? void 0 : y.map((e, t) => r.jsx("div", { className: "listItem", style: { backgroundColor: f == null ? void 0 : f.listItemBgColor }, onClick: () => ct(e, t), children: L == null ? void 0 : L.map((s, n) => {
|
|
334
|
-
var o;
|
|
335
|
-
return !(s != null && s.mobileHide) && r.jsxs("div", { className: "row", style: { color: j.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, es(e, (s == null ? void 0 : s.dataIndex) || ""), e, t)) || (e == null ? void 0 : e[s.dataIndex]) })] }, n);
|
|
336
|
-
}) }, t)), Array.from({ length: Y.mobile ?? 2 }).map((e, t) => r.jsx("div", { className: "listItem", style: {
|
|
337
|
-
display: c ? "block" : "none",
|
|
338
|
-
backgroundColor: f == null ? void 0 : f.listItemBgColor
|
|
339
|
-
}, children: r.jsx("div", { className: "row", children: F ? F() : r.jsx(Mt, { title: !1, paragraph: {
|
|
340
|
-
rows: pe,
|
|
341
|
-
width: Ie
|
|
342
|
-
}, active: !0 }) }) }, `${Date.now()}${t}`))] }) }), [
|
|
343
|
-
b ? Ce : 0,
|
|
444
|
+
), [
|
|
445
|
+
b ? me : 0,
|
|
344
446
|
b ? c : 0,
|
|
345
447
|
b ? x : 0,
|
|
346
448
|
b ? f : 0,
|
|
347
449
|
b ? y : 0,
|
|
348
450
|
b ? L : 0,
|
|
349
|
-
b ?
|
|
350
|
-
b ?
|
|
451
|
+
b ? J : 0,
|
|
452
|
+
b ? te : 0
|
|
351
453
|
]);
|
|
352
|
-
|
|
454
|
+
V(() => {
|
|
353
455
|
l.setSelected(!!(h != null && h.num));
|
|
354
456
|
}, [h]);
|
|
355
|
-
const
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
457
|
+
const Re = i(() => /* @__PURE__ */ r.jsxs("div", { className: "alert", children: [
|
|
458
|
+
/* @__PURE__ */ r.jsx(
|
|
459
|
+
Ve,
|
|
460
|
+
{
|
|
461
|
+
highlightTag: "strong",
|
|
462
|
+
keywords: `${T}`,
|
|
463
|
+
sourceString: `共 ${T} 条`,
|
|
464
|
+
tagClass: "totalText"
|
|
465
|
+
}
|
|
466
|
+
),
|
|
467
|
+
!!h && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
468
|
+
/* @__PURE__ */ r.jsx(Ke.Text, { className: "splitBorder", children: "/" }),
|
|
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,
|
|
367
503
|
header: {
|
|
368
|
-
...
|
|
369
|
-
cell:
|
|
504
|
+
...S == null ? void 0 : S.header,
|
|
505
|
+
cell: He
|
|
370
506
|
},
|
|
371
507
|
body: {
|
|
372
|
-
...
|
|
373
|
-
|
|
508
|
+
...S == null ? void 0 : S.body,
|
|
509
|
+
...Le()
|
|
510
|
+
}
|
|
511
|
+
}), [S, He, Le]);
|
|
512
|
+
return /* @__PURE__ */ r.jsxs(
|
|
513
|
+
"div",
|
|
514
|
+
{
|
|
515
|
+
className: F("bitzTableBlock", {
|
|
516
|
+
fullscreen: l.fullscreen
|
|
517
|
+
}),
|
|
518
|
+
style: kt,
|
|
519
|
+
children: [
|
|
520
|
+
!b && /* @__PURE__ */ r.jsxs("div", { ref: j, className: jt, style: zt, children: [
|
|
521
|
+
/* @__PURE__ */ r.jsxs("div", { className: "bitzTableContainerBody", ref: xe, children: [
|
|
522
|
+
Ue && /* @__PURE__ */ r.jsxs("div", { className: "bitzTableToolbarBlock", children: [
|
|
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
|
+
]
|
|
374
630
|
}
|
|
375
|
-
|
|
376
|
-
return r.jsxs("div", { className: v("bitzTableBlock", {
|
|
377
|
-
fullscreen: l.fullscreen
|
|
378
|
-
}), style: Bt, children: [!b && r.jsxs("div", { ref: k, className: Tt, style: zt, children: [r.jsxs("div", { className: "bitzTableContainerBody", ref: re, children: [Ze && r.jsxs("div", { className: "bitzTableToolbarBlock", children: [ve || r.jsx("div", {}), Ae, Fe] }), r.jsx("div", { className: "stretchLine", ref: ge, style: {
|
|
379
|
-
background: j.colorPrimary,
|
|
380
|
-
bottom: W ? "var(--scrollbar-width)" : 0
|
|
381
|
-
} }), r.jsx(Zt, { enabledRowDragSort: q, dataSource: We, mergeRowKey: Re, onDragEnd: St, children: r.jsx(Pt, { ...d, bordered: J, columns: yt, dataSource: We, loading: !1, pagination: !1, scroll: ze, expandable: gt, rowSelection: jt, style: mt, onRow: kt, rowHoverable: st, rowClassName: Nt, className: "bitzTable", components: Wt, rowKey: Re, onChange: at, ref: se }) })] }), V && !!z && r.jsxs("div", { className: "bitzTablePagination", ref: le, children: [De, r.jsx(Ht, { size: "small", enableControl: Je, pagination: x, total: z, dataSource: C, resetPage: et, hideTotalText: !0, paginationEmit: ut })] }), !V && !!h && !!z && r.jsx("div", { className: "bitzTablePagination", ref: le, children: De })] }), b && r.jsxs(r.Fragment, { children: [(c || !!(C != null && C.length)) && r.jsx(r.Fragment, { children: he ? (
|
|
382
|
-
// @ts-ignore
|
|
383
|
-
r.jsx(qt, { onRefresh: async () => !c && he(), children: He })
|
|
384
|
-
) : He }), !c && r.jsx(Dt, { data: C, title: Ue, img: Xe }), r.jsx(Lt, { className: "tableMobileDrawer", open: nt, placement: "bottom", height: "auto", closable: !1, onClose: we, children: r.jsxs("div", { className: "drawerBox", children: [r.jsx("div", { className: "boxBody", children: lt ? r.jsx("div", { className: "operaList", children: r.jsx(Rt, {}) }) : U.map((e, t) => r.jsx("div", { className: "operaList", onClick: () => it(e, t), ...e.danger && {
|
|
385
|
-
style: { color: j.colorError }
|
|
386
|
-
}, children: e.label }, t)) }), r.jsx("div", { className: "boxLine" }), r.jsx("div", { className: "boxFooter", onClick: we, children: Qe })] }) })] })] });
|
|
631
|
+
);
|
|
387
632
|
}
|
|
388
|
-
const
|
|
633
|
+
const Hs = (_) => /* @__PURE__ */ r.jsx(qt, { initValue: _, children: /* @__PURE__ */ r.jsx(es, { ..._ }) });
|
|
389
634
|
export {
|
|
390
|
-
|
|
635
|
+
Hs as default
|
|
391
636
|
};
|