From fbab5df6559be6391783cd0837bef70c212695eb Mon Sep 17 00:00:00 2001 From: MadCcc <1075746765@qq.com> Date: Mon, 5 Dec 2022 14:06:42 +0800 Subject: [PATCH] docs: update Layout demo (#39255) * docs: update Layout demo * chore: code clean * chore: update snapshot --- .../__snapshots__/demo-extend.test.ts.snap | 57 +++++++------- .../__tests__/__snapshots__/demo.test.ts.snap | 57 +++++++------- components/layout/demo/basic.md | 12 --- .../layout/demo/custom-trigger-debug.tsx | 9 ++- components/layout/demo/custom-trigger.md | 4 - components/layout/demo/custom-trigger.tsx | 9 ++- components/layout/demo/fixed-sider.md | 17 ----- components/layout/demo/fixed-sider.tsx | 76 ++++++++++--------- components/layout/demo/fixed.md | 19 ----- components/layout/demo/fixed.tsx | 68 ++++++++++------- components/layout/demo/responsive.md | 14 ---- components/layout/demo/responsive.tsx | 76 ++++++++++--------- components/layout/demo/side.md | 18 ----- components/layout/demo/side.tsx | 11 ++- components/layout/demo/top-side-2.md | 4 - components/layout/demo/top-side-2.tsx | 74 +++++++++--------- components/layout/demo/top-side.md | 4 - components/layout/demo/top-side.tsx | 64 +++++++++------- components/layout/demo/top.md | 7 -- components/layout/demo/top.tsx | 66 +++++++++------- components/layout/index.en-US.md | 9 --- components/layout/index.zh-CN.md | 9 --- 22 files changed, 306 insertions(+), 378 deletions(-) diff --git a/components/layout/__tests__/__snapshots__/demo-extend.test.ts.snap b/components/layout/__tests__/__snapshots__/demo-extend.test.ts.snap index 4ccce9523e..06e84c1200 100644 --- a/components/layout/__tests__/__snapshots__/demo-extend.test.ts.snap +++ b/components/layout/__tests__/__snapshots__/demo-extend.test.ts.snap @@ -380,8 +380,8 @@ exports[`renders ./components/layout/demo/custom-trigger.tsx extend context corr class="ant-layout site-layout" >
Content
@@ -423,7 +423,7 @@ exports[`renders ./components/layout/demo/fixed.tsx extend context correctly 1`] style="position:sticky;top:0;z-index:1;width:100%" >