Skip to content

Commit 2043203

Browse files
josesdevtangjinzhou
authored andcommitted
update table documentation (#800)
* added index parameter on function of rowKey * update size doc in table
1 parent b0c95d3 commit 2043203

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/table/index.en-US.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ const columns = [{
5252
| locale | i18n text including filter, sort, empty text, etc | object | filterConfirm: 'Ok' <br> filterReset: 'Reset' <br> emptyText: 'No Data' |
5353
| pagination | Pagination [config](#pagination) or [`Pagination`] (/components/pagination/), hide it by setting it to `false` | object | |
5454
| rowClassName | Row's className | Function(record, index):string | - |
55-
| rowKey | Row's unique key, could be a string or function that returns a string | string\|Function(record):string | `key` |
55+
| rowKey | Row's unique key, could be a string or function that returns a string | string\|Function(record, index):string | `key` |
5656
| rowSelection | Row selection [config](#rowSelection) | object | null |
5757
| scroll | Set horizontal or vertical scrolling, can also be used to specify the width and height of the scroll area. It is recommended to set a number for `x`, if you want to set it to `true`, you need to add style `.ant-table td { white-space: nowrap; }`. | { x: number \| true, y: number } | - |
5858
| showHeader | Whether to show table header | boolean | `true` |
59-
| size | Size of table | `default` \| `middle` \| `small` | `default` |
59+
| size | Size of table | `default` \| `middle` \| `small` \| `large` | `default` |
6060
| title | Table title renderer | Function(currentPageData)\|slot-scope | |
6161
| customHeaderRow | Set props on per header row | Function(column, index) | - |
6262
| customRow | Set props on per row | Function(record, index) | - |

0 commit comments

Comments
 (0)