[new feature] Toast: add onOpened option

This commit is contained in:
陈嘉涵
2019-05-28 20:27:20 +08:00
parent 999be8064a
commit fecc82e69b
6 changed files with 37 additions and 9 deletions
+2 -1
View File
@@ -107,5 +107,6 @@ 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` | - |
| onClose | onClose callback function | `Function` | - |
| onOpened | Callback function after opened | `Function` | - |
| onClose | Callback function after close | `Function` | - |
| getContainer | Return the mount node for Toast | `String | () => HTMLElement` | `body` |