From 749a30309f8bde9cf5050ae28e164118eefce408 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=9F=E8=B4=A4?= Date: Mon, 31 Jul 2023 13:44:28 +0800 Subject: [PATCH] fix(layout): fix col size error --- packages/layout/src/ProLayout.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/layout/src/ProLayout.tsx b/packages/layout/src/ProLayout.tsx index 0c1cd3f6dbdb..956a78275fa5 100644 --- a/packages/layout/src/ProLayout.tsx +++ b/packages/layout/src/ProLayout.tsx @@ -562,16 +562,16 @@ const BaseProLayout: React.FC = (props) => { () => ({ lg: true, md: true, - sm: false, + sm: true, xl: false, - xs: false, + xs: true, xxl: false, }), [], ); const col = Grid.useBreakpoint() || defaultCol; - const isMobile = (col.sm === true || col.xs === true) && !props.disableMobile; + const isMobile = (col.sm || col.xs) && !col.md && !props.disableMobile; const colSize = useMemo(() => { return Object.keys(col).filter((key) => col[key] === true)[0] || 'md';