hongluan-ui
Version:
Hongluan Component Library for Vue 3
13 lines (12 loc) • 427 B
TypeScript
import type { Ref } from 'vue';
export declare type CollectionItem<T = Record<string, any>> = {
ref: HTMLElement | null;
} & T;
export declare type CollectionInjectionContext = {
itemMap: Map<HTMLElement, CollectionItem>;
getItems: <T>() => CollectionItem<T>[];
collectionRef: Ref<HTMLElement | null>;
};
export declare type CollectionItemInjectionContext = {
collectionItemRef: Ref<HTMLElement | null>;
};