add lock modifier on loading

This commit is contained in:
Leopoldthecoder
2016-10-13 20:05:42 +08:00
parent a14824296b
commit d5620b0994
3 changed files with 11 additions and 3 deletions

View File

@@ -68,7 +68,7 @@ exports.install = Vue => {
if (directive.originalPosition !== 'absolute') {
parent.style.position = 'relative';
}
if (binding.modifiers.fullscreen) {
if (binding.modifiers.fullscreen && binding.modifiers.lock) {
parent.style.overflow = 'hidden';
}
directive.mask.style.display = 'block';