UNPKG

tdesign-vue-next

Version:
12 lines (11 loc) 415 B
import { SetupContext } from 'vue'; import { SortInfo, TdPrimaryTableProps, PrimaryTableCol, TableRowData } from '../type'; export type SortMap = Record<string, SortInfo & { index: number; }>; export default function useSorter(props: TdPrimaryTableProps, { slots }: SetupContext): { renderSortIcon: ({ col }: { col: PrimaryTableCol<TableRowData>; colIndex: number; }) => JSX.Element; };