Files
dsProject/dsBase/WebRoot/html/cdn/es/components/collection/src/tokens.d.ts

13 lines
431 B
TypeScript
Raw Normal View History

2025-08-14 15:45:08 +08:00
import type { Ref } from 'vue';
export declare type CollectionItem<T = Record<string, any>> = {
ref: HTMLElement | null;
} & T;
export declare type ElCollectionInjectionContext = {
itemMap: Map<HTMLElement, CollectionItem>;
getItems: <T>() => CollectionItem<T>[];
collectionRef: Ref<HTMLElement | null>;
};
export declare type ElCollectionItemInjectionContext = {
collectionItemRef: Ref<HTMLElement | null>;
};