Skip to content

Commit

Permalink
update spin document
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Jan 7, 2017
1 parent 31d6aca commit 237871d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
3 changes: 2 additions & 1 deletion components/spin/demo/delayAndDebounce.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ const Card = React.createClass({
},
render() {
const container = (
<Alert message="Alert message title"
<Alert
message="Alert message title"
description="Further details about the context of this alert."
type="info"
/>
Expand Down
3 changes: 2 additions & 1 deletion components/spin/demo/nested.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ const Card = React.createClass({
},
render() {
const container = (
<Alert message="Alert message title"
<Alert
message="Alert message title"
description="Further details about the context of this alert."
type="info"
/>
Expand Down
3 changes: 2 additions & 1 deletion components/spin/demo/tip.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ import { Spin, Alert } from 'antd';

ReactDOM.render(
<Spin tip="Loading...">
<Alert message="Alert message title"
<Alert
message="Alert message title"
description="Further details about the context of this alert."
type="info"
/>
Expand Down
6 changes: 2 additions & 4 deletions components/spin/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,17 @@ type: Feedback
title: Spin
---

A Spin is used for displaying loading state of a page or a block.
A spinner for displaying loading state of a page or a section.

## When To Use

When part of the page is waiting for asynchronous data or during a rendering process, an appropriate loading animation can effectively alleviate users' inquietude.


## API


| Property | Type | Default | Description |
|------------|----------------|-------------|--------------|
| size | enum | default | Size of dot in spin component, available in `small`, `default` and `large`. |
| spinning | boolean | true | Use in embedded mode, to modify loading state. |
| tip | string | None | Customize description content |
| delay | number (milliseconds) | None | Specifies a delay for loading state |
| delay | number (milliseconds) | None | Specifies a delay for loading state |
4 changes: 1 addition & 3 deletions components/spin/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,11 @@ subtitle: 加载中

页面局部处于等待异步数据或正在渲染过程时,合适的加载动效会有效缓解用户的焦虑。


## API


| 参数 | 类型 | 默认值 | 说明 |
|------------|----------------|-------------|--------------|
| size | enum | default | spin组件中点的大小,可选值为 small default large |
| spinning | boolean | true | 用于内嵌其他组件的模式,可以关闭 loading 效果 |
| tip | string || 自定义描述文案 |
| delay | number (毫秒) || 延迟显示 loading 效果 |
| delay | number (毫秒) || 延迟显示 loading 效果 |

0 comments on commit 237871d

Please sign in to comment.