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

[Select 选择器] 多选时,change事件可否增加取消选择时点击返回取消选择的值 #4917

Open
Elinya opened this issue Jan 10, 2025 · 3 comments
Labels
need more info need more information to resolve issue

Comments

@Elinya
Copy link

Elinya commented Jan 10, 2025

这个功能解决了什么问题

做需求的时候不方便操作数据

你建议的方案是什么

增加取消选择时,选择项的option数据

Copy link
Contributor

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

@uyarn
Copy link
Collaborator

uyarn commented Jan 10, 2025

没太理解这个需求,是希望可以在change事件中判断是否选中这个选项吗?

@uyarn uyarn added the need more info need more information to resolve issue label Jan 10, 2025
@Elinya
Copy link
Author

Elinya commented Jan 11, 2025

没太理解这个需求,是希望可以在change事件中判断是否选中这个选项吗?

change事件中,context.trigger为check时,会返回context.option,即选中项,但是当context.trigger为uncheck的时候,context.option为空了,希望uncheck可以返回取消的选择项option

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need more info need more information to resolve issue
Projects
None yet
Development

No branches or pull requests

2 participants