Skip to content

Commit

Permalink
fix(Transition): 修复unmounted 初始化样式的应用问题
Browse files Browse the repository at this point in the history
  • Loading branch information
79E committed Dec 1, 2022
1 parent 3c2e933 commit 0bcb8be
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/transition/transition.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export const Transition: FunctionComponent<TransitionProps> = props => {
return React.cloneElement(chil as React.ReactElement, {
style: {
...chil.props.style,
...varTransitionStyles['unmounted'],
...varTransitionStyles[state],
},
});
Expand Down

0 comments on commit 0bcb8be

Please sign in to comment.