Skip to content

Commit 16b2ca3

Browse files
AlrikOlsontangjinzhou
authored andcommitted
Add documentation for "rowKey" property of List component (#139)
1 parent 15c1490 commit 16b2ca3

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

components/list/index.en-US.md

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

1920
### List grid props
2021

components/list/index.zh-CN.md

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

2021
### List grid props
2122

0 commit comments

Comments
 (0)