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
exports[`renders ./components/layout/demo/basic.md correctly 1`] = `
Array [
<div>
<section
class="ant-layout"
>
@ -20,7 +20,7 @@ Array [
>
Footer
</footer>
</section>,
</section>
<section
class="ant-layout"
>
@ -53,7 +53,7 @@ Array [
>
Footer
</footer>
</section>,
</section>
<section
class="ant-layout"
>
@ -86,7 +86,7 @@ Array [
>
Footer
</footer>
</section>,
</section>
<section
class="ant-layout"
>
@ -119,8 +119,8 @@ Array [
Footer
</footer>
</section>
</section>,
]
</section>
</div>
`;
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;
ReactDOM.render(
<>
<div>
<Layout>
<Header>Header</Header>
<Content>Content</Content>
@ -52,7 +52,7 @@ ReactDOM.render(
<Footer>Footer</Footer>
</Layout>
</Layout>
</>,
</div>,
mountNode,
);
```