You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.8 KiB
40 lines
1.8 KiB
/// <reference types="react" />
|
|
import { TableProps as RcTableProps } from 'rc-table/lib/Table';
|
|
import { SpinProps } from '../spin';
|
|
import { TableRowSelection, ColumnsType, TableCurrentDataSource, SorterResult, Key, GetPopupContainer, TablePaginationConfig, SortOrder, TableLocale } from './interface';
|
|
import { SizeType } from '../config-provider/SizeContext';
|
|
export { ColumnsType, TablePaginationConfig };
|
|
export interface TableProps<RecordType> extends Omit<RcTableProps<RecordType>, 'transformColumns' | 'internalHooks' | 'internalRefs' | 'data' | 'columns' | 'scroll' | 'emptyText'> {
|
|
dropdownPrefixCls?: string;
|
|
dataSource?: RcTableProps<RecordType>['data'];
|
|
columns?: ColumnsType<RecordType>;
|
|
pagination?: false | TablePaginationConfig;
|
|
loading?: boolean | SpinProps;
|
|
size?: SizeType;
|
|
bordered?: boolean;
|
|
locale?: TableLocale;
|
|
onChange?: (pagination: TablePaginationConfig, filters: Record<string, Key[] | null>, sorter: SorterResult<RecordType> | SorterResult<RecordType>[], extra: TableCurrentDataSource<RecordType>) => void;
|
|
rowSelection?: TableRowSelection<RecordType>;
|
|
getPopupContainer?: GetPopupContainer;
|
|
scroll?: RcTableProps<RecordType>['scroll'] & {
|
|
scrollToFirstRowOnChange?: boolean;
|
|
};
|
|
sortDirections?: SortOrder[];
|
|
showSorterTooltip?: boolean;
|
|
}
|
|
declare function Table<RecordType extends object = any>(props: TableProps<RecordType>): JSX.Element;
|
|
declare namespace Table {
|
|
var defaultProps: {
|
|
rowKey: string;
|
|
};
|
|
var SELECTION_ALL: "SELECT_ALL";
|
|
var SELECTION_INVERT: "SELECT_INVERT";
|
|
var Column: typeof import("./Column").default;
|
|
var ColumnGroup: typeof import("./ColumnGroup").default;
|
|
var Summary: {
|
|
Cell: typeof import("rc-table/lib/Footer/Cell").default;
|
|
Row: typeof import("rc-table/lib/Footer/Row").default;
|
|
};
|
|
}
|
|
export default Table;
|