ver. 1.0.1

This commit is contained in:
wh 2017-11-03 15:02:29 +08:00
parent 343021429f
commit ae1c5f96c6
3 changed files with 66 additions and 74 deletions

View File

@ -10,10 +10,6 @@ var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _objectAssign = require('object-assign');
var _objectAssign2 = _interopRequireDefault(_objectAssign);
var _classnames = require('classnames');
var _classnames2 = _interopRequireDefault(_classnames);
@ -560,7 +556,7 @@ var Tree = function (_React$Component) {
}
}
if (this.treeNodesStates && this.treeNodesStates[pos]) {
(0, _objectAssign2["default"])(cloneProps, this.treeNodesStates[pos].siblingPosition);
_extends(cloneProps, this.treeNodesStates[pos].siblingPosition);
}
return _react2["default"].cloneElement(child, cloneProps);
};

View File

@ -12,10 +12,6 @@ var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _objectAssign = require('object-assign');
var _objectAssign2 = _interopRequireDefault(_objectAssign);
var _classnames = require('classnames');
var _classnames2 = _interopRequireDefault(_classnames);
@ -272,7 +268,7 @@ var TreeNode = function (_React$Component) {
if (props.openTransitionName) {
animProps.transitionName = props.openTransitionName;
} else if (_typeof(props.openAnimation) === 'object') {
animProps.animation = (0, _objectAssign2["default"])({}, props.openAnimation);
animProps.animation = _extends({}, props.openAnimation);
if (!transitionAppear) {
delete animProps.animation.appear;
}

View File

@ -1,67 +1,67 @@
{
"name": "bee-tree",
"version": "1.0.0",
"description": "Tree ui component for react",
"keywords": [
"react",
"react-component",
"bee-tree",
"iuap-design",
"tinper-bee",
"Tree"
],
"engines": {
"node": ">=4.0.0"
},
"homepage": "https://github.com/tinper-bee/bee-tree.git",
"author": "Yonyou FED",
"repository": "http://github.com/tinper-bee/bee-tree",
"bugs": "https://github.com/tinper-bee/bee-tree.git/issues",
"license": "MIT",
"main": "./build/index.js",
"config": {
"port": 3000,
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"scripts": {
"dev": "bee-tools run start",
"build": "bee-tools run build",
"lint": "bee-tools run lint",
"test": "bee-tools run test",
"chrome": "bee-tools run chrome",
"coveralls": "bee-tools run coverage",
"browsers": "bee-tools run browsers",
"pub": "bee-tools run pub",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0"
},
"dependencies": {
"babel-runtime": "^6.23.0",
"bee-animate": "^1.0.0",
"bee-checkbox": "^1.0.1",
"bee-form-control": "^1.0.2",
"bee-icon": "1.0.3",
"classnames": "^2.2.5",
"tinper-bee-core": "latest"
},
"peerDependencies": {
"react": "^15.3.0 || ^16.0",
"react-dom": "^15.3.0 || ^16.0",
"prop-types": "15.6.0"
},
"devDependencies": {
"bee-form-control": "latest",
"bee-button": "latest",
"bee-layout": "latest",
"bee-panel": "latest",
"chai": "^3.5.0",
"console-polyfill": "~0.2.1",
"cz-conventional-changelog": "^2.1.0",
"enzyme": "^2.4.1",
"es5-shim": "~4.1.10",
"react": "15.3.2",
"react-addons-test-utils": "15.3.2",
"react-dom": "15.3.2"
"name": "bee-tree",
"version": "1.0.1",
"description": "Tree ui component for react",
"keywords": [
"react",
"react-component",
"bee-tree",
"iuap-design",
"tinper-bee",
"Tree"
],
"engines": {
"node": ">=4.0.0"
},
"homepage": "https://github.com/tinper-bee/bee-tree.git",
"author": "Yonyou FED",
"repository": "http://github.com/tinper-bee/bee-tree",
"bugs": "https://github.com/tinper-bee/bee-tree.git/issues",
"license": "MIT",
"main": "./build/index.js",
"config": {
"port": 3000,
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"scripts": {
"dev": "bee-tools run start",
"build": "bee-tools run build",
"lint": "bee-tools run lint",
"test": "bee-tools run test",
"chrome": "bee-tools run chrome",
"coveralls": "bee-tools run coverage",
"browsers": "bee-tools run browsers",
"pub": "bee-tools run pub",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0"
},
"dependencies": {
"babel-runtime": "^6.23.0",
"bee-animate": "^1.0.0",
"bee-checkbox": "^1.0.1",
"bee-form-control": "^1.0.2",
"bee-icon": "1.0.3",
"classnames": "^2.2.5",
"tinper-bee-core": "latest"
},
"peerDependencies": {
"react": "^15.3.0 || ^16.0",
"react-dom": "^15.3.0 || ^16.0",
"prop-types": "15.6.0"
},
"devDependencies": {
"bee-form-control": "latest",
"bee-button": "latest",
"bee-layout": "latest",
"bee-panel": "latest",
"chai": "^3.5.0",
"console-polyfill": "~0.2.1",
"cz-conventional-changelog": "^2.1.0",
"enzyme": "^2.4.1",
"es5-shim": "~4.1.10",
"react": "15.3.2",
"react-addons-test-utils": "15.3.2",
"react-dom": "15.3.2"
}
}