rc-virtual-list
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -582,2 +582,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } | ||
} | ||
} else if (nextStatus === 'SWITCH_TO_RAW') { | ||
// This is only trigger when height changes that all items can show in raw | ||
// Let's reset back to top | ||
this.setState({ | ||
cacheScroll: { | ||
itemIndex: 0, | ||
relativeTop: 0 | ||
} | ||
}); | ||
} | ||
@@ -584,0 +593,0 @@ |
@@ -66,2 +66,3 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
itemHeight = _this$props.itemHeight, | ||
virtual = _this$props.virtual, | ||
data = _this$props.data, | ||
@@ -71,3 +72,3 @@ children = _this$props.children, | ||
onSkipRender = _this$props.onSkipRender, | ||
restProps = _objectWithoutProperties(_this$props, ["prefixCls", "style", "className", "component", "fullHeight", "height", "itemHeight", "data", "children", "itemKey", "onSkipRender"]); | ||
restProps = _objectWithoutProperties(_this$props, ["prefixCls", "style", "className", "component", "fullHeight", "height", "itemHeight", "virtual", "data", "children", "itemKey", "onSkipRender"]); | ||
@@ -74,0 +75,0 @@ var mergedClassName = classNames(prefixCls, className); |
@@ -600,2 +600,11 @@ "use strict"; | ||
} | ||
} else if (nextStatus === 'SWITCH_TO_RAW') { | ||
// This is only trigger when height changes that all items can show in raw | ||
// Let's reset back to top | ||
this.setState({ | ||
cacheScroll: { | ||
itemIndex: 0, | ||
relativeTop: 0 | ||
} | ||
}); | ||
} | ||
@@ -602,0 +611,0 @@ |
@@ -82,2 +82,3 @@ "use strict"; | ||
itemHeight = _this$props.itemHeight, | ||
virtual = _this$props.virtual, | ||
data = _this$props.data, | ||
@@ -87,3 +88,3 @@ children = _this$props.children, | ||
onSkipRender = _this$props.onSkipRender, | ||
restProps = _objectWithoutProperties(_this$props, ["prefixCls", "style", "className", "component", "fullHeight", "height", "itemHeight", "data", "children", "itemKey", "onSkipRender"]); | ||
restProps = _objectWithoutProperties(_this$props, ["prefixCls", "style", "className", "component", "fullHeight", "height", "itemHeight", "virtual", "data", "children", "itemKey", "onSkipRender"]); | ||
@@ -90,0 +91,0 @@ var mergedClassName = (0, _classnames.default)(prefixCls, className); |
{ | ||
"name": "rc-virtual-list", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "React Virtual List Component", | ||
@@ -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
120353
2548