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
|
// 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`] = `
|
||||||
|
@ -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,
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user