bitz-react-admin-ui 2.3.1 → 2.3.3
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/_commonjsHelpers.mjs +4 -26
- package/dist/components/BitzConfigProvider/context.d.ts +1 -0
- package/dist/components/BitzConfigProvider/context.mjs +4 -3
- package/dist/components/BitzHighlight/style.mjs +12 -12
- package/dist/components/BitzTable/ActionBar/style.mjs +21 -21
- package/dist/components/BitzTable/ActionCol/index.mjs +59 -58
- package/dist/components/BitzTable/ActionCol/style.d.ts +1 -1
- package/dist/components/BitzTable/ActionCol/style.mjs +28 -28
- package/dist/components/BitzTable/Dropdown/style.mjs +25 -25
- package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +26 -15
- package/dist/components/BitzTable/SelectionBar/style.mjs +24 -24
- package/dist/components/BitzTable/Store/index.d.ts +4 -0
- package/dist/components/BitzTable/Store/index.mjs +90 -88
- package/dist/components/BitzTable/SubTable/index.mjs +94 -94
- package/dist/components/BitzTable/Table/SortTableContext.d.ts +3 -5
- package/dist/components/BitzTable/Table/SortTableContext.mjs +42 -19
- package/dist/components/BitzTable/Table/index.d.ts +1 -2
- package/dist/components/BitzTable/Table/index.mjs +247 -245
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +51 -47
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +61 -60
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.mjs +46 -38
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +44 -44
- package/dist/components/BitzTable/ToolBar/Modal/index.mjs +19 -12
- package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +46 -43
- package/dist/components/BitzTable/ToolBar/style.mjs +21 -21
- package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +15 -16
- package/dist/components/BitzTableSelect/SelectPopup/index.mjs +13 -14
- package/dist/components/BitzTableSelect/TableCell/index.mjs +34 -33
- package/dist/components/BitzTableSelect/TextBlock/index.mjs +20 -18
- package/dist/node_modules/.store/prop-types@15.8.1/node_modules/prop-types/index.mjs +7 -8
- package/dist/node_modules/.store/use-sync-external-store@1.2.0/node_modules/use-sync-external-store/shim/index.mjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/_virtual/Draggable.mjs +0 -4
- package/dist/_virtual/DraggableCore.mjs +0 -4
- package/dist/_virtual/Resizable.mjs +0 -4
- package/dist/_virtual/ResizableBox.mjs +0 -4
- package/dist/_virtual/cjs.mjs +0 -4
- package/dist/_virtual/clsx.m.mjs +0 -6
- package/dist/_virtual/domFns.mjs +0 -4
- package/dist/_virtual/getPrefix.mjs +0 -4
- package/dist/_virtual/index6.mjs +0 -4
- package/dist/_virtual/log.mjs +0 -4
- package/dist/_virtual/positionFns.mjs +0 -4
- package/dist/_virtual/propTypes.mjs +0 -4
- package/dist/_virtual/shims.mjs +0 -4
- package/dist/_virtual/utils.mjs +0 -4
- package/dist/components/BitzTable/Table/ResizableTitle.mjs +0 -32
- package/dist/node_modules/.store/clsx@1.2.1/node_modules/clsx/dist/clsx.m.mjs +0 -22
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/Draggable.mjs +0 -343
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/DraggableCore.mjs +0 -324
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/cjs.mjs +0 -14
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/domFns.mjs +0 -174
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/getPrefix.mjs +0 -35
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/log.mjs +0 -7
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/positionFns.mjs +0 -107
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/shims.mjs +0 -30
- package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/Resizable.mjs +0 -201
- package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/ResizableBox.mjs +0 -162
- package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/propTypes.mjs +0 -118
- package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/utils.mjs +0 -54
- package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/index.mjs +0 -13
|
@@ -1,154 +1,154 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useContext as
|
|
3
|
-
import { Table as
|
|
4
|
-
import
|
|
5
|
-
import { BitzTableContext as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import lt from "../../../node_modules/.store/antd@5.16.2/node_modules/antd/es/table/ExpandIcon.mjs";
|
|
1
|
+
import { j as C } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
+
import { useContext as L, useRef as ee, useMemo as o, useCallback as j } from "react";
|
|
3
|
+
import { Table as te } from "antd";
|
|
4
|
+
import ne from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
5
|
+
import { BitzTableContext as re, toolCols as oe } from "../Store/index.mjs";
|
|
6
|
+
import se from "../../../node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useSize/index.mjs";
|
|
7
|
+
import ae from "../../BitzTheme/index.mjs";
|
|
8
|
+
import le from "../../../node_modules/.store/antd@5.16.2/node_modules/antd/es/table/ExpandIcon.mjs";
|
|
10
9
|
import "../../../node_modules/.store/antd@5.16.2/node_modules/antd/es/config-provider/index.mjs";
|
|
11
|
-
import
|
|
12
|
-
import { getColumnsWithTool as
|
|
13
|
-
import {
|
|
14
|
-
|
|
10
|
+
import ie from "../../../node_modules/.store/antd@5.16.2/node_modules/antd/locale/en_US.mjs";
|
|
11
|
+
import { getColumnsWithTool as ce, loopBuildSkeleton as ue } from "../Table/utils.mjs";
|
|
12
|
+
import { tablePaddingInline as me } from "../../BitzConfigProvider/context.mjs";
|
|
13
|
+
import { ConfigContext as fe } from "../../../node_modules/.store/antd@5.16.2/node_modules/antd/es/config-provider/context.mjs";
|
|
14
|
+
function Te({
|
|
15
15
|
dataSource: u,
|
|
16
16
|
columns: g,
|
|
17
17
|
loading: l,
|
|
18
18
|
scroll: s,
|
|
19
19
|
components: f,
|
|
20
|
-
expandable:
|
|
20
|
+
expandable: i,
|
|
21
21
|
rowSelection: m,
|
|
22
22
|
...a
|
|
23
23
|
}) {
|
|
24
|
-
var
|
|
25
|
-
const { token:
|
|
26
|
-
let
|
|
27
|
-
return s != null && s.x ? { x:
|
|
28
|
-
}, [s]),
|
|
29
|
-
var
|
|
30
|
-
const
|
|
24
|
+
var p, W, E;
|
|
25
|
+
const { token: x } = ae.useToken(), K = ((p = x.Table) == null ? void 0 : p.cellPaddingInline) ?? me, { showColumnBorder: M, rowHoverable: P } = L(re), h = ee(null), w = se((W = h.current) == null ? void 0 : W.nativeElement), q = o(() => {
|
|
26
|
+
let e = (s == null ? void 0 : s.x) ?? 1e3;
|
|
27
|
+
return s != null && s.x ? { x: e, y: s.y || 400 } : s != null && s.y ? { x: e, y: s.y } : { x: e, y: 400 };
|
|
28
|
+
}, [s]), A = () => {
|
|
29
|
+
var r, n;
|
|
30
|
+
const e = (n = (r = h.current) == null ? void 0 : r.nativeElement) == null ? void 0 : n.querySelectorAll(
|
|
31
31
|
"& > .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)"
|
|
32
|
-
),
|
|
33
|
-
if (
|
|
32
|
+
), t = [];
|
|
33
|
+
if (e == null || e.forEach((c) => {
|
|
34
34
|
var b;
|
|
35
|
-
|
|
36
|
-
((b =
|
|
35
|
+
t.push(
|
|
36
|
+
((b = c.querySelector("& > .operationCol .actionGroup")) == null ? void 0 : b.clientWidth) || 0
|
|
37
37
|
);
|
|
38
|
-
}),
|
|
39
|
-
return Math.ceil(Math.max(...
|
|
40
|
-
},
|
|
41
|
-
var b,
|
|
42
|
-
const
|
|
38
|
+
}), t.length)
|
|
39
|
+
return Math.ceil(Math.max(...t)) + K * 2;
|
|
40
|
+
}, $ = () => {
|
|
41
|
+
var b, I, v, N, D;
|
|
42
|
+
const e = (I = (b = h.current) == null ? void 0 : b.nativeElement) == null ? void 0 : I.querySelector(
|
|
43
43
|
".ant-table-body"
|
|
44
|
-
),
|
|
44
|
+
), t = e == null ? void 0 : e.clientWidth, n = ((e == null ? void 0 : e.offsetWidth) || 0) - t > 0, c = (D = (N = (v = h.current) == null ? void 0 : v.nativeElement) == null ? void 0 : N.querySelector(
|
|
45
45
|
".ant-table-cell-scrollbar"
|
|
46
|
-
)) == null ? void 0 :
|
|
47
|
-
return { tbodyWidth:
|
|
48
|
-
}, { hasScrollBar:
|
|
49
|
-
const { hasScrollBar:
|
|
46
|
+
)) == null ? void 0 : D.offsetWidth;
|
|
47
|
+
return { tbodyWidth: t, scrollbarSize: c, hasScrollBar: n };
|
|
48
|
+
}, { hasScrollBar: R, scrollbarSize: k } = o(() => {
|
|
49
|
+
const { hasScrollBar: e, scrollbarSize: t } = $();
|
|
50
50
|
return {
|
|
51
|
-
hasScrollBar:
|
|
52
|
-
scrollbarSize:
|
|
51
|
+
hasScrollBar: e,
|
|
52
|
+
scrollbarSize: t
|
|
53
53
|
};
|
|
54
|
-
}, [
|
|
55
|
-
const
|
|
56
|
-
...
|
|
57
|
-
width:
|
|
54
|
+
}, [w == null ? void 0 : w.height]), d = o(() => {
|
|
55
|
+
const e = g ?? [], r = e.filter((n) => !oe.includes(n)).map((n) => ({
|
|
56
|
+
...n,
|
|
57
|
+
width: n.useMaxWidth ? A() ?? n.width : n.width
|
|
58
58
|
}));
|
|
59
|
-
return
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
return ce(
|
|
60
|
+
e,
|
|
61
|
+
r,
|
|
62
62
|
!1,
|
|
63
63
|
!!m,
|
|
64
|
-
!!
|
|
64
|
+
!!i
|
|
65
65
|
);
|
|
66
|
-
}, [g]),
|
|
67
|
-
const
|
|
68
|
-
return Array.from({ length:
|
|
69
|
-
key: `${Date.now()}${
|
|
66
|
+
}, [g]), S = o(() => ue(d), [d]), F = o(() => l ? S : d, [l, d, S]), z = o(() => {
|
|
67
|
+
const e = (u == null ? void 0 : u.length) ?? 0, t = e > 4 ? e >= 8 ? 8 : e : 4;
|
|
68
|
+
return Array.from({ length: t }).map((n, c) => ({
|
|
69
|
+
key: `${Date.now()}${c}`
|
|
70
70
|
}));
|
|
71
|
-
}, [u]),
|
|
72
|
-
if (
|
|
71
|
+
}, [u]), G = o(() => l ? z : u, [l, u, z]), { table: y, locale: H = ie } = L(fe), _ = { ...H.Table }, J = ((E = y == null ? void 0 : y.expandable) == null ? void 0 : E.expandIcon) || (i == null ? void 0 : i.expandIcon) || le(_), B = o(() => {
|
|
72
|
+
if (i)
|
|
73
73
|
return {
|
|
74
|
-
...
|
|
75
|
-
expandedRowRender: () => /* @__PURE__ */
|
|
76
|
-
expandIcon: (
|
|
77
|
-
const
|
|
74
|
+
...i,
|
|
75
|
+
expandedRowRender: () => /* @__PURE__ */ C.jsx(C.Fragment, {}),
|
|
76
|
+
expandIcon: (e) => {
|
|
77
|
+
const t = J(e);
|
|
78
78
|
return {
|
|
79
|
-
...
|
|
79
|
+
...t,
|
|
80
80
|
props: {
|
|
81
|
-
...
|
|
81
|
+
...t.props,
|
|
82
82
|
disabled: !0,
|
|
83
83
|
style: {
|
|
84
|
-
...
|
|
85
|
-
backgroundColor:
|
|
84
|
+
...t.props.style,
|
|
85
|
+
backgroundColor: x.colorBgContainerDisabled
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
};
|
|
89
89
|
}
|
|
90
90
|
};
|
|
91
|
-
}, [
|
|
91
|
+
}, [i]), O = o(() => l ? B : i, [l, i, B]), T = o(() => {
|
|
92
92
|
if (m)
|
|
93
93
|
return {
|
|
94
94
|
...m,
|
|
95
95
|
selectedRowKeys: [],
|
|
96
96
|
getCheckboxProps: () => ({ disabled: !0 })
|
|
97
97
|
};
|
|
98
|
-
}, [m]),
|
|
99
|
-
(
|
|
100
|
-
var
|
|
98
|
+
}, [m]), Q = o(() => l ? T : m, [l, m, T]), U = o(() => l ? void 0 : a.rowKey, [l, a.rowKey]), V = j(
|
|
99
|
+
(e, t) => {
|
|
100
|
+
var n;
|
|
101
101
|
if (!a.onRow)
|
|
102
102
|
return {};
|
|
103
|
-
const
|
|
104
|
-
return
|
|
103
|
+
const r = (n = a.onRow) == null ? void 0 : n.call(a, e, t);
|
|
104
|
+
return r.onClick && (r.className = "rowPointerCursor"), r;
|
|
105
105
|
},
|
|
106
106
|
[a.onRow]
|
|
107
|
-
),
|
|
108
|
-
(
|
|
109
|
-
const
|
|
107
|
+
), X = j(
|
|
108
|
+
(e, t, r) => {
|
|
109
|
+
const n = t % 2 === 0 ? "oddRow" : "evenRow";
|
|
110
110
|
if (a.rowClassName) {
|
|
111
|
-
const
|
|
112
|
-
return
|
|
111
|
+
const c = a.rowClassName(e, t, r);
|
|
112
|
+
return ne(n, c);
|
|
113
113
|
}
|
|
114
|
-
return
|
|
114
|
+
return n;
|
|
115
115
|
},
|
|
116
116
|
[a.rowClassName]
|
|
117
|
-
),
|
|
118
|
-
var
|
|
119
|
-
const
|
|
120
|
-
return
|
|
121
|
-
...
|
|
122
|
-
right:
|
|
123
|
-
}), /* @__PURE__ */
|
|
124
|
-
},
|
|
117
|
+
), Y = (e) => {
|
|
118
|
+
var r;
|
|
119
|
+
const t = { ...e };
|
|
120
|
+
return t.className.includes("ant-table-cell-fix-right") && !R && ((r = t.style) != null && r.right) && (t.style = {
|
|
121
|
+
...t.style,
|
|
122
|
+
right: t.style.right - (k || 0)
|
|
123
|
+
}), /* @__PURE__ */ C.jsx("th", { ...t });
|
|
124
|
+
}, Z = o(() => ({
|
|
125
125
|
...f,
|
|
126
126
|
header: {
|
|
127
127
|
...f == null ? void 0 : f.header,
|
|
128
|
-
cell:
|
|
128
|
+
cell: Y
|
|
129
129
|
}
|
|
130
|
-
}), [f,
|
|
131
|
-
return /* @__PURE__ */
|
|
132
|
-
|
|
130
|
+
}), [f, R, k]);
|
|
131
|
+
return /* @__PURE__ */ C.jsx(
|
|
132
|
+
te,
|
|
133
133
|
{
|
|
134
134
|
...a,
|
|
135
|
-
bordered:
|
|
136
|
-
columns:
|
|
137
|
-
dataSource:
|
|
135
|
+
bordered: M,
|
|
136
|
+
columns: F,
|
|
137
|
+
dataSource: G,
|
|
138
138
|
loading: !1,
|
|
139
139
|
pagination: !1,
|
|
140
140
|
scroll: q,
|
|
141
|
-
expandable:
|
|
142
|
-
rowSelection:
|
|
143
|
-
onRow:
|
|
144
|
-
rowClassName:
|
|
145
|
-
components:
|
|
146
|
-
rowKey:
|
|
147
|
-
rowHoverable:
|
|
141
|
+
expandable: O,
|
|
142
|
+
rowSelection: Q,
|
|
143
|
+
onRow: V,
|
|
144
|
+
rowClassName: X,
|
|
145
|
+
components: Z,
|
|
146
|
+
rowKey: U,
|
|
147
|
+
rowHoverable: P,
|
|
148
148
|
ref: h
|
|
149
149
|
}
|
|
150
150
|
);
|
|
151
151
|
}
|
|
152
152
|
export {
|
|
153
|
-
|
|
153
|
+
Te as default
|
|
154
154
|
};
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { DragEndEvent } from '@dnd-kit/core';
|
|
2
1
|
import { ReactNode } from 'react';
|
|
3
2
|
interface SortTableContextProps {
|
|
4
3
|
children?: ReactNode;
|
|
5
4
|
enabledRowDragSort?: boolean;
|
|
6
5
|
dataSource: any[];
|
|
7
6
|
mergeRowKey: string;
|
|
8
|
-
onDragEnd: (
|
|
7
|
+
onDragEnd: (newCols: any[]) => void;
|
|
9
8
|
}
|
|
10
|
-
declare function SortTableContext({ children, enabledRowDragSort, dataSource, mergeRowKey, onDragEnd, }: SortTableContextProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
|
|
12
|
-
export default _default;
|
|
9
|
+
declare function SortTableContext({ children, enabledRowDragSort, dataSource, mergeRowKey, onDragEnd: dragEndEmit, }: SortTableContextProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default SortTableContext;
|
|
@@ -1,25 +1,48 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { DndContext as
|
|
3
|
-
import { restrictToVerticalAxis as
|
|
4
|
-
import { SortableContext as
|
|
5
|
-
import {
|
|
6
|
-
function
|
|
7
|
-
children:
|
|
8
|
-
enabledRowDragSort:
|
|
9
|
-
dataSource:
|
|
10
|
-
mergeRowKey:
|
|
11
|
-
onDragEnd:
|
|
1
|
+
import { j as n } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
+
import { DndContext as v } from "../../../node_modules/.store/@dnd-kit_core@6.1.0/node_modules/@dnd-kit/core/dist/core.esm.mjs";
|
|
3
|
+
import { restrictToVerticalAxis as u } from "../../../node_modules/.store/@dnd-kit_modifiers@6.0.1/node_modules/@dnd-kit/modifiers/dist/modifiers.esm.mjs";
|
|
4
|
+
import { SortableContext as j, verticalListSortingStrategy as C, arrayMove as D } from "../../../node_modules/.store/@dnd-kit_sortable@7.0.2/node_modules/@dnd-kit/sortable/dist/sortable.esm.mjs";
|
|
5
|
+
import { useState as S } from "react";
|
|
6
|
+
function T({
|
|
7
|
+
children: a,
|
|
8
|
+
enabledRowDragSort: x,
|
|
9
|
+
dataSource: i,
|
|
10
|
+
mergeRowKey: d,
|
|
11
|
+
onDragEnd: f
|
|
12
12
|
}) {
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
const [c, s] = S(-1), l = (t) => {
|
|
14
|
+
var r, e;
|
|
15
|
+
const { active: o } = t;
|
|
16
|
+
o && s((e = (r = o.data) == null ? void 0 : r.current) == null ? void 0 : e.sortable.index);
|
|
17
|
+
}, g = (t) => {
|
|
18
|
+
var r, e;
|
|
19
|
+
const { over: o } = t;
|
|
20
|
+
if (o) {
|
|
21
|
+
const m = (e = (r = o.data) == null ? void 0 : r.current) == null ? void 0 : e.sortable.index;
|
|
22
|
+
c !== m && p(c, m);
|
|
23
|
+
}
|
|
24
|
+
}, p = (t, o) => {
|
|
25
|
+
const r = D(i.slice() ?? [], t, o);
|
|
26
|
+
f(r), s(-1);
|
|
27
|
+
};
|
|
28
|
+
return x ? /* @__PURE__ */ n.jsx(
|
|
29
|
+
v,
|
|
15
30
|
{
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
31
|
+
modifiers: [u],
|
|
32
|
+
onDragStart: l,
|
|
33
|
+
onDragEnd: g,
|
|
34
|
+
onDragCancel: () => s(-1),
|
|
35
|
+
children: /* @__PURE__ */ n.jsx(
|
|
36
|
+
j,
|
|
37
|
+
{
|
|
38
|
+
items: i.map((t) => t[d]),
|
|
39
|
+
strategy: C,
|
|
40
|
+
children: a
|
|
41
|
+
}
|
|
42
|
+
)
|
|
19
43
|
}
|
|
20
|
-
)
|
|
44
|
+
) : /* @__PURE__ */ n.jsx(n.Fragment, { children: a });
|
|
21
45
|
}
|
|
22
|
-
const C = p(l);
|
|
23
46
|
export {
|
|
24
|
-
|
|
47
|
+
T as default
|
|
25
48
|
};
|
|
@@ -6,7 +6,6 @@ import type { RowClassName } from 'rc-table/es/interface';
|
|
|
6
6
|
import { ColumnStateType, DensitySize, StylesStateType, ExportColumnStateType } from '../Store';
|
|
7
7
|
import { ActionsFunType, BitzTableColumnsType, SelelctionAlertProps } from '..';
|
|
8
8
|
import { BitzTableBorderedType } from '@/components/BitzConfigProvider/context';
|
|
9
|
-
import { DragEndEvent } from '@dnd-kit/core';
|
|
10
9
|
import './index.less';
|
|
11
10
|
export interface BitzTableProps<RecordType = any> extends Omit<TableProps<RecordType>, 'size' | 'pagination' | 'bordered'> {
|
|
12
11
|
/** 是否开启rowHover样式 */
|
|
@@ -61,7 +60,7 @@ export interface BitzTableProps<RecordType = any> extends Omit<TableProps<Record
|
|
|
61
60
|
/** 是否启用拖拽 */
|
|
62
61
|
enabledRowDragSort?: boolean;
|
|
63
62
|
/** 拖拽结束 */
|
|
64
|
-
onRowDragEnd?: (
|
|
63
|
+
onRowDragEnd?: (newCols: RecordType[]) => void;
|
|
65
64
|
/** 移动端:加载更多返回函数 */
|
|
66
65
|
/** 移动端:下拉刷新 */
|
|
67
66
|
mobileRefreshEmit?: () => Promise<unknown> | void;
|