mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-11 11:32:52 +08:00
docs: fix layout demo (#25602)
This commit is contained in:
parent
061e7b86d8
commit
2a051bac64
@ -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`] = `
|
||||
|
@ -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,
|
||||
);
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user