From 084cc59051bbb17fd84de48ee4d7405f48164f1a Mon Sep 17 00:00:00 2001 From: zombiej Date: Mon, 30 Mar 2020 10:50:29 +0800 Subject: [PATCH] docs: Pagination add all config demo --- components/pagination/demo/all.md | 30 ++++++++++++++++++++++++ components/pagination/demo/itemRender.md | 2 +- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 components/pagination/demo/all.md diff --git a/components/pagination/demo/all.md b/components/pagination/demo/all.md new file mode 100644 index 0000000000..0ea0a71b79 --- /dev/null +++ b/components/pagination/demo/all.md @@ -0,0 +1,30 @@ +--- +order: 10 +title: + zh-CN: 全部展示 + en-US: Show All +--- + +## zh-CN + +展示所有配置选项。 + +## en-US + +Show all configured prop. + +```jsx +import { Pagination } from 'antd'; + +ReactDOM.render( +
+ `Total ${total} items`} + /> +
, + mountNode, +); +``` diff --git a/components/pagination/demo/itemRender.md b/components/pagination/demo/itemRender.md index bbb8a5427d..a396a8f993 100644 --- a/components/pagination/demo/itemRender.md +++ b/components/pagination/demo/itemRender.md @@ -1,5 +1,5 @@ --- -order: 10 +order: 11 title: zh-CN: 上一步和下一步 en-US: Prev and next