We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
2.23.2
3.0.0
Chrome/96.0.4664.110
Windows NT 10.0
https://www.naiveui.com/zh-CN/os-theme/components/input-number
官方文档 数字输入 Input Number 演示-事件 在输入框中输入 1 时 显示吐司 update:value(1) 再输入 0 时 不会弹出吐司 直到输入非 0 数字 才会 弹出吐司 update:value(xx)
在输入 0 时正常触发事件update:value
在输入以0结尾的数字时不会触发update:value事件
The text was updated successfully, but these errors were encountered:
目前来看这是合理的,因为如果你输入0那么update:value的时候会进行Number转换, 0也不会更新上
Sorry, something went wrong.
在输入1之后再输入0 结果为10 值是明显发生改变了的,但是没自动更新 只有失去焦点后才会触发更新,感觉不是很合理
没考虑的的情况,我们会修改
好的 辛苦了
Successfully merging a pull request may close this issue.
TuSimple/naive-ui version (版本)
2.23.2
Vue version (Vue 版本)
3.0.0
Browser and its version (浏览器及其版本)
Chrome/96.0.4664.110
System and its version (系统及其版本)
Windows NT 10.0
Node version (Node 版本)
Reappearance link (重现链接)
https://www.naiveui.com/zh-CN/os-theme/components/input-number
Reappearance steps (重现步骤)
官方文档 数字输入 Input Number 演示-事件 在输入框中输入 1 时 显示吐司 update:value(1)
再输入 0 时 不会弹出吐司 直到输入非 0 数字 才会 弹出吐司 update:value(xx)
Expected results (期望的结果)
在输入 0 时正常触发事件update:value
Actual results (实际的结果)
在输入以0结尾的数字时不会触发update:value事件
Remarks (补充说明)
The text was updated successfully, but these errors were encountered: