提交 5cff73bc 作者: vben

fix: fix the problem of collapsed display when the menu has no child nodes

上级 88de82c4
......@@ -248,14 +248,14 @@
}
&.ant-menu-inline-collapsed {
.ant-menu-submenu-selected,
.ant-menu-item-selected {
.active-style();
background: unset !important;
box-shadow: none;
}
.ant-menu-submenu-selected,
.ant-menu-item-selected {
background: unset !important;
box-shadow: none;
.active-style();
}
}
}
......
......@@ -46,11 +46,13 @@ export default defineComponent({
if (homeRoute.name === firstItem.name) return false;
return homeRoute;
}
function pathCompile(path: string) {
const { params } = unref(currentRoute);
const toPath = compile(path);
return toPath(params);
}
function handleItemClick(item: AppRouteRecordRaw) {
const { redirect, path, meta } = item;
if (meta.disabledRedirect) return;
......@@ -71,10 +73,8 @@ export default defineComponent({
);
return () => (
<>
<Breadcrumb class="layout-breadcrumb">
{() => (
<>
<TransitionGroup name="breadcrumb">
{() => {
return unref(itemList).map((item) => {
......@@ -98,10 +98,8 @@ export default defineComponent({
});
}}
</TransitionGroup>
</>
)}
</Breadcrumb>
</>
);
},
});
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论