diff --git a/src/components/modal/confirm.js b/src/components/modal/confirm.js index ae7c0774..a3cb86af 100644 --- a/src/components/modal/confirm.js +++ b/src/components/modal/confirm.js @@ -169,8 +169,8 @@ Modal.newInstance = properties => { this.buttonLoading = true; } else { if (this.autoClose) { - // this.$children[0].visible = false; - // this.remove(); + this.$children[0].visible = false; + this.remove(); } } diff --git a/src/components/modal/modal.vue b/src/components/modal/modal.vue index a403e6dc..ebffcc72 100644 --- a/src/components/modal/modal.vue +++ b/src/components/modal/modal.vue @@ -257,9 +257,10 @@ this.buttonLoading = true; } else { if (this.autoClose) { - // this.visible = false; + this.visible = false; + this.$emit('input', false); } - this.$emit('input', false); + } this.$emit('on-ok'); },