From c86d02e03f305ada843035a1ba1b1d140387d62e Mon Sep 17 00:00:00 2001 From: Wuxh Date: Wed, 13 Jul 2022 16:57:18 +0800 Subject: [PATCH] docs: simplified `Layout` component sample code (#36497) the component example code expands to take up the entire monitor screen and is not well read --- .../__snapshots__/demo-extend.test.ts.snap | 136 ++++++++++++++++-- .../__tests__/__snapshots__/demo.test.js.snap | 136 ++++++++++++++++-- components/layout/demo/fixed-sider.md | 105 ++------------ 3 files changed, 254 insertions(+), 123 deletions(-) diff --git a/components/layout/__tests__/__snapshots__/demo-extend.test.ts.snap b/components/layout/__tests__/__snapshots__/demo-extend.test.ts.snap index 6773770c69..043613917f 100644 --- a/components/layout/__tests__/__snapshots__/demo-extend.test.ts.snap +++ b/components/layout/__tests__/__snapshots__/demo-extend.test.ts.snap @@ -1361,18 +1361,9 @@ exports[`renders ./components/layout/demo/fixed-sider.md extend context correctl class="site-layout-background" style="padding:24px;text-align:center" > - ... -
- Really -
- ... -
- ... -
- ... -
- long -
+

+ long content +

...
... @@ -1413,7 +1404,7 @@ exports[`renders ./components/layout/demo/fixed-sider.md extend context correctl
...
- ... + more
...
@@ -1453,9 +1444,126 @@ exports[`renders ./components/layout/demo/fixed-sider.md extend context correctl
...
+ more +
+ ... +
+ ... +
+ ... +
+ ... +
+ ... +
+ ... +
+ ... +
+ ... +
+ ... +
+ ... +
+ ... +
+ ... +
+ ... +
+ ... +
+ ... +
+ ... +
+ ... +
+ ... +
+ ... +
+ more +
+ ... +
+ ... +
+ ... +
+ ... +
+ ... +
+ ... +
+ ... +
+ ... +
+ ... +
+ ... +
+ ... +
+ ... +
+ ... +
+ ... +
+ ... +
+ ... +
+ ... +
+ ... +
+ ... +
+ more +
+ ... +
+ ... +
+ ... +
+ ... +
+ ... +
+ ... +
+ ... +
+ ... +
+ ... +
+ ... +
+ ... +
+ ... +
+ ... +
+ ... +
+ ... +
+ ... +
+ ... +
+ ... +
...
- content