first commit
This commit is contained in:
19
frontend/node_modules/rc-resize-observer/es/Collection.d.ts
generated
vendored
Normal file
19
frontend/node_modules/rc-resize-observer/es/Collection.d.ts
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
import * as React from 'react';
|
||||
import type { SizeInfo } from '.';
|
||||
type onCollectionResize = (size: SizeInfo, element: HTMLElement, data: any) => void;
|
||||
export declare const CollectionContext: React.Context<onCollectionResize>;
|
||||
export interface ResizeInfo {
|
||||
size: SizeInfo;
|
||||
data: any;
|
||||
element: HTMLElement;
|
||||
}
|
||||
export interface CollectionProps {
|
||||
/** Trigger when some children ResizeObserver changed. Collect by frame render level */
|
||||
onBatchResize?: (resizeInfo: ResizeInfo[]) => void;
|
||||
children?: React.ReactNode;
|
||||
}
|
||||
/**
|
||||
* Collect all the resize event from children ResizeObserver
|
||||
*/
|
||||
export declare function Collection({ children, onBatchResize }: CollectionProps): React.JSX.Element;
|
||||
export {};
|
||||
Reference in New Issue
Block a user