Browse Source

update message docs

pull/5384/head
afc163 8 years ago
parent
commit
140f3fb3de
  1. 5
      components/message/index.en-US.md
  2. 5
      components/message/index.zh-CN.md

5
components/message/index.en-US.md

@ -14,15 +14,14 @@ Display global messages as feedbacks to user operations.
## API
This components provides some static methods, with usage and arguments as following:
- `message.success(content, duration, onClose)`
- `message.error(content, duration, onClose)`
- `message.info(content, duration, onClose)`
- `message.warning(content, duration, onClose)`
- `message.warn(content, duration, onClose)`
- `message.loading(content, duration, onClose)`
This components provides 4 static methods, with arguments as following:
| Argument | Description | Type | Default |
|------------|------------------------------------|--------------------------|--------------|
| content | content of the message | string\|ReactNode | - |

5
components/message/index.zh-CN.md

@ -15,15 +15,14 @@ title: Message
## API
组件提供了一些静态方法,使用方式和参数如下:
- `message.success(content, duration, onClose)`
- `message.error(content, duration, onClose)`
- `message.info(content, duration, onClose)`
- `message.warning(content, duration, onClose)`
- `message.warn(content, duration, onClose)`
- `message.loading(content, duration, onClose)`
组件提供了四个静态方法,参数如下:
| 参数 | 说明 | 类型 | 默认值 |
|------------|----------------|--------------------------|--------------|
| content | 提示内容 | string\|ReactNode | - |

Loading…
Cancel
Save