docs(dialog): update description (#6442)

This commit is contained in:
neverland
2020-06-02 22:31:52 +08:00
committed by GitHub
parent 4d731a3fa8
commit e7082ca57a
2 changed files with 14 additions and 12 deletions
+4 -4
View File
@@ -13,7 +13,7 @@ Vue.use(Dialog);
### Alert dialog
Used to prompt for some messages, only including one confirm button
Used to prompt for some messages, only including one confirm button.
```js
Dialog.alert({
@@ -32,7 +32,7 @@ Dialog.alert({
### Confirm dialog
Used to confirm some messages, including a confirm button and a cancel button
Used to confirm some messages, including a confirm button and a cancel button.
```js
Dialog.confirm({
@@ -65,9 +65,9 @@ Dialog.confirm({
});
```
### \$dialog Method
### Global Method
After import the Dialog component, the \$dialog method is automatically mounted on Vue.prototype, making it easy to call within a vue component.
After import the Dialog component, the `$dialog` method is automatically mounted on Vue.prototype, making it easy to call within a vue component.
```js
export default {