1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
| <template> <el-container> <el-header>{{ header }}</el-header> <el-container> <el-aside width="200px">{{ aside }}</el-aside> <el-main>{{ main }}</el-main> </el-container> <el-footer>{{ footer }}</el-footer> </el-container> </template>
<script> export default { name: "MyComponent", props: { header: String, aside: String, main: String, footer: String, }, }; </script>
<style scoped> .el-header, .el-footer { background-color: #b3c0d1; color: #333; text-align: center; line-height: 60px; }
.el-aside { background-color: #d3dce6; color: #333; text-align: center; line-height: 200px; }
.el-main { background-color: #e9eef3; color: #333; text-align: center; line-height: 160px; }
body > .el-container { margin-bottom: 40px; }
.el-container:nth-child(5) .el-aside, .el-container:nth-child(6) .el-aside { line-height: 260px; }
.el-container:nth-child(7) .el-aside { line-height: 320px; } </style>
|