init : 初始化

This commit is contained in:
clay
2023-11-04 21:50:12 +08:00
commit 26eaa1a9b1
248 changed files with 36951 additions and 0 deletions

50
src/layout/index.vue Normal file
View File

@@ -0,0 +1,50 @@
<template>
<el-container>
<el-aside
:class="siderbarStore.isCollapse ? 'collapse' : 'expand'"
>
<SiderBar></SiderBar>
</el-aside>
<el-main :class="siderbarStore.isCollapse ? 'main-collapse' : ''">
<NavBar></NavBar>
<TagsView></TagsView>
<AppMain></AppMain>
</el-main>
</el-container>
</template>
<script setup>
import SiderBar from './siderbar/index.vue'
import NavBar from './navbar/index.vue'
import TagsView from './tagsview/index.vue'
import AppMain from './appmain/AppMain.vue';
import { useSiderBar } from '../stores/siderbar';
const siderbarStore = useSiderBar()
</script>
<style lang="scss" scoped>
.expand {
animation: Expand 0.15s ease forwards;
}
@keyframes Expand {
from {
width: 64px;
}
to {
width: 200px;
}
}
.collapse {
animation: Collapse 0.15s ease forwards;
}
@keyframes Collapse {
from {
width: 200px;
}
to {
width: 64px;
}
}
</style>