---修复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

@ -45,7 +45,7 @@ export class InputNumberModel {
}
viewToModel(vv: ValueType):ValueType {
if(vv==undefined || vv=="" || vv=="-") return;
if(vv===undefined || vv=="" || vv=="-") return;
if(!this.focus){
this.viewValue = Number.format(Number.parse(vv),this.numberFormat);
}
@ -58,7 +58,7 @@ export class InputNumberModel {
}
modelToView(mv: ValueType): ValueType {
if(mv==undefined || mv==null || mv== '') return '';
if(mv===undefined || mv===null || mv=== '') return '';
if(this.focus){
return mv+'';
}