From 72f928ca8ce62954a27e262205ca7df815815cf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Silva?= Date: Fri, 24 May 2019 10:42:34 -0300 Subject: [PATCH 1/2] added index parameter on function of rowKey --- components/table/index.en-US.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/table/index.en-US.md b/components/table/index.en-US.md index c05fc4c45f..7ae8670c4d 100644 --- a/components/table/index.en-US.md +++ b/components/table/index.en-US.md @@ -52,7 +52,7 @@ const columns = [{ | locale | i18n text including filter, sort, empty text, etc | object | filterConfirm: 'Ok'
filterReset: 'Reset'
emptyText: 'No Data' | | pagination | Pagination [config](#pagination) or [`Pagination`] (/components/pagination/), hide it by setting it to `false` | object | | | rowClassName | Row's className | Function(record, index):string | - | -| rowKey | Row's unique key, could be a string or function that returns a string | string\|Function(record):string | `key` | +| rowKey | Row's unique key, could be a string or function that returns a string | string\|Function(record, index):string | `key` | | rowSelection | Row selection [config](#rowSelection) | object | null | | 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 } | - | | showHeader | Whether to show table header | boolean | `true` | From 307581949ef63863c348f0117fbab7aa7e77d604 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Silva?= Date: Fri, 24 May 2019 11:49:27 -0300 Subject: [PATCH 2/2] update size doc in table --- components/table/index.en-US.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/table/index.en-US.md b/components/table/index.en-US.md index 7ae8670c4d..fa7d88b700 100644 --- a/components/table/index.en-US.md +++ b/components/table/index.en-US.md @@ -56,7 +56,7 @@ const columns = [{ | rowSelection | Row selection [config](#rowSelection) | object | null | | 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 } | - | | showHeader | Whether to show table header | boolean | `true` | -| size | Size of table | `default` \| `middle` \| `small` | `default` | +| size | Size of table | `default` \| `middle` \| `small` \| `large` | `default` | | title | Table title renderer | Function(currentPageData)\|slot-scope | | | customHeaderRow | Set props on per header row | Function(column, index) | - | | customRow | Set props on per row | Function(record, index) | - |