[Improvement] uniform fade animation (#410)

This commit is contained in:
neverland
2017-12-11 20:00:26 +08:00
committed by GitHub
parent 49ef814d1e
commit 7dbb5db256
8 changed files with 36 additions and 25 deletions

View File

@@ -66,7 +66,7 @@ const PopupManager = {
const el = modal.$el;
if (el.parentNode) {
el.parentNode.removeChild(el);
modal.visible = false;
}
if (context.top) {
@@ -75,7 +75,8 @@ const PopupManager = {
targetNode.appendChild(el);
Object.assign(modal, {
...modalDefaultConfig,
...config
...config,
visible: true
});
}
}