1 | import type { ComponentPublicInstance } from 'vue';
|
2 | export declare type BindElement = HTMLElement | Window | null | undefined;
|
3 | export declare function getTargetRect(target: BindElement): DOMRect;
|
4 | export declare function getFixedTop(placeholderReact: DOMRect, targetRect: DOMRect, offsetTop: number): string;
|
5 | export declare function getFixedBottom(placeholderReact: DOMRect, targetRect: DOMRect, offsetBottom: number): string;
|
6 | interface ObserverEntity {
|
7 | target: HTMLElement | Window;
|
8 | affixList: ComponentPublicInstance<any>[];
|
9 | eventHandlers: {
|
10 | [eventName: string]: any;
|
11 | };
|
12 | }
|
13 | export declare function getObserverEntities(): ObserverEntity[];
|
14 | export declare function addObserveTarget(target: HTMLElement | Window | null, affix: ComponentPublicInstance<any>): void;
|
15 | export declare function removeObserveTarget(affix: ComponentPublicInstance<any>): void;
|
16 | export {};
|