mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 20:49:53 +08:00
feat: animation check (#35108)
* feat: animation check * chore: remove treeNodeFX import
This commit is contained in:
parent
f1f56e3177
commit
acb21e1848
@ -477,5 +477,7 @@ export default genComponentStyleHook('Card', (token, { rootPrefixCls, hashId })
|
||||
|
||||
// RTL
|
||||
genCardRTLStyle(cardToken),
|
||||
|
||||
antCardLoading,
|
||||
];
|
||||
});
|
||||
|
@ -1199,6 +1199,10 @@ export default genComponentStyleHook(
|
||||
genPickerStyle(pickerToken),
|
||||
genPanelStyle(pickerToken),
|
||||
genPickerStatusStyle(pickerToken),
|
||||
slideDownIn,
|
||||
slideDownOut,
|
||||
slideUpIn,
|
||||
slideUpOut,
|
||||
];
|
||||
},
|
||||
token => ({
|
||||
|
@ -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];
|
||||
});
|
||||
|
@ -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,
|
||||
]);
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user