mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-26 04:00:13 +08:00
15 lines
276 B
JavaScript
15 lines
276 B
JavaScript
import React from 'react';
|
|
import Tree from 'rc-tree';
|
|
var TreeNode = Tree.TreeNode;
|
|
|
|
var antDTree = React.createClass({
|
|
|
|
render() {
|
|
return <Tree {...this.props} >
|
|
{this.props.children}
|
|
</Tree>;
|
|
}
|
|
});
|
|
antDTree.TreeNode = TreeNode;
|
|
module.exports = antDTree;
|