main
wangqiujuan0808 2024-03-27 09:29:13 +08:00
parent a0b796c6a7
commit ab2644fd69
4 changed files with 28 additions and 8 deletions

View File

@ -1,5 +1,5 @@
import { createApp } from 'vue' import { createApp } from 'vue'
import './style.css' import './style.scss'
import App from './App.vue' import App from './App.vue'
import router from './router' import router from './router'
import ElementPlus from 'element-plus' import ElementPlus from 'element-plus'

View File

@ -28,6 +28,7 @@ body {
place-items: center; place-items: center;
min-width: 320px; min-width: 320px;
min-height: 100vh; min-height: 100vh;
font-size:18px;
} }
h1 { h1 {
@ -81,3 +82,20 @@ button:focus-visible {
background-color: #f9f9f9; background-color: #f9f9f9;
} }
} }
.el-header {
background: #ddd;
position: relative;
.right-menu {
position: absolute;
right:20px;
height:60px;
line-height: 60px;
}
.middle-menu {
height:60px;
position: absolute;
left:50%;
line-height: 60px;
}
}

View File

@ -1,10 +1,10 @@
<template> <template>
<el-container> <el-container>
<el-header> <el-header>
<el-card> <div class="middle-menu">项目管理</div>
项目管理 <div class="right-menu">
<el-button type="danger" @click="logout">退</el-button> <el-button type="danger" @click="logout">退</el-button>
</el-card> </div>
</el-header> </el-header>
<el-main> <el-main>
<el-card class="home-div"> <el-card class="home-div">
@ -61,7 +61,7 @@
</template> </template>
<script setup> <script setup>
import { onMounted, reactive, ref } from "vue"; import { onMounted, reactive, ref } from "vue";
import { Plus } from "@element-plus/icons-vue"; import { Plus, SwitchButton } from "@element-plus/icons-vue";
import { ElMessage, ElMessageBox } from "element-plus"; import { ElMessage, ElMessageBox } from "element-plus";
import myApi from "@/api/myApi.js"; import myApi from "@/api/myApi.js";
import { useRouter } from 'vue-router' import { useRouter } from 'vue-router'

View File

@ -1,9 +1,7 @@
<template> <template>
<el-container> <el-container>
<el-header> <el-header>
<el-card> <div class="middle-menu">项目编辑</div>
项目编辑
</el-card>
</el-header> </el-header>
<el-main> <el-main>
<div class="room-div"> <div class="room-div">
@ -574,6 +572,10 @@ const radioGroup5 = reactive([
.el-divider { .el-divider {
background-color: #409eff; background-color: #409eff;
} }
.room-list {
height: 60%;
overflow: auto;
}
} }
} }