mirror of
https://github.com/youzan/vant.git
synced 2025-12-20 01:01:34 +08:00
popup
This commit is contained in:
@@ -83,7 +83,7 @@ const PopupManager = {
|
||||
|
||||
document.body.appendChild(modalDom);
|
||||
|
||||
if (zIndex && !hasModal) {
|
||||
if (zIndex) {
|
||||
modalDom.style.zIndex = zIndex;
|
||||
}
|
||||
modalDom.style.display = '';
|
||||
@@ -114,12 +114,10 @@ const PopupManager = {
|
||||
|
||||
if (modalStack.length === 0) {
|
||||
setTimeout(() => {
|
||||
if (modalStack.length === 0) {
|
||||
if (modalDom.parentNode) modalDom.parentNode.removeChild(modalDom);
|
||||
if (modalDom.parentNode) modalDom.parentNode.removeChild(modalDom);
|
||||
|
||||
modalDom.style.display = 'none';
|
||||
this.modalDom = null;
|
||||
}
|
||||
modalDom.style.display = 'none';
|
||||
this.modalDom = null;
|
||||
}, 200);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user