mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 22:36:31 +08:00
Add 'middle' as a valid value for Table.props.size
(#4819)
This commit is contained in:
parent
16ad027988
commit
7010dd018d
@ -52,7 +52,7 @@ export interface TableProps<T> {
|
||||
dropdownPrefixCls?: string;
|
||||
rowSelection?: TableRowSelection<T>;
|
||||
pagination?: PaginationProps | boolean;
|
||||
size?: 'default' | 'small';
|
||||
size?: 'default' | 'middle' | 'small';
|
||||
dataSource?: T[];
|
||||
columns?: ColumnProps<T>[];
|
||||
rowKey?: string | ((record: T, index: number) => string);
|
||||
|
@ -54,7 +54,7 @@ const columns = [{
|
||||
|---------------|--------------------------|-----------------|--------------|
|
||||
| rowSelection | row selection [config](#rowSelection) | object | null |
|
||||
| pagination | pagination [config](/components/pagination/), hide it via setting to `false` | object | |
|
||||
| size | size of table: `default` or `small` | string | `default` |
|
||||
| size | size of table: `default`, `middle` or `small` | string | `default` |
|
||||
| dataSource | data record array to be rendered | any[] | |
|
||||
| columns | columns of table | [ColumnProps](https://git.io/vMMXC)[] | - |
|
||||
| rowKey | get row's key, could be a string or function | string\|Function(record):string | 'key' |
|
||||
|
Loading…
Reference in New Issue
Block a user