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

[TreeSelect] 树选择组件,当同时存在异步加载数据和搜索时,搜索过程中会执行异步加载数据的方法 #3456

Open
Loinver opened this issue Jan 2, 2025 · 1 comment

Comments

@Loinver
Copy link

Loinver commented Jan 2, 2025

tdesign-vue 版本

1.0.7

重现链接

https://stackblitz.com/edit/eurllp?file=src%2Fdemo.vue

重现步骤

image 如demo,树选择同时存在异步加载数据和搜索,输入内容进行远程搜索时,会同时执行异步加载数据的方法

期望结果

搜索时只执行搜索的方法

实际结果

输入内容进行远程搜索时,会同时执行异步加载数据的方法

框架版本

2.6.14

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

是否要考虑搜索时,同时存在异步的场景。当前有数据量很多,需要懒加载,同时还要支持远程搜索,是否可以考虑在treeProps的load回调函数的TreeNodeModel增加搜索的入参内容,此时load才能正确进行远程搜索及懒加载。

Copy link
Contributor

github-actions bot commented Jan 2, 2025

👋 @Loinver,感谢给 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