Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Table的selectedRowKeys只能以index索引作为取值逻辑 #485

Open
zhouping3 opened this issue Aug 30, 2019 · 0 comments · May be fixed by #490
Open

Table的selectedRowKeys只能以index索引作为取值逻辑 #485

zhouping3 opened this issue Aug 30, 2019 · 0 comments · May be fixed by #490

Comments

@zhouping3
Copy link
Contributor

Table的selectedRowKeys只能以index索引作为取值逻辑,无法自定义为表格数据的某个唯一字段。目前在做表格的动态增删数据时,由于可新增删除表格数据,所以index无法唯一标识表格行数据,导致表格选中逻辑bug(改选中的没选中或不该选中的选中了)。希望可以添加rowKey之类的props可定义selectedRowKeys的取值逻辑

@menggeNiu menggeNiu linked a pull request Sep 17, 2019 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants