2024-05-21 01:41:47 +08:00
|
|
|
<template>
|
|
|
|
<el-config-provider :locale="locale" :size="size">
|
|
|
|
<!-- 开启水印 -->
|
2024-07-09 00:40:30 +08:00
|
|
|
<el-watermark v-if="watermarkEnabled" :font="{ color: fontColor }" :content="defaultSettings.watermarkContent"
|
|
|
|
class="wh-full">
|
2024-05-21 01:41:47 +08:00
|
|
|
<router-view />
|
|
|
|
</el-watermark>
|
|
|
|
<!-- 关闭水印 -->
|
|
|
|
<router-view v-else />
|
|
|
|
</el-config-provider>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
|
import { useAppStore, useSettingsStore } from "@/store";
|
|
|
|
import defaultSettings from "@/settings";
|
|
|
|
import { ThemeEnum } from "@/enums/ThemeEnum";
|
|
|
|
import { SizeEnum } from "@/enums/SizeEnum";
|
|
|
|
|
|
|
|
const appStore = useAppStore();
|
|
|
|
const settingsStore = useSettingsStore();
|
|
|
|
|
|
|
|
const locale = computed(() => appStore.locale);
|
|
|
|
const size = computed(() => appStore.size as SizeEnum);
|
|
|
|
const watermarkEnabled = computed(() => settingsStore.watermarkEnabled);
|
|
|
|
|
|
|
|
// 明亮/暗黑主题水印字体颜色适配
|
|
|
|
const fontColor = computed(() => {
|
|
|
|
return settingsStore.theme === ThemeEnum.DARK
|
|
|
|
? "rgba(255, 255, 255, .15)"
|
|
|
|
: "rgba(0, 0, 0, .15)";
|
|
|
|
});
|
|
|
|
</script>
|
2024-06-19 00:20:35 +08:00
|
|
|
<style lang="scss">
|
2024-07-09 00:40:30 +08:00
|
|
|
.router-link-active .el-menu-item {
|
2024-06-19 00:20:35 +08:00
|
|
|
background-color: #EEF3FB;
|
|
|
|
border-right: solid 3px var(--el-color-primary);
|
|
|
|
}
|
2024-07-09 00:40:30 +08:00
|
|
|
|
2024-06-20 21:31:53 +08:00
|
|
|
.table-container .el-form-item--default {
|
|
|
|
margin-bottom: 0px !important;
|
|
|
|
}
|
2024-07-09 00:40:30 +08:00
|
|
|
|
|
|
|
.el-table__header {
|
|
|
|
th {
|
2024-06-26 23:58:18 +08:00
|
|
|
background-color: #edebeb6e !important;
|
|
|
|
}
|
|
|
|
}
|
2024-07-09 00:40:30 +08:00
|
|
|
|
|
|
|
.el-pagination {
|
2024-06-26 23:58:18 +08:00
|
|
|
justify-content: end;
|
|
|
|
}
|
2024-07-09 00:40:30 +08:00
|
|
|
|
|
|
|
.scroll::-webkit-scrollbar {
|
|
|
|
width: 8px;
|
|
|
|
height: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.scroll::-webkit-scrollbar-thumb {
|
|
|
|
background-color: rgb(1, 169, 255);
|
|
|
|
border-radius: 4px;
|
|
|
|
}
|
2024-07-19 00:41:51 +08:00
|
|
|
|
|
|
|
.lf-ai-node,
|
|
|
|
.lf-element-text {
|
|
|
|
cursor: pointer !important;
|
2024-07-12 00:14:57 +08:00
|
|
|
}
|
2024-07-19 00:41:51 +08:00
|
|
|
|
|
|
|
.card-footer {
|
2024-07-17 00:30:15 +08:00
|
|
|
z-index: 99;
|
|
|
|
}
|
2024-07-19 00:41:51 +08:00
|
|
|
|
|
|
|
.command {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.blue {
|
|
|
|
color: var(--el-color-primary);
|
|
|
|
}
|
2024-06-19 00:20:35 +08:00
|
|
|
</style>
|