From 4c3354592c0a309b77f7d4b454f6244af06a39c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E8=B4=A7=E7=88=B1=E5=90=83=E7=99=BD=E8=90=9D?= =?UTF-8?q?=E5=8D=9C?= Date: Mon, 15 May 2023 10:48:23 +0800 Subject: [PATCH] fix: Popover transition miss (#42352) --- components/popover/style/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/popover/style/index.tsx b/components/popover/style/index.tsx index a86d49b180..b48112cb73 100644 --- a/components/popover/style/index.tsx +++ b/components/popover/style/index.tsx @@ -2,7 +2,7 @@ import { resetComponent } from '../../style'; import { initZoomMotion } from '../../style/motion'; import getArrowStyle from '../../style/placementArrow'; import type { FullToken, GenerateStyle, PresetColorType } from '../../theme/internal'; -import { genComponentStyleHook, mergeToken, PresetColors } from '../../theme/internal'; +import { PresetColors, genComponentStyleHook, mergeToken } from '../../theme/internal'; export interface ComponentToken { zIndexPopup: number; @@ -48,6 +48,7 @@ const genBaseStyle: GenerateStyle = (token) => { textAlign: 'start', cursor: 'auto', userSelect: 'text', + transformOrigin: `var(--arrow-x, 50%) var(--arrow-y, 50%)`, '--antd-arrow-background-color': colorBgElevated, '&-rtl': {