Socket
Socket
Sign inDemoInstall

rc-tree

Package Overview
Dependencies
4
Maintainers
2
Versions
305
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.14.1 to 0.14.2

2

lib/Tree.js

@@ -287,3 +287,3 @@ 'use strict';

prefixCls: _react2['default'].PropTypes.string,
checkable: _react2['default'].PropTypes.bool,
checkable: _react2['default'].PropTypes.oneOfType([_react2['default'].PropTypes.bool, _react2['default'].PropTypes.node]),
showLine: _react2['default'].PropTypes.bool,

@@ -290,0 +290,0 @@ showIcon: _react2['default'].PropTypes.bool,

@@ -103,3 +103,11 @@ 'use strict';

}
return _react2['default'].createElement('span', { ref: 'checkbox', className: (0, _rcUtil.classSet)(checkboxCls) });
var customEle = null;
if (props.checkable && typeof props.checkable !== 'boolean') {
customEle = props.checkable;
}
return _react2['default'].createElement(
'span',
{ ref: 'checkbox', className: (0, _rcUtil.classSet)(checkboxCls) },
customEle
);
}

@@ -106,0 +114,0 @@ }, {

{
"name": "rc-tree",
"version": "0.14.1",
"version": "0.14.2",
"description": "tree ui component for react",

@@ -5,0 +5,0 @@ "keywords": [

@@ -73,3 +73,3 @@ # rc-tree

|showIcon | whether show icon | bool | true |
|checkable | whether support checked | bool | false |
|checkable | whether support checked | bool/React Node | false |
|defaultExpandAll | expand all treeNodes | bool | false |

@@ -76,0 +76,0 @@ |defaultExpandedKeys | expand specific treeNodes | String[] | false |

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc