diff --git a/packages/toast/README.md b/packages/toast/README.md index fd09fc58..96a84cf0 100644 --- a/packages/toast/README.md +++ b/packages/toast/README.md @@ -69,6 +69,18 @@ const timer = setInterval(() => { ``` +### OnClose回调函数 + +```javascript +Toast({ + type: 'success', + message: '提交成功', + onClose: () => { + console.log('执行OnClose函数') + } +}); +``` + ## API ### 方法