Skip to content

Commit b9483fd

Browse files
committed
feat(System Settings, Settings): After the left menu is collapsed, the title of the first-level menu must be displayed in the floating card
1 parent 53f1ebe commit b9483fd

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

frontend/src/components/layout/Menu.vue

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,18 @@ const routerList = computed(() => {
127127
border-radius: 6px;
128128
&.is-active {
129129
background-color: #fff !important;
130+
font-weight: 500;
130131
}
131132
}
132133
}
134+
.ed-sub-menu {
135+
.subTitleMenu {
136+
display: none;
137+
}
138+
}
139+
140+
.ed-menu--popup-container .subTitleMenu {
141+
color: #646a73 !important;
142+
pointer-events: none;
143+
}
133144
</style>

frontend/src/components/layout/MenuItem.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,10 @@ const MenuItem = defineComponent({
8181
{ index: path, onClick: () => handleMenuClick(props.menu) },
8282
{
8383
title: () => titleWithIcon({ title, icon }),
84-
default: () => children.map((ele: any) => h(MenuItem, { menu: ele })),
84+
default: () => [
85+
h(MenuItem, { menu: { meta: { title } }, class: 'subTitleMenu' }),
86+
children.map((ele: any) => h(MenuItem, { menu: ele })),
87+
],
8588
}
8689
)
8790
}

0 commit comments

Comments
 (0)