浏览代码

fix: tabs group hover close failure

nian 1 月之前
父节点
当前提交
7354575691
共有 1 个文件被更改,包括 1 次插入1 次删除
  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)}