style: 菜单项放大适配屏幕 — 菜单文字15px加粗500、图标21px、行距11px、折叠图标26px, 分组标题14.5px加粗

This commit is contained in:
personal82555 committed 2026-10-13 09:40:19 +08:00
1 parent 282101b533
commit 0bee6e4364
1 file changed
+30 -3
+30 -3
View File
@@ -106,7 +106,7 @@ const themeVars = useThemeVars();
<icon-mdi-chevron-right />
</span>
<span ml-8px text-13px>
<span ml-8px text-14.5px font-600>
{{ name }}
</span>
@@ -119,11 +119,12 @@ const themeVars = useThemeVars();
<n-menu
class="menu"
size="large"
:value="route.path"
:collapsed-width="64"
:collapsed-icon-size="22"
:collapsed-icon-size="26"
:options="tools"
:indent="8"
:indent="10"
:default-expand-all="true"
/>
</div>
@@ -132,6 +133,32 @@ const themeVars = useThemeVars();
</template>
<style scoped lang="less">
// 菜单项放大,适配屏幕
.menu {
--n-item-text-color: rgba(0, 0, 0, 0.82);
font-size: 15px;
:deep(.n-menu-item-content) {
font-size: 15px;
padding-top: 11px;
padding-bottom: 11px;
.n-menu-item-content__icon {
font-size: 21px !important;
width: 26px !important;
}
.n-menu-item-content__label {
font-size: 15px;
font-weight: 500;
}
}
:deep(.n-menu-item-content__arrow) {
font-size: 15px;
}
}
.menu-count {
margin-left: auto;
margin-right: 8px;