fix[css]: css bug in mobile #852

This commit is contained in:
Pan 2018-07-10 13:02:19 +08:00
parent 89ce53e185
commit 9b7a9a64e5

View file

@ -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;