工作台页面
This commit is contained in:
43
src/views/nav.vue
Normal file
43
src/views/nav.vue
Normal 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>
|
||||
Reference in New Issue
Block a user