[Improvement] Popup: add click-overlay event (#647)

This commit is contained in:
neverland
2018-02-24 15:22:41 +08:00
committed by GitHub
parent c0f870ceb9
commit 5d25d7aff9
5 changed files with 45 additions and 45 deletions
+2 -2
View File
@@ -113,7 +113,7 @@ export default {
}
if (this.overlay) {
manager.openModal(this, {
manager.open(this, {
id: this._popupId,
dom: this.$el,
zIndex: context.plusKey('zIndex'),
@@ -146,7 +146,7 @@ export default {
},
doAfterClose() {
manager.closeModal(this._popupId);
manager.close(this._popupId);
if (this.lockOnScroll) {
document.body.classList.remove('van-overflow-hidden');