fix(Dialog): show not trigger close event when hidden (#5267)

This commit is contained in:
neverland 2019-12-13 15:48:06 +08:00 committed by GitHub
parent 70e2161e6b
commit 602d3958b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,6 +56,11 @@ export default createComponent({
handleAction(action) {
this.$emit(action);
// show not trigger close event when hidden
if (!this.value) {
return;
}
if (this.beforeClose) {
this.loading[action] = true;
this.beforeClose(action, state => {