UNPKG

ant-design-vue

Version:

An enterprise-class UI design language and Vue-based implementation

5 lines (4 loc) 380 B
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>];