Update spin API documatation

This commit is contained in:
afc163 2017-03-18 14:30:51 +08:00
parent 3b4a51d1ef
commit 432e5c615b
2 changed files with 12 additions and 12 deletions

View File

@ -12,9 +12,9 @@ When part of the page is waiting for asynchronous data or during a rendering pro
## 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 |
Property | Description | Type | Default Value
---------|-------------|------|--------------
size | size of spin, available in `small`, `default` and `large` | string | 'default'
spinning | whether Spin is spinning | boolean | true
tip | customize description content when spin has children | string | -
delay | specifies a delay millisecond for loading state (prevent flush) | number (millisecond) | -

View File

@ -13,9 +13,9 @@ subtitle: 加载中
## API
| 参数 | 类型 | 默认值 | 说明 |
|------------|----------------|-------------|--------------|
| size | enum | default | spin组件中点的大小,可选值为 small default large |
| spinning | boolean | true | 用于内嵌其他组件的模式,可以关闭 loading 效果 |
| tip | string | 无 | 自定义描述文案 |
| delay | number (毫秒) | 无 | 延迟显示 loading 效果 |
参数 | 说明 | 类型 | 默认值
----|------|-----|------
size | 组件大小,可选值为 `small` `default` `large` | string | 'default'
spinning | 是否旋转 | boolean | true
tip | 当作为包裹元素时,可以自定义描述文案 | string | -
delay | 延迟显示加载效果的时间(防止闪烁) | number (毫秒) | -