UNPKG

tdesign-react

Version:
13 lines (12 loc) 593 B
import { MutableRefObject } from 'react'; import { PaginationProps } from '../../pagination'; import { TableRowData, TdPrimaryTableProps } from '../type'; export default function useDragSort(props: TdPrimaryTableProps, { primaryTableRef, innerPagination, }: { primaryTableRef: MutableRefObject<any>; innerPagination: MutableRefObject<PaginationProps>; }): { isRowDraggable: boolean; isRowHandlerDraggable: boolean; isColDraggable: boolean; setDragSortColumns: import("react").Dispatch<import("react").SetStateAction<import("../type").BaseTableCol<TableRowData>[]>>; };