demo: fix Layout demo ssr render effect (#42501)

* demo: fix Layout demo ssr render effect

close https://github.com/ant-design/ant-design/issues/42487

* test: update snapshot
pull/42508/head
afc163 2 years ago committed by GitHub
parent d61c08e7df
commit 7461a216a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -46,7 +46,7 @@ exports[`renders components/layout/demo/basic.tsx correctly 1`] = `
Header
</header>
<section
class="ant-layout"
class="ant-layout ant-layout-has-sider"
>
<aside
class="ant-layout-sider ant-layout-sider-dark"
@ -87,7 +87,7 @@ exports[`renders components/layout/demo/basic.tsx correctly 1`] = `
Header
</header>
<section
class="ant-layout"
class="ant-layout ant-layout-has-sider"
>
<main
class="ant-layout-content"

@ -42,7 +42,7 @@ const App: React.FC = () => (
</Layout>
<Layout>
<Header style={headerStyle}>Header</Header>
<Layout>
<Layout hasSider>
<Sider style={siderStyle}>Sider</Sider>
<Content style={contentStyle}>Content</Content>
</Layout>
@ -50,7 +50,7 @@ const App: React.FC = () => (
</Layout>
<Layout>
<Header style={headerStyle}>Header</Header>
<Layout>
<Layout hasSider>
<Content style={contentStyle}>Content</Content>
<Sider style={siderStyle}>Sider</Sider>
</Layout>

Loading…
Cancel
Save