Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

跨页进行选择时,getSelectRows获取部分选择数据,getSelectRowKeys获取数据 #914

Closed
fengyulf opened this issue Jul 15, 2021 · 8 comments

Comments

@fengyulf
Copy link

Describe the bug

跨页进行选择时,getSelectRows获取数据不对,getSelectRowKeys获取数据正常

Reproduction

image

Please check it out, thank you

@mynetfan
Copy link
Collaborator

mynetfan commented Jul 15, 2021

getSelectRows只能获得当前页面的数据。table不会存储当前页以外的行数据,所以getSelectRows没有其它页的数据

@fengyulf
Copy link
Author

getSelectRowKeys是可以获取所有选择的数据,getSelectRows只能获得部分数据

@364
Copy link

364 commented Aug 12, 2021

getSelectRowKeys是可以获取所有选择的数据,getSelectRows只能获得部分数据

你好,请问 getSelectRows 跨页获取解决了吗,我也遇到同样的问题

@mynetfan
Copy link
Collaborator

getSelectRows 不支持跨页。getSelectRows只会获得当前页面中的数据

@364
Copy link

364 commented Aug 12, 2021

getSelectRows 不支持跨页。getSelectRows只会获得当前页面中的数据

好吧,我想到了一种解决方法,在 beforeFetch 跨页点击时存储当页选择的

@364
Copy link

364 commented Aug 12, 2021

getSelectRows 不支持跨页。getSelectRows只会获得当前页面中的数据

本来我想用 selection-change 去解决,但是这个事件行点击不会响应

@mynetfan
Copy link
Collaborator

已经对getSelectRows做了改动,使之支持跨页选择与getSelectRowKeys保持一致

@fengyulf
Copy link
Author

thank you

@github-actions github-actions bot locked and limited conversation to collaborators Sep 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants