mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-05 09:49:57 +08:00
19 lines
366 B
JavaScript
19 lines
366 B
JavaScript
import React from 'react';
|
|
import Tree from 'rc-tree';
|
|
var TreeNode = Tree.TreeNode;
|
|
|
|
var antDTree = React.createClass({
|
|
getDefaultProps() {
|
|
return {
|
|
prefixCls: 'ant-tree'
|
|
};
|
|
},
|
|
render() {
|
|
return <Tree {...this.props} showIcon={false}>
|
|
{this.props.children}
|
|
</Tree>;
|
|
}
|
|
});
|
|
antDTree.TreeNode = TreeNode;
|
|
module.exports = antDTree;
|