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

在分页复选框表格中如果跳转到了第n页(n>1),则无法正确勾选默认选中的数据行 #2372

Open
WHIPLASHCZ opened this issue Apr 28, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@WHIPLASHCZ
Copy link

可复现的链接:

https://codesandbox.io/p/sandbox/vxe-table-4-x-vue-3-0-wen-ti-yan-shi-forked-466r3x?file=%2Fsrc%2Fviews%2FDemo1.vue%3A149%2C21

问题描述与截图:

在分页复选框表格中,通过checkbox-config.checkRowKeys设置了默认选中的行,若这些行是第一页中的数据,则可以正常的默认选中;若这些行不在第一页,跳转到对应页码后,该行并没有被默认勾选。

期望的结果:

无论在哪一页,被默认选中的行都能正常的被默认勾选

操作系统:

windows10

浏览器版本:

chrome 98.0.4758.139

vue 版本:

3.2.31

vxe-table 版本:

4.1.21

@WHIPLASHCZ WHIPLASHCZ added the bug Something isn't working label Apr 28, 2024
@WHIPLASHCZ
Copy link
Author

设置默认选中行这个操作只执行一次,可否修改为在表格有分页的情况下,在每一页只执行一次?

@WHIPLASHCZ
Copy link
Author

我尝试解决了一下这个问题并且提交了一个PR:#2387

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant