|
@@ -1,9 +1,54 @@
|
|
|
<template>
|
|
|
- <div>
|
|
|
- <h1>abc</h1>
|
|
|
+ <div class="common-layout layouts">
|
|
|
+ <el-container class="flex flex-col layouts">
|
|
|
+ <!-- 头部 -->
|
|
|
+ <el-header></el-header>
|
|
|
+ <!-- 左侧菜单 -->
|
|
|
+ <el-container class="flex-1 layouts">
|
|
|
+ <el-aside class="home-el-aside" width="220px">
|
|
|
+ <el-menu default-active="1" class="el-menu-vertical-demo">
|
|
|
+ <el-menu-item :index="(index + 1) + ''" v-for="(item, index) in 10" :key="index">
|
|
|
+ <el-icon><setting /></el-icon>
|
|
|
+ <span>第{{ index + 1 }}个</span>
|
|
|
+ </el-menu-item>
|
|
|
+
|
|
|
+ <el-sub-menu index="11">
|
|
|
+ <template #title>
|
|
|
+ <el-icon>
|
|
|
+ <location />
|
|
|
+ </el-icon>
|
|
|
+ <span>第十一个</span>
|
|
|
+ </template>
|
|
|
+ <el-menu-item :index="'11'">
|
|
|
+ <el-icon><icon-menu /></el-icon>
|
|
|
+ <span>第11-1个</span>
|
|
|
+ </el-menu-item>
|
|
|
+ </el-sub-menu>
|
|
|
+ </el-menu>
|
|
|
+ </el-aside>
|
|
|
+ <!-- 主体 -->
|
|
|
+ <el-main>
|
|
|
+ <router-view></router-view>
|
|
|
+ </el-main>
|
|
|
+ </el-container>
|
|
|
+ </el-container>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script lang="ts" setup>
|
|
|
|
|
|
</script>
|
|
|
-<style scoped lang="scss"></style>
|
|
|
+<style scoped lang="scss">
|
|
|
+.common-layout {
|
|
|
+ .el-header {
|
|
|
+ background: $darkBlue;
|
|
|
+ }
|
|
|
+
|
|
|
+ .el-menu-vertical-demo {
|
|
|
+ height: 100%;
|
|
|
+ }
|
|
|
+ .el-main {
|
|
|
+ padding: 0 20px;
|
|
|
+ background: $backColor;
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|