From 6db2e48464d8f8edb06b8319422f7fb39da97d56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AF=B8=E5=B2=B3?= Date: Wed, 7 Feb 2018 15:15:33 +0800 Subject: [PATCH] Translate FooterToolbar (#903) * translate FooterToolbar * remove the unnessary demo code --- src/components/FooterToolbar/demo/basic.md | 48 +++++++++++-------- src/components/FooterToolbar/index.en-US.md | 18 +++++++ .../{index.md => index.zh-CN.md} | 4 +- 3 files changed, 47 insertions(+), 23 deletions(-) create mode 100644 src/components/FooterToolbar/index.en-US.md rename src/components/FooterToolbar/{index.md => index.zh-CN.md} (88%) diff --git a/src/components/FooterToolbar/demo/basic.md b/src/components/FooterToolbar/demo/basic.md index 6ce15e7c..1f678634 100644 --- a/src/components/FooterToolbar/demo/basic.md +++ b/src/components/FooterToolbar/demo/basic.md @@ -1,36 +1,44 @@ --- order: 0 -title: 演示 +title: + - zh-CN: 演示 + - en-US: demo iframe: 400 --- +## zh-CN + 浮动固定页脚。 +## en-US + +Fixed to the footer. + ````jsx import FooterToolbar from 'ant-design-pro/lib/FooterToolbar'; import { Button } from 'antd'; ReactDOM.render(
-

页面内容 页面内容 页面内容 页面内容

-

页面内容 页面内容 页面内容 页面内容

-

页面内容 页面内容 页面内容 页面内容

-

页面内容 页面内容 页面内容 页面内容

-

页面内容 页面内容 页面内容 页面内容

-

页面内容 页面内容 页面内容 页面内容

-

页面内容 页面内容 页面内容 页面内容

-

页面内容 页面内容 页面内容 页面内容

-

页面内容 页面内容 页面内容 页面内容

-

页面内容 页面内容 页面内容 页面内容

-

页面内容 页面内容 页面内容 页面内容

-

页面内容 页面内容 页面内容 页面内容

-

页面内容 页面内容 页面内容 页面内容

-

页面内容 页面内容 页面内容 页面内容

-

页面内容 页面内容 页面内容 页面内容

- - - +

Content Content Content Content

+

Content Content Content Content

+

Content Content Content Content

+

Content Content Content Content

+

Content Content Content Content

+

Content Content Content Content

+

Content Content Content Content

+

Content Content Content Content

+

Content Content Content Content

+

Content Content Content Content

+

Content Content Content Content

+

Content Content Content Content

+

Content Content Content Content

+

Content Content Content Content

+

Content Content Content Content

+ + +
, mountNode); -```` +```` \ No newline at end of file diff --git a/src/components/FooterToolbar/index.en-US.md b/src/components/FooterToolbar/index.en-US.md new file mode 100644 index 00000000..69fd80bd --- /dev/null +++ b/src/components/FooterToolbar/index.en-US.md @@ -0,0 +1,18 @@ +--- +title: FooterToolbar +cols: 1 +order: 6 +--- + +A toolbar fixed at the bottom. + +## Usage + +It is fixed at the bottom of the content area and does not move along with the scroll bar, which is usually used for data collection and submission for long pages. + +## API + +Property | Description | Type | Default +---------|-------------|------|-------- +children | toolbar content, align to the right | ReactNode | - +extra | extra information, align to the left | ReactNode | - \ No newline at end of file diff --git a/src/components/FooterToolbar/index.md b/src/components/FooterToolbar/index.zh-CN.md similarity index 88% rename from src/components/FooterToolbar/index.md rename to src/components/FooterToolbar/index.zh-CN.md index b0bea3d9..421ac08e 100644 --- a/src/components/FooterToolbar/index.md +++ b/src/components/FooterToolbar/index.zh-CN.md @@ -1,7 +1,5 @@ --- -title: - en-US: FooterToolbar - zh-CN: FooterToolbar +title: FooterToolbar subtitle: 底部工具栏 cols: 1 order: 6 -- GitLab