mirror of https://github.com/ElemeFE/element
InputNumber: remove unnecessary parseFloat (#14172)
parent
1ec0821e42
commit
740248bca4
|
@ -174,7 +174,7 @@
|
|||
methods: {
|
||||
toPrecision(num, precision) {
|
||||
if (precision === undefined) precision = this.numPrecision;
|
||||
return parseFloat(parseFloat(Number(num).toFixed(precision)));
|
||||
return parseFloat(Number(num).toFixed(precision));
|
||||
},
|
||||
getPrecision(value) {
|
||||
if (value === undefined) return 0;
|
||||
|
|
Loading…
Reference in New Issue