first commit
This commit is contained in:
26
frontend/node_modules/rc-virtual-list/es/interface.d.ts
generated
vendored
Normal file
26
frontend/node_modules/rc-virtual-list/es/interface.d.ts
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
/// <reference types="react" />
|
||||
export type RenderFunc<T> = (item: T, index: number, props: {
|
||||
style: React.CSSProperties;
|
||||
offsetX: number;
|
||||
}) => React.ReactNode;
|
||||
export interface SharedConfig<T> {
|
||||
getKey: (item: T) => React.Key;
|
||||
}
|
||||
export type GetKey<T> = (item: T) => React.Key;
|
||||
export type GetSize = (startKey: React.Key, endKey?: React.Key) => {
|
||||
top: number;
|
||||
bottom: number;
|
||||
};
|
||||
export interface ExtraRenderInfo {
|
||||
/** Virtual list start line */
|
||||
start: number;
|
||||
/** Virtual list end line */
|
||||
end: number;
|
||||
/** Is current in virtual render */
|
||||
virtual: boolean;
|
||||
/** Used for `scrollWidth` tell the horizontal offset */
|
||||
offsetX: number;
|
||||
offsetY: number;
|
||||
rtl: boolean;
|
||||
getSize: GetSize;
|
||||
}
|
||||
Reference in New Issue
Block a user