ant-design/components/tree/index.jsx

15 lines
276 B
React
Raw Normal View History

2015-08-03 16:07:21 +08:00
import React from 'react';
2015-08-03 16:11:56 +08:00
import Tree from 'rc-tree';
2015-08-03 16:07:21 +08:00
var TreeNode = Tree.TreeNode;
var antDTree = React.createClass({
render() {
return <Tree {...this.props} >
{this.props.children}
2015-08-03 16:11:56 +08:00
</Tree>;
2015-08-03 16:07:21 +08:00
}
});
antDTree.TreeNode = TreeNode;
module.exports = antDTree;