const animationDuration = 500; // 动画时间
const handleClose = () => {
setExiting(true);
setTimeout(() => {
setExiting(false);
setOpen(false);
}, animationDuration);
};
PaperProps={{
sx: {
transition: `all ${animationDuration}ms ease, opacity ${animationDuration}ms ease`,
},
}}