From a3848aa6d3a85cc61b306a4cf4970397770da3a6 Mon Sep 17 00:00:00 2001 From: mertsincan Date: Tue, 14 Jun 2022 09:12:37 +0100 Subject: [PATCH] Fixed #2662 - Add after-hide event to Dialog --- api-generator/components/dialog.js | 4 ++++ src/components/dialog/Dialog.d.ts | 12 +++++++---- src/components/dialog/Dialog.vue | 34 +++++++++++++++++------------- src/views/dialog/DialogDoc.vue | 5 +++++ 4 files changed, 36 insertions(+), 19 deletions(-) diff --git a/api-generator/components/dialog.js b/api-generator/components/dialog.js index 3f34c3254..066f1320d 100644 --- a/api-generator/components/dialog.js +++ b/api-generator/components/dialog.js @@ -138,6 +138,10 @@ const DialogEvents = [ name: "hide", description: "Callback to invoke when dialog is hidden." }, + { + name: "after-hide", + description: "Callback to invoke after dialog is hidden." + }, { name: "show", description: "Callback to invoke when dialog is showed." diff --git a/src/components/dialog/Dialog.d.ts b/src/components/dialog/Dialog.d.ts index f39fe354f..111a2e410 100755 --- a/src/components/dialog/Dialog.d.ts +++ b/src/components/dialog/Dialog.d.ts @@ -154,11 +154,15 @@ export declare type DialogEmits = { /** * Callback to invoke when dialog is hidden. */ - 'show': () => void; - /** - * Callback to invoke when dialog is showed. - */ 'hide': () => void; + /** + * Callback to invoke after dialog is hidden. + */ + 'after-hide': () => void; + /** + * Callback to invoke when dialog is shown. + */ + 'show': () => void; /** * Fired when a dialog gets maximized. * @param {event} event - Browser event. diff --git a/src/components/dialog/Dialog.vue b/src/components/dialog/Dialog.vue index 2d1f6c885..e3e434a5f 100755 --- a/src/components/dialog/Dialog.vue +++ b/src/components/dialog/Dialog.vue @@ -29,14 +29,15 @@