mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
21 lines
549 B
TypeScript
21 lines
549 B
TypeScript
import type { InjectionKey, Ref } from 'vue'
|
|
import type { Trigger } from './tooltip'
|
|
|
|
export 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
|
|
onBeforeShow: () => void
|
|
onBeforeHide: () => void
|
|
updatePopper: () => void
|
|
}
|
|
|
|
export const TOOLTIP_INJECTION_KEY: InjectionKey<ElTooltipInjectionContext> =
|
|
Symbol('elTooltip')
|