rc-tree
Advanced tools
Comparing version 5.8.0 to 5.8.1
@@ -687,3 +687,6 @@ import _extends from "@babel/runtime/helpers/esm/extends"; | ||
var activeKey = _this.state.activeKey; | ||
var onActiveChange = _this.props.onActiveChange; | ||
var _this$props9 = _this.props, | ||
onActiveChange = _this$props9.onActiveChange, | ||
_this$props9$itemScro = _this$props9.itemScrollOffset, | ||
itemScrollOffset = _this$props9$itemScro === void 0 ? 0 : _this$props9$itemScro; | ||
if (activeKey === newActiveKey) { | ||
@@ -697,3 +700,4 @@ return; | ||
_this.scrollTo({ | ||
key: newActiveKey | ||
key: newActiveKey, | ||
offset: itemScrollOffset | ||
}); | ||
@@ -742,6 +746,6 @@ } | ||
fieldNames = _this$state13.fieldNames; | ||
var _this$props9 = _this.props, | ||
onKeyDown = _this$props9.onKeyDown, | ||
checkable = _this$props9.checkable, | ||
selectable = _this$props9.selectable; | ||
var _this$props10 = _this.props, | ||
onKeyDown = _this$props10.onKeyDown, | ||
checkable = _this$props10.checkable, | ||
selectable = _this$props10.selectable; | ||
// >>>>>>>>>> Direction | ||
@@ -852,6 +856,6 @@ switch (event.which) { | ||
value: function onUpdated() { | ||
var _this$props10 = this.props, | ||
activeKey = _this$props10.activeKey, | ||
_this$props10$itemScr = _this$props10.itemScrollOffset, | ||
itemScrollOffset = _this$props10$itemScr === void 0 ? 0 : _this$props10$itemScr; | ||
var _this$props11 = this.props, | ||
activeKey = _this$props11.activeKey, | ||
_this$props11$itemScr = _this$props11.itemScrollOffset, | ||
itemScrollOffset = _this$props11$itemScr === void 0 ? 0 : _this$props11$itemScr; | ||
if (activeKey !== undefined && activeKey !== this.state.activeKey) { | ||
@@ -904,31 +908,31 @@ this.setState({ | ||
indent = _this$state14.indent; | ||
var _this$props11 = this.props, | ||
prefixCls = _this$props11.prefixCls, | ||
className = _this$props11.className, | ||
style = _this$props11.style, | ||
showLine = _this$props11.showLine, | ||
focusable = _this$props11.focusable, | ||
_this$props11$tabInde = _this$props11.tabIndex, | ||
tabIndex = _this$props11$tabInde === void 0 ? 0 : _this$props11$tabInde, | ||
selectable = _this$props11.selectable, | ||
showIcon = _this$props11.showIcon, | ||
icon = _this$props11.icon, | ||
switcherIcon = _this$props11.switcherIcon, | ||
draggable = _this$props11.draggable, | ||
checkable = _this$props11.checkable, | ||
checkStrictly = _this$props11.checkStrictly, | ||
disabled = _this$props11.disabled, | ||
motion = _this$props11.motion, | ||
loadData = _this$props11.loadData, | ||
filterTreeNode = _this$props11.filterTreeNode, | ||
height = _this$props11.height, | ||
itemHeight = _this$props11.itemHeight, | ||
virtual = _this$props11.virtual, | ||
titleRender = _this$props11.titleRender, | ||
dropIndicatorRender = _this$props11.dropIndicatorRender, | ||
onContextMenu = _this$props11.onContextMenu, | ||
onScroll = _this$props11.onScroll, | ||
direction = _this$props11.direction, | ||
rootClassName = _this$props11.rootClassName, | ||
rootStyle = _this$props11.rootStyle; | ||
var _this$props12 = this.props, | ||
prefixCls = _this$props12.prefixCls, | ||
className = _this$props12.className, | ||
style = _this$props12.style, | ||
showLine = _this$props12.showLine, | ||
focusable = _this$props12.focusable, | ||
_this$props12$tabInde = _this$props12.tabIndex, | ||
tabIndex = _this$props12$tabInde === void 0 ? 0 : _this$props12$tabInde, | ||
selectable = _this$props12.selectable, | ||
showIcon = _this$props12.showIcon, | ||
icon = _this$props12.icon, | ||
switcherIcon = _this$props12.switcherIcon, | ||
draggable = _this$props12.draggable, | ||
checkable = _this$props12.checkable, | ||
checkStrictly = _this$props12.checkStrictly, | ||
disabled = _this$props12.disabled, | ||
motion = _this$props12.motion, | ||
loadData = _this$props12.loadData, | ||
filterTreeNode = _this$props12.filterTreeNode, | ||
height = _this$props12.height, | ||
itemHeight = _this$props12.itemHeight, | ||
virtual = _this$props12.virtual, | ||
titleRender = _this$props12.titleRender, | ||
dropIndicatorRender = _this$props12.dropIndicatorRender, | ||
onContextMenu = _this$props12.onContextMenu, | ||
onScroll = _this$props12.onScroll, | ||
direction = _this$props12.direction, | ||
rootClassName = _this$props12.rootClassName, | ||
rootStyle = _this$props12.rootStyle; | ||
var domProps = pickAttrs(this.props, { | ||
@@ -935,0 +939,0 @@ aria: true, |
@@ -698,3 +698,6 @@ "use strict"; | ||
var activeKey = _this.state.activeKey; | ||
var onActiveChange = _this.props.onActiveChange; | ||
var _this$props9 = _this.props, | ||
onActiveChange = _this$props9.onActiveChange, | ||
_this$props9$itemScro = _this$props9.itemScrollOffset, | ||
itemScrollOffset = _this$props9$itemScro === void 0 ? 0 : _this$props9$itemScro; | ||
if (activeKey === newActiveKey) { | ||
@@ -708,3 +711,4 @@ return; | ||
_this.scrollTo({ | ||
key: newActiveKey | ||
key: newActiveKey, | ||
offset: itemScrollOffset | ||
}); | ||
@@ -753,6 +757,6 @@ } | ||
fieldNames = _this$state13.fieldNames; | ||
var _this$props9 = _this.props, | ||
onKeyDown = _this$props9.onKeyDown, | ||
checkable = _this$props9.checkable, | ||
selectable = _this$props9.selectable; | ||
var _this$props10 = _this.props, | ||
onKeyDown = _this$props10.onKeyDown, | ||
checkable = _this$props10.checkable, | ||
selectable = _this$props10.selectable; | ||
// >>>>>>>>>> Direction | ||
@@ -863,6 +867,6 @@ switch (event.which) { | ||
value: function onUpdated() { | ||
var _this$props10 = this.props, | ||
activeKey = _this$props10.activeKey, | ||
_this$props10$itemScr = _this$props10.itemScrollOffset, | ||
itemScrollOffset = _this$props10$itemScr === void 0 ? 0 : _this$props10$itemScr; | ||
var _this$props11 = this.props, | ||
activeKey = _this$props11.activeKey, | ||
_this$props11$itemScr = _this$props11.itemScrollOffset, | ||
itemScrollOffset = _this$props11$itemScr === void 0 ? 0 : _this$props11$itemScr; | ||
if (activeKey !== undefined && activeKey !== this.state.activeKey) { | ||
@@ -915,31 +919,31 @@ this.setState({ | ||
indent = _this$state14.indent; | ||
var _this$props11 = this.props, | ||
prefixCls = _this$props11.prefixCls, | ||
className = _this$props11.className, | ||
style = _this$props11.style, | ||
showLine = _this$props11.showLine, | ||
focusable = _this$props11.focusable, | ||
_this$props11$tabInde = _this$props11.tabIndex, | ||
tabIndex = _this$props11$tabInde === void 0 ? 0 : _this$props11$tabInde, | ||
selectable = _this$props11.selectable, | ||
showIcon = _this$props11.showIcon, | ||
icon = _this$props11.icon, | ||
switcherIcon = _this$props11.switcherIcon, | ||
draggable = _this$props11.draggable, | ||
checkable = _this$props11.checkable, | ||
checkStrictly = _this$props11.checkStrictly, | ||
disabled = _this$props11.disabled, | ||
motion = _this$props11.motion, | ||
loadData = _this$props11.loadData, | ||
filterTreeNode = _this$props11.filterTreeNode, | ||
height = _this$props11.height, | ||
itemHeight = _this$props11.itemHeight, | ||
virtual = _this$props11.virtual, | ||
titleRender = _this$props11.titleRender, | ||
dropIndicatorRender = _this$props11.dropIndicatorRender, | ||
onContextMenu = _this$props11.onContextMenu, | ||
onScroll = _this$props11.onScroll, | ||
direction = _this$props11.direction, | ||
rootClassName = _this$props11.rootClassName, | ||
rootStyle = _this$props11.rootStyle; | ||
var _this$props12 = this.props, | ||
prefixCls = _this$props12.prefixCls, | ||
className = _this$props12.className, | ||
style = _this$props12.style, | ||
showLine = _this$props12.showLine, | ||
focusable = _this$props12.focusable, | ||
_this$props12$tabInde = _this$props12.tabIndex, | ||
tabIndex = _this$props12$tabInde === void 0 ? 0 : _this$props12$tabInde, | ||
selectable = _this$props12.selectable, | ||
showIcon = _this$props12.showIcon, | ||
icon = _this$props12.icon, | ||
switcherIcon = _this$props12.switcherIcon, | ||
draggable = _this$props12.draggable, | ||
checkable = _this$props12.checkable, | ||
checkStrictly = _this$props12.checkStrictly, | ||
disabled = _this$props12.disabled, | ||
motion = _this$props12.motion, | ||
loadData = _this$props12.loadData, | ||
filterTreeNode = _this$props12.filterTreeNode, | ||
height = _this$props12.height, | ||
itemHeight = _this$props12.itemHeight, | ||
virtual = _this$props12.virtual, | ||
titleRender = _this$props12.titleRender, | ||
dropIndicatorRender = _this$props12.dropIndicatorRender, | ||
onContextMenu = _this$props12.onContextMenu, | ||
onScroll = _this$props12.onScroll, | ||
direction = _this$props12.direction, | ||
rootClassName = _this$props12.rootClassName, | ||
rootStyle = _this$props12.rootStyle; | ||
var domProps = (0, _pickAttrs.default)(this.props, { | ||
@@ -946,0 +950,0 @@ aria: true, |
{ | ||
"name": "rc-tree", | ||
"version": "5.8.0", | ||
"version": "5.8.1", | ||
"description": "tree ui component for react", | ||
@@ -5,0 +5,0 @@ "engines": { |
362337
7686