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.
Files changed (62) hide show
  1. package/dist/_virtual/_commonjsHelpers.mjs +4 -26
  2. package/dist/components/BitzConfigProvider/context.d.ts +1 -0
  3. package/dist/components/BitzConfigProvider/context.mjs +4 -3
  4. package/dist/components/BitzHighlight/style.mjs +12 -12
  5. package/dist/components/BitzTable/ActionBar/style.mjs +21 -21
  6. package/dist/components/BitzTable/ActionCol/index.mjs +59 -58
  7. package/dist/components/BitzTable/ActionCol/style.d.ts +1 -1
  8. package/dist/components/BitzTable/ActionCol/style.mjs +28 -28
  9. package/dist/components/BitzTable/Dropdown/style.mjs +25 -25
  10. package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +26 -15
  11. package/dist/components/BitzTable/SelectionBar/style.mjs +24 -24
  12. package/dist/components/BitzTable/Store/index.d.ts +4 -0
  13. package/dist/components/BitzTable/Store/index.mjs +90 -88
  14. package/dist/components/BitzTable/SubTable/index.mjs +94 -94
  15. package/dist/components/BitzTable/Table/SortTableContext.d.ts +3 -5
  16. package/dist/components/BitzTable/Table/SortTableContext.mjs +42 -19
  17. package/dist/components/BitzTable/Table/index.d.ts +1 -2
  18. package/dist/components/BitzTable/Table/index.mjs +247 -245
  19. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +51 -47
  20. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +61 -60
  21. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.mjs +46 -38
  22. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +44 -44
  23. package/dist/components/BitzTable/ToolBar/Modal/index.mjs +19 -12
  24. package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +46 -43
  25. package/dist/components/BitzTable/ToolBar/style.mjs +21 -21
  26. package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +15 -16
  27. package/dist/components/BitzTableSelect/SelectPopup/index.mjs +13 -14
  28. package/dist/components/BitzTableSelect/TableCell/index.mjs +34 -33
  29. package/dist/components/BitzTableSelect/TextBlock/index.mjs +20 -18
  30. package/dist/node_modules/.store/prop-types@15.8.1/node_modules/prop-types/index.mjs +7 -8
  31. package/dist/node_modules/.store/use-sync-external-store@1.2.0/node_modules/use-sync-external-store/shim/index.mjs +1 -1
  32. package/dist/style.css +1 -1
  33. package/package.json +1 -1
  34. package/dist/_virtual/Draggable.mjs +0 -4
  35. package/dist/_virtual/DraggableCore.mjs +0 -4
  36. package/dist/_virtual/Resizable.mjs +0 -4
  37. package/dist/_virtual/ResizableBox.mjs +0 -4
  38. package/dist/_virtual/cjs.mjs +0 -4
  39. package/dist/_virtual/clsx.m.mjs +0 -6
  40. package/dist/_virtual/domFns.mjs +0 -4
  41. package/dist/_virtual/getPrefix.mjs +0 -4
  42. package/dist/_virtual/index6.mjs +0 -4
  43. package/dist/_virtual/log.mjs +0 -4
  44. package/dist/_virtual/positionFns.mjs +0 -4
  45. package/dist/_virtual/propTypes.mjs +0 -4
  46. package/dist/_virtual/shims.mjs +0 -4
  47. package/dist/_virtual/utils.mjs +0 -4
  48. package/dist/components/BitzTable/Table/ResizableTitle.mjs +0 -32
  49. package/dist/node_modules/.store/clsx@1.2.1/node_modules/clsx/dist/clsx.m.mjs +0 -22
  50. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/Draggable.mjs +0 -343
  51. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/DraggableCore.mjs +0 -324
  52. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/cjs.mjs +0 -14
  53. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/domFns.mjs +0 -174
  54. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/getPrefix.mjs +0 -35
  55. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/log.mjs +0 -7
  56. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/positionFns.mjs +0 -107
  57. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/shims.mjs +0 -30
  58. package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/Resizable.mjs +0 -201
  59. package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/ResizableBox.mjs +0 -162
  60. package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/propTypes.mjs +0 -118
  61. package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/utils.mjs +0 -54
  62. 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 y } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
