You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
417 B

3 months ago
  1. import type { Ref } from 'vue';
  2. export type CollectionItem<T = Record<string, any>> = {
  3. ref: HTMLElement | null;
  4. } & T;
  5. export type ElCollectionInjectionContext = {
  6. itemMap: Map<HTMLElement, CollectionItem>;
  7. getItems: <T>() => CollectionItem<T>[];
  8. collectionRef: Ref<HTMLElement | undefined>;
  9. };
  10. export type ElCollectionItemInjectionContext = {
  11. collectionItemRef: Ref<HTMLElement | undefined>;
  12. };