-
Notifications
You must be signed in to change notification settings - Fork 289
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]: InputNumber数字输入框,去除掉值之后失焦/确认之后会变成数值0,应该为空 #1843
Comments
aolinpk
added a commit
to aolinpk/vue-devui
that referenced
this issue
May 21, 2024
已提交PR |
GreatZPP
pushed a commit
that referenced
this issue
Jun 3, 2024
* 组件易用性优化,category-search组件唤出textInput时,input框自动聚焦 (#1842) * fix(inputNumber): #1843,支持inputNumber可以允许输入空串值,即用户删除掉所有值之后有效 * feat(inputNumber): 为允许输入空值(返回null 同ag版本)提供开关参数:allowEmpty。 修复历史代码中为通过语法校验的语法错误。(formContext存在未被定义的情况无法通过ts语法校验) * fix(lint): 预处理函数getPropsSlot无法通过ts校验,实际上这个函数无需校验。建议跳过校验或者定义成any类型 * feat: 新增允许为空验证的测试用例
此 issue 相关的 PR 已经被 Merge,故关闭此 issue。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
1.6.18
Vue Version
3.3.4
Link to minimal reproduction
官方文档即可复现
Step to reproduce
当inputNumber框作为一个非必填输入时他理应可以清空值。但是devui组件中的InputNumebr 用户手动删除值失焦或者确认时会变回0。
What is expected
在inputNumber组件中删除已输入的值可以变为空。
What is actually happening
删除掉值之后变成了0
Any additional comments (optional)
No response
The text was updated successfully, but these errors were encountered: