diff --git a/components/drawer/DrawerPanel.tsx b/components/drawer/DrawerPanel.tsx index cd2054c881..6fa56cbec7 100644 --- a/components/drawer/DrawerPanel.tsx +++ b/components/drawer/DrawerPanel.tsx @@ -157,7 +157,12 @@ const DrawerPanel: React.FC = (props) => { }, [footer, footerStyle, prefixCls]); if (spinProps?.spinning) { - return ; + return ( + + ); } return ( diff --git a/components/drawer/__tests__/__snapshots__/Drawer.test.tsx.snap b/components/drawer/__tests__/__snapshots__/Drawer.test.tsx.snap index c8776a0ab7..bf10b8b17e 100644 --- a/components/drawer/__tests__/__snapshots__/Drawer.test.tsx.snap +++ b/components/drawer/__tests__/__snapshots__/Drawer.test.tsx.snap @@ -26,7 +26,7 @@ exports[`Drawer Drawer loading have a spinner 1`] = `
{} // =============================== Base =============================== const genDrawerStyle: GenerateStyle = (token) => { const { - antCls, borderRadiusSM, componentCls, zIndexPopup, @@ -148,7 +147,7 @@ const genDrawerStyle: GenerateStyle = (token) => { overflow: 'auto', background: colorBgElevated, pointerEvents: 'auto', - [`${antCls}-spin`]: { + [`${componentCls}-content-spin`]: { width: '100%', height: '100%', display: 'flex',