pull2
Version:
提供了下拉刷新、滚动底部加载组件。原生 js 开发,不依赖任何框架,也可以集成到任何框架。
20 lines (19 loc) • 858 B
TypeScript
export declare const isWindow: (obj: any) => boolean;
export declare const isSupportTouch: boolean;
export declare const Events: {
start: string;
move: string;
end: string;
cancel: string;
};
export declare function getScrollTop(el: HTMLElement | Window): number;
export declare function getClient(e: any): {
clientX: number;
clientY: number;
};
export declare function formatPx(num: string | number): string;
export declare function hasOwnProperty(obj: Record<string, any>, prop: string | number): boolean;
export declare function reflow(el?: HTMLElement): number | undefined;
export declare function getClientHeight(el: HTMLElement | Window): number;
export declare function getScrollHeight(el?: Window | HTMLElement): number;
export declare function throttle(fn: (...args: any[]) => void, wait?: number): (...args: any[]) => void;