docs(Toast): update description (#6443)

This commit is contained in:
neverland
2020-06-02 22:37:09 +08:00
committed by GitHub
parent e7082ca57a
commit 61919d0bec
2 changed files with 20 additions and 10 deletions
+3 -3
View File
@@ -75,9 +75,9 @@ const timer = setInterval(() => {
}, 1000);
```
### \$toast Method
### Global Method
After import the Toast component, the \$toast method is automatically mounted on Vue.prototype, making it easy to call within a vue component.
After import the Toast component, the `$toast` method is automatically mounted on Vue.prototype, making it easy to call within a vue component.
```js
export default {
@@ -89,7 +89,7 @@ export default {
### Singleton
Toast use singleton mode by default, if you need to pop multiple Toast at the same time, you can refer to the following example
Toast use singleton mode by default, if you need to pop multiple Toast at the same time, you can refer to the following example:
```js
Toast.allowMultiple();