From ed74f36a7214980255fa978b01a9c6d36d87d45a Mon Sep 17 00:00:00 2001 From: pengmingdong <3393408122@qq.com> Date: Wed, 17 Apr 2024 16:52:21 +0800 Subject: [PATCH] =?UTF-8?q?update:=20Tab=E6=A0=8F=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E5=92=8C=E5=8F=B3=E9=94=AE=E8=8F=9C=E5=8D=95=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + src/layout/components/TagsView/index.vue | 159 +++++++++++++---------- 2 files changed, 91 insertions(+), 69 deletions(-) diff --git a/.gitignore b/.gitignore index 40df4749..50df089f 100644 --- a/.gitignore +++ b/.gitignore @@ -21,6 +21,7 @@ selenium-debug.log *.local package-lock.json +pnpm-lock.yaml yarn.lock # 编译生成的文件 diff --git a/src/layout/components/TagsView/index.vue b/src/layout/components/TagsView/index.vue index 1df486e3..af8ca2ce 100644 --- a/src/layout/components/TagsView/index.vue +++ b/src/layout/components/TagsView/index.vue @@ -1,30 +1,31 @@ - - {{ tag.title }} - - - - + + + + {{ tag.title }} + + + + - 刷新页面 - 关闭当前 - 关闭其他 - 关闭左侧 - 关闭右侧 - 全部关闭 + 刷新页面 + 关闭当前 + 关闭其他 + 关闭左侧 + 关闭右侧 + 全部关闭 @@ -68,13 +69,6 @@ watch(visible, (value) => { const isActive = (r: TagView): boolean => { return r.path === route.path; } -const activeStyle = (tag: TagView) => { - if (!isActive(tag)) return {}; - return { - "background-color": theme.value, - "border-color": theme.value - }; -} const isAffix = (tag: TagView) => { return tag.meta && tag.meta.affix; } @@ -238,49 +232,62 @@ onMounted(() => {