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

[SelectInput] SelectInput的valueDIsplay问题 #3160

Closed
chenkang-noob opened this issue Oct 25, 2024 · 2 comments
Closed

[SelectInput] SelectInput的valueDIsplay问题 #3160

chenkang-noob opened this issue Oct 25, 2024 · 2 comments
Labels

Comments

@chenkang-noob
Copy link

tdesign-react 版本

1.9.2

重现链接

https://codesandbox.io/p/sandbox/tdesign-react-demo-forked-38gvns

重现步骤

在多选的情况下,当SelectInput的value出现一个不在选项内的值时。此时valueDisplay方法中的value参数会表现为对应值的label,而不是对应值的value。不确定这是bug还是feature
企业微信截图_2eb2caf0-0088-4c1b-bdf3-c61ee235011d

期望结果

我直觉上觉得应该是表现为value值的

实际结果

我直觉上觉得应该是表现为label值的

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

Copy link
Contributor

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

@HaixingOoO
Copy link
Collaborator

你觉得上面选中在options里的,为什么也现实label的值,因为label值是ui显示的内容,value是内部用到的值,所以你看到label才是正常的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants