ant-design/components/tree/index.jsx
2015-08-17 12:17:20 +08:00

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;