From 912c4ddfec94deda34a99d7c879d4d38b4f0080b Mon Sep 17 00:00:00 2001 From: oxxd Date: Thu, 9 Nov 2023 09:59:49 +0800 Subject: [PATCH] fix(layout): [antd: Drawer] `bodyStyle` is deprecated waring (#7864) --- packages/layout/src/components/SiderMenu/index.tsx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/packages/layout/src/components/SiderMenu/index.tsx b/packages/layout/src/components/SiderMenu/index.tsx index fa289a944ef1..72a4d2c5ba7b 100644 --- a/packages/layout/src/components/SiderMenu/index.tsx +++ b/packages/layout/src/components/SiderMenu/index.tsx @@ -66,12 +66,14 @@ const SiderMenuWrapper: React.FC = ( maskClosable closable={false} width={siderWidth} - bodyStyle={{ - height: '100vh', - padding: 0, - display: 'flex', - flexDirection: 'row', - backgroundColor: token.layout?.sider?.colorMenuBackground, + styles={{ + body: { + height: '100vh', + padding: 0, + display: 'flex', + flexDirection: 'row', + backgroundColor: token.layout?.sider?.colorMenuBackground, + } }} >