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

懒加载场景下更新数据后,再使用setTreeExpand方法展开子级时子级数据消失 #2693

Open
1 task done
SunYiHang-Git opened this issue Dec 18, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@SunYiHang-Git
Copy link

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

https://stackblitz.com/edit/vitejs-vite-nnmwgaby?file=src%2Fviews%2FDemo1.vue

问题描述与截图:

懒加载场景下更新数据后,再使用setTreeExpand方法展开子级时子级数据消失,在issue列表中找到类似issue显示状态已修复,但更新最新版本后仍然存在该问题;
issue链接

期望的结果:

刷新数据后使用setTreeExpand正常展开数据

操作系统:

window 11

浏览器版本:

131.0.6778.109

vue 版本:

3.4.21

vxe-pc-ui 版本:

4.0.82

vxe-table 版本:

4.9.29

是否使用当前最新版本?

  • 我已确认是使用当前的最新版本并已按要求提供复现链接与示例代码。
@SunYiHang-Git SunYiHang-Git added the bug Something isn't working label Dec 18, 2024
@SunYiHang-Git SunYiHang-Git changed the title (问题冲i西安)懒加载场景下更新数据后,再使用setTreeExpand方法展开子级时子级数据消失 懒加载场景下更新数据后,再使用setTreeExpand方法展开子级时子级数据消失 Dec 18, 2024
@QijianMo
Copy link

我也遇到这个问题了,作者4.9.20+貌似修复了这个问题,但是我更新的时候问题貌似好像存在

@xlz26296
Copy link
Contributor

vue 的操作都是异步的,你要等队列执行完成后才能调用方法
https://stackblitz.com/edit/vitejs-vite-ac4acbqo?file=src%2Fviews%2FDemo1.vue

@SunYiHang-Git
Copy link
Author

感谢,非常感谢,已经正常了

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

3 participants