UNPKG

element-plus

Version:

A Component Library for Vue 3

13 lines (12 loc) 417 B
import type { Ref } from 'vue'; export type CollectionItem<T = Record<string, any>> = { ref: HTMLElement | null; } & T; export type ElCollectionInjectionContext = { itemMap: Map<HTMLElement, CollectionItem>; getItems: <T>() => CollectionItem<T>[]; collectionRef: Ref<HTMLElement | undefined>; }; export type ElCollectionItemInjectionContext = { collectionItemRef: Ref<HTMLElement | undefined>; };