feat(Toast): add closeOnClick option (#4192)

This commit is contained in:
neverland
2019-08-22 17:57:25 +08:00
committed by GitHub
parent 5603da5c73
commit d2b28432cd
6 changed files with 35 additions and 2 deletions
+1
View File
@@ -121,6 +121,7 @@ toast2.clear();
| iconPrefix | Icon className prefix | `string` | `van-icon` |
| mask | Whether to show mask | `boolean` | `false` |
| forbidClick | Whether to forbid click background | `boolean` | `false` |
| closeOnClick | Whether to close after clicked | `boolean` | `false` |
| 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 | `any` | - |