-
Notifications
You must be signed in to change notification settings - Fork 273
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
🐛 [Bug]: tiny-select的change事件不能拿到选择的对象,只能获取选择的值 #2614
Comments
Title: 🐛 [Bug]: The change event of tiny-select cannot get the object value, but can only get the selected value. |
@wNing50 的pr, 给事件最后补了一个参数,是不会带来破坏性变更。 我们内部讨论一下,再决定是否需要合入吧 |
@wNing50's PR adds a parameter to the event, which will not cause destructive changes. Let's discuss it internally and decide whether we need to merge. |
change事件中获取不到
…------------------ 原始邮件 ------------------
发件人: ***@***.***>;
发送时间: 2025年1月3日(星期五) 下午5:08
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [opentiny/tiny-vue] 🐛 [Bug]: tiny-select的change事件不能拿到选择的对象,只能获取选择的值 (Issue #2614)
Bot detected the issue body's language is not English, translate it automatically.
image.png (view on web)
There is an example of this on the official website, and users should use this solution based on their needs.
@wNing50's PR adds a parameter to the event, which will not cause destructive changes.
However, most user scenarios of the select component do not use the last parameter. Usually only the bound value, such as the product code, is needed. Is this extra consumption necessary, or is it more reasonable to let users filter out the objects themselves?
Let's discuss it internally and decide whether we need to merge.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
@552847957 请使用 “绑定对象”的方式, 这样change可以拿到对象。 @wNing50 我们讨论了下,暂不合入了。 |
@552847957 Please use the "binding object" method so that change can get the object. @wNing50 We discussed it and decided not to join in for the time being.
|
okok |
reasons |
Version
@opentiny/[email protected]
Vue Version
3.0
Link to minimal reproduction
tiny-select的change事件不能拿到对象值,只能获取选择的值
Step to reproduce
tiny-select的change事件中不能拿到对象值,只能获取选择的值
What is expected
No response
What is actually happening
No response
What is your project name
1
Any additional comments (optional)
No response
The text was updated successfully, but these errors were encountered: