mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-17 10:28:06 +08:00
19 lines
339 B
JavaScript
19 lines
339 B
JavaScript
import React from 'react';
|
|
import Tree from 'rc-tree';
|
|
|
|
const AntTree = React.createClass({
|
|
getDefaultProps() {
|
|
return {
|
|
prefixCls: 'ant-tree'
|
|
};
|
|
},
|
|
render() {
|
|
return <Tree {...this.props} showIcon={false}>
|
|
{this.props.children}
|
|
</Tree>;
|
|
}
|
|
});
|
|
|
|
AntTree.TreeNode = Tree.TreeNode;
|
|
export default AntTree;
|