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] input在focus时支持显示自定义的valueDisplay #2688

Open
Isbutton opened this issue Dec 28, 2023 · 6 comments
Open

[TreeSelect] input在focus时支持显示自定义的valueDisplay #2688

Isbutton opened this issue Dec 28, 2023 · 6 comments
Assignees
Labels
enhancement New feature or request improvement

Comments

@Isbutton
Copy link

这个功能解决了什么问题

在TreeSelect组件,设置了clearable,filterable,valueDisplay时,用户重新选择的时候,input里的placeholder是value,而不是valueDisplay。导致了input里占位和下拉树里的内容不一致,给用户造成了多余的理解成本。

你建议的方案是什么

TreeSelect组件props提供属性,能够控制focus时候(即popup出现的时候)的placeholder的值。

Copy link
Contributor

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

Copy link
Contributor

♥️ 有劳 @Hoofoo-WHU @honkinglin 尽快确认问题。
确认有效后将下一步计划和可能需要的时间回复给 @Isbutton

@HaixingOoO HaixingOoO added the enhancement New feature or request label Dec 28, 2023
@Ali-ovo
Copy link
Contributor

Ali-ovo commented Dec 29, 2023

placeholder

你这个截图想表达的应该是 focus 的时候 input 里的 placeholder 是 valueDisplay,而不是 value 吧?

@Isbutton
Copy link
Author

Isbutton commented Jan 3, 2024

placeholder

你这个截图想表达的应该是 focus 的时候 input 里的 placeholder 是 valueDisplay,而不是 value 吧?

是的

@HaixingOoO
Copy link
Collaborator

@Isbutton 您好,可以提供個CodeSandBox嗎?

@Isbutton
Copy link
Author

Isbutton commented Sep 14, 2024

@Isbutton 您好,可以提供個CodeSandBox嗎?

示例地址

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request improvement
Projects
None yet
Development

No branches or pull requests

4 participants