tdesign-mobile-vue
Version:
tdesign-mobile-vue
17 lines (16 loc) • 758 B
TypeScript
export declare const getAttach: (node: any, triggerNode?: any) => HTMLElement | Element;
export declare const getSSRAttach: () => string;
export declare function stopPropagation(event: Event): void;
export declare function preventDefault(event: Event, isStopPropagation?: boolean): void;
export declare function hasClass(el: Element, cls: string): any;
export declare function addClass(el: Element, cls: string): any;
export declare function removeClass(el: Element, cls: string): any;
export declare function elementInViewport(elm: HTMLElement, parent?: HTMLElement): boolean;
export declare function getWindowScroll(): {
scrollTop: number;
scrollLeft: number;
};
export declare function getWindowSize(): {
width: number;
height: number;
};