MyHome.vue 685 字节
Newer Older
1
<template>
2 3 4 5 6 7 8
	<el-container>
		<el-header>
			<!-- 头部区域 -->
			<MyHeader></MyHeader>
		</el-header>
		<el-container>
			<el-aside width="160px" style="overflow: hidden;padding-top: 24px">
9
				<MyAside></MyAside>
10 11
			</el-aside>
			<el-main style="padding: 0;">
12
				<router-view></router-view>
13 14 15
			</el-main>
		</el-container>
	</el-container>
16 17 18 19
</template>

<script>
// 头部区域组件
20
import MyHeader from './subcomponents/MyHeader.vue'
21
// 左侧边栏组件
22
import MyAside from './subcomponents/MyAside.vue'
23
export default {
24 25 26 27 28 29
	name: 'MyHome',
	// 注册组件
	components: {
		MyHeader,
		MyAside,
	},
30
}
31 32
</script>

33 34 35
<style>
 .el-main {
    padding: 20px 3px !important;
36
}
37
</style>