2015-08-03 16:07:21 +08:00
|
|
|
import React from 'react';
|
2015-08-03 16:11:56 +08:00
|
|
|
import Tree from 'rc-tree';
|
2015-08-18 16:03:13 +08:00
|
|
|
|
|
|
|
const AntTree = React.createClass({
|
2015-08-05 17:38:02 +08:00
|
|
|
getDefaultProps() {
|
|
|
|
return {
|
|
|
|
prefixCls: 'ant-tree'
|
|
|
|
};
|
|
|
|
},
|
2015-08-03 16:07:21 +08:00
|
|
|
render() {
|
2015-08-17 12:17:20 +08:00
|
|
|
return <Tree {...this.props} showIcon={false}>
|
2015-08-03 16:07:21 +08:00
|
|
|
{this.props.children}
|
2015-08-03 16:11:56 +08:00
|
|
|
</Tree>;
|
2015-08-03 16:07:21 +08:00
|
|
|
}
|
|
|
|
});
|
2015-08-18 16:03:13 +08:00
|
|
|
|
|
|
|
AntTree.TreeNode = Tree.TreeNode;
|
|
|
|
export default AntTree;
|