Update input-number.vue
This commit is contained in:
parent
4d093b5070
commit
10b42e26d2
1 changed files with 1 additions and 4 deletions
|
@ -248,11 +248,8 @@
|
|||
},
|
||||
setValue (val) {
|
||||
// 如果 step 是小数,且没有设置 precision,是有问题的
|
||||
if(val){
|
||||
if (!isNaN(this.precision)) val = Number(Number(val).toFixed(this.precision));
|
||||
}
|
||||
if (val && !isNaN(this.precision)) val = Number(Number(val).toFixed(this.precision));
|
||||
|
||||
|
||||
this.$nextTick(() => {
|
||||
this.currentValue = val;
|
||||
this.$emit('input', val);
|
||||
|
|
Loading…
Add table
Reference in a new issue