Socket
Socket
Sign inDemoInstall

rc-virtual-list

Package Overview
Dependencies
Maintainers
1
Versions
126
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 0.0.0-alpha.23 to 0.0.0-alpha.24

2

es/List.d.ts

@@ -20,2 +20,4 @@ import * as React from 'react';

itemHeight?: number;
/** If not match virtual scroll condition, Set List still use height of container. */
fullHeight?: boolean;
itemKey: string | ((item: T) => string);

@@ -22,0 +24,0 @@ component?: string | React.FC<any> | React.ComponentClass<any>;

8

es/List.js

@@ -691,2 +691,4 @@ 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; }

itemHeight = _this$props5.itemHeight,
_this$props5$fullHeig = _this$props5.fullHeight,
fullHeight = _this$props5$fullHeig === void 0 ? true : _this$props5$fullHeig,
data = _this$props5.data,

@@ -697,3 +699,3 @@ children = _this$props5.children,

disabled = _this$props5.disabled,
restProps = _objectWithoutProperties(_this$props5, ["prefixCls", "style", "className", "component", "height", "itemHeight", "data", "children", "itemKey", "onSkipRender", "disabled"]);
restProps = _objectWithoutProperties(_this$props5, ["prefixCls", "style", "className", "component", "height", "itemHeight", "fullHeight", "data", "children", "itemKey", "onSkipRender", "disabled"]);

@@ -709,5 +711,3 @@ var mergedClassName = classNames(prefixCls, className); // Render pure list if not set height or height is enough for all items

return React.createElement(Component, Object.assign({
style: height ? _objectSpread({}, style, {
height: height
}, ScrollStyle) : style,
style: height ? _objectSpread({}, style, _defineProperty({}, fullHeight ? 'height' : 'maxHeight', height), ScrollStyle) : style,
className: mergedClassName

@@ -714,0 +714,0 @@ }, restProps, {

@@ -20,2 +20,4 @@ import * as React from 'react';

itemHeight?: number;
/** If not match virtual scroll condition, Set List still use height of container. */
fullHeight?: boolean;
itemKey: string | ((item: T) => string);

@@ -22,0 +24,0 @@ component?: string | React.FC<any> | React.ComponentClass<any>;

@@ -707,2 +707,4 @@ "use strict";

itemHeight = _this$props5.itemHeight,
_this$props5$fullHeig = _this$props5.fullHeight,
fullHeight = _this$props5$fullHeig === void 0 ? true : _this$props5$fullHeig,
data = _this$props5.data,

@@ -713,3 +715,3 @@ children = _this$props5.children,

disabled = _this$props5.disabled,
restProps = _objectWithoutProperties(_this$props5, ["prefixCls", "style", "className", "component", "height", "itemHeight", "data", "children", "itemKey", "onSkipRender", "disabled"]);
restProps = _objectWithoutProperties(_this$props5, ["prefixCls", "style", "className", "component", "height", "itemHeight", "fullHeight", "data", "children", "itemKey", "onSkipRender", "disabled"]);

@@ -725,5 +727,3 @@ var mergedClassName = (0, _classnames.default)(prefixCls, className); // Render pure list if not set height or height is enough for all items

return React.createElement(Component, Object.assign({
style: height ? _objectSpread({}, style, {
height: height
}, ScrollStyle) : style,
style: height ? _objectSpread({}, style, _defineProperty({}, fullHeight ? 'height' : 'maxHeight', height), ScrollStyle) : style,
className: mergedClassName

@@ -730,0 +730,0 @@ }, restProps, {

{
"name": "rc-virtual-list",
"version": "0.0.0-alpha.23",
"version": "0.0.0-alpha.24",
"description": "React Virtual List Component",

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

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