diff --git a/examples/docs/en-US/dialog.md b/examples/docs/en-US/dialog.md
index 65e0b3bff..5729f0a1c 100644
--- a/examples/docs/en-US/dialog.md
+++ b/examples/docs/en-US/dialog.md
@@ -38,6 +38,13 @@
methods: {
openDialog() {
this.$refs.dialogBind.open();
+ },
+ handleClose(done) {
+ this.$confirm('Are you sure to close this dialog?')
+ .then(_ => {
+ done();
+ })
+ .catch(_ => {});
}
}
};
@@ -51,12 +58,16 @@ Informs users while preserving the current page state.
Dialog pops up a dialog box, and it's quite customizable.
-:::demo Set the `v-model` attribute with a `Boolean`, and Dialog shows when it is `true`. The Dialog has two parts: `body` and `footer`, and the latter requires a `slot` named `footer`. The optional `title` attribute (empty by default) is for defining a title. This example explicitly changes the value of `v-model` to toggle Dialog. In addition, we also provide `open` and `close` method, which you can call to open/close the Dialog.
+:::demo Set the `v-model` attribute with a `Boolean`, and Dialog shows when it is `true`. The Dialog has two parts: `body` and `footer`, and the latter requires a `slot` named `footer`. The optional `title` attribute (empty by default) is for defining a title. This example explicitly changes the value of `v-model` to toggle Dialog. In addition, we also provide `open` and `close` method, which you can call to open/close the Dialog. Finally, this example demonstrates how `before-close` is used.
```html
click to open the Dialog
-
+
This is a message