From 9b7a9a64e56e622f58aca92d6418d18b9446d9a9 Mon Sep 17 00:00:00 2001 From: Pan Date: Tue, 10 Jul 2018 13:02:19 +0800 Subject: [PATCH] fix[css]: css bug in mobile #852 --- src/views/layout/Layout.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/views/layout/Layout.vue b/src/views/layout/Layout.vue index 284de9c1..5b78bf0f 100644 --- a/src/views/layout/Layout.vue +++ b/src/views/layout/Layout.vue @@ -33,6 +33,7 @@ export default { classObj() { return { hideSidebar: !this.sidebar.opened, + openSidebar: this.sidebar.opened, withoutAnimation: this.sidebar.withoutAnimation, mobile: this.device === 'mobile' } @@ -53,6 +54,10 @@ export default { position: relative; height: 100%; width: 100%; + &.mobile.openSidebar{ + position: fixed; + top: 0; + } } .drawer-bg { background: #000;