docs: fix layout demo (#25602)

This commit is contained in:
xrk 2020-07-13 19:35:15 +08:00 committed by GitHub
parent 061e7b86d8
commit 2a051bac64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 8 deletions

View File

@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/layout/demo/basic.md correctly 1`] = ` exports[`renders ./components/layout/demo/basic.md correctly 1`] = `
Array [ <div>
<section <section
class="ant-layout" class="ant-layout"
> >
@ -20,7 +20,7 @@ Array [
> >
Footer Footer
</footer> </footer>
</section>, </section>
<section <section
class="ant-layout" class="ant-layout"
> >
@ -53,7 +53,7 @@ Array [
> >
Footer Footer
</footer> </footer>
</section>, </section>
<section <section
class="ant-layout" class="ant-layout"
> >
@ -86,7 +86,7 @@ Array [
> >
Footer Footer
</footer> </footer>
</section>, </section>
<section <section
class="ant-layout" class="ant-layout"
> >
@ -119,8 +119,8 @@ Array [
Footer Footer
</footer> </footer>
</section> </section>
</section>, </section>
] </div>
`; `;
exports[`renders ./components/layout/demo/custom-trigger.md correctly 1`] = ` exports[`renders ./components/layout/demo/custom-trigger.md correctly 1`] = `

View File

@ -19,7 +19,7 @@ import { Layout } from 'antd';
const { Header, Footer, Sider, Content } = Layout; const { Header, Footer, Sider, Content } = Layout;
ReactDOM.render( ReactDOM.render(
<> <div>
<Layout> <Layout>
<Header>Header</Header> <Header>Header</Header>
<Content>Content</Content> <Content>Content</Content>
@ -52,7 +52,7 @@ ReactDOM.render(
<Footer>Footer</Footer> <Footer>Footer</Footer>
</Layout> </Layout>
</Layout> </Layout>
</>, </div>,
mountNode, mountNode,
); );
``` ```