@aplus-frontend/antdv
Version:
Vue basic component library maintained based on ant-design-vue
5 lines (4 loc) • 380 B
TypeScript
import type { Ref, ShallowRef } from 'vue';
import type { GetKey } from '../interface';
export type CacheMap = Map<any, number>;
export default function useHeights<T>(mergedData: ShallowRef<any[]>, getKey: GetKey<T>, onItemAdd?: ((item: T) => void) | null, onItemRemove?: ((item: T) => void) | null): [(item: T, instance: HTMLElement) => void, () => void, CacheMap, Ref<Symbol>];