ant-design/components/tree/index.jsx
2015-08-17 17:32:59 +08:00

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;