import _extends from"babel-runtime/helpers/extends";import _classCallCheck from"babel-runtime/helpers/classCallCheck";import _createClass from"babel-runtime/helpers/createClass";import _possibleConstructorReturn from"babel-runtime/helpers/possibleConstructorReturn";import _inherits from"babel-runtime/helpers/inherits";import*as React from"react";import RcTree,{TreeNode}from"rc-tree";import DirectoryTree from"./DirectoryTree";import classNames from"classnames";import animation from"../_util/openAnimation";var Tree=function(e){function r(){return _classCallCheck(this,r),_possibleConstructorReturn(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return _inherits(r,e),_createClass(r,[{key:"render",value:function(){var e=this.props,r=e.prefixCls,t=e.className,s=e.showIcon,o=e.checkable;return React.createElement(RcTree,_extends({},e,{className:classNames(!s&&r+"-icon-hide",t),checkable:o?React.createElement("span",{className:r+"-checkbox-inner"}):o}),this.props.children)}}]),r}(React.Component);export default Tree;Tree.TreeNode=TreeNode,Tree.DirectoryTree=DirectoryTree,Tree.defaultProps={prefixCls:"dt-tree",checkable:!1,showIcon:!1,openAnimation:_extends({},animation,{appear:null})};