@aplus-frontend/antdv
Version:
Vue basic component library maintained based on ant-design-vue
12 lines (11 loc) • 408 B
TypeScript
import type { ComputedRef, Ref } from 'vue';
import type { TableSticky } from '../interface';
/** Sticky header hooks */
export default function useSticky(stickyRef: Ref<boolean | TableSticky>, prefixClsRef: Ref<string>): ComputedRef<{
isSticky: boolean;
offsetHeader: number;
offsetSummary: number;
offsetScroll: number;
stickyClassName: string;
container: Window | HTMLElement;
}>;