Skip to content

Commit

Permalink
fix: 修复basic-layouts包裹App超屏
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenlingasMx committed May 24, 2023
1 parent f6b0cf2 commit 3b37995
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions packages/basic-layouts/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ const BasicLayouts = (props: BasicLayoutsProps) => {
<Layout>
{ANTD_MENU_IS_SHOW && <SiderMenus />}
<Layout.Content className="antdp-basic-layouts-content" >
<WarpContent />
<App>
<WarpContent />
</App>
</Layout.Content>
</Layout>
</React.Fragment>
Expand All @@ -52,7 +54,9 @@ const BasicLayouts = (props: BasicLayoutsProps) => {
</Layout.Header>
)}
<Layout.Content className="antdp-basic-layouts-content" >
<WarpContent />
<App>
<WarpContent />
</App>
</Layout.Content>
</Layout>
</React.Fragment>
Expand Down Expand Up @@ -84,9 +88,7 @@ const BasicLayouts = (props: BasicLayoutsProps) => {
<AuthorizedConfigProvider {...newData} >
<LayoutsProvider {...props}>
<Layout className="antdp-basic-layouts">
<App>
{render}
</App>
{render}
</Layout>
</LayoutsProvider>
</AuthorizedConfigProvider >
Expand Down

0 comments on commit 3b37995

Please sign in to comment.