Browse Source

fix: Popover transition miss (#42352)

pull/42357/head
二货爱吃白萝卜 2 years ago
committed by GitHub
parent
commit
4c3354592c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      components/popover/style/index.tsx

3
components/popover/style/index.tsx

@ -2,7 +2,7 @@ import { resetComponent } from '../../style';
import { initZoomMotion } from '../../style/motion'; import { initZoomMotion } from '../../style/motion';
import getArrowStyle from '../../style/placementArrow'; import getArrowStyle from '../../style/placementArrow';
import type { FullToken, GenerateStyle, PresetColorType } from '../../theme/internal'; 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 { export interface ComponentToken {
zIndexPopup: number; zIndexPopup: number;
@ -48,6 +48,7 @@ const genBaseStyle: GenerateStyle<PopoverToken> = (token) => {
textAlign: 'start', textAlign: 'start',
cursor: 'auto', cursor: 'auto',
userSelect: 'text', userSelect: 'text',
transformOrigin: `var(--arrow-x, 50%) var(--arrow-y, 50%)`,
'--antd-arrow-background-color': colorBgElevated, '--antd-arrow-background-color': colorBgElevated,
'&-rtl': { '&-rtl': {

Loading…
Cancel
Save