tokens.d.ts 431 B

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