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

表格启用懒加载,展开某一节点后表格data重新赋值,懒加载失效 #2636

Open
1 task done
xiyure opened this issue Nov 13, 2024 · 1 comment
Open
1 task done
Labels
bug Something isn't working

Comments

@xiyure
Copy link

xiyure commented Nov 13, 2024

可复现的链接(包含复现链接与示例代码):

https://codesandbox.io/p/sandbox/lan-jia-zai-wen-ti-yan-shi-hlj4nj

问题描述与截图:

表格开启懒加载后展开节点,然后重新更新表格data数据,如果更新后的数据包含上一次展开的节点,则该节点无法使用懒加载;案例可参考在线演示链接

期望的结果:

上述场景下懒加载能够正常使用

操作系统:

window 11

浏览器版本:

126.0.6478.183

vue 版本:

3.4.21

vxe-pc-ui 版本:

4.0.82

vxe-table 版本:

4.7.96

是否使用当前最新版本?

  • 我已确认是使用当前的最新版本并已按要求提供复现链接与示例代码。
@xiyure xiyure added the bug Something isn't working label Nov 13, 2024
@xuliangzhan
Copy link
Collaborator

https://codesandbox.io/p/sandbox/lan-jia-zai-wen-ti-yan-shi-forked-sty8mk
如果 rowField 没变的话,应该通过 clearTreeExpand() 去清除展开状态

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

2 participants