工作台页面

This commit is contained in:
2025-04-03 20:25:25 +08:00
parent 32cbc6404a
commit d7d08675c6
9 changed files with 250 additions and 81 deletions

43
src/views/nav.vue Normal file
View File

@@ -0,0 +1,43 @@
<template>
<div class="app-container">
<Sidebar />
<div class="content">
<RouterView />
</div>
</div>
</template>
<script setup>
import Sidebar from '../components/Sidebar.vue';
import { RouterLink, RouterView } from 'vue-router'
</script>
<style>
body,
html {
margin: 0;
padding: 0;
height: 100%;
}
.app-container {
display: flex;
height: 100vh;
}
.sidebar {
width: 200px;
background-color: #f5f5f5;
padding: 20px;
box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}
.content {
width: calc(100% - 200px);
margin-left: 200px;
padding: 20px;
}
</style>