|
@@ -157,46 +157,51 @@ const layoutHeader = defineComponent({
|
|
|
|
|
|
<template>
|
|
|
<div ref="appWrapperRef" :class="['app-wrapper', set.classes]">
|
|
|
- <div
|
|
|
- v-show="
|
|
|
- set.device === 'mobile' &&
|
|
|
- set.sidebar.opened &&
|
|
|
- layout.includes('vertical')
|
|
|
- "
|
|
|
- class="app-mask"
|
|
|
- @click="useAppStoreHook().toggleSideBar()"
|
|
|
- />
|
|
|
- <Vertical
|
|
|
- v-show="
|
|
|
- !pureSetting.hiddenSideBar &&
|
|
|
- (layout.includes('vertical') || layout.includes('mix'))
|
|
|
- "
|
|
|
- />
|
|
|
- <div
|
|
|
- :class="[
|
|
|
- 'main-container',
|
|
|
- pureSetting.hiddenSideBar ? 'main-hidden' : ''
|
|
|
- ]"
|
|
|
- >
|
|
|
- <div v-if="set.fixedHeader">
|
|
|
- <layout-header />
|
|
|
- <!-- 主体内容 -->
|
|
|
- <app-main :fixed-header="set.fixedHeader" />
|
|
|
+ <div class="z-10">
|
|
|
+ <div
|
|
|
+ v-show="
|
|
|
+ set.device === 'mobile' &&
|
|
|
+ set.sidebar.opened &&
|
|
|
+ layout.includes('vertical')
|
|
|
+ "
|
|
|
+ class="app-mask"
|
|
|
+ @click="useAppStoreHook().toggleSideBar()"
|
|
|
+ />
|
|
|
+ <Vertical
|
|
|
+ v-show="
|
|
|
+ !pureSetting.hiddenSideBar &&
|
|
|
+ (layout.includes('vertical') || layout.includes('mix'))
|
|
|
+ "
|
|
|
+ />
|
|
|
+ <div
|
|
|
+ :class="[
|
|
|
+ 'main-container',
|
|
|
+ pureSetting.hiddenSideBar ? 'main-hidden' : ''
|
|
|
+ ]"
|
|
|
+ >
|
|
|
+ <div v-if="set.fixedHeader">
|
|
|
+ <layout-header />
|
|
|
+ <!-- 主体内容 -->
|
|
|
+ <app-main :fixed-header="set.fixedHeader" />
|
|
|
+ </div>
|
|
|
+ <el-scrollbar v-else>
|
|
|
+ <el-backtop
|
|
|
+ title="回到顶部"
|
|
|
+ target=".main-container .el-scrollbar__wrap"
|
|
|
+ >
|
|
|
+ <backTop />
|
|
|
+ </el-backtop>
|
|
|
+ <layout-header />
|
|
|
+ <!-- 主体内容 -->
|
|
|
+ <app-main :fixed-header="set.fixedHeader" />
|
|
|
+ </el-scrollbar>
|
|
|
</div>
|
|
|
- <el-scrollbar v-else>
|
|
|
- <el-backtop
|
|
|
- title="回到顶部"
|
|
|
- target=".main-container .el-scrollbar__wrap"
|
|
|
- >
|
|
|
- <backTop />
|
|
|
- </el-backtop>
|
|
|
- <layout-header />
|
|
|
- <!-- 主体内容 -->
|
|
|
- <app-main :fixed-header="set.fixedHeader" />
|
|
|
- </el-scrollbar>
|
|
|
+ <!-- 系统设置 -->
|
|
|
+ <setting />
|
|
|
+ </div>
|
|
|
+ <div class="projectBG">
|
|
|
+ <!-- 背景色 -->
|
|
|
</div>
|
|
|
- <!-- 系统设置 -->
|
|
|
- <setting />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -231,4 +236,17 @@ const layoutHeader = defineComponent({
|
|
|
.re-screen {
|
|
|
margin-top: 12px;
|
|
|
}
|
|
|
+
|
|
|
+.projectBG {
|
|
|
+ position: absolute;
|
|
|
+ top: 0;
|
|
|
+ left: 0;
|
|
|
+ // background: blue;
|
|
|
+ z-index: -1;
|
|
|
+ width: 100vw;
|
|
|
+ height: 100vh;
|
|
|
+ // background: linear-gradient(to center, blue, white);
|
|
|
+ background: radial-gradient(circle, white, #d2e6fa);
|
|
|
+ background: linear-gradient(to right, #d2e6fa, white, #d2e6fa);
|
|
|
+}
|
|
|
</style>
|