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 组件使用labelInValue后,希望把选中的属性全部暴露出去,不然只能获取到label、value的值 #50586

Open
wj0101 opened this issue Aug 27, 2024 · 4 comments · May be fixed by react-component/tree-select#589

Comments

@wj0101
Copy link

wj0101 commented Aug 27, 2024

What problem does this feature solve?

能满足复杂的选择判断场景

What does the proposed API look like?

增加返回字段

@afc163
Copy link
Member

afc163 commented Aug 27, 2024

What does the proposed API look like?

@wj0101
Copy link
Author

wj0101 commented Aug 27, 2024

What does the proposed API look like?

select组件一样onChange中加个option

@Wxh16144
Copy link
Member

我觉得可以在 onChange 的第三个参数(extra)中把最初的 option item 暴露出来🤔

@nathanlao
Copy link
Contributor

根据 @Wxh16144 建议提交了一个PR

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

Successfully merging a pull request may close this issue.

5 participants