keep in sync with vue-element-admin

This commit is contained in:
Pan
2018-07-13 14:45:13 +08:00
parent dd37f247f8
commit 3fd9a8465e
5 changed files with 32 additions and 10 deletions

View File

@@ -31,6 +31,7 @@ export default {
classObj() {
return {
hideSidebar: !this.sidebar.opened,
openSidebar: this.sidebar.opened,
withoutAnimation: this.sidebar.withoutAnimation,
mobile: this.device === 'mobile'
}
@@ -51,6 +52,10 @@ export default {
position: relative;
height: 100%;
width: 100%;
&.mobile.openSidebar{
position: fixed;
top: 0;
}
}
.drawer-bg {
background: #000;

View File

@@ -17,3 +17,12 @@ export default {
}
}
</script>
<style scoped>
.app-main {
/*50 = navbar */
min-height: calc(100vh - 50px);
position: relative;
overflow: hidden;
}
</style>