Skip to content

Commit 4c3cc68

Browse files
committed
1 parent 8d2cbba commit 4c3cc68

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rc-tween-one",
3-
"version": "2.4.0",
3+
"version": "2.4.1",
44
"description": "tween-one anim component for react",
55
"keywords": [
66
"react",

src/plugin/ChildrenPlugin.jsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
/* eslint-disable func-names */
2-
import {
3-
toFixed,
4-
} from 'style-utils';
52

63
const ChildrenPlugin = function (target, vars) {
74
this.target = target;
@@ -41,7 +38,7 @@ ChildrenPlugin.prototype = {
4138
let v = (value - this.start.value) * ratio + this.start.value;
4239
if (typeof floatLength === 'number') {
4340
if (floatLength) {
44-
v = toFixed(v, floatLength);
41+
v = v.toFixed(floatLength);
4542
const numberArray = v.toString().split('.');
4643
let decimal = numberArray[1] || '';
4744
decimal = decimal.length > floatLength ? decimal.substring(0, floatLength) : decimal;

0 commit comments

Comments
 (0)