doc: update message duration description

This commit is contained in:
afc163 2018-04-03 13:41:44 +08:00
parent bf6e91be3a
commit 779a35e4cc
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -27,7 +27,7 @@ title: Message
| 参数 | 说明 | 类型 | 默认值 |
| --- | --- | --- | --- |
| content | 提示内容 | string\|ReactNode | - |
| duration | 自动关闭的延时,单位秒 | number | 3 |
| duration | 自动关闭的延时,单位秒。设为 0 时不自动关闭。 | number | 3 |
| onClose | 关闭时触发的回调函数 | Function | - |
还提供了全局配置和全局销毁方法: