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-03 16:07:21 +08:00
|
|
|
var TreeNode = Tree.TreeNode;
|
|
|
|
|
|
|
|
var antDTree = 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-05 17:38:02 +08:00
|
|
|
return <Tree {...this.props} showIcon={false} showLine={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
|
|
|
}
|
|
|
|
});
|
|
|
|
antDTree.TreeNode = TreeNode;
|
|
|
|
module.exports = antDTree;
|