Files
dsProject/dsBase/WebRoot/html/cdn/lib/components/popper/src/tokens.d.ts
2025-08-14 15:45:08 +08:00

15 lines
637 B
TypeScript

import type { InjectionKey, Ref } from 'vue';
import type { Instance } from '@popperjs/core';
import type { Measurable } from './popper';
export declare type ElPopperInjectionContext = {
triggerRef: Ref<Measurable | null>;
contentRef: Ref<HTMLElement | null>;
popperInstanceRef: Ref<Instance | null>;
};
export declare type ElPopperContentInjectionContext = {
arrowRef: Ref<HTMLElement | null>;
arrowOffset: Ref<number | undefined>;
};
export declare const POPPER_INJECTION_KEY: InjectionKey<ElPopperInjectionContext>;
export declare const POPPER_CONTENT_INJECTION_KEY: InjectionKey<ElPopperContentInjectionContext>;