Created
April 15, 2020 21:46
-
-
Save braian125/5eba7f34b74b43bcd55cfd85df055728 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//src/containers/dashboard/Dashboard.vue | |
<template> | |
<el-container class="main-container"> | |
<sidebar /> | |
<el-container> | |
<el-header> | |
<Header /> | |
</el-header> | |
<el-main> | |
<router-view /> | |
</el-main> | |
</el-container> | |
</el-container> | |
</template> | |
<script> | |
export default { | |
name: "Dashboard", | |
data: () => { | |
return {}; | |
}, | |
components: { | |
sidebar: () => import(/* webpackChunkName: "sidebar" */ "./layout/Sidebar"), | |
Header: () => import(/* webpackChunkName: "header" */ "./layout/Header") | |
} | |
}; | |
</script> | |
<style scoped> | |
.el-container { | |
height: 100vh; | |
} | |
.el-header { | |
padding: 0; | |
} | |
.el-menu { | |
border: 0; | |
} | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment