From ef85dd3f6df60a9958d61e47ef4315fa9939cb6f Mon Sep 17 00:00:00 2001 From: Sendya <18x@loacg.com> Date: Thu, 1 Jul 2021 11:40:43 +0800 Subject: [PATCH] fix: contentWidth --- examples/index.tsx | 2 +- package.json | 2 +- src/BasicLayout.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/index.tsx b/examples/index.tsx index 2f36e0e8..c974b1e9 100644 --- a/examples/index.tsx +++ b/examples/index.tsx @@ -82,7 +82,7 @@ const BasicLayout = defineComponent({ isMobile={state.isMobile} fixSiderbar={state.fixSiderbar} fixedHeader={state.fixedHeader} - contentWidth={'Fixed'} + contentWidth={'Fluid'} primaryColor={'#1890ff'} contentStyle={{ minHeight: '300px' }} siderWidth={state.sideWidth} diff --git a/package.json b/package.json index dfbb71b0..6413555e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ant-design-vue/pro-layout", - "version": "3.0.0-beta.11", + "version": "3.0.0-beta.12", "main": "./lib/index.js", "module": "./es/index.js", "repository": { diff --git a/src/BasicLayout.tsx b/src/BasicLayout.tsx index 9e11fa51..3d723c83 100644 --- a/src/BasicLayout.tsx +++ b/src/BasicLayout.tsx @@ -182,7 +182,7 @@ const ProLayout = defineComponent({ itemRender: breadcrumbRender, }; }), - contentWidth: 'Fluid', + contentWidth: refProps.contentWidth, // 'Fluid', layout: refProps.layout, navTheme: refProps.navTheme, splitMenus: refProps.splitMenus,