sard-uniapp
Version:
sard-uniapp 是一套基于 Uniapp + Vue3 框架开发的兼容多端的 UI 组件库
17 lines (16 loc) • 593 B
TypeScript
import { type ComponentInternalInstance, MaybeRef } from 'vue';
interface IntersectionObserverOptions {
root?: MaybeRef<string>;
selector?: MaybeRef<string>;
offsetTop?: MaybeRef<number | undefined>;
offsetBottom?: MaybeRef<number | undefined>;
thresholds?: number[];
initialRatio?: number;
observeAll?: boolean;
instance?: ComponentInternalInstance;
}
export declare function useIntersectionObserver(callback: (result: UniApp.ObserveResult) => void, options?: IntersectionObserverOptions): {
recreate: () => void;
disconnect: () => void;
};
export {};