@@ -20,13 +20,11 @@ import useWinClick from './hooks/useWinClick';
2020import type {
2121 ActionType ,
2222 AlignType ,
23- AnimationType ,
2423 ArrowPos ,
2524 ArrowTypeOuter ,
2625 BuildInPlacements ,
27- TransitionNameType ,
2826} from './interface' ;
29- import { getAlignPopupClassName , getMotion } from './util' ;
27+ import { getAlignPopupClassName } from './util' ;
3028
3129export type {
3230 ActionType ,
@@ -82,15 +80,6 @@ export interface TriggerProps {
8280 /** Set mask motion. You can ref `rc-motion` for more info. */
8381 maskMotion ?: CSSMotionProps ;
8482
85- /** @deprecated Please us `popupMotion` instead. */
86- popupTransitionName ?: TransitionNameType ;
87- /** @deprecated Please us `popupMotion` instead. */
88- popupAnimation ?: AnimationType ;
89- /** @deprecated Please us `maskMotion` instead. */
90- maskTransitionName ?: TransitionNameType ;
91- /** @deprecated Please us `maskMotion` instead. */
92- maskAnimation ?: AnimationType ;
93-
9483 // ==================== Delay ====================
9584 mouseEnterDelay ?: number ;
9685 mouseLeaveDelay ?: number ;
@@ -192,10 +181,6 @@ export function generateTrigger(
192181 // Motion
193182 popupMotion,
194183 maskMotion,
195- popupTransitionName,
196- popupAnimation,
197- maskTransitionName,
198- maskAnimation,
199184
200185 // Private
201186 getTriggerDOMNode,
@@ -278,21 +263,6 @@ export function generateTrigger(
278263 ) ;
279264 } ) ;
280265
281- // =========================== Motion ===========================
282- const mergePopupMotion = getMotion (
283- prefixCls ,
284- popupMotion ,
285- popupAnimation ,
286- popupTransitionName ,
287- ) ;
288-
289- const mergeMaskMotion = getMotion (
290- prefixCls ,
291- maskMotion ,
292- maskAnimation ,
293- maskTransitionName ,
294- ) ;
295-
296266 // ============================ Open ============================
297267 const [ internalOpen , setInternalOpen ] = React . useState (
298268 defaultPopupVisible || false ,
@@ -710,8 +680,8 @@ export function generateTrigger(
710680 // Mask
711681 mask = { mask }
712682 // Motion
713- motion = { mergePopupMotion }
714- maskMotion = { mergeMaskMotion }
683+ motion = { popupMotion }
684+ maskMotion = { maskMotion }
715685 onVisibleChanged = { onVisibleChanged }
716686 onPrepare = { onPrepare }
717687 // Portal
0 commit comments