From 140f3fb3de6f8fe88369cad0a3acaf4e72958fab Mon Sep 17 00:00:00 2001 From: afc163 Date: Sun, 19 Mar 2017 14:16:39 +0800 Subject: [PATCH] update message docs --- components/message/index.en-US.md | 5 ++--- components/message/index.zh-CN.md | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/components/message/index.en-US.md b/components/message/index.en-US.md index 5ed186cdda..d683640111 100644 --- a/components/message/index.en-US.md +++ b/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 | - | diff --git a/components/message/index.zh-CN.md b/components/message/index.zh-CN.md index 5f3dfb28f1..00caadca2a 100644 --- a/components/message/index.zh-CN.md +++ b/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 | - |