---修复input-number组件无法输入0的问题

This commit is contained in:
2026-03-02 18:16:58 +08:00
parent a25d62807a
commit 55ec9f537b
3 changed files with 7 additions and 10 deletions

View File

@ -124,7 +124,7 @@
// }
Number.parse = function(str){
if(str==undefined) return str;
if(str==undefined || Number.is(str)) return str;
str += "";
if(/^-?\d+[\.\d]*$/.test(str)){
return new Number(str);