Skip to content

Commit

Permalink
update: tween-one, close #32731
Browse files Browse the repository at this point in the history
  • Loading branch information
jljsj33 committed Nov 9, 2021
1 parent 90aff3a commit 40ed8e9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions components/tag/demo/animation.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,11 @@ class EditableTagGroup extends React.Component {
opacity: 0,
type: 'from',
duration: 100,
onComplete: e => {
e.target.style = '';
},
}}
onEnd={(e) => {
if(e.type === 'appear' || e.type === 'enter') {
e.targets.style = '';
}
}}
leave={{ opacity: 0, width: 0, scale: 0, duration: 200 }}
appear={false}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@
"pretty-quick": "^3.0.0",
"querystring": "^0.2.0",
"rc-footer": "^0.6.6",
"rc-tween-one": "^2.4.1",
"rc-tween-one": "^3.0.3",
"rc-virtual-list": "^3.2.4",
"react": "^17.0.1",
"react-color": "^2.17.3",
Expand Down

0 comments on commit 40ed8e9

Please sign in to comment.