- import { useContext as D, useRef as Z, useMemo as o, useCallback as I } from "react";
3
- import { Table as tt } from "antd";
4
- import et from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
5
- import { BitzTableContext as rt, toolCols as nt } from "../Store/index.mjs";
6
- import ot from "../../../node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useSize/index.mjs";
7
- import st from "../ActionCol/style.mjs";
8
- import at from "../../BitzTheme/index.mjs";
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 ct from "../../../node_modules/.store/antd@5.16.2/node_modules/antd/locale/en_US.mjs";
12
- import { getColumnsWithTool as it, loopBuildSkeleton as ut } from "../Table/utils.mjs";
13
- import { ConfigContext as mt } from "../../../node_modules/.store/antd@5.16.2/node_modules/antd/es/config-provider/context.mjs";
14
- function Bt({
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: c,
20
+ expandable: i,
21
21
  rowSelection: m,
22
22
  ...a
23
23
  }) {
24
- var T, p;
25
- const { token: L } = at.useToken(), { gap: j } = st(), { showColumnBorder: K, rowHoverable: M } = D(rt), h = Z(null), C = ot((T = h.current) == null ? void 0 : T.nativeElement), q = o(() => {
26
- let t = (s == null ? void 0 : s.x) ?? 1e3;
27
- return s != null && s.x ? { x: t, y: s.y || 400 } : s != null && s.y ? { x: t, y: s.y } : { x: t, y: 400 };
28
- }, [s]), P = () => {
29
- var n, r;
30
- const t = (r = (n = h.current) == null ? void 0 : n.nativeElement) == null ? void 0 : r.querySelectorAll(
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
- ), e = [];
33
- if (t == null || t.forEach((i) => {
32
+ ), t = [];
33
+ if (e == null || e.forEach((c) => {
34
34
  var b;
35
- e.push(
36
- ((b = i.querySelector("& > .operationCol .actionGroup")) == null ? void 0 : b.clientWidth) || 0
35
+ t.push(
36
+ ((b = c.querySelector("& > .operationCol .actionGroup")) == null ? void 0 : b.clientWidth) || 0
37
37
  );
38
- }), e.length)
39
- return Math.ceil(Math.max(...e)) + j * 2;
40
- }, A = () => {
41
- var b, W, E, v, N;
42
- const t = (W = (b = h.current) == null ? void 0 : b.nativeElement) == null ? void 0 : W.querySelector(
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
- ), e = t == null ? void 0 : t.clientWidth, r = ((t == null ? void 0 : t.offsetWidth) || 0) - e > 0, i = (N = (v = (E = h.current) == null ? void 0 : E.nativeElement) == null ? void 0 : v.querySelector(
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 : N.offsetWidth;
47
- return { tbodyWidth: e, scrollbarSize: i, hasScrollBar: r };
48
- }, { hasScrollBar: x, scrollbarSize: R } = o(() => {
49
- const { hasScrollBar: t, scrollbarSize: e } = A();
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: t,
52
- scrollbarSize: e
51
+ hasScrollBar: e,
52
+ scrollbarSize: t
53
53
  };
54
- }, [C == null ? void 0 : C.height]), d = o(() => {
55
- const t = g ?? [], n = t.filter((r) => !nt.includes(r)).map((r) => ({
56
- ...r,
57
- width: r.useMaxWidth ? P() ?? r.width : r.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 it(
60
- t,
61
- n,
59
+ return ce(
60
+ e,
61
+ r,
62
62
  !1,
63
63
  !!m,
64
- !!c
64
+ !!i
65
65
  );
66
- }, [g]), k = o(() => ut(d), [d]), G = o(() => l ? k : d, [l, d, k]), S = o(() => {
67
- const t = (u == null ? void 0 : u.length) ?? 0, e = t > 4 ? t >= 8 ? 8 : t : 4;
68
- return Array.from({ length: e }).map((r, i) => ({
69
- key: `${Date.now()}${i}`
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]), $ = o(() => l ? S : u, [l, u, S]), { table: w, locale: F = ct } = D(mt), H = { ...F.Table }, _ = ((p = w == null ? void 0 : w.expandable) == null ? void 0 : p.expandIcon) || (c == null ? void 0 : c.expandIcon) || lt(H), z = o(() => {
72
- if (c)
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
- ...c,
75
- expandedRowRender: () => /* @__PURE__ */ y.jsx(y.Fragment, {}),
76
- expandIcon: (t) => {
77
- const e = _(t);
74
+ ...i,
75
+ expandedRowRender: () => /* @__PURE__ */ C.jsx(C.Fragment, {}),
76
+ expandIcon: (e) => {
77
+ const t = J(e);
78
78
  return {
79
- ...e,
79
+ ...t,
80
80
  props: {
81
- ...e.props,
81
+ ...t.props,
82
82
  disabled: !0,
83
83
  style: {
84
- ...e.props.style,
85
- backgroundColor: L.colorBgContainerDisabled
84
+ ...t.props.style,
85
+ backgroundColor: x.colorBgContainerDisabled
86
86
  }
87
87
  }
88
88
  };
89
89
  }
90
90
  };
91
- }, [c]), J = o(() => l ? z : c, [l, c, z]), B = o(() => {
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]), O = o(() => l ? B : m, [l, m, B]), Q = o(() => l ? void 0 : a.rowKey, [l, a.rowKey]), U = I(
99
- (t, e) => {
100
- var r;
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 n = (r = a.onRow) == null ? void 0 : r.call(a, t, e);
104
- return n.onClick && (n.className = "rowPointerCursor"), n;
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
- ), V = I(
108
- (t, e, n) => {
109
- const r = e % 2 === 0 ? "oddRow" : "evenRow";
107
+ ), X = j(
108
+ (e, t, r) => {
109
+ const n = t % 2 === 0 ? "oddRow" : "evenRow";
110
110
  if (a.rowClassName) {
111
- const i = a.rowClassName(t, e, n);
112
- return et(r, i);
111
+ const c = a.rowClassName(e, t, r);
112
+ return ne(n, c);
113
113
  }
114
- return r;
114
+ return n;
115
115
  },
116
116
  [a.rowClassName]
117
- ), X = (t) => {
118
- var n;
119
- const e = { ...t };
120
- return e.className.includes("ant-table-cell-fix-right") && !x && ((n = e.style) != null && n.right) && (e.style = {
121
- ...e.style,
122
- right: e.style.right - (R || 0)
123
- }), /* @__PURE__ */ y.jsx("th", { ...e });
124
- }, Y = o(() => ({
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: X
128
+ cell: Y
129
129
  }
130
- }), [f, x, R]);
131
- return /* @__PURE__ */ y.jsx(
132
- tt,
130
+ }), [f, R, k]);
131
+ return /* @__PURE__ */ C.jsx(
132
+ te,
133
133
  {
134
134
  ...a,
135
- bordered: K,
136
- columns: G,
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: J,
142
- rowSelection: O,
143
- onRow: U,
144
- rowClassName: V,
145
- components: Y,
146
- rowKey: Q,
147
- rowHoverable: M,
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
- Bt as default
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: (event: DragEndEvent) => void;
7
+ onDragEnd: (newCols: any[]) => void;
9
8
  }
10
- declare function SortTableContext({ children, enabledRowDragSort, dataSource, mergeRowKey, onDragEnd, }: SortTableContextProps): import("react/jsx-runtime").JSX.Element;
11
- declare const _default: import("react").MemoExoticComponent<typeof SortTableContext>;
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 t } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
- import { DndContext as a } from "../../../node_modules/.store/@dnd-kit_core@6.1.0/node_modules/@dnd-kit/core/dist/core.esm.mjs";
3
- import { restrictToVerticalAxis as n } from "../../../node_modules/.store/@dnd-kit_modifiers@6.0.1/node_modules/@dnd-kit/modifiers/dist/modifiers.esm.mjs";
4
- import { SortableContext as x, verticalListSortingStrategy as f } from "../../../node_modules/.store/@dnd-kit_sortable@7.0.2/node_modules/@dnd-kit/sortable/dist/sortable.esm.mjs";
5
- import { memo as p } from "react";
6
- function l({
7
- children: r,
8
- enabledRowDragSort: o,
9
- dataSource: e,
10
- mergeRowKey: m,
11
- onDragEnd: i
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
- return o ? /* @__PURE__ */ t.jsx(a, { modifiers: [n], onDragEnd: i, children: /* @__PURE__ */ t.jsx(
14
- x,
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
- items: e.map((s) => s[m]),
17
- strategy: f,
18
- children: r
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
- ) }) : /* @__PURE__ */ t.jsx(t.Fragment, { children: r });
44
+ ) : /* @__PURE__ */ n.jsx(n.Fragment, { children: a });
21
45
  }
22
- const C = p(l);
23
46
  export {
24
- C as default
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?: (event: DragEndEvent) => void;
63
+ onRowDragEnd?: (newCols: RecordType[]) => void;
65
64
  /** 移动端:加载更多返回函数 */
66
65
  /** 移动端:下拉刷新 */
67
66
  mobileRefreshEmit?: () => Promise<unknown> | void;