Add documentation for "rowKey" property of List component (#139)
parent
757d09ded6
commit
1f856f8c24
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue