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