fix: Upload progress bar fade motion (#43471)

close #43229
This commit is contained in:
afc163 2023-07-11 10:06:09 +08:00 committed by GitHub
parent 8e2baf4d4d
commit 39151c612b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,7 @@
import { Keyframes } from '@ant-design/cssinjs';
import type { UploadToken } from '.';
import type { GenerateStyle } from '../../theme/internal';
import { initFadeMotion } from '../../style/motion';
const uploadAnimateInlineIn = new Keyframes('uploadAnimateInlineIn', {
from: {
@ -44,6 +45,9 @@ const genMotionStyle: GenerateStyle<UploadToken> = (token) => {
},
},
},
{
[`${componentCls}-wrapper`]: initFadeMotion(token),
},
uploadAnimateInlineIn,
uploadAnimateInlineOut,
];