mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-15 17:19:11 +08:00
18 lines
365 B
JavaScript
18 lines
365 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;
|