docs(Toast): add OnClose function demo (#2637)

This commit is contained in:
ZhenZhen 2020-01-03 11:44:07 +08:00 committed by rex
parent 478dbd1c18
commit 8e2ede3ed9

View File

@ -69,6 +69,18 @@ const timer = setInterval(() => {
<van-toast id="custom-selector" />
```
### OnClose回调函数
```javascript
Toast({
type: 'success',
message: '提交成功',
onClose: () => {
console.log('执行OnClose函数')
}
});
```
## API
### 方法