UNPKG

@dfsj/ec-hooks

Version:

贵州东方世纪常用 hook。

17 lines (16 loc) 632 B
export type Target = string | Element; export declare function useIntersection(targets: Target[], options?: { thresholds: number[]; visibleThreshold: number; rootMargin: string; }): { firstVisible: import('vue').ShallowRef<any, any>; visible: import('vue').ShallowRef<any[], any[]>; hidden: import('vue').ShallowRef<any[], any[]>; isScrollEnd: import('vue').Ref<any, any>; isScrollTop: import('vue').Ref<any, any>; setScrollContainer: (ele: any) => void; enableScrollLocation: Readonly<import('vue').Ref<any, any>>; stopScrollLocation: () => void; startScrollLocation: () => void; };