Browse Source

fix: tabs group hover close failure

nian 1 month ago
parent
commit
7354575691
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/layout/tabs/index.vue

+ 1 - 1
src/layout/tabs/index.vue

@@ -328,7 +328,7 @@ const TabList = defineComponent({
                 'relative cursor-pointer overflow-hidden border-r border-r-naive-border transition-[background-color,border-color,max-width] hover:bg-primary/6 [&:not(.max-w-0)]:max-w-48',
                 {
                   'tab-active': tab.path === pendingActivePath.value,
-                  group: !tab.locked && !showTabClose,
+                  group: !tab.locked && !showTabClose.value,
                 },
               ]}
               onClick={() => handleTabClick(tab.path)}