fix popup

This commit is contained in:
cookfront 2017-03-16 17:55:13 +08:00
parent 6b04a0a477
commit 9ccce7cd5c
2 changed files with 9 additions and 1 deletions

View File

@ -32,6 +32,10 @@
margin-left: 10px;
}
& + .zan-button--block {
margin-left: 0;
}
@m default {
color: $button-default-color;
background-color: $button-default-background-color;

View File

@ -77,7 +77,11 @@ const PopupManager = {
addClass(modalDom, 'zan-modal');
document.body.appendChild(modalDom);
if (dom && dom.parentNode && dom.parentNode.nodeType !== 11) {
dom.parentNode.appendChild(modalDom);
} else {
document.body.appendChild(modalDom);
}
if (zIndex) {
modalDom.style.zIndex = zIndex;