feat: 新增 element-plus 水印

This commit is contained in:
郝先瑞
2024-02-20 22:35:33 +08:00
parent e646eb2d73
commit a504260c0d
5 changed files with 18 additions and 13 deletions

View File

@@ -18,19 +18,24 @@
<el-switch v-model="settingsStore.tagsView" />
</div>
<div class="py-[8px] flex justify-between">
<div class="py-[8px] flex-x-between">
<span class="text-xs">固定 Header</span>
<el-switch v-model="settingsStore.fixedHeader" />
</div>
<div class="py-[8px] flex justify-between">
<div class="py-[8px] flex-x-between">
<span class="text-xs">侧边栏 Logo</span>
<el-switch v-model="settingsStore.sidebarLogo" />
</div>
<div class="py-[8px] flex-x-between">
<span class="text-xs">开启水印</span>
<el-switch v-model="settingsStore.sidebarLogo" />
</div>
<el-divider>主题颜色</el-divider>
<ul class="w-full space-x-2 flex justify-center py-2">
<ul class="w-full space-x-2 flex-x-center py-2">
<li
v-for="(color, index) in themeColors"
:key="index"
@@ -165,7 +170,7 @@ const currentThemeColor = computed(() => {
});
/**
* 切换主题
* 切换暗黑模式
*/
const isDark = ref<boolean>(settingsStore.theme === "dark");
const handleThemeChange = (isDark: any) => {