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] 树形选择 对应的选择值 在多级列表切换时候 由三级向二级 一级列表切换时候 没有去掉之前多级列表的值 #3031

Closed
Qing1 opened this issue Jul 31, 2024 · 3 comments
Labels
wontfix This will not be worked on

Comments

@Qing1
Copy link

Qing1 commented Jul 31, 2024

tdesign-miniprogram 版本

1.5.0

重现链接

https://github.com/Qing1/TDesignUIminiLearningTest1/tree/master

重现步骤

image

打开项目后 添加编译 选择 test1页面 编译 即可出现对应的页面

期望结果

由三级向一级列表切换时候 ,能去掉之前 三级列表中的选中值

实际结果

No response

基础库版本

3.5.1

补充说明

No response

Copy link
Contributor

👋 @Qing1,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@anlyyao
Copy link
Collaborator

anlyyao commented Jul 31, 2024

@Qing1 @jarmywang 这个问题 似乎不是一个bug,原本设计如此。刚刚也特意咨询了一下设计同学 + 参考了其他组件库同名组件,大家都默认保留了上一次的选中子项。实际上,保留上一次选中子项是不影响该组件整体交互的,如果业务上必须清空,可以通过change事件返回的level值,通过判断level变更自行清理value。

@anlyyao anlyyao added the wontfix This will not be worked on label Jul 31, 2024
@Qing1
Copy link
Author

Qing1 commented Jul 31, 2024

明白了 感谢大佬们解惑

@Qing1 Qing1 closed this as completed Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants