tdesign-vue-next
Version:
TDesign Component for vue-next
12 lines (11 loc) • 415 B
TypeScript
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;
};