[new feature] Toast: add onClose prop (#2964)

This commit is contained in:
neverland
2019-03-13 20:16:39 +08:00
committed by GitHub
parent a4eedac8b1
commit 2e7ca412ff
5 changed files with 26 additions and 5 deletions
+2 -1
View File
@@ -106,4 +106,5 @@ toast2.clear();
| loadingType | Loading icon type, can be set to `spinner` | `String` | `circular` |
| duration | Toast duration(ms), won't disappear if value is 0 | `Number` | `3000` |
| className | Custom className | `String | Array | Object` | - |
| get-container | Return the mount node for Toast | `String | () => HTMLElement` | `body` |
| onClose | onClose callback function | `Function` | - |
| getContainer | Return the mount node for Toast | `String | () => HTMLElement` | `body` |