Skip to content

树形表格中getCheckboxRecords钩子未能获取到折叠节点中子节点 #2871

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

Closed
2 tasks done
chengdaosen opened this issue Apr 17, 2025 · 0 comments
Closed
2 tasks done
Labels
bug Something isn't working

Comments

@chengdaosen
Copy link

chengdaosen commented Apr 17, 2025

可复现的链接(必须为公开链接,仅包含能复现问题的示例代码):

https://codesandbox.io/p/sandbox/vxe-table-4-x-vue-3-0-wen-ti-yan-shi-forked-4c28yd?file=%2Fsrc%2Fviews%2Fcomponent%2FModelTree.vue%3A86%2C21

是否已准备好复现链接与示例代码?

  • 我确定已准备好以上复现链接

问题描述与截图:

Image,父节点处于折叠状态时全选需要获取到全部勾选节点,包含父节点下的所有叶子节点,此处使用getCheckboxRecords钩子只获取到了父节点,但是展开后点击确认却能正确获取所有勾选节点

期望的结果:

无论展开或折叠状态的树形表格都能使用getCheckboxRecords钩子获取正确已勾选节点,而不是在折叠状态只能获取父节点

操作系统:

win11

浏览器版本:

chrome 95.0.4638.69

vue 版本:

vue 3.5.13

vxe-pc-ui 版本:

4.5.22

vxe-table 版本:

4.13.1

是否使用当前最新版本?

  • 我确定已经更新到最新版本后依然存在该问题
@chengdaosen chengdaosen added the bug Something isn't working label Apr 17, 2025
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