rc-virtual-list
Advanced tools
Comparing version 3.4.11 to 3.4.12
@@ -83,4 +83,5 @@ import _typeof from "@babel/runtime/helpers/esm/typeof"; | ||
syncScroll(times - 1, newTargetAlign); | ||
}); | ||
}, 2); // Delay 2 to wait for List collect heights | ||
}; | ||
syncScroll(3); | ||
@@ -87,0 +88,0 @@ } |
/// <reference types="react" /> | ||
export declare type RenderFunc<T> = (item: T, index: number, props: { | ||
export type RenderFunc<T> = (item: T, index: number, props: { | ||
style?: React.CSSProperties; | ||
@@ -8,2 +8,2 @@ }) => React.ReactNode; | ||
} | ||
export declare type GetKey<T> = (item: T) => React.Key; | ||
export type GetKey<T> = (item: T) => React.Key; |
import * as React from 'react'; | ||
import type { RenderFunc } from './interface'; | ||
export declare type ScrollAlign = 'top' | 'bottom' | 'auto'; | ||
export declare type ScrollConfig = { | ||
export type ScrollAlign = 'top' | 'bottom' | 'auto'; | ||
export type ScrollConfig = { | ||
index: number; | ||
@@ -13,4 +13,4 @@ align?: ScrollAlign; | ||
}; | ||
export declare type ScrollTo = (arg: number | ScrollConfig) => void; | ||
export declare type ListRef = { | ||
export type ScrollTo = (arg: number | ScrollConfig) => void; | ||
export type ListRef = { | ||
scrollTo: ScrollTo; | ||
@@ -17,0 +17,0 @@ }; |
@@ -92,4 +92,5 @@ "use strict"; | ||
syncScroll(times - 1, newTargetAlign); | ||
}); | ||
}, 2); // Delay 2 to wait for List collect heights | ||
}; | ||
syncScroll(3); | ||
@@ -96,0 +97,0 @@ } |
/// <reference types="react" /> | ||
export declare type RenderFunc<T> = (item: T, index: number, props: { | ||
export type RenderFunc<T> = (item: T, index: number, props: { | ||
style?: React.CSSProperties; | ||
@@ -8,2 +8,2 @@ }) => React.ReactNode; | ||
} | ||
export declare type GetKey<T> = (item: T) => React.Key; | ||
export type GetKey<T> = (item: T) => React.Key; |
import * as React from 'react'; | ||
import type { RenderFunc } from './interface'; | ||
export declare type ScrollAlign = 'top' | 'bottom' | 'auto'; | ||
export declare type ScrollConfig = { | ||
export type ScrollAlign = 'top' | 'bottom' | 'auto'; | ||
export type ScrollConfig = { | ||
index: number; | ||
@@ -13,4 +13,4 @@ align?: ScrollAlign; | ||
}; | ||
export declare type ScrollTo = (arg: number | ScrollConfig) => void; | ||
export declare type ListRef = { | ||
export type ScrollTo = (arg: number | ScrollConfig) => void; | ||
export type ListRef = { | ||
scrollTo: ScrollTo; | ||
@@ -17,0 +17,0 @@ }; |
{ | ||
"name": "rc-virtual-list", | ||
"version": "3.4.11", | ||
"version": "3.4.12", | ||
"description": "React Virtual List Component", | ||
@@ -63,3 +63,3 @@ "engines": { | ||
"react-dom": "^v16.9.0-alpha.0", | ||
"typescript": "^3.5.2" | ||
"typescript": "^4.0.0" | ||
}, | ||
@@ -66,0 +66,0 @@ "dependencies": { |
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
0