rc-virtual-list
Advanced tools
Comparing version 0.0.0-alpha.23 to 0.0.0-alpha.24
@@ -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>; |
@@ -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": [ |
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
115301
2488