UNPKG

hongluan-ui

Version:
19 lines (18 loc) 674 B
import type { Arrayable } from '../utils/typescript'; import type { InjectionKey, Ref } from 'vue'; import type { TooltipTriggerType } from 'hongluan-ui/es/components/tooltip'; export declare type TooltipInjectionContext = { controlled: Ref<boolean>; id: Ref<string>; open: Ref<boolean>; trigger: Ref<Arrayable<TooltipTriggerType>>; onOpen: (e?: Event) => void; onClose: (e?: Event) => void; onToggle: (e: Event) => void; onShow: () => void; onHide: () => void; onBeforeShow: () => void; onBeforeHide: () => void; updatePopper: () => void; }; export declare const TOOLTIP_INJECTION_KEY: InjectionKey<TooltipInjectionContext>;