From ff0749984d2a018e8ef68fa9cd889490895c38fd Mon Sep 17 00:00:00 2001 From: 北风 <1638654441@qq.com> Date: Fri, 22 May 2020 19:02:38 +0800 Subject: [PATCH] tagview & sidebar 主题颜色与element ui(全局)同步 --- ruoyi-ui/src/layout/components/Sidebar/index.vue | 39 +++++++++++++++++++++------------------ ruoyi-ui/src/layout/components/TagsView/index.vue | 165 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------------------------------------------------- 2 files changed, 113 insertions(+), 91 deletions(-) diff --git a/ruoyi-ui/src/layout/components/Sidebar/index.vue b/ruoyi-ui/src/layout/components/Sidebar/index.vue index 4d0c6c9..dc4f153 100644 --- a/ruoyi-ui/src/layout/components/Sidebar/index.vue +++ b/ruoyi-ui/src/layout/components/Sidebar/index.vue @@ -8,47 +8,50 @@ :background-color="variables.menuBg" :text-color="variables.menuText" :unique-opened="true" - :active-text-color="variables.menuActiveText" + :active-text-color="settings.theme" :collapse-transition="false" mode="vertical" > - + diff --git a/ruoyi-ui/src/layout/components/TagsView/index.vue b/ruoyi-ui/src/layout/components/TagsView/index.vue index 19e1912..5a92516 100644 --- a/ruoyi-ui/src/layout/components/TagsView/index.vue +++ b/ruoyi-ui/src/layout/components/TagsView/index.vue @@ -9,11 +9,16 @@ :to="{ path: tag.path, query: tag.query, fullPath: tag.fullPath }" tag="span" class="tags-view-item" + :style="activeStyle(tag)" @click.middle.native="!isAffix(tag)?closeSelectedTag(tag):''" @contextmenu.prevent.native="openMenu(tag,$event)" > {{ tag.title }} - +
    @@ -26,8 +31,8 @@