From 627e376cfb3243d562acee945e31284427a05065 Mon Sep 17 00:00:00 2001 From: chenjiahan Date: Wed, 26 Aug 2020 14:00:34 +0800 Subject: [PATCH] perf(Dialog): inherit opened event --- src/dialog/Dialog.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/dialog/Dialog.js b/src/dialog/Dialog.js index 501136e20..51a9150ae 100644 --- a/src/dialog/Dialog.js +++ b/src/dialog/Dialog.js @@ -50,7 +50,7 @@ export default createComponent({ }, }, - emits: ['opened', 'closed', 'confirm', 'cancel', 'update:show'], + emits: ['confirm', 'cancel', 'update:show'], data() { return { @@ -97,14 +97,6 @@ export default createComponent({ } }, - onOpened() { - this.$emit('opened'); - }, - - onClosed() { - this.$emit('closed'); - }, - genRoundButtons() { return ( @@ -215,8 +207,6 @@ export default createComponent({ transition={this.transition} lazyRender={this.lazyRender} aria-labelledby={this.title || message} - onOpened={this.onOpened} - onClosed={this.onClosed} > {Title} {this.genContent(title)}