2026-05-15 18:18:51 +08:00
|
|
|
<template>
|
2026-05-17 17:24:43 +08:00
|
|
|
<div class="app-wrapper">
|
|
|
|
|
<sidebar />
|
|
|
|
|
<div class="main-wrapper">
|
|
|
|
|
<navbar />
|
|
|
|
|
<app-main />
|
2026-05-15 18:18:51 +08:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
|
import Sidebar from './components/Sidebar/index.vue'
|
|
|
|
|
import Navbar from './components/Navbar/index.vue'
|
2026-05-17 17:24:43 +08:00
|
|
|
import AppMain from './components/AppMain.vue'
|
2026-05-15 18:18:51 +08:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
.app-wrapper {
|
2026-05-17 17:24:43 +08:00
|
|
|
display: flex;
|
|
|
|
|
width: 100vw;
|
|
|
|
|
height: 100vh;
|
2026-05-15 18:18:51 +08:00
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
|
2026-05-17 17:24:43 +08:00
|
|
|
.main-wrapper {
|
|
|
|
|
flex: 1;
|
2026-05-15 18:18:51 +08:00
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
2026-05-17 17:24:43 +08:00
|
|
|
height: 100vh;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
min-width: 0;
|
2026-05-15 18:18:51 +08:00
|
|
|
}
|
|
|
|
|
|
2026-05-17 17:24:43 +08:00
|
|
|
:deep(.sidebar-container) {
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
width: 200px;
|
|
|
|
|
transition: width 0.28s ease;
|
2026-05-15 18:18:51 +08:00
|
|
|
|
2026-05-17 17:24:43 +08:00
|
|
|
&.is-collapse {
|
|
|
|
|
width: 54px;
|
2026-05-15 18:18:51 +08:00
|
|
|
}
|
|
|
|
|
}
|
2026-05-17 17:24:43 +08:00
|
|
|
</style>
|