Add documentation for "rowKey" property of List component (#139)

pull/165/head
Alrik Olson 2018-08-23 18:56:44 -07:00 committed by tangjinzhou
parent 757d09ded6
commit 1f856f8c24
2 changed files with 2 additions and 0 deletions

View File

@ -15,6 +15,7 @@
| pagination | Pagination [config](https://vuecomponent.github.io/ant-design-vue/components/pagination/#API), hide it by setting it to false | boolean \| object | false |
| split | Toggles rendering of the split under the list item | boolean | true |
| renderItem | Custom item renderer, slot="renderItem" and slot-scope="item, index" | (item, index) => vNode | | - |
| rowKey | Specify the key that will be used for uniquely identify each element | item => string\|number | |
### List grid props

View File

@ -16,6 +16,7 @@
| size | list 的尺寸 | `default` \| `middle` \| `small` | `default` |
| split | 是否展示分割线 | boolean | true |
| renderItem | 自定义`Item`函数也可使用slot="renderItem" 和 slot-scope="item, index" | (item, index) => vNode | | - |
| rowKey | 各项 key 的取值,可以是字符串或一个函数 | item => string\|number | |
### List grid props