From 47656d505073ed0ff0a2c9672f63faf9ae7563dd Mon Sep 17 00:00:00 2001 From: RuoYi Date: Sun, 12 Apr 2026 21:49:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=A0=87=E7=AD=BE=E9=A1=B5?= =?UTF-8?q?=E6=A0=B7=E5=BC=8Fchrome=E9=A3=8E=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/styles/variables.module.scss | 26 ++++ src/layout/components/Settings/index.vue | 13 +- src/layout/components/TagsView/index.vue | 176 +++++++++++++++++++---- src/settings.js | 5 + src/store/modules/settings.js | 3 +- 5 files changed, 192 insertions(+), 31 deletions(-) diff --git a/src/assets/styles/variables.module.scss b/src/assets/styles/variables.module.scss index aaf9b2b..ab980e2 100644 --- a/src/assets/styles/variables.module.scss +++ b/src/assets/styles/variables.module.scss @@ -193,6 +193,32 @@ html.dark { } } + /* 页签样式覆盖 */ + .navbar { + box-shadow: 0 1px 4px rgba(255, 255, 255, 0.08); + } + .tags-view-container { + &.tags-view-container--chrome { + --chrome-strip-bg: var(--el-bg-color); + --chrome-strip-border: var(--el-border-color); + --chrome-tab-active-bg: var(--el-color-primary-light-9); + --chrome-tab-text: var(--el-text-color-secondary); + --chrome-tab-text-active: var(--el-color-primary); + .tags-view-wrapper .tags-view-item:not(.active) + .tags-view-item:not(.active) { + border-left-color: var(--el-border-color); + } + .tags-view-wrapper .tags-view-item { + &:hover:not(.active) { + background: var(--el-fill-color, #303030) !important; + color: var(--el-text-color-primary); + } + &.active { + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28); + } + } + } + } + /* 分割窗格覆盖 */ .tree-sidebar-manage-wrap { .tree-sidebar-content { diff --git a/src/layout/components/Settings/index.vue b/src/layout/components/Settings/index.vue index 2353fe4..f069e4f 100644 --- a/src/layout/components/Settings/index.vue +++ b/src/layout/components/Settings/index.vue @@ -57,7 +57,7 @@

系统布局配置

- 开启 Tags-Views + 开启页签 @@ -77,6 +77,16 @@
+
+ 标签页样式 + + + 卡片 + 谷歌 + + +
+
固定 Header @@ -184,6 +194,7 @@ function saveSetting() { "navType": storeSettings.value.navType, "tagsView": storeSettings.value.tagsView, "tagsIcon": storeSettings.value.tagsIcon, + "tagsViewStyle": storeSettings.value.tagsViewStyle, "tagsViewPersist": storeSettings.value.tagsViewPersist, "fixedHeader": storeSettings.value.fixedHeader, "sidebarLogo": storeSettings.value.sidebarLogo, diff --git a/src/layout/components/TagsView/index.vue b/src/layout/components/TagsView/index.vue index ae23ed1..29485f5 100644 --- a/src/layout/components/TagsView/index.vue +++ b/src/layout/components/TagsView/index.vue @@ -1,5 +1,5 @@