@@ -20,13 +20,11 @@ import useWinClick from './hooks/useWinClick';
20
20
import type {
21
21
ActionType ,
22
22
AlignType ,
23
- AnimationType ,
24
23
ArrowPos ,
25
24
ArrowTypeOuter ,
26
25
BuildInPlacements ,
27
- TransitionNameType ,
28
26
} from './interface' ;
29
- import { getAlignPopupClassName , getMotion } from './util' ;
27
+ import { getAlignPopupClassName } from './util' ;
30
28
31
29
export type {
32
30
ActionType ,
@@ -82,15 +80,6 @@ export interface TriggerProps {
82
80
/** Set mask motion. You can ref `rc-motion` for more info. */
83
81
maskMotion ?: CSSMotionProps ;
84
82
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
-
94
83
// ==================== Delay ====================
95
84
mouseEnterDelay ?: number ;
96
85
mouseLeaveDelay ?: number ;
@@ -192,10 +181,6 @@ export function generateTrigger(
192
181
// Motion
193
182
popupMotion,
194
183
maskMotion,
195
- popupTransitionName,
196
- popupAnimation,
197
- maskTransitionName,
198
- maskAnimation,
199
184
200
185
// Private
201
186
getTriggerDOMNode,
@@ -278,21 +263,6 @@ export function generateTrigger(
278
263
) ;
279
264
} ) ;
280
265
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
-
296
266
// ============================ Open ============================
297
267
const [ internalOpen , setInternalOpen ] = React . useState (
298
268
defaultPopupVisible || false ,
@@ -710,8 +680,8 @@ export function generateTrigger(
710
680
// Mask
711
681
mask = { mask }
712
682
// Motion
713
- motion = { mergePopupMotion }
714
- maskMotion = { mergeMaskMotion }
683
+ motion = { popupMotion }
684
+ maskMotion = { maskMotion }
715
685
onVisibleChanged = { onVisibleChanged }
716
686
onPrepare = { onPrepare }
717
687
// Portal
0 commit comments