fix: tag animation demo (#32804)

This commit is contained in:
jiang 2021-11-10 13:12:57 +08:00 committed by GitHub
parent 852a451477
commit 5f642cbc9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,9 +89,9 @@ class EditableTagGroup extends React.Component {
type: 'from',
duration: 100,
}}
onEnd={(e) => {
if(e.type === 'appear' || e.type === 'enter') {
e.targets.style = '';
onEnd={e => {
if (e.type === 'appear' || e.type === 'enter') {
e.target.style = 'display: inline-block';
}
}}
leave={{ opacity: 0, width: 0, scale: 0, duration: 200 }}