UNPKG

@antdp/hooks

Version:
18 lines (17 loc) 522 B
import { useAntdTable } from 'ahooks'; type UseTableType = Parameters<typeof useAntdTable>; declare function useTable(service: UseTableType[0], options: UseTableType[1]): { tableProps: { pagination: any; dataSource: any[]; loading: boolean; onChange: (pagination: any, filters?: any, sorter?: any) => void; }; search: { type: "simple" | "advance"; changeType: () => void; submit: () => void; reset: () => void; }; }; export default useTable;