UNPKG

xdesign-vue-next

Version:

XDesign Component for vue-next

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