rc-virtual-list
Advanced tools
Comparing version 3.13.0 to 3.14.0
@@ -13,2 +13,3 @@ import * as React from 'react'; | ||
export type ListRef = { | ||
nativeElement: HTMLDivElement; | ||
scrollTo: ScrollTo; | ||
@@ -15,0 +16,0 @@ getScrollInfo: () => ScrollInfo; |
@@ -85,2 +85,3 @@ import _extends from "@babel/runtime/helpers/esm/extends"; | ||
var fillerInnerRef = useRef(); | ||
var containerRef = useRef(); | ||
@@ -375,2 +376,3 @@ // =============================== Item Key =============================== | ||
return { | ||
nativeElement: containerRef.current, | ||
getScrollInfo: getVirtualScrollInfo, | ||
@@ -437,2 +439,3 @@ scrollTo: function scrollTo(config) { | ||
return /*#__PURE__*/React.createElement("div", _extends({ | ||
ref: containerRef, | ||
style: _objectSpread(_objectSpread({}, style), {}, { | ||
@@ -439,0 +442,0 @@ position: 'relative' |
@@ -13,2 +13,3 @@ import * as React from 'react'; | ||
export type ListRef = { | ||
nativeElement: HTMLDivElement; | ||
scrollTo: ScrollTo; | ||
@@ -15,0 +16,0 @@ getScrollInfo: () => ScrollInfo; |
@@ -94,2 +94,3 @@ "use strict"; | ||
var fillerInnerRef = (0, _react.useRef)(); | ||
var containerRef = (0, _react.useRef)(); | ||
@@ -384,2 +385,3 @@ // =============================== Item Key =============================== | ||
return { | ||
nativeElement: containerRef.current, | ||
getScrollInfo: getVirtualScrollInfo, | ||
@@ -446,2 +448,3 @@ scrollTo: function scrollTo(config) { | ||
return /*#__PURE__*/React.createElement("div", (0, _extends2.default)({ | ||
ref: containerRef, | ||
style: (0, _objectSpread3.default)((0, _objectSpread3.default)({}, style), {}, { | ||
@@ -448,0 +451,0 @@ position: 'relative' |
{ | ||
"name": "rc-virtual-list", | ||
"version": "3.13.0", | ||
"version": "3.14.0", | ||
"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
130718
3231