From 779a35e4cc2c688a195e20e29e537b0559f687b9 Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 3 Apr 2018 13:41:44 +0800 Subject: [PATCH] doc: update message duration description --- components/message/index.en-US.md | 2 +- components/message/index.zh-CN.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/message/index.en-US.md b/components/message/index.en-US.md index e84ad754d7..da4f6c51f3 100644 --- a/components/message/index.en-US.md +++ b/components/message/index.en-US.md @@ -26,7 +26,7 @@ This components provides some static methods, with usage and arguments as follow | Argument | Description | Type | Default | | -------- | ----------- | ---- | ------- | | content | content of the message | string\|ReactNode | - | -| duration | time before auto-dismiss, in seconds | number | 1.5 | +| duration | time(seconds) before auto-dismiss, don't dismiss if set to 0 | number | 1.5 | | onClose | Specify a function that will be called when the message is closed | Function | - | Methods for global configuration and destruction are also provided: diff --git a/components/message/index.zh-CN.md b/components/message/index.zh-CN.md index bc3b372246..3efa038819 100644 --- a/components/message/index.zh-CN.md +++ b/components/message/index.zh-CN.md @@ -27,7 +27,7 @@ title: Message | 参数 | 说明 | 类型 | 默认值 | | --- | --- | --- | --- | | content | 提示内容 | string\|ReactNode | - | -| duration | 自动关闭的延时,单位秒 | number | 3 | +| duration | 自动关闭的延时,单位秒。设为 0 时不自动关闭。 | number | 3 | | onClose | 关闭时触发的回调函数 | Function | - | 还提供了全局配置和全局销毁方法: