UNPKG

@fesjs/fes-design

Version:
22 lines (21 loc) 687 B
import { type Ref, type SetupContext } from 'vue'; import type { RowType } from './interface'; import type { ColumnInst, SortOrderType, SorterType } from './column'; type SortStateType = { prop?: string; order?: 'descend' | 'ascend'; sorter?: SorterType; }; declare const _default: ({ ctx, columns, }: { ctx: SetupContext; columns: Ref<ColumnInst[]>; }) => { sortState: SortStateType; handleClickSortHeader: ({ column }: { column: ColumnInst; }) => void; sort: (prop: string, order: SortOrderType) => void; clearSorter: () => void; handleRowDataBySort: (data: RowType[], param: SortStateType) => RowType[]; }; export default _default;