Comparing version 4.1.0 to 4.1.1
@@ -150,3 +150,6 @@ import _extends from "@babel/runtime/helpers/esm/extends"; | ||
_this.onExpand = function (e) { | ||
var onNodeExpand = _this.props.context.onNodeExpand; | ||
var _this$props2 = _this.props, | ||
loading = _this$props2.loading, | ||
onNodeExpand = _this$props2.context.onNodeExpand; | ||
if (loading) return; | ||
onNodeExpand(e, convertNodePropsToEventData(_this.props)); | ||
@@ -181,5 +184,5 @@ }; // Drag usage | ||
_this.isLeaf = function () { | ||
var _this$props2 = _this.props, | ||
isLeaf = _this$props2.isLeaf, | ||
loaded = _this$props2.loaded; | ||
var _this$props3 = _this.props, | ||
isLeaf = _this$props3.isLeaf, | ||
loaded = _this$props3.loaded; | ||
var loadData = _this.props.context.loadData; | ||
@@ -231,5 +234,5 @@ | ||
_this.renderSwitcher = function () { | ||
var _this$props3 = _this.props, | ||
expanded = _this$props3.expanded, | ||
switcherIconFromProps = _this$props3.switcherIcon; | ||
var _this$props4 = _this.props, | ||
expanded = _this$props4.expanded, | ||
switcherIconFromProps = _this$props4.switcherIcon; | ||
var _this$props$context2 = _this.props.context, | ||
@@ -259,6 +262,6 @@ prefixCls = _this$props$context2.prefixCls, | ||
_this.renderCheckbox = function () { | ||
var _this$props4 = _this.props, | ||
checked = _this$props4.checked, | ||
halfChecked = _this$props4.halfChecked, | ||
disableCheckbox = _this$props4.disableCheckbox; | ||
var _this$props5 = _this.props, | ||
checked = _this$props5.checked, | ||
halfChecked = _this$props5.halfChecked, | ||
disableCheckbox = _this$props5.disableCheckbox; | ||
var prefixCls = _this.props.context.prefixCls; | ||
@@ -290,8 +293,8 @@ | ||
var dragNodeHighlight = _this.state.dragNodeHighlight; | ||
var _this$props5 = _this.props, | ||
title = _this$props5.title, | ||
selected = _this$props5.selected, | ||
icon = _this$props5.icon, | ||
loading = _this$props5.loading, | ||
data = _this$props5.data; | ||
var _this$props6 = _this.props, | ||
title = _this$props6.title, | ||
selected = _this$props6.selected, | ||
icon = _this$props6.icon, | ||
loading = _this$props6.loading, | ||
data = _this$props6.data; | ||
var _this$props$context3 = _this.props.context, | ||
@@ -351,5 +354,5 @@ prefixCls = _this$props$context3.prefixCls, | ||
_this.renderDropIndicator = function () { | ||
var _this$props6 = _this.props, | ||
disabled = _this$props6.disabled, | ||
eventKey = _this$props6.eventKey; | ||
var _this$props7 = _this.props, | ||
disabled = _this$props7.disabled, | ||
eventKey = _this$props7.eventKey; | ||
var _this$props$context4 = _this.props.context, | ||
@@ -407,22 +410,22 @@ draggable = _this$props$context4.draggable, | ||
var _this$props7 = this.props, | ||
eventKey = _this$props7.eventKey, | ||
className = _this$props7.className, | ||
style = _this$props7.style, | ||
dragOver = _this$props7.dragOver, | ||
dragOverGapTop = _this$props7.dragOverGapTop, | ||
dragOverGapBottom = _this$props7.dragOverGapBottom, | ||
isLeaf = _this$props7.isLeaf, | ||
isStart = _this$props7.isStart, | ||
isEnd = _this$props7.isEnd, | ||
expanded = _this$props7.expanded, | ||
selected = _this$props7.selected, | ||
checked = _this$props7.checked, | ||
halfChecked = _this$props7.halfChecked, | ||
loading = _this$props7.loading, | ||
domRef = _this$props7.domRef, | ||
active = _this$props7.active, | ||
data = _this$props7.data, | ||
onMouseMove = _this$props7.onMouseMove, | ||
otherProps = _objectWithoutProperties(_this$props7, ["eventKey", "className", "style", "dragOver", "dragOverGapTop", "dragOverGapBottom", "isLeaf", "isStart", "isEnd", "expanded", "selected", "checked", "halfChecked", "loading", "domRef", "active", "data", "onMouseMove"]); | ||
var _this$props8 = this.props, | ||
eventKey = _this$props8.eventKey, | ||
className = _this$props8.className, | ||
style = _this$props8.style, | ||
dragOver = _this$props8.dragOver, | ||
dragOverGapTop = _this$props8.dragOverGapTop, | ||
dragOverGapBottom = _this$props8.dragOverGapBottom, | ||
isLeaf = _this$props8.isLeaf, | ||
isStart = _this$props8.isStart, | ||
isEnd = _this$props8.isEnd, | ||
expanded = _this$props8.expanded, | ||
selected = _this$props8.selected, | ||
checked = _this$props8.checked, | ||
halfChecked = _this$props8.halfChecked, | ||
loading = _this$props8.loading, | ||
domRef = _this$props8.domRef, | ||
active = _this$props8.active, | ||
data = _this$props8.data, | ||
onMouseMove = _this$props8.onMouseMove, | ||
otherProps = _objectWithoutProperties(_this$props8, ["eventKey", "className", "style", "dragOver", "dragOverGapTop", "dragOverGapBottom", "isLeaf", "isStart", "isEnd", "expanded", "selected", "checked", "halfChecked", "loading", "domRef", "active", "data", "onMouseMove"]); | ||
@@ -429,0 +432,0 @@ var _this$props$context5 = this.props.context, |
@@ -175,3 +175,6 @@ "use strict"; | ||
_this.onExpand = function (e) { | ||
var onNodeExpand = _this.props.context.onNodeExpand; | ||
var _this$props2 = _this.props, | ||
loading = _this$props2.loading, | ||
onNodeExpand = _this$props2.context.onNodeExpand; | ||
if (loading) return; | ||
onNodeExpand(e, (0, _treeUtil.convertNodePropsToEventData)(_this.props)); | ||
@@ -206,5 +209,5 @@ }; // Drag usage | ||
_this.isLeaf = function () { | ||
var _this$props2 = _this.props, | ||
isLeaf = _this$props2.isLeaf, | ||
loaded = _this$props2.loaded; | ||
var _this$props3 = _this.props, | ||
isLeaf = _this$props3.isLeaf, | ||
loaded = _this$props3.loaded; | ||
var loadData = _this.props.context.loadData; | ||
@@ -256,5 +259,5 @@ | ||
_this.renderSwitcher = function () { | ||
var _this$props3 = _this.props, | ||
expanded = _this$props3.expanded, | ||
switcherIconFromProps = _this$props3.switcherIcon; | ||
var _this$props4 = _this.props, | ||
expanded = _this$props4.expanded, | ||
switcherIconFromProps = _this$props4.switcherIcon; | ||
var _this$props$context2 = _this.props.context, | ||
@@ -284,6 +287,6 @@ prefixCls = _this$props$context2.prefixCls, | ||
_this.renderCheckbox = function () { | ||
var _this$props4 = _this.props, | ||
checked = _this$props4.checked, | ||
halfChecked = _this$props4.halfChecked, | ||
disableCheckbox = _this$props4.disableCheckbox; | ||
var _this$props5 = _this.props, | ||
checked = _this$props5.checked, | ||
halfChecked = _this$props5.halfChecked, | ||
disableCheckbox = _this$props5.disableCheckbox; | ||
var prefixCls = _this.props.context.prefixCls; | ||
@@ -315,8 +318,8 @@ | ||
var dragNodeHighlight = _this.state.dragNodeHighlight; | ||
var _this$props5 = _this.props, | ||
title = _this$props5.title, | ||
selected = _this$props5.selected, | ||
icon = _this$props5.icon, | ||
loading = _this$props5.loading, | ||
data = _this$props5.data; | ||
var _this$props6 = _this.props, | ||
title = _this$props6.title, | ||
selected = _this$props6.selected, | ||
icon = _this$props6.icon, | ||
loading = _this$props6.loading, | ||
data = _this$props6.data; | ||
var _this$props$context3 = _this.props.context, | ||
@@ -376,5 +379,5 @@ prefixCls = _this$props$context3.prefixCls, | ||
_this.renderDropIndicator = function () { | ||
var _this$props6 = _this.props, | ||
disabled = _this$props6.disabled, | ||
eventKey = _this$props6.eventKey; | ||
var _this$props7 = _this.props, | ||
disabled = _this$props7.disabled, | ||
eventKey = _this$props7.eventKey; | ||
var _this$props$context4 = _this.props.context, | ||
@@ -432,22 +435,22 @@ draggable = _this$props$context4.draggable, | ||
var _this$props7 = this.props, | ||
eventKey = _this$props7.eventKey, | ||
className = _this$props7.className, | ||
style = _this$props7.style, | ||
dragOver = _this$props7.dragOver, | ||
dragOverGapTop = _this$props7.dragOverGapTop, | ||
dragOverGapBottom = _this$props7.dragOverGapBottom, | ||
isLeaf = _this$props7.isLeaf, | ||
isStart = _this$props7.isStart, | ||
isEnd = _this$props7.isEnd, | ||
expanded = _this$props7.expanded, | ||
selected = _this$props7.selected, | ||
checked = _this$props7.checked, | ||
halfChecked = _this$props7.halfChecked, | ||
loading = _this$props7.loading, | ||
domRef = _this$props7.domRef, | ||
active = _this$props7.active, | ||
data = _this$props7.data, | ||
onMouseMove = _this$props7.onMouseMove, | ||
otherProps = (0, _objectWithoutProperties2.default)(_this$props7, ["eventKey", "className", "style", "dragOver", "dragOverGapTop", "dragOverGapBottom", "isLeaf", "isStart", "isEnd", "expanded", "selected", "checked", "halfChecked", "loading", "domRef", "active", "data", "onMouseMove"]); | ||
var _this$props8 = this.props, | ||
eventKey = _this$props8.eventKey, | ||
className = _this$props8.className, | ||
style = _this$props8.style, | ||
dragOver = _this$props8.dragOver, | ||
dragOverGapTop = _this$props8.dragOverGapTop, | ||
dragOverGapBottom = _this$props8.dragOverGapBottom, | ||
isLeaf = _this$props8.isLeaf, | ||
isStart = _this$props8.isStart, | ||
isEnd = _this$props8.isEnd, | ||
expanded = _this$props8.expanded, | ||
selected = _this$props8.selected, | ||
checked = _this$props8.checked, | ||
halfChecked = _this$props8.halfChecked, | ||
loading = _this$props8.loading, | ||
domRef = _this$props8.domRef, | ||
active = _this$props8.active, | ||
data = _this$props8.data, | ||
onMouseMove = _this$props8.onMouseMove, | ||
otherProps = (0, _objectWithoutProperties2.default)(_this$props8, ["eventKey", "className", "style", "dragOver", "dragOverGapTop", "dragOverGapBottom", "isLeaf", "isStart", "isEnd", "expanded", "selected", "checked", "halfChecked", "loading", "domRef", "active", "data", "onMouseMove"]); | ||
var _this$props$context5 = this.props.context, | ||
@@ -454,0 +457,0 @@ prefixCls = _this$props$context5.prefixCls, |
{ | ||
"name": "rc-tree", | ||
"version": "4.1.0", | ||
"version": "4.1.1", | ||
"description": "tree ui component for react", | ||
@@ -5,0 +5,0 @@ "engines": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
325498
6909