InputNumber: remove unnecessary parseFloat (#14172)

pull/14392/head
JuniorTour 2019-02-15 15:39:39 +08:00 committed by hetech
parent 1ec0821e42
commit 740248bca4
1 changed files with 1 additions and 1 deletions

View File

@ -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;