feat: 菜单分组标题右侧显示子菜单数量徽章

This commit is contained in:
personal82555 committed 2026-10-13 00:26:04 +08:00
1 parent 98c0dedffd
commit 14f4dc7830
2 files changed
+15 -1

No files matched your search

+15
View File
@@ -109,6 +109,8 @@ const themeVars = useThemeVars();
<span ml-8px text-13px>
{{ name }}
</span>
<span class="menu-count">{{ tools.length }}</span>
</div>
<n-collapse-transition :show="!isCollapsed">
@@ -130,6 +132,19 @@ const themeVars = useThemeVars();
</template>
<style scoped lang="less">
.menu-count {
margin-left: auto;
margin-right: 8px;
font-size: 10.5px;
line-height: 1;
padding: 3px 7px;
border-radius: 999px;
background: rgba(128, 128, 128, 0.12);
opacity: 0.75;
font-weight: 600;
flex-shrink: 0;
}
.menu-actions {
display: flex;
align-items: center;