Add 'middle' as a valid value for Table.props.size (#4819)

This commit is contained in:
Warren Seymour 2017-02-09 14:43:58 +00:00 committed by Wei Zhu
parent 16ad027988
commit 7010dd018d
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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' |