bitz-react-admin-ui 2.2.8 → 2.3.0
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/dayjs.min.mjs +5 -2
- package/dist/_virtual/dayjs.min2.mjs +4 -0
- package/dist/assets/iconfont/IconChenggong.mjs +10 -4
- package/dist/assets/iconfont/IconClose.mjs +7 -1
- package/dist/assets/iconfont/IconColumnCancelFixed.mjs +25 -4
- package/dist/assets/iconfont/IconColumnFixedLeft.mjs +29 -8
- package/dist/assets/iconfont/IconColumnFixedRight.mjs +28 -7
- package/dist/assets/iconfont/IconCuowu.mjs +8 -2
- package/dist/assets/iconfont/IconDragOrder.mjs +28 -7
- package/dist/assets/iconfont/IconDuigoux.mjs +8 -2
- package/dist/assets/iconfont/IconFabu.mjs +18 -3
- package/dist/assets/iconfont/IconFanhui.mjs +11 -5
- package/dist/assets/iconfont/IconGaojisousuo.mjs +10 -4
- package/dist/assets/iconfont/IconHangfengexian.mjs +27 -4
- package/dist/assets/iconfont/IconHangliefengexian.mjs +27 -4
- package/dist/assets/iconfont/IconIcFluentHomeRegular.mjs +11 -5
- package/dist/assets/iconfont/IconIcon21.mjs +8 -2
- package/dist/assets/iconfont/IconJincoude.mjs +9 -3
- package/dist/assets/iconfont/IconJinggao.mjs +8 -2
- package/dist/assets/iconfont/IconKuansongde.mjs +11 -5
- package/dist/assets/iconfont/IconLiefengexian.mjs +28 -5
- package/dist/assets/iconfont/IconMore.mjs +26 -4
- package/dist/assets/iconfont/IconShanchu.mjs +11 -5
- package/dist/assets/iconfont/IconShanchu1.mjs +18 -3
- package/dist/assets/iconfont/IconSousuo.mjs +10 -4
- package/dist/assets/iconfont/IconTejincou.mjs +7 -1
- package/dist/assets/iconfont/IconTekuansong.mjs +11 -5
- package/dist/assets/iconfont/IconTishi1.mjs +12 -6
- package/dist/assets/iconfont/IconTuodong.mjs +12 -6
- package/dist/assets/iconfont/IconWubanmawentianchong.mjs +22 -5
- package/dist/assets/iconfont/IconWufengexian.mjs +11 -4
- package/dist/assets/iconfont/IconXinxitishi.mjs +9 -3
- package/dist/assets/iconfont/IconYoubanmawentianchong.mjs +23 -7
- package/dist/assets/iconfont/IconZhongdengde.mjs +10 -4
- package/dist/assets/iconfont/IconZhongzhi.mjs +11 -5
- 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 +53 -20
- 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/BitzConvert/DropdownToButton/index.mjs +14 -11
- package/dist/components/BitzConvert/index.mjs +1 -1
- package/dist/components/BitzDayJs/index.mjs +1 -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/BitzFuiCalendar/BitzFuiCalendarStore.mjs +13 -16
- package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +27 -21
- package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +22 -4
- package/dist/components/BitzFuiCalendar/CalendarBody.mjs +28 -5
- package/dist/components/BitzFuiCalendar/CalendarHead.mjs +6 -3
- package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +13 -4
- package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +52 -20
- package/dist/components/BitzFuiCalendar/ColumnData.mjs +31 -15
- package/dist/components/BitzFuiCalendar/FuiCalendarItem.mjs +47 -5
- 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 +25 -12
- package/dist/components/BitzMeetingTime/index.mjs +11 -7
- 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 +73 -12
- package/dist/components/BitzTable/ActionBar/Button.mjs +1 -1
- package/dist/components/BitzTable/ActionBar/style.mjs +12 -9
- package/dist/components/BitzTable/ActionCol/index.mjs +95 -21
- 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 +8 -2
- package/dist/components/BitzTable/SelectionBar/style.mjs +18 -8
- package/dist/components/BitzTable/Store/index.d.ts +2 -2
- package/dist/components/BitzTable/Store/index.mjs +248 -212
- package/dist/components/BitzTable/Store/utils/index.mjs +25 -25
- package/dist/components/BitzTable/SubTable/index.mjs +121 -73
- package/dist/components/BitzTable/Table/ResizableTitle.mjs +23 -5
- package/dist/components/BitzTable/Table/SortTableContext.mjs +20 -7
- package/dist/components/BitzTable/Table/SortableRow.mjs +44 -20
- package/dist/components/BitzTable/Table/index.mjs +417 -207
- package/dist/components/BitzTable/Table/style.mjs +11 -1
- package/dist/components/BitzTable/Table/utils.mjs +11 -4
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +92 -28
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +97 -22
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +68 -29
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +253 -145
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.mjs +38 -12
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.mjs +42 -16
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +96 -20
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +9 -2
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +100 -46
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +30 -8
- package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +44 -14
- package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +44 -12
- package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +17 -4
- package/dist/components/BitzTable/ToolBar/Modal/index.mjs +49 -12
- package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +20 -9
- package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +48 -2
- package/dist/components/BitzTable/ToolBar/style.mjs +6 -1
- package/dist/components/BitzTableOperations/index.mjs +13 -3
- package/dist/components/BitzTableSelect/Picker/index.mjs +43 -10
- package/dist/components/BitzTableSelect/Select/index.mjs +87 -21
- package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +30 -20
- package/dist/components/BitzTableSelect/SelectPopup/index.mjs +239 -61
- package/dist/components/BitzTableSelect/TableCell/index.mjs +49 -8
- package/dist/components/BitzTableSelect/TextBlock/index.mjs +23 -5
- package/dist/components/BitzTableSelect/index.mjs +61 -13
- package/dist/components/BitzTag/index.mjs +1 -1
- 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/BitzTree/index.mjs +4 -1
- package/dist/components/BitzUeEditor/index.mjs +5 -5
- package/dist/components/BitzUpload/index.mjs +81 -43
- package/dist/components/BitzWebAppDrawer/index.mjs +35 -4
- package/dist/components/BitzWebAppModal/index.mjs +6 -3
- package/dist/hooks/use-event-listener.mjs +11 -2
- package/dist/hooks/use-lock-fn.mjs +13 -10
- package/dist/hooks/use-scroll-parent.mjs +16 -14
- package/dist/hooks/useEvent.mjs +7 -4
- package/dist/hooks/useMergedState.mjs +11 -11
- package/dist/node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs +292 -292
- package/dist/node_modules/.store/dayjs@1.11.10/node_modules/dayjs/locale/zh-cn.mjs +13 -13
- package/dist/style.css +1 -1
- package/dist/utils/WithFluent.mjs +27 -12
- package/dist/utils/create.mjs +7 -1
- package/dist/utils/time.mjs +1 -1
- package/package.json +1 -1
|
@@ -1,196 +1,221 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useContext as Se, useRef as
|
|
3
|
-
import { isMobile as
|
|
4
|
-
import { Skeleton as wt, Typography as Le, Table as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
1
|
+
import { j as s } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
+
import { useContext as Se, useRef as q, useState as S, useEffect as Me, useMemo as l, useCallback as oe } from "react";
|
|
3
|
+
import { isMobile as D } from "../../../node_modules/.store/react-device-detect@2.2.3/node_modules/react-device-detect/dist/lib.mjs";
|
|
4
|
+
import { Skeleton as wt, Typography as Le, Table as zt } from "antd";
|
|
5
|
+
import F from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
6
|
+
import Bt from "../../BitzDrawer/index.mjs";
|
|
7
|
+
import jt from "../../BitzPagination/index.mjs";
|
|
8
|
+
import Wt from "../../BitzNoData/index.mjs";
|
|
9
9
|
import "../../BitzList/index.less.mjs";
|
|
10
|
-
import
|
|
10
|
+
import Tt from "../../BitzList/List.mjs";
|
|
11
11
|
import "../../BitzPullRefresh/style/index.less.mjs";
|
|
12
|
-
import
|
|
12
|
+
import pt from "../../BitzPullRefresh/PullRefresh.mjs";
|
|
13
13
|
import Nt, { BitzTableContext as kt, toolCols as St } from "../Store/index.mjs";
|
|
14
14
|
import { loopFilter as Mt, columnSort as Lt } from "../Store/utils/index.mjs";
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
15
|
+
import se from "../../../node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useSize/index.mjs";
|
|
16
|
+
import Ht from "../ActionCol/style.mjs";
|
|
17
|
+
import Rt from "../../BitzTheme/index.mjs";
|
|
18
|
+
import He from "../../BitzHighlight/index.mjs";
|
|
19
|
+
import vt from "../../../node_modules/.store/antd@5.16.2/node_modules/antd/es/table/ExpandIcon.mjs";
|
|
20
20
|
import "../../../node_modules/.store/antd@5.16.2/node_modules/antd/es/config-provider/index.mjs";
|
|
21
|
-
import
|
|
22
|
-
import { getColumnsWithTool as $t, loopBuildSkeleton as
|
|
23
|
-
import { getCssVar as
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
21
|
+
import Pt from "../../../node_modules/.store/antd@5.16.2/node_modules/antd/locale/en_US.mjs";
|
|
22
|
+
import { getColumnsWithTool as $t, loopBuildSkeleton as Ot } from "./utils.mjs";
|
|
23
|
+
import { getCssVar as Vt } from "./style.mjs";
|
|
24
|
+
import Kt from "./SortableRow.mjs";
|
|
25
|
+
import qt from "./SortTableContext.mjs";
|
|
26
|
+
import Dt from "./ResizableTitle.mjs";
|
|
27
27
|
import "./index.less.mjs";
|
|
28
|
-
import { ConfigContext as
|
|
29
|
-
import
|
|
30
|
-
function
|
|
31
|
-
showPagination:
|
|
32
|
-
height:
|
|
28
|
+
import { ConfigContext as Ft } from "../../../node_modules/.store/antd@5.16.2/node_modules/antd/es/config-provider/context.mjs";
|
|
29
|
+
import _t from "../../../node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/at.mjs";
|
|
30
|
+
function Gt({
|
|
31
|
+
showPagination: R = !0,
|
|
32
|
+
height: v,
|
|
33
33
|
dataSource: m,
|
|
34
|
-
total:
|
|
35
|
-
columns:
|
|
34
|
+
total: j = 0,
|
|
35
|
+
columns: P,
|
|
36
36
|
loading: i,
|
|
37
|
-
skeletonNum:
|
|
37
|
+
skeletonNum: _ = {
|
|
38
38
|
pc: 10,
|
|
39
39
|
mobile: 10
|
|
40
40
|
},
|
|
41
|
-
skeletonRender:
|
|
42
|
-
skeletonRowNum:
|
|
43
|
-
skeletonRowsWidth:
|
|
41
|
+
skeletonRender: ne,
|
|
42
|
+
skeletonRowNum: Re = 4,
|
|
43
|
+
skeletonRowsWidth: ve = ["35%", "100%", "100%", "60%"],
|
|
44
44
|
// mobileLoadEmit,
|
|
45
45
|
mobileRefreshEmit: ie,
|
|
46
|
-
operationFilter:
|
|
47
|
-
enableControlPage:
|
|
48
|
-
pagination:
|
|
49
|
-
paginationEmit:
|
|
46
|
+
operationFilter: G,
|
|
47
|
+
enableControlPage: Pe,
|
|
48
|
+
pagination: y,
|
|
49
|
+
paginationEmit: O = () => {
|
|
50
50
|
},
|
|
51
51
|
enabledRowDragSort: M,
|
|
52
|
-
onRowDragEnd:
|
|
53
|
-
mobilePageHeight:
|
|
52
|
+
onRowDragEnd: E,
|
|
53
|
+
mobilePageHeight: Et = 500,
|
|
54
54
|
mobileCancelText: $e = "取消",
|
|
55
|
-
noDataTitle:
|
|
56
|
-
noDataImg:
|
|
55
|
+
noDataTitle: Oe,
|
|
56
|
+
noDataImg: Ve,
|
|
57
57
|
color: Jt,
|
|
58
58
|
size: le,
|
|
59
|
-
showTableTool:
|
|
60
|
-
tableAction:
|
|
61
|
-
tableToolbar:
|
|
62
|
-
selectionBar:
|
|
63
|
-
scroll:
|
|
64
|
-
components:
|
|
59
|
+
showTableTool: Ke = !0,
|
|
60
|
+
tableAction: qe,
|
|
61
|
+
tableToolbar: De,
|
|
62
|
+
selectionBar: Fe,
|
|
63
|
+
scroll: c,
|
|
64
|
+
components: W,
|
|
65
65
|
expandable: x,
|
|
66
|
-
rowSelection:
|
|
67
|
-
selectionAlert:
|
|
68
|
-
resetPage:
|
|
69
|
-
...
|
|
66
|
+
rowSelection: p,
|
|
67
|
+
selectionAlert: d,
|
|
68
|
+
resetPage: _e,
|
|
69
|
+
...u
|
|
70
70
|
}) {
|
|
71
71
|
var Ne;
|
|
72
|
-
const { token:
|
|
72
|
+
const { token: g } = Rt.useToken(), { Table: a } = g, { tableSpaceBetweenPage: ce = 10 } = a, { gap: Ge } = Ht(), { showColumnBorder: Ee, hideRowBorder: ae, rowHoverable: Je, ...h } = Se(kt), b = q(void 0), [J, Qe] = S(0), [Q, Ue] = S(0), [U, Xe] = S(0), [Ye, X] = S(!1), [C, Ze] = S([]);
|
|
73
73
|
Me(() => {
|
|
74
74
|
let e = [...m ?? []];
|
|
75
|
-
(
|
|
75
|
+
(y == null ? void 0 : y.page) !== 1 && (e = [...C, ...e]), Ze(e);
|
|
76
76
|
}, [m]);
|
|
77
|
-
const Ie = l(() => !!(
|
|
77
|
+
const Ie = l(() => !!(C != null && C.length) && (C == null ? void 0 : C.length) >= j, [C, j]), [Ae, et] = S([]), tt = (e, t) => {
|
|
78
78
|
var o;
|
|
79
|
-
const r = (o =
|
|
79
|
+
const r = (o = G == null ? void 0 : G(e, t)) == null ? void 0 : o.filter(
|
|
80
|
+
(n) => n.type !== "divider"
|
|
81
|
+
);
|
|
80
82
|
r != null && r.length && (et(r), X(!0));
|
|
81
|
-
},
|
|
83
|
+
}, he = () => {
|
|
82
84
|
X(!1);
|
|
83
85
|
}, rt = (e) => {
|
|
84
86
|
var t;
|
|
85
87
|
X(!1), (t = e.onClick) == null || t.call(e);
|
|
86
|
-
},
|
|
88
|
+
}, z = q(null), Y = se(z), de = q(null), Z = se(de), I = q(null), L = se(I), ot = () => {
|
|
87
89
|
var r;
|
|
88
|
-
const e = (r =
|
|
90
|
+
const e = (r = z.current) == null ? void 0 : r.querySelectorAll(
|
|
91
|
+
"& > .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)"
|
|
92
|
+
), t = [];
|
|
89
93
|
if (e == null || e.forEach((o) => {
|
|
90
|
-
var
|
|
91
|
-
t.push(
|
|
94
|
+
var n;
|
|
95
|
+
t.push(
|
|
96
|
+
((n = o.querySelector("& > .operationCol .actionGroup")) == null ? void 0 : n.clientWidth) || 0
|
|
97
|
+
);
|
|
92
98
|
}), t.length)
|
|
93
|
-
return Math.ceil(Math.max(...t)) +
|
|
99
|
+
return Math.ceil(Math.max(...t)) + Ge * 2;
|
|
94
100
|
}, ue = () => {
|
|
95
|
-
var
|
|
96
|
-
const e = (
|
|
97
|
-
|
|
98
|
-
|
|
101
|
+
var f, w, K;
|
|
102
|
+
const e = (f = z.current) == null ? void 0 : f.querySelector(
|
|
103
|
+
".ant-table-body"
|
|
104
|
+
), t = e == null ? void 0 : e.clientWidth, o = ((e == null ? void 0 : e.offsetWidth) || 0) - t > 0, n = (K = (w = z.current) == null ? void 0 : w.querySelector(
|
|
105
|
+
".ant-table-cell-scrollbar"
|
|
106
|
+
)) == null ? void 0 : K.offsetWidth;
|
|
107
|
+
return { tbodyWidth: t, hasScrollBar: o, scrollbarSize: n };
|
|
108
|
+
}, { y: A, tbodyWidth: H, hasScrollBar: V, scrollbarSize: $ } = l(() => {
|
|
99
109
|
const { tbodyWidth: e, hasScrollBar: t, scrollbarSize: r } = ue();
|
|
100
|
-
if (typeof
|
|
110
|
+
if (typeof v > "u")
|
|
101
111
|
return {
|
|
102
112
|
tbodyWidth: e,
|
|
103
113
|
hasScrollBar: t,
|
|
104
114
|
scrollbarSize: r
|
|
105
115
|
};
|
|
106
|
-
let o = 40,
|
|
107
|
-
if (
|
|
108
|
-
const
|
|
109
|
-
o = parseInt(
|
|
116
|
+
let o = 40, n = 40;
|
|
117
|
+
if (z.current) {
|
|
118
|
+
const T = window.getComputedStyle(z.current);
|
|
119
|
+
o = parseInt(T.getPropertyValue("--cell-height")), n = parseInt(T.getPropertyValue("--toolbar-height"));
|
|
110
120
|
}
|
|
111
|
-
const
|
|
112
|
-
return { y: (h.fullscreen ? window.innerHeight :
|
|
121
|
+
const f = (L == null ? void 0 : L.height) || 0, w = f ? ce : 0;
|
|
122
|
+
return { y: (h.fullscreen ? window.innerHeight : v) - f - w - n - o, tbodyWidth: e, hasScrollBar: t, scrollbarSize: r };
|
|
113
123
|
}, [
|
|
114
124
|
h.fullscreen,
|
|
115
|
-
|
|
125
|
+
v,
|
|
116
126
|
L == null ? void 0 : L.height,
|
|
117
127
|
Y == null ? void 0 : Y.height,
|
|
118
128
|
Z == null ? void 0 : Z.height
|
|
119
129
|
]), ee = l(() => {
|
|
120
|
-
let e = (
|
|
121
|
-
return J && (e -= J), Q &&
|
|
122
|
-
}, [
|
|
130
|
+
let e = (c == null ? void 0 : c.x) ?? 1e3;
|
|
131
|
+
return J && (e -= J), Q && b.current && (e -= Q * b.current), H && (c != null && c.x && e < H && (c == null ? void 0 : c.x) > H && Xe(H - e), e = Math.max(e, H)), c != null && c.x ? { x: e, y: c.y || A } : c != null && c.y ? { x: e, y: c.y } : { x: e, y: A };
|
|
132
|
+
}, [c, A, H, J, Q]), fe = () => {
|
|
123
133
|
let e = 0;
|
|
124
|
-
if (
|
|
125
|
-
const r = window.getComputedStyle(
|
|
134
|
+
if (z.current) {
|
|
135
|
+
const r = window.getComputedStyle(z.current), o = parseInt(
|
|
136
|
+
r.getPropertyValue("--toolCell-paddingInline")
|
|
137
|
+
);
|
|
126
138
|
e = parseInt(r.getPropertyValue("--fontSize")) + 4 + 2 * o;
|
|
127
139
|
}
|
|
128
140
|
let t = 0;
|
|
129
|
-
return
|
|
130
|
-
},
|
|
131
|
-
const r = e.length, o = e.filter((
|
|
141
|
+
return p && (t += e), x && (t += e), M && (t += e), t;
|
|
142
|
+
}, st = (e, t) => {
|
|
143
|
+
const r = e.length, o = e.filter((T) => T.width), f = o.map((T) => T.width).reduce((T, gt) => T + gt, 0), { tbodyWidth: w } = ue(), re = Math.max((c == null ? void 0 : c.x) ?? 0, w ?? 0) - f - t, ke = r - o.length;
|
|
132
144
|
return re >= 0 ? Math.floor(re / ke) : 0;
|
|
133
145
|
}, me = l(() => {
|
|
134
146
|
var e;
|
|
135
|
-
return ((e = (
|
|
136
|
-
}, [
|
|
137
|
-
const t = (
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
147
|
+
return ((e = (P ?? []).find((t) => t.isOperationCol)) == null ? void 0 : e.width) ?? 0;
|
|
148
|
+
}, [P]), B = l(() => {
|
|
149
|
+
const t = (P ?? []).filter((w) => !St.includes(w)), { filterColumns: r, hiddenTotalWidth: o, autoWidthColLength: n } = Mt(
|
|
150
|
+
t,
|
|
151
|
+
h.columnsMap
|
|
152
|
+
), f = r.sort(Lt(h.columnsMap));
|
|
153
|
+
if (!D) {
|
|
154
|
+
const w = fe();
|
|
155
|
+
b.current = st(t, w), Qe(o), Ue(n);
|
|
141
156
|
}
|
|
142
|
-
return
|
|
157
|
+
return f;
|
|
143
158
|
}, [h.columnsMap, me]), be = l(() => fe(), [h.columnsMap, me]), [N, Ce] = S([]);
|
|
144
159
|
Me(() => {
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
160
|
+
if (b.current) {
|
|
161
|
+
let e = 0;
|
|
162
|
+
if (U) {
|
|
163
|
+
const o = B == null ? void 0 : B.filter(
|
|
164
|
+
(n) => !n.width && !(n != null && n.isOperationCol)
|
|
165
|
+
).length;
|
|
166
|
+
e = Math.floor(U / o);
|
|
167
|
+
}
|
|
168
|
+
let t = 0;
|
|
169
|
+
const r = B.map((o) => {
|
|
170
|
+
let n = o.width;
|
|
171
|
+
return o != null && o.useMaxWidth && (o != null && o.isOperationCol) && (n = ot() ?? o.width), !n && (b != null && b.current) && (n = b.current + e), t += n ?? 0, n;
|
|
172
|
+
});
|
|
173
|
+
if (t < ee.x - be) {
|
|
174
|
+
const o = ee.x - be - t;
|
|
175
|
+
r[0] = (r[0] ?? 0) + o;
|
|
176
|
+
}
|
|
177
|
+
Ce(r);
|
|
158
178
|
}
|
|
159
|
-
|
|
160
|
-
}, [j, U]);
|
|
179
|
+
}, [B, U]);
|
|
161
180
|
const k = l(() => {
|
|
162
|
-
if (
|
|
163
|
-
return
|
|
164
|
-
const e =
|
|
181
|
+
if (D)
|
|
182
|
+
return B;
|
|
183
|
+
const e = B.map((t, r) => {
|
|
165
184
|
var o;
|
|
166
185
|
return {
|
|
167
186
|
...t,
|
|
168
|
-
...((o =
|
|
169
|
-
className:
|
|
187
|
+
...((o = B[r + 1]) == null ? void 0 : o.isOperationCol) && {
|
|
188
|
+
className: F(t.className, "disabledResize")
|
|
170
189
|
},
|
|
171
|
-
width: N.length ? N[r] :
|
|
172
|
-
onHeaderCell: (
|
|
173
|
-
width:
|
|
174
|
-
onResize:
|
|
190
|
+
width: N.length ? N[r] : b == null ? void 0 : b.current,
|
|
191
|
+
onHeaderCell: (n) => ({
|
|
192
|
+
width: n.width,
|
|
193
|
+
onResize: nt(r)
|
|
175
194
|
})
|
|
176
195
|
};
|
|
177
196
|
});
|
|
178
|
-
return $t(
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
197
|
+
return $t(
|
|
198
|
+
P,
|
|
199
|
+
e,
|
|
200
|
+
M,
|
|
201
|
+
!!p,
|
|
202
|
+
!!x
|
|
203
|
+
);
|
|
204
|
+
}, [P, B, N]), nt = (e) => (t, { size: r }) => {
|
|
205
|
+
const o = [...N], n = e + 1, f = r.width - N[e];
|
|
206
|
+
o[e] = N[e] + f, o[n] = N[n] - f, o[e] > 48 && o[n] > 48 && Ce(o);
|
|
207
|
+
}, ye = l(() => Ot(k), [k]), it = l(() => i ? ye : k, [i, k, ye]), xe = l(() => {
|
|
208
|
+
const e = (m ?? []).length, t = e > (_.pc ?? 10) ? e >= 20 ? 20 : e : _.pc ?? 10;
|
|
209
|
+
return Array.from({ length: t }).map((o, n) => ({
|
|
210
|
+
key: `${Date.now()}${n}`
|
|
186
211
|
}));
|
|
187
|
-
}, [m]), ge = l(() => i ?
|
|
212
|
+
}, [m]), ge = l(() => i ? xe : m ?? [], [i, m, xe]), { table: te, locale: lt = Pt } = Se(Ft), ct = { ...lt.Table }, at = ((Ne = te == null ? void 0 : te.expandable) == null ? void 0 : Ne.expandIcon) || (x == null ? void 0 : x.expandIcon) || vt(ct), we = l(() => {
|
|
188
213
|
if (x)
|
|
189
214
|
return {
|
|
190
215
|
...x,
|
|
191
|
-
expandedRowRender: () =>
|
|
216
|
+
expandedRowRender: () => /* @__PURE__ */ s.jsx(s.Fragment, {}),
|
|
192
217
|
expandIcon: (e) => {
|
|
193
|
-
const t =
|
|
218
|
+
const t = at(e);
|
|
194
219
|
return {
|
|
195
220
|
...t,
|
|
196
221
|
props: {
|
|
@@ -198,116 +223,301 @@ function _t({
|
|
|
198
223
|
disabled: !0,
|
|
199
224
|
style: {
|
|
200
225
|
...t.props.style,
|
|
201
|
-
backgroundColor:
|
|
226
|
+
backgroundColor: g.colorBgContainerDisabled
|
|
202
227
|
}
|
|
203
228
|
}
|
|
204
229
|
};
|
|
205
230
|
}
|
|
206
231
|
};
|
|
207
|
-
}, [x]),
|
|
208
|
-
if (
|
|
232
|
+
}, [x]), ht = l(() => i ? we : x, [i, x, we]), ze = l(() => {
|
|
233
|
+
if (p)
|
|
209
234
|
return {
|
|
210
|
-
...
|
|
235
|
+
...p,
|
|
211
236
|
selectedRowKeys: [],
|
|
212
237
|
getCheckboxProps: () => ({ disabled: !0 })
|
|
213
238
|
};
|
|
214
|
-
}, [
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
239
|
+
}, [p]), dt = l(() => i ? ze : p, [i, p, ze]), Be = l(() => i ? "key" : u.rowKey, [i, u.rowKey]), je = l(() => `${le ?? h.stylesConfig.size}BitzTable`, [le, h.stylesConfig.size]), ut = oe(
|
|
240
|
+
(e, t) => {
|
|
241
|
+
var o;
|
|
242
|
+
if (!u.onRow || i)
|
|
243
|
+
return {};
|
|
244
|
+
const r = (o = u.onRow) == null ? void 0 : o.call(u, e, t);
|
|
245
|
+
return r.onClick && (r.className = "rowPointerCursor"), r;
|
|
246
|
+
},
|
|
247
|
+
[u.onRow, i]
|
|
248
|
+
), ft = l(() => F(
|
|
249
|
+
"bitzTableContainer",
|
|
250
|
+
{ hideBorder: ae },
|
|
251
|
+
{ hasScrollBar: V },
|
|
252
|
+
je,
|
|
253
|
+
u.className
|
|
254
|
+
), [
|
|
255
|
+
u.className,
|
|
256
|
+
je,
|
|
257
|
+
V,
|
|
224
258
|
h.fullscreen,
|
|
225
|
-
|
|
259
|
+
ae
|
|
226
260
|
]), mt = l(() => ({
|
|
227
|
-
"--container-bgColor":
|
|
228
|
-
}), [
|
|
229
|
-
const e = h.fullscreen ? "100%" :
|
|
261
|
+
"--container-bgColor": g.colorBgContainer
|
|
262
|
+
}), [g.colorBgContainer]), bt = l(() => {
|
|
263
|
+
const e = h.fullscreen ? "100%" : v;
|
|
230
264
|
let t;
|
|
231
|
-
return ($ ?? 0) > 0 && (t = $),
|
|
265
|
+
return ($ ?? 0) > 0 && (t = $), Vt({
|
|
232
266
|
height: e,
|
|
233
|
-
fontFamily:
|
|
234
|
-
evenRowBgColor: h.zebra ?
|
|
235
|
-
colorBgContainer:
|
|
236
|
-
table:
|
|
237
|
-
gap:
|
|
238
|
-
borderColor: (
|
|
267
|
+
fontFamily: g.fontFamily,
|
|
268
|
+
evenRowBgColor: h.zebra ? a == null ? void 0 : a.evenRowBgColor : g.colorBgContainer,
|
|
269
|
+
colorBgContainer: g.colorBgContainer,
|
|
270
|
+
table: a,
|
|
271
|
+
gap: ce,
|
|
272
|
+
borderColor: (a == null ? void 0 : a.borderColor) || g.colorBorderSecondary,
|
|
239
273
|
scrollbarWidth: t,
|
|
240
|
-
other:
|
|
274
|
+
other: u.style
|
|
241
275
|
});
|
|
242
276
|
}, [
|
|
243
|
-
|
|
277
|
+
u.style,
|
|
244
278
|
h.fullscreen,
|
|
245
|
-
|
|
246
|
-
|
|
279
|
+
v,
|
|
280
|
+
a,
|
|
247
281
|
h == null ? void 0 : h.zebra,
|
|
248
282
|
$
|
|
249
|
-
]), Ct = oe(
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
283
|
+
]), Ct = oe(
|
|
284
|
+
(e, t, r) => {
|
|
285
|
+
const o = t % 2 === 0 ? "oddRow" : "evenRow";
|
|
286
|
+
if (u.rowClassName) {
|
|
287
|
+
const n = u.rowClassName(e, t, r);
|
|
288
|
+
return F(o, n);
|
|
289
|
+
}
|
|
290
|
+
return o;
|
|
291
|
+
},
|
|
292
|
+
[u.rowClassName]
|
|
293
|
+
), We = /* @__PURE__ */ s.jsx(
|
|
294
|
+
Tt,
|
|
295
|
+
{
|
|
296
|
+
finished: Ie,
|
|
297
|
+
onLoad: async () => (
|
|
298
|
+
// @ts-ignore
|
|
299
|
+
!i && (O == null ? void 0 : O((y == null ? void 0 : y.page) + 1, y == null ? void 0 : y.size))
|
|
300
|
+
),
|
|
301
|
+
loadingText: "加载中...",
|
|
302
|
+
finishedText: "没有更多了",
|
|
303
|
+
errorText: "加载失败",
|
|
304
|
+
children: /* @__PURE__ */ s.jsxs(
|
|
305
|
+
"div",
|
|
306
|
+
{
|
|
307
|
+
className: "mobileList",
|
|
308
|
+
style: { backgroundColor: a == null ? void 0 : a.mobileListBgColor },
|
|
309
|
+
children: [
|
|
310
|
+
C == null ? void 0 : C.map((e, t) => /* @__PURE__ */ s.jsx(
|
|
311
|
+
"div",
|
|
312
|
+
{
|
|
313
|
+
className: "listItem",
|
|
314
|
+
style: { backgroundColor: a == null ? void 0 : a.listItemBgColor },
|
|
315
|
+
onClick: () => tt(e, t),
|
|
316
|
+
children: k == null ? void 0 : k.map((r, o) => {
|
|
317
|
+
var n;
|
|
318
|
+
return !(r != null && r.mobileHide) && /* @__PURE__ */ s.jsxs(
|
|
319
|
+
"div",
|
|
320
|
+
{
|
|
321
|
+
className: "row",
|
|
322
|
+
style: { color: g.colorText },
|
|
323
|
+
children: [
|
|
324
|
+
!r.mobileHideLabel && /* @__PURE__ */ s.jsxs("div", { className: "label", children: [
|
|
325
|
+
`${r.title}`,
|
|
326
|
+
":"
|
|
327
|
+
] }),
|
|
328
|
+
/* @__PURE__ */ s.jsx("div", { className: "value", children: ((n = r == null ? void 0 : r.render) == null ? void 0 : n.call(
|
|
329
|
+
r,
|
|
330
|
+
_t(e, (r == null ? void 0 : r.dataIndex) || ""),
|
|
331
|
+
e,
|
|
332
|
+
t
|
|
333
|
+
)) || (e == null ? void 0 : e[r.dataIndex]) })
|
|
334
|
+
]
|
|
335
|
+
},
|
|
336
|
+
o
|
|
337
|
+
);
|
|
338
|
+
})
|
|
339
|
+
},
|
|
340
|
+
t
|
|
341
|
+
)),
|
|
342
|
+
Array.from({ length: _.mobile ?? 2 }).map((e, t) => /* @__PURE__ */ s.jsx(
|
|
343
|
+
"div",
|
|
344
|
+
{
|
|
345
|
+
className: "listItem",
|
|
346
|
+
style: {
|
|
347
|
+
display: i ? "block" : "none",
|
|
348
|
+
backgroundColor: a == null ? void 0 : a.listItemBgColor
|
|
349
|
+
},
|
|
350
|
+
children: /* @__PURE__ */ s.jsx("div", { className: "row", children: ne ? ne() : /* @__PURE__ */ s.jsx(
|
|
351
|
+
wt,
|
|
352
|
+
{
|
|
353
|
+
title: !1,
|
|
354
|
+
paragraph: {
|
|
355
|
+
rows: Re,
|
|
356
|
+
width: ve
|
|
357
|
+
},
|
|
358
|
+
active: !0
|
|
359
|
+
}
|
|
360
|
+
) })
|
|
361
|
+
},
|
|
362
|
+
`${Date.now()}${t}`
|
|
363
|
+
))
|
|
364
|
+
]
|
|
365
|
+
}
|
|
366
|
+
)
|
|
254
367
|
}
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
368
|
+
), Te = l(() => /* @__PURE__ */ s.jsxs("div", { className: "alert", children: [
|
|
369
|
+
/* @__PURE__ */ s.jsx(
|
|
370
|
+
He,
|
|
371
|
+
{
|
|
372
|
+
highlightTag: "strong",
|
|
373
|
+
keywords: `${j}`,
|
|
374
|
+
sourceString: `共 ${j} 条`,
|
|
375
|
+
tagClass: "totalText"
|
|
376
|
+
}
|
|
377
|
+
),
|
|
378
|
+
!!d && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
379
|
+
/* @__PURE__ */ s.jsx(Le.Text, { className: "splitBorder", children: "/" }),
|
|
380
|
+
/* @__PURE__ */ s.jsx(
|
|
381
|
+
He,
|
|
382
|
+
{
|
|
383
|
+
highlightTag: "strong",
|
|
384
|
+
keywords: `${(d == null ? void 0 : d.num) ?? 0}`,
|
|
385
|
+
sourceString: `已选中 ${(d == null ? void 0 : d.num) ?? 0} 条`
|
|
386
|
+
}
|
|
387
|
+
),
|
|
388
|
+
!!(d != null && d.num) && /* @__PURE__ */ s.jsx(
|
|
389
|
+
Le.Link,
|
|
390
|
+
{
|
|
391
|
+
className: "cleanSelected",
|
|
392
|
+
onClick: d == null ? void 0 : d.onClear,
|
|
393
|
+
children: "取消选中"
|
|
394
|
+
}
|
|
395
|
+
)
|
|
396
|
+
] })
|
|
397
|
+
] }), [j, d]), yt = (e) => {
|
|
269
398
|
var t;
|
|
270
|
-
i || e.active.id !== ((t = e.over) == null ? void 0 : t.id) && (
|
|
271
|
-
},
|
|
272
|
-
row: (e) =>
|
|
273
|
-
} : {}, [M, M ? i : !1]),
|
|
274
|
-
...
|
|
399
|
+
i || e.active.id !== ((t = e.over) == null ? void 0 : t.id) && (E == null || E(e));
|
|
400
|
+
}, pe = oe(() => M ? {
|
|
401
|
+
row: (e) => Kt({ ...e, loading: i == null ? void 0 : i.toString() })
|
|
402
|
+
} : {}, [M, M ? i : !1]), xt = l(() => ({
|
|
403
|
+
...W,
|
|
275
404
|
header: {
|
|
276
|
-
...
|
|
277
|
-
cell: (e) =>
|
|
405
|
+
...W == null ? void 0 : W.header,
|
|
406
|
+
cell: (e) => Dt({ ...e, hasScrollBar: V, scrollbarSize: $ })
|
|
278
407
|
},
|
|
279
408
|
body: {
|
|
280
|
-
...
|
|
281
|
-
...
|
|
409
|
+
...W == null ? void 0 : W.body,
|
|
410
|
+
...pe()
|
|
411
|
+
}
|
|
412
|
+
}), [W, V, $, pe]);
|
|
413
|
+
return /* @__PURE__ */ s.jsxs(
|
|
414
|
+
"div",
|
|
415
|
+
{
|
|
416
|
+
className: F("bitzTableBlock", {
|
|
417
|
+
fullscreen: h.fullscreen
|
|
418
|
+
}),
|
|
419
|
+
style: mt,
|
|
420
|
+
children: [
|
|
421
|
+
!D && /* @__PURE__ */ s.jsxs("div", { ref: z, className: ft, style: bt, children: [
|
|
422
|
+
/* @__PURE__ */ s.jsxs("div", { className: "bitzTableContainerBody", ref: de, children: [
|
|
423
|
+
Ke && /* @__PURE__ */ s.jsxs("div", { className: "bitzTableToolbarBlock", children: [
|
|
424
|
+
qe || /* @__PURE__ */ s.jsx("div", {}),
|
|
425
|
+
De,
|
|
426
|
+
Fe
|
|
427
|
+
] }),
|
|
428
|
+
/* @__PURE__ */ s.jsx(
|
|
429
|
+
qt,
|
|
430
|
+
{
|
|
431
|
+
enabledRowDragSort: M,
|
|
432
|
+
dataSource: ge,
|
|
433
|
+
mergeRowKey: Be,
|
|
434
|
+
onDragEnd: yt,
|
|
435
|
+
children: /* @__PURE__ */ s.jsx(
|
|
436
|
+
zt,
|
|
437
|
+
{
|
|
438
|
+
...u,
|
|
439
|
+
bordered: Ee,
|
|
440
|
+
columns: it,
|
|
441
|
+
dataSource: ge,
|
|
442
|
+
loading: !1,
|
|
443
|
+
pagination: !1,
|
|
444
|
+
scroll: ee,
|
|
445
|
+
expandable: ht,
|
|
446
|
+
rowSelection: dt,
|
|
447
|
+
onRow: ut,
|
|
448
|
+
rowHoverable: Je,
|
|
449
|
+
rowClassName: Ct,
|
|
450
|
+
className: "bitzTable",
|
|
451
|
+
components: xt,
|
|
452
|
+
rowKey: Be
|
|
453
|
+
}
|
|
454
|
+
)
|
|
455
|
+
}
|
|
456
|
+
)
|
|
457
|
+
] }),
|
|
458
|
+
R && !!j && /* @__PURE__ */ s.jsxs("div", { className: "bitzTablePagination", ref: I, children: [
|
|
459
|
+
Te,
|
|
460
|
+
/* @__PURE__ */ s.jsx(
|
|
461
|
+
jt,
|
|
462
|
+
{
|
|
463
|
+
size: "small",
|
|
464
|
+
enableControl: Pe,
|
|
465
|
+
pagination: y,
|
|
466
|
+
total: j,
|
|
467
|
+
dataSource: m,
|
|
468
|
+
resetPage: _e,
|
|
469
|
+
hideTotalText: !0,
|
|
470
|
+
paginationEmit: O
|
|
471
|
+
}
|
|
472
|
+
)
|
|
473
|
+
] }),
|
|
474
|
+
!R && !!d && !!j && /* @__PURE__ */ s.jsx("div", { className: "bitzTablePagination", ref: I, children: Te })
|
|
475
|
+
] }),
|
|
476
|
+
D && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
477
|
+
(i || !!(m != null && m.length)) && /* @__PURE__ */ s.jsx(s.Fragment, { children: ie ? (
|
|
478
|
+
// @ts-ignore
|
|
479
|
+
/* @__PURE__ */ s.jsx(
|
|
480
|
+
pt,
|
|
481
|
+
{
|
|
482
|
+
onRefresh: async () => !i && ie(),
|
|
483
|
+
children: We
|
|
484
|
+
}
|
|
485
|
+
)
|
|
486
|
+
) : We }),
|
|
487
|
+
!i && /* @__PURE__ */ s.jsx(Wt, { data: m, title: Oe, img: Ve }),
|
|
488
|
+
/* @__PURE__ */ s.jsx(
|
|
489
|
+
Bt,
|
|
490
|
+
{
|
|
491
|
+
className: "tableMobileDrawer",
|
|
492
|
+
open: Ye,
|
|
493
|
+
placement: "bottom",
|
|
494
|
+
height: "auto",
|
|
495
|
+
closable: !1,
|
|
496
|
+
onClose: he,
|
|
497
|
+
children: /* @__PURE__ */ s.jsxs("div", { className: "drawerBox", children: [
|
|
498
|
+
/* @__PURE__ */ s.jsx("div", { className: "boxBody", children: Ae.map((e, t) => /* @__PURE__ */ s.jsx(
|
|
499
|
+
"div",
|
|
500
|
+
{
|
|
501
|
+
className: "operaList",
|
|
502
|
+
onClick: () => rt(e),
|
|
503
|
+
...e.danger && {
|
|
504
|
+
style: { color: g.colorError }
|
|
505
|
+
},
|
|
506
|
+
children: e.label
|
|
507
|
+
},
|
|
508
|
+
t
|
|
509
|
+
)) }),
|
|
510
|
+
/* @__PURE__ */ s.jsx("div", { className: "boxLine" }),
|
|
511
|
+
/* @__PURE__ */ s.jsx("div", { className: "boxFooter", onClick: he, children: $e })
|
|
512
|
+
] })
|
|
513
|
+
}
|
|
514
|
+
)
|
|
515
|
+
] })
|
|
516
|
+
]
|
|
282
517
|
}
|
|
283
|
-
|
|
284
|
-
return n.jsxs("div", { className: E("bitzTableBlock", {
|
|
285
|
-
fullscreen: h.fullscreen
|
|
286
|
-
}), style: mt, children: [!V && n.jsxs("div", { ref: B, className: ft, style: bt, children: [n.jsxs("div", { className: "bitzTableContainerBody", ref: he, children: [Oe && n.jsxs("div", { className: "bitzTableToolbarBlock", children: [Ke || n.jsx("div", {}), Ve, Ee] }), n.jsx(Kt, { enabledRowDragSort: M, dataSource: ge, mergeRowKey: je, onDragEnd: xt, children: n.jsx(Bt, {
|
|
287
|
-
...f,
|
|
288
|
-
bordered: Ge,
|
|
289
|
-
columns: it,
|
|
290
|
-
dataSource: ge,
|
|
291
|
-
loading: !1,
|
|
292
|
-
pagination: !1,
|
|
293
|
-
scroll: ee,
|
|
294
|
-
expandable: dt,
|
|
295
|
-
rowSelection: ht,
|
|
296
|
-
// style={style}
|
|
297
|
-
onRow: ut,
|
|
298
|
-
rowHoverable: Je,
|
|
299
|
-
rowClassName: Ct,
|
|
300
|
-
className: "bitzTable",
|
|
301
|
-
components: yt,
|
|
302
|
-
rowKey: je
|
|
303
|
-
}) })] }), H && !!z && n.jsxs("div", { className: "bitzTablePagination", ref: I, children: [pe, n.jsx(zt, { size: "small", enableControl: De, pagination: C, total: z, dataSource: m, resetPage: qe, hideTotalText: !0, paginationEmit: v })] }), !H && !!u && !!z && n.jsx("div", { className: "bitzTablePagination", ref: I, children: pe })] }), V && n.jsxs(n.Fragment, { children: [(i || !!(m != null && m.length)) && n.jsx(n.Fragment, { children: ie ? (
|
|
304
|
-
// @ts-ignore
|
|
305
|
-
n.jsx(Wt, { onRefresh: async () => !i && ie(), children: Te })
|
|
306
|
-
) : Te }), !i && n.jsx(Tt, { data: m, title: ve, img: Fe }), n.jsx(jt, { className: "tableMobileDrawer", open: Ye, placement: "bottom", height: "auto", closable: !1, onClose: de, children: n.jsxs("div", { className: "drawerBox", children: [n.jsx("div", { className: "boxBody", children: Ae.map((e, t) => n.jsx("div", { className: "operaList", onClick: () => rt(e), ...e.danger && {
|
|
307
|
-
style: { color: y.colorError }
|
|
308
|
-
}, children: e.label }, t)) }), n.jsx("div", { className: "boxLine" }), n.jsx("div", { className: "boxFooter", onClick: de, children: $e })] }) })] })] });
|
|
518
|
+
);
|
|
309
519
|
}
|
|
310
|
-
const
|
|
520
|
+
const Br = (R) => /* @__PURE__ */ s.jsx(Nt, { initValue: R, children: /* @__PURE__ */ s.jsx(Gt, { ...R }) });
|
|
311
521
|
export {
|
|
312
|
-
|
|
522
|
+
Br as default
|
|
313
523
|
};
|