[improvement] Popup: optimize overlay animation duration (#3610)

This commit is contained in:
neverland
2019-06-24 11:43:34 +08:00
committed by GitHub
parent d6ed8cfe55
commit 7d29ae8a2d
3 changed files with 20 additions and 10 deletions
+3 -2
View File
@@ -73,8 +73,8 @@ export const PopupMixin = {
}
},
/* istanbul ignore next */
activated() {
/* istanbul ignore next */
if (this.value) {
this.open();
}
@@ -88,8 +88,8 @@ export const PopupMixin = {
}
},
/* istanbul ignore next */
deactivated() {
/* istanbul ignore next */
this.close();
},
@@ -171,6 +171,7 @@ export const PopupMixin = {
if (this.overlay) {
openOverlay(this, {
zIndex: context.zIndex++,
duration: this.duration,
className: this.overlayClass,
customStyle: this.overlayStyle
});