feat: 菜单分组标题右侧显示子菜单数量徽章
This commit is contained in:
1 parent
98c0dedffd
commit
14f4dc7830
2 files changed
+15
-1
No files matched your search
Vendored
-1
@@ -245,7 +245,6 @@ declare module '@vue/runtime-core' {
|
||||
'UserCenter.page': typeof import('./src/pages/UserCenter.page.vue')['default']
|
||||
UserMenu: typeof import('./src/components/UserMenu.vue')['default']
|
||||
UuidGenerator: typeof import('./src/tools/uuid-generator/uuid-generator.vue')['default']
|
||||
VideoSubtitle: typeof import('./src/tools/video-subtitle/video-subtitle.vue')['default']
|
||||
VideoTools: typeof import('./src/tools/video-tools/video-tools.vue')['default']
|
||||
WifiQrCodeGenerator: typeof import('./src/tools/wifi-qr-code-generator/wifi-qr-code-generator.vue')['default']
|
||||
XmlFormatter: typeof import('./src/tools/xml-formatter/xml-formatter.vue')['default']
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user