From 98bb96923a7fa57b46dc331890ff051a3cd11253 Mon Sep 17 00:00:00 2001
From: wujingjing <gersonwu@qq.com>
Date: 星期四, 24 十月 2024 17:51:09 +0800
Subject: [PATCH] 新建对话开始

---
 src/layout/component/main.vue |   37 ++++++++++++++++++++++++++++++-------
 1 files changed, 30 insertions(+), 7 deletions(-)

diff --git a/src/layout/component/main.vue b/src/layout/component/main.vue
index b42ba3d..dd5c594 100644
--- a/src/layout/component/main.vue
+++ b/src/layout/component/main.vue
@@ -1,22 +1,30 @@
 <template>
-	<el-main class="layout-main" :style="isFixedHeader ? `height: calc(100% - ${setMainHeight})` : `minHeight: calc(100% - ${setMainHeight})`">
+	<el-main
+		class="layout-main"
+		:style="isFixedHeader ? `height: calc(100% - ${setMainHeight})` : `minHeight: calc(100% - ${setMainHeight})`"
+	>
 		<el-scrollbar
 			ref="layoutMainScrollbarRef"
 			class="layout-main-scroll layout-backtop-header-fixed"
-			wrap-class="layout-main-scroll"
-			view-class="layout-main-scroll h100"
+			wrap-class="layout-main-scroll  flex"
+			view-class="layout-main-scroll bg-[#1c1e1d]  flex h100 w-full"
 		>
-			<LayoutParentView />
-			<!-- <LayoutFooter v-if="isFooter" /> -->
+			<SideBar />
+			<div class="flex-auto flex-col flex right-container">
+				<Header class="flex-0" />
+				<LayoutParentView class="flex-auto" />
+			</div>
 		</el-scrollbar>
 		<el-backtop :target="setBacktopClass" />
 	</el-main>
 </template>
 
 <script setup lang="ts" name="layoutMain">
-import { defineAsyncComponent, onMounted, computed, ref } from 'vue';
-import { useRoute } from 'vue-router';
 import { storeToRefs } from 'pinia';
+import { computed, defineAsyncComponent, onMounted, ref } from 'vue';
+import { useRoute } from 'vue-router';
+import Header from './header/Header.vue';
+import SideBar from './sidebar/Sidebar.vue';
 import { useTagsViewRoutes } from '/@/stores/tagsViewRoutes';
 import { useThemeConfig } from '/@/stores/themeConfig';
 import { NextLoading } from '/@/utils/loading';
@@ -63,3 +71,18 @@
 	layoutMainScrollbarRef,
 });
 </script>
+
+<style scoped lang="scss">
+.right-container {
+	width: 100vw;
+	// margin: 0;
+	padding: 0;
+	overflow: hidden;
+	-webkit-box-sizing: border-box;
+	box-sizing: border-box;
+	background-color: #1c1e1d;
+	font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
+	margin: 6px;
+	border-radius: 10px;
+}
+</style>

--
Gitblit v1.9.3