15 lines
489 B
TypeScript
15 lines
489 B
TypeScript
import type { InjectionKey, Ref } from 'vue';
|
|
import type { Trigger } from './tooltip';
|
|
export declare type ElTooltipInjectionContext = {
|
|
controlled: Ref<boolean>;
|
|
id: Ref<string>;
|
|
open: Ref<boolean>;
|
|
trigger: Ref<Trigger | Trigger[]>;
|
|
onOpen: (e?: Event) => void;
|
|
onClose: (e?: Event) => void;
|
|
onToggle: (e: Event) => void;
|
|
onShow: () => void;
|
|
onHide: () => void;
|
|
};
|
|
export declare const TOOLTIP_INJECTION_KEY: InjectionKey<ElTooltipInjectionContext>;
|