Skip to content

Commit c72eaf4

Browse files
remove open and visible with visible
1 parent 08d4392 commit c72eaf4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ var showNextMsg = function() {
9999
instance.$appendTo(document.body);
100100

101101
Vue.nextTick(() => {
102-
instance.open();
102+
instance.visible = true;
103103
});
104104
}
105105
}
@@ -185,7 +185,7 @@ MessageBox.prompt = function(message, title, options) {
185185
};
186186

187187
MessageBox.close = function() {
188-
instance.close();
188+
instance.visible = false;
189189
msgQueue = [];
190190
currentMsg = null;
191191
};

src/msgbox.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@
253253
return;
254254
}
255255
var callback = this.callback;
256-
this.close();
256+
this.visible = false;
257257
callback(action);
258258
},
259259

0 commit comments

Comments
 (0)