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

🐛[BUG]ProTable组件可勾选框bug问题 #9028

Open
niuniuaikeji opened this issue Feb 25, 2025 · 0 comments
Open

🐛[BUG]ProTable组件可勾选框bug问题 #9028

niuniuaikeji opened this issue Feb 25, 2025 · 0 comments

Comments

@niuniuaikeji
Copy link

提问前先看看:

https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md

🐛 bug 描述

rowSelection={
          onSelectChange
            ? {
                onChange: handleOnChange,
                selectedRowKeys,
                preserveSelectedRowKeys: true,
              }
            : false
        }

当设置了preserveSelectedRowKeys: true时,比如在当前第一页和第三页中有行被选中,onChange获取到的数据中拿不到第三页中的数据,返回undefined;

When preserveSelect RowKeys is set: When true, for example, if a row is selected on the current first and third pages, and the data obtained by onChange cannot retrieve the data from the third page, return undefined;

🏞 期望结果

期望preserveSelectedRowKeys: true时,可以拿到当前Table所有选中的数据,而不是只拿到当前页的数据

Expected to preserve SelectedRowKeys: When true, all selected data in the current table can be obtained instead of only the data on the current page

© 版本信息

  • ProComponents 版本: [e.g. 4.0.0]
  • umi 版本
  • 浏览器环境
  • 开发环境 [e.g. mac OS]

🚑 其他信息

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant