feat: aside界面
This commit is contained in:
parent
01ee572a97
commit
66f7c58ed4
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-layout class="layout">
|
<a-layout class="layout">
|
||||||
<a-layout-sider>Sider</a-layout-sider>
|
<Aside />
|
||||||
<a-layout>
|
<a-layout>
|
||||||
<a-layout-header>Header</a-layout-header>
|
<a-layout-header>Header</a-layout-header>
|
||||||
<a-layout-content>Content</a-layout-content>
|
<a-layout-content>Content</a-layout-content>
|
||||||
@ -10,6 +10,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
import Aside from "@/layout/components/Aside/index.vue";
|
||||||
defineOptions({ name: "LayoutDefaults" });
|
defineOptions({ name: "LayoutDefaults" });
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
25
src/layout/components/Aside/index.vue
Normal file
25
src/layout/components/Aside/index.vue
Normal 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>
|
||||||
Loading…
x
Reference in New Issue
Block a user