tdesign-react icon indicating copy to clipboard operation
tdesign-react copied to clipboard

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

Open Isbutton opened this issue 1 year ago • 6 comments

这个功能解决了什么问题

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

你建议的方案是什么

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

Isbutton avatar Dec 28 '23 08:12 Isbutton

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

github-actions[bot] avatar Dec 28 '23 08:12 github-actions[bot]

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

github-actions[bot] avatar Dec 28 '23 08:12 github-actions[bot]

placeholder

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

Ali-ovo avatar Dec 29 '23 02:12 Ali-ovo

placeholder

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

是的

Isbutton avatar Jan 03 '24 07:01 Isbutton

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

HaixingOoO avatar Jan 03 '24 07:01 HaixingOoO