From a8a774a5ffc87311a0a99dd6139680ce99b16eb8 Mon Sep 17 00:00:00 2001 From: OliverYoung Date: Mon, 18 Dec 2023 10:54:30 +0800 Subject: [PATCH] fix: tooltip onPopupAlign never called (#7112) --- components/vc-trigger/Popup/interface.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/vc-trigger/Popup/interface.ts b/components/vc-trigger/Popup/interface.ts index 6f6fc2d3ec..9c5a8cf040 100644 --- a/components/vc-trigger/Popup/interface.ts +++ b/components/vc-trigger/Popup/interface.ts @@ -22,6 +22,9 @@ export const innerProps = { point: { type: Object as PropType }, getRootDomNode: { type: Function as PropType<() => HTMLElement> }, getClassNameFromAlign: { type: Function as PropType<(align: AlignType) => string> }, + onAlign: { + type: Function as PropType<(popupDomNode: HTMLElement, align: AlignType) => void>, + }, onMouseenter: { type: Function as PropType<(align: MouseEvent) => void> }, onMouseleave: { type: Function as PropType<(align: MouseEvent) => void> }, onMousedown: { type: Function as PropType<(align: MouseEvent) => void> },