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

[Table] 表格选择多页的行,取消当前页的全选后,selectedRowData被清空了 #4743

Open
yixiaco opened this issue Nov 16, 2024 · 1 comment

Comments

@yixiaco
Copy link
Contributor

yixiaco commented Nov 16, 2024

tdesign-vue-next 版本

1.10.3

重现链接

No response

重现步骤

  1. 准备多页数据
  2. 选中第一页与第二页数据
  3. 在表头上取消当前页的选择,在onSelectChange回调中,selection和option.selectedRowData的值对不上,selectedRowData的值被清空了

期望结果

reserveSelectedRowOnPaginate属性为true的情况下,应该只取消当前页的数据,不应该清空selectedRowData的值

实际结果

从表头取消当前页的全选

18b75214dcbcce04e2dba370664a8ff

取消单条数据

82612657a50342c730c1a9cf472244e

可以发现,从表头取消的数据与单条取消的数量不一样,以及与selection的数量页不一致。

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

Copy link
Contributor

👋 @yixiaco,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

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