|
|
@ -84,12 +84,13 @@ export interface SorterResult<T> {
|
|
|
|
field: string;
|
|
|
|
field: string;
|
|
|
|
columnKey: string;
|
|
|
|
columnKey: string;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export type TableSize = 'default' | 'middle' | 'small';
|
|
|
|
export interface TableProps<T> {
|
|
|
|
export interface TableProps<T> {
|
|
|
|
prefixCls?: string;
|
|
|
|
prefixCls?: string;
|
|
|
|
dropdownPrefixCls?: string;
|
|
|
|
dropdownPrefixCls?: string;
|
|
|
|
rowSelection?: TableRowSelection<T>;
|
|
|
|
rowSelection?: TableRowSelection<T>;
|
|
|
|
pagination?: PaginationConfig | false;
|
|
|
|
pagination?: PaginationConfig | false;
|
|
|
|
size?: 'default' | 'middle' | 'small';
|
|
|
|
size?: TableSize;
|
|
|
|
dataSource?: T[];
|
|
|
|
dataSource?: T[];
|
|
|
|
components?: TableComponents;
|
|
|
|
components?: TableComponents;
|
|
|
|
columns?: ColumnProps<T>[];
|
|
|
|
columns?: ColumnProps<T>[];
|
|
|
|