Skip to content

Commit 11c18e5

Browse files
committed
restore MOTION_PROP_NAMES
1 parent a1703a2 commit 11c18e5

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

src/CSSMotionList.jsx

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint react/prop-types: 0 */
22
import React from 'react';
3-
import OriginCSSMotion, { MotionPropTypes } from './CSSMotion';
3+
import OriginCSSMotion from './CSSMotion';
44
import { supportTransition } from './util/motion';
55
import {
66
STATUS_ADD,
@@ -11,7 +11,28 @@ import {
1111
parseKeys,
1212
} from './util/diff';
1313

14-
const MOTION_PROP_NAMES = Object.keys(MotionPropTypes);
14+
const MOTION_PROP_NAMES = [
15+
'eventProps',
16+
'visible',
17+
'children',
18+
'motionName',
19+
'motionAppear',
20+
'motionEnter',
21+
'motionLeave',
22+
'motionLeaveImmediately',
23+
'motionDeadline',
24+
'removeOnLeave',
25+
'leavedClassName',
26+
'onAppearStart',
27+
'onAppearActive',
28+
'onAppearEnd',
29+
'onEnterStart',
30+
'onEnterActive',
31+
'onEnterEnd',
32+
'onLeaveStart',
33+
'onLeaveActive',
34+
'onLeaveEnd',
35+
];
1536

1637
export function genCSSMotionList(transitionSupport, CSSMotion = OriginCSSMotion) {
1738
class CSSMotionList extends React.Component {

0 commit comments

Comments
 (0)