From ebff81777b9c0b839256b83e321ecbdbff25fc73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=87=AF=E9=BE=99?= <502431556@qq.com> Date: Wed, 2 Mar 2022 08:34:55 +0800 Subject: [PATCH] style: fix tags-view style bug --- src/components/TagsView/src/TagsView.vue | 6 +----- src/router/index.ts | 3 ++- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/components/TagsView/src/TagsView.vue b/src/components/TagsView/src/TagsView.vue index 6c1af07..dd70218 100644 --- a/src/components/TagsView/src/TagsView.vue +++ b/src/components/TagsView/src/TagsView.vue @@ -469,7 +469,7 @@ watch( position: relative; top: 2px; height: calc(~'100% - 4px'); - // padding: 0 15px; + padding-right: 25px; font-size: 12px; cursor: pointer; border: 1px solid #d9d9d9; @@ -488,10 +488,6 @@ watch( } } - &__item:not(.@{prefix-cls}__item--affix) { - padding-right: 25px; - } - &__item:not(.is-active) { &:hover { color: var(--el-color-primary); diff --git a/src/router/index.ts b/src/router/index.ts index 68f77ef..f7b62b2 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -73,7 +73,8 @@ export const asyncRouterMap: AppRouteRecordRaw[] = [ name: 'Analysis', meta: { title: t('router.analysis'), - noCache: true + noCache: true, + affix: true } }, {