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