feat: animation check (#35108)

* feat: animation check

* chore: remove treeNodeFX import
This commit is contained in:
MadCcc 2022-04-20 10:24:24 +08:00 committed by GitHub
parent f1f56e3177
commit acb21e1848
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 4 deletions

View File

@ -477,5 +477,7 @@ export default genComponentStyleHook('Card', (token, { rootPrefixCls, hashId })
// RTL
genCardRTLStyle(cardToken),
antCardLoading,
];
});

View File

@ -1199,6 +1199,10 @@ export default genComponentStyleHook(
genPickerStyle(pickerToken),
genPanelStyle(pickerToken),
genPickerStatusStyle(pickerToken),
slideDownIn,
slideDownOut,
slideUpIn,
slideUpOut,
];
},
token => ({

View File

@ -24,7 +24,7 @@ export interface DrawerToken extends FullToken<'Drawer'> {
componentCls: string;
}
const antdDrawerFadeIn = new Keyframes('antNoWrapperZoomBadgeIn', {
const antdDrawerFadeIn = new Keyframes('antDrawerFadeIn', {
'0%': { opacity: 0 },
'100%': { opacity: 1 },
});
@ -310,5 +310,5 @@ export default genComponentStyleHook('Drawer', (token, { hashId }) => {
motionEaseOut: 'cubic-bezier(0.215, 0.61, 0.355, 1)', // FIXME: hard code
});
return [genBaseStyle(drawerToken, hashId), genDrawerStyle(drawerToken)];
return [genBaseStyle(drawerToken, hashId), genDrawerStyle(drawerToken), antdDrawerFadeIn];
});

View File

@ -465,6 +465,7 @@ export const genTreeStyle = (
genBaseStyle(prefixCls, treeToken, hashId),
// Directory
genDirectoryStyle(treeToken),
treeNodeFX,
];
};
@ -472,5 +473,4 @@ export const genTreeStyle = (
export default genComponentStyleHook('Tree', (token, { prefixCls, hashId }) => [
getCheckboxStyle(`${prefixCls}-checkbox`, token, hashId),
genTreeStyle(prefixCls, token, hashId),
treeNodeFX,
]);

View File

@ -115,7 +115,7 @@
],
"dependencies": {
"@ant-design/colors": "^6.0.0",
"@ant-design/cssinjs": "^0.0.0-alpha.26",
"@ant-design/cssinjs": "^0.0.0-alpha.27",
"@ant-design/icons": "^4.7.0",
"@ant-design/react-slick": "~0.28.1",
"@babel/runtime": "^7.12.5",