feat(Toast): change default duration to 2s (#4886)

This commit is contained in:
neverland
2019-10-31 11:33:04 +08:00
committed by GitHub
parent f856bcae74
commit 02e84d1e15
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -147,7 +147,7 @@ Toast.resetDefaultOptions('loading');
| forbidClick | Whether to forbid click background | *boolean* | `false` | - |
| closeOnClick | Whether to close after clicked | *boolean* | `false` | 2.1.5 |
| loadingType | Loading icon type, can be set to `spinner` | *string* | `circular` | - |
| duration | Toast duration(ms), won't disappear if value is 0 | *number* | `3000` | - |
| duration | Toast duration(ms), won't disappear if value is 0 | *number* | `2000` | - |
| className | Custom className | *any* | - | - |
| onOpened | Callback function after opened | *Function* | - | - |
| onClose | Callback function after close | *Function* | - | - |