ant-design/components/tree/index.jsx

14 lines
246 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
2015-08-07 11:10:46 +08:00
var AntTree = React.createClass({
2015-08-03 16:07:21 +08:00
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
}
});
2015-08-07 11:10:46 +08:00
AntTree.TreeNode = Tree.TreeNode;
export default AntTree;