Skip to content

Commit

Permalink
fix: fix the flex gap problem (#48522)
Browse files Browse the repository at this point in the history
  • Loading branch information
nova1751 committed Apr 18, 2024
1 parent 273104c commit c8f6aee
Showing 1 changed file with 21 additions and 20 deletions.
41 changes: 21 additions & 20 deletions components/upload/style/motion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,31 @@ import type { UploadToken } from '.';
import { initFadeMotion } from '../../style/motion';
import type { GenerateStyle } from '../../theme/internal';

const uploadAnimateInlineIn = new Keyframes('uploadAnimateInlineIn', {
from: {
width: 0,
height: 0,
margin: 0,
padding: 0,
opacity: 0,
},
});

const uploadAnimateInlineOut = new Keyframes('uploadAnimateInlineOut', {
to: {
width: 0,
height: 0,
margin: 0,
padding: 0,
opacity: 0,
},
});
// =========================== Motion ===========================
const genMotionStyle: GenerateStyle<UploadToken> = (token) => {
const { componentCls } = token;
const inlineCls = `${componentCls}-animate-inline`;

const uploadAnimateInlineIn = new Keyframes('uploadAnimateInlineIn', {
from: {
width: 0,
height: 0,
padding: 0,
opacity: 0,
margin: `calc(${token.marginXS} / -2)`,
},
});

const uploadAnimateInlineOut = new Keyframes('uploadAnimateInlineOut', {
to: {
width: 0,
height: 0,
padding: 0,
opacity: 0,
margin: `calc(${token.marginXS} / -2)`,
},
});

const inlineCls = `${componentCls}-animate-inline`;
return [
{
[`${componentCls}-wrapper`]: {
Expand Down

0 comments on commit c8f6aee

Please sign in to comment.