From 6f8e21b75f7e445c3d8b588310b15a0151e4a1ea Mon Sep 17 00:00:00 2001 From: xrkffgg Date: Tue, 7 Jul 2020 21:33:07 +0800 Subject: [PATCH] docs: reduce demo pageheader/pagination/steps (#25483) --- .../__tests__/__snapshots__/demo.test.js.snap | 658 +++++++++--------- components/page-header/demo/actions.md | 4 +- components/page-header/demo/responsive.md | 4 +- .../__tests__/__snapshots__/demo.test.js.snap | 504 +++++++------- components/pagination/demo/all.md | 4 +- components/pagination/demo/changer.md | 4 +- components/pagination/demo/jump.md | 4 +- components/pagination/demo/mini.md | 4 +- components/pagination/demo/total.md | 4 +- .../__tests__/__snapshots__/demo.test.js.snap | 40 +- components/steps/demo/clickable.md | 4 +- components/steps/demo/nav.md | 4 +- components/steps/demo/progress-dot.md | 4 +- components/steps/demo/step-next.md | 4 +- 14 files changed, 621 insertions(+), 625 deletions(-) diff --git a/components/page-header/__tests__/__snapshots__/demo.test.js.snap b/components/page-header/__tests__/__snapshots__/demo.test.js.snap index 3e1c0b14fe..4a91bc8f7d 100644 --- a/components/page-header/__tests__/__snapshots__/demo.test.js.snap +++ b/components/page-header/__tests__/__snapshots__/demo.test.js.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`renders ./components/page-header/demo/actions.md correctly 1`] = ` -
+Array [
@@ -186,8 +186,8 @@ exports[`renders ./components/page-header/demo/actions.md correctly 1`] = `
- -
+ , +
,
@@ -371,8 +371,8 @@ exports[`renders ./components/page-header/demo/actions.md correctly 1`] = `
- - + , +] `; exports[`renders ./components/page-header/demo/basic.md correctly 1`] = ` @@ -915,35 +915,330 @@ exports[`renders ./components/page-header/demo/ghost.md correctly 1`] = ` `; exports[`renders ./components/page-header/demo/responsive.md correctly 1`] = ` -
+ + , +] `; exports[`renders ./components/pagination/demo/mini.md correctly 1`] = ` -
+Array [
    -
+ ,
- + , -
+ , +] `; exports[`renders ./components/pagination/demo/more.md correctly 1`] = ` @@ -2410,7 +2408,7 @@ exports[`renders ./components/pagination/demo/simple.md correctly 1`] = ` `; exports[`renders ./components/pagination/demo/total.md correctly 1`] = ` -
+Array [
- -
+ , +
, - + , +] `; diff --git a/components/pagination/demo/all.md b/components/pagination/demo/all.md index 0ea0a71b79..bd9ce4a549 100644 --- a/components/pagination/demo/all.md +++ b/components/pagination/demo/all.md @@ -17,14 +17,14 @@ Show all configured prop. import { Pagination } from 'antd'; ReactDOM.render( -
+ <> `Total ${total} items`} /> -
, + , mountNode, ); ``` diff --git a/components/pagination/demo/changer.md b/components/pagination/demo/changer.md index 6806815e28..bcf4842db6 100644 --- a/components/pagination/demo/changer.md +++ b/components/pagination/demo/changer.md @@ -21,7 +21,7 @@ function onShowSizeChange(current, pageSize) { } ReactDOM.render( -
+ <> -
, + , mountNode, ); ``` diff --git a/components/pagination/demo/jump.md b/components/pagination/demo/jump.md index d1813c95bd..acbaf5e278 100644 --- a/components/pagination/demo/jump.md +++ b/components/pagination/demo/jump.md @@ -21,11 +21,11 @@ function onChange(pageNumber) { } ReactDOM.render( -
+ <>
-
, + , mountNode, ); ``` diff --git a/components/pagination/demo/mini.md b/components/pagination/demo/mini.md index 167e7faf6c..1b226549bc 100644 --- a/components/pagination/demo/mini.md +++ b/components/pagination/demo/mini.md @@ -21,11 +21,11 @@ function showTotal(total) { } ReactDOM.render( -
+ <> -
, + , mountNode, ); ``` diff --git a/components/pagination/demo/total.md b/components/pagination/demo/total.md index 3162db9b30..a311539a7c 100644 --- a/components/pagination/demo/total.md +++ b/components/pagination/demo/total.md @@ -17,7 +17,7 @@ You can show the total number of data by setting `showTotal`. import { Pagination } from 'antd'; ReactDOM.render( -
+ <> `Total ${total} items`} @@ -31,7 +31,7 @@ ReactDOM.render( defaultPageSize={20} defaultCurrent={1} /> -
, + , mountNode, ); ``` diff --git a/components/steps/__tests__/__snapshots__/demo.test.js.snap b/components/steps/__tests__/__snapshots__/demo.test.js.snap index cf1e09a1b3..c953f80317 100644 --- a/components/steps/__tests__/__snapshots__/demo.test.js.snap +++ b/components/steps/__tests__/__snapshots__/demo.test.js.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`renders ./components/steps/demo/clickable.md correctly 1`] = ` -
+Array [
@@ -113,11 +113,11 @@ exports[`renders ./components/steps/demo/clickable.md correctly 1`] = `
- + , - - + , +] `; exports[`renders ./components/steps/demo/customized-progress-dot.md correctly 1`] = ` @@ -731,7 +731,7 @@ exports[`renders ./components/steps/demo/icon.md correctly 1`] = ` `; exports[`renders ./components/steps/demo/nav.md correctly 1`] = ` -
+Array [
- + , - + , - - + , +] `; exports[`renders ./components/steps/demo/progress-dot.md correctly 1`] = ` -
+Array [
@@ -1308,11 +1308,11 @@ exports[`renders ./components/steps/demo/progress-dot.md correctly 1`] = `
- + , - - + , +] `; exports[`renders ./components/steps/demo/simple.md correctly 1`] = ` @@ -1748,7 +1748,7 @@ exports[`renders ./components/steps/demo/small-size.md correctly 1`] = ` `; exports[`renders ./components/steps/demo/step-next.md correctly 1`] = ` -
+Array [
@@ -1839,12 +1839,12 @@ exports[`renders ./components/steps/demo/step-next.md correctly 1`] = `
- + ,
First-content -
+ ,
@@ -1856,8 +1856,8 @@ exports[`renders ./components/steps/demo/step-next.md correctly 1`] = ` Next -
- + , +] `; exports[`renders ./components/steps/demo/vertical.md correctly 1`] = ` diff --git a/components/steps/demo/clickable.md b/components/steps/demo/clickable.md index 97289aacb1..d80119d42c 100644 --- a/components/steps/demo/clickable.md +++ b/components/steps/demo/clickable.md @@ -32,7 +32,7 @@ class Demo extends React.Component { const { current } = this.state; return ( -
+ <> @@ -46,7 +46,7 @@ class Demo extends React.Component { -
+ ); } } diff --git a/components/steps/demo/nav.md b/components/steps/demo/nav.md index 624535ff12..d16b1df55a 100644 --- a/components/steps/demo/nav.md +++ b/components/steps/demo/nav.md @@ -31,7 +31,7 @@ class Demo extends React.Component { render() { const { current } = this.state; return ( -
+ <> -
+ ); } } diff --git a/components/steps/demo/progress-dot.md b/components/steps/demo/progress-dot.md index ecd8677168..b5e4452ebc 100644 --- a/components/steps/demo/progress-dot.md +++ b/components/steps/demo/progress-dot.md @@ -19,7 +19,7 @@ import { Steps, Divider } from 'antd'; const { Step } = Steps; ReactDOM.render( -
+ <> @@ -33,7 +33,7 @@ ReactDOM.render( -
, + , mountNode, ); ``` diff --git a/components/steps/demo/step-next.md b/components/steps/demo/step-next.md index bcf5484e9a..9117c5bf78 100644 --- a/components/steps/demo/step-next.md +++ b/components/steps/demo/step-next.md @@ -54,7 +54,7 @@ class App extends React.Component { render() { const { current } = this.state; return ( -
+ <> {steps.map(item => ( @@ -78,7 +78,7 @@ class App extends React.Component { )}
- + ); } }