diff --git a/package.json b/package.json index a3ddebd..5c1df86 100644 --- a/package.json +++ b/package.json @@ -41,9 +41,8 @@ "bee-animate": "^1.0.0", "bee-checkbox": "^1.0.1", "bee-form-control": "^1.0.2", - "bee-icon": "latest", + "bee-icon": "1.0.3", "classnames": "^2.2.5", - "object-assign": "latest", "tinper-bee-core": "latest" }, "peerDependencies": { diff --git a/src/Tree.js b/src/Tree.js index 1021c9a..0a2be25 100644 --- a/src/Tree.js +++ b/src/Tree.js @@ -1,6 +1,5 @@ /* eslint no-console:0 */ import React from 'react'; -import assign from 'object-assign'; import classNames from 'classnames'; import { loopAllChildren, @@ -528,7 +527,7 @@ class Tree extends React.Component { } } if (this.treeNodesStates && this.treeNodesStates[pos]) { - assign(cloneProps, this.treeNodesStates[pos].siblingPosition); + Object.assign(cloneProps, this.treeNodesStates[pos].siblingPosition); } return React.cloneElement(child, cloneProps); } diff --git a/src/TreeNode.js b/src/TreeNode.js index 52f9b43..29b6ebc 100644 --- a/src/TreeNode.js +++ b/src/TreeNode.js @@ -1,5 +1,4 @@ import React from 'react'; -import assign from 'object-assign'; import classNames from 'classnames'; import Animate from 'bee-animate'; import { @@ -232,7 +231,7 @@ class TreeNode extends React.Component { if (props.openTransitionName) { animProps.transitionName = props.openTransitionName; } else if (typeof props.openAnimation === 'object') { - animProps.animation = assign({}, props.openAnimation); + animProps.animation = Object.assign({}, props.openAnimation); if (!transitionAppear) { delete animProps.animation.appear; }