refactor(依赖修改、object-assign修改): 依赖修改、object-assign修改
依赖修改、object-assign修改 BREAKING CHANGE: 依赖修改、object-assign修改
This commit is contained in:
parent
7eb328d56b
commit
8ff12a9b00
|
@ -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": {
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue