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 | - |