Merge pull request #1452 from leonisme/2.0
Fix a bug in input-number component
This commit is contained in:
commit
a730fc3dd5
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@
|
|||
// return (num1 * m + num2 * m) / m;
|
||||
// }
|
||||
m = Math.pow(10, Math.max(sq1, sq2));
|
||||
return (num1 * m + num2 * m) / m;
|
||||
return (Math.round(num1 * m) + Math.round(num2 * m)) / m;
|
||||
}
|
||||
|
||||
export default {
|
||||
|
|
Loading…
Add table
Reference in a new issue