feat: aside界面

This commit is contained in:
wang_fan_w 2024-04-01 09:00:20 +08:00
parent 01ee572a97
commit 66f7c58ed4
2 changed files with 27 additions and 1 deletions

View File

@ -1,6 +1,6 @@
<template>
<a-layout class="layout">
<a-layout-sider>Sider</a-layout-sider>
<Aside />
<a-layout>
<a-layout-header>Header</a-layout-header>
<a-layout-content>Content</a-layout-content>
@ -10,6 +10,7 @@
</template>
<script setup lang="ts">
import Aside from "@/layout/components/Aside/index.vue";
defineOptions({ name: "LayoutDefaults" });
</script>

View File

@ -0,0 +1,25 @@
<template>
<a-layout-sider :width="220">
<div class="logo_head"></div>
<a-scrollbar outer-class="aside_scroll">
<div class="aside_menu"></div>
</a-scrollbar>
</a-layout-sider>
</template>
<script setup lang="ts"></script>
<style lang="scss" scoped>
.logo_head {
height: 60px;
box-shadow: inset 0 0 0 1px red;
}
.aside_scroll {
height: 100%;
box-shadow: inset 0 0 0 1px black;
.aside_menu {
box-shadow: inset 0 0 0 1px cyan;
}
}
</style>