Add docs for the List rowKey prop

Add documentation for the rowKey property of the lists
This commit is contained in:
Gabriel Nunes 2018-12-27 23:34:33 -02:00 committed by 偏右
parent a8019bf0a0
commit a513ee1d73

View File

@ -22,6 +22,7 @@ A list can be used to display content related to a single subject. The content c
| grid | The grid type of list. You can set grid to something like {gutter: 16, column: 4} | object | - |
| header | List header renderer | string\|ReactNode | - |
| itemLayout | The layout of list, default is `horizontal`, If a vertical list is desired, set the itemLayout property to `vertical` | string | - |
| rowKey | Item's unique key, could be a string or function that returns a string | string\|Function(record):string | `key` |
| loading | Shows a loading indicator while the contents of the list are being fetched | boolean\|[object](https://ant.design/components/spin-cn/#API) ([more](https://github.com/ant-design/ant-design/issues/8659)) | false |
| loadMore | Shows a load more content | string\|ReactNode | - |
| locale | i18n text including empty text | object | emptyText: 'No Data' <br> |