mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
feat(System Settings, Settings): After the left menu is collapsed, the title of the first-level menu must be displayed in the floating card
This commit is contained in:
@@ -127,7 +127,18 @@ const routerList = computed(() => {
|
||||
border-radius: 6px;
|
||||
&.is-active {
|
||||
background-color: #fff !important;
|
||||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
}
|
||||
.ed-sub-menu {
|
||||
.subTitleMenu {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.ed-menu--popup-container .subTitleMenu {
|
||||
color: #646a73 !important;
|
||||
pointer-events: none;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -81,7 +81,10 @@ const MenuItem = defineComponent({
|
||||
{ index: path, onClick: () => handleMenuClick(props.menu) },
|
||||
{
|
||||
title: () => titleWithIcon({ title, icon }),
|
||||
default: () => children.map((ele: any) => h(MenuItem, { menu: ele })),
|
||||
default: () => [
|
||||
h(MenuItem, { menu: { meta: { title } }, class: 'subTitleMenu' }),
|
||||
children.map((ele: any) => h(MenuItem, { menu: ele })),
|
||||
],
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user