image preview component

This commit is contained in:
cookfront
2017-03-03 15:46:26 +08:00
parent c794949c8d
commit 1cf5490f99
10 changed files with 103 additions and 21 deletions

View File

@@ -70,10 +70,8 @@ export default {
setTimeout(() => {
if (this.modal && this.bodyOverflow !== 'hidden') {
document.body.style.overflow = this.bodyOverflow;
document.body.style.paddingRight = this.bodyPaddingRight;
}
this.bodyOverflow = null;
this.bodyPaddingRight = null;
}, 200);
}