UNPKG

antd-fx67ll-test

Version:

这是一个测试着玩的私服antd项目,完全照抄v4.16.6的antd源码,请勿使用,仅做发布测试(因每次发布必须要升版本,如发现版本出入请忽略,与官方无关)

18 lines (17 loc) 874 B
import Affix from '.'; export declare type BindElement = HTMLElement | Window | null | undefined; export declare type Rect = ClientRect | DOMRect; export declare function getTargetRect(target: BindElement): ClientRect; export declare function getFixedTop(placeholderReact: Rect, targetRect: Rect, offsetTop: number | undefined): number | undefined; export declare function getFixedBottom(placeholderReact: Rect, targetRect: Rect, offsetBottom: number | undefined): number | undefined; interface ObserverEntity { target: HTMLElement | Window; affixList: Affix[]; eventHandlers: { [eventName: string]: any; }; } export declare function getObserverEntities(): ObserverEntity[]; export declare function addObserveTarget(target: HTMLElement | Window | null, affix: Affix): void; export declare function removeObserveTarget(affix: Affix): void; export {};