Browse Source

docs: update translation

pull/1634/head
Benjy Cui 9 years ago
parent
commit
5909438ed3
  1. 4
      components/button/demo/button-group.md
  2. 2
      components/button/demo/disabled.md
  3. 8
      components/button/demo/icon.md
  4. 2
      components/button/demo/loading.md
  5. 4
      components/button/demo/size.md
  6. 2
      components/button/index.en-US.md

4
components/button/demo/button-group.md

@ -13,9 +13,9 @@ title:
## en-US
If we put several `Button` into `Button.Group`, they will become a button group.
Buttons can be grouped by placing multiple `Button` components into a `Button.Group`.
Set `size` as `large` or `small` or nothing, we will get large/small/defualt button group respectively.
The `size` can be set to `large`, `small` or left unset resulting in a default size.
````jsx
import { Button, Icon } from 'antd';

2
components/button/demo/disabled.md

@ -11,7 +11,7 @@ title:
## en-US
Set `disabled` to `Button`, and then it will be disabled.
To mark a button as disabled, add the `disabled` property to the `Button`.
````jsx
import { Button } from 'antd';

8
components/button/demo/icon.md

@ -7,11 +7,15 @@ title:
## zh-CN
`Button` 内可以嵌套图标,图标可以放在文字前、后,也可以单独存在。
当需要在 `Button` 内嵌入 `Icon` 时,可以设置 `icon` 属性,或者直接在 `Button` 内使用 `Icon` 组件。
如果想控制 `Icon` 具体的位置,只能直接使用 `Icon` 组件,而非 `icon` 属性。
## en-US
`Button` works fine with `Icon`, just set `icon` property or put `Icon` component in `Button`
`Button` components can contain an `Icon`. This is done by setting the `icon` property or placing an `Icon` component within the `Button`
If you want specific control over the positioning and placement of the `Icon`, then that should be done by placing the `Icon` component within the `Button` rather than using the `icon` property.
````jsx
import { Button, Icon } from 'antd';

2
components/button/demo/loading.md

@ -11,7 +11,7 @@ title:
## en-US
Set `loading` to `Button`, and then it will become loading button.
A loading indicator can be added to a button by setting the `loading` property on the `Button`.
````jsx
import { Button } from 'antd';

4
components/button/demo/size.md

@ -13,9 +13,9 @@ title:
## en-US
Thers are large button, default button and small button in antd.
Ant Design supports a default button size as well as a large and small size.
To get large/small button, just set `size` as `large`/`small`. If nothing is provided to `size`, we will get default button.
If a large or small button is desired, set the `size` property to either `large` or `small` respectively. Omit the `size` property for a button with the default size.
````jsx
import { Button } from 'antd';

2
components/button/index.en-US.md

@ -24,7 +24,7 @@ size | can be set as `small` `large` or nothing | string | `default`
loading | to set the loading status of button | boolean | false
onClick | set the handler to handle `click` event | function | -
`<Button>Hello world!</Button>` will be rendered into `<button>Hello world!</button>`, and all the properties which are not listed above will be transfered to `<button />`.
`<Button>Hello world!</Button>` will be rendered into `<button>Hello world!</button>`, and all the properties which are not listed above will be transferred to the `<button>` tag.
<style>
[id^="components-button-demo-"] .ant-btn {

Loading…
Cancel
Save