Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rc-virtual-list

Package Overview
Dependencies
Maintainers
1
Versions
127
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-virtual-list - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

9

es/List.js

@@ -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 @@

3

es/mock.js

@@ -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": {

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc