react-admin-component
Version:
react library
27 lines (26 loc) • 1.15 kB
TypeScript
import React from 'react';
import { TableProps, TableRowSelection } from 'antd/lib/table';
interface IRowSelectoion extends TableRowSelection<any> {
onChangePro?: (keys: any[], rows: any[]) => void;
}
export interface TableBaseProps extends TableProps<any> {
columns: any[];
fetchApi?: Function;
fetchPageApi?: Function;
apiParams?: any;
rowClassName?: (record: any, index?: number) => string | string;
asyncPagination?: boolean;
paginationCb?: (data: TableProps<any>['pagination'], defaultConfig: any) => TableProps<any>['pagination'] | false;
rowSelection?: IRowSelectoion;
onPageChange?: (pageNo: number, pageSize: number) => void;
onPageChangeFetch?: boolean;
disableMountFetch?: boolean;
normalizeResult?: (res: any) => any;
normalizePageResult?: (res: any) => any;
onDataSourceChange?: (datas: any[]) => void;
hidePagination?: boolean;
compare?: any;
clearSelectedRowKeys?: boolean;
}
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<TableBaseProps & React.RefAttributes<unknown>>>;
export default _default;