dialog component

This commit is contained in:
cookfront
2017-02-16 17:15:35 +08:00
parent c45822b400
commit 3bed02995d
2 changed files with 5 additions and 2 deletions

View File

@@ -52,6 +52,9 @@ const PopupManager = {
}
},
/**
* 遮罩层点击回调,`closeOnClickOverlay`为`true`时会关闭当前`popup`
*/
handleOverlayClick() {
const topModal = PopupManager.modalStack[PopupManager.modalStack.length - 1];
if (!topModal) return;