mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-25 11:06:45 +08:00
docs(Toast): add OnClose function demo (#2637)
This commit is contained in:
parent
478dbd1c18
commit
8e2ede3ed9
@ -69,6 +69,18 @@ const timer = setInterval(() => {
|
|||||||
<van-toast id="custom-selector" />
|
<van-toast id="custom-selector" />
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### OnClose回调函数
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
Toast({
|
||||||
|
type: 'success',
|
||||||
|
message: '提交成功',
|
||||||
|
onClose: () => {
|
||||||
|
console.log('执行OnClose函数')
|
||||||
|
}
|
||||||
|
});
|
||||||
|
```
|
||||||
|
|
||||||
## API
|
## API
|
||||||
|
|
||||||
### 方法
|
### 方法
|
||||||
|
Loading…
x
Reference in New Issue
Block a user