docs(Toast): add loadingType demo (#4783)

This commit is contained in:
neverland
2019-10-19 16:31:13 +08:00
committed by GitHub
parent 878b330431
commit c0bc240bc8
4 changed files with 51 additions and 88 deletions
+9 -3
View File
@@ -24,6 +24,12 @@ Toast.loading({
message: 'Loading...',
forbidClick: true
});
Toast.loading({
message: 'Loading...',
forbidClick: true,
loadingType: 'spinner'
});
```
### Success/Fail
@@ -47,12 +53,12 @@ Toast({
});
```
### Advanced Usage
### Update Message
```javascript
const toast = Toast.loading({
duration: 0, // continuous display toast
forbidClick: true, // forbid click background
duration: 0, // continuous display toast
forbidClick: true,
loadingType: 'spinner',
message: '3 seconds'
});