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