fix: fix the problem of collapsed display when the menu has no child nodes
| | |
| | | } |
| | | |
| | | &.ant-menu-inline-collapsed { |
| | | .ant-menu-submenu-selected, |
| | | .ant-menu-item-selected { |
| | | .active-style(); |
| | | } |
| | | |
| | | .ant-menu-item-selected { |
| | | background: unset !important; |
| | | box-shadow: none; |
| | | } |
| | | |
| | | .ant-menu-submenu-selected, |
| | | .ant-menu-item-selected { |
| | | .active-style(); |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | 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; |
| | |
| | | ); |
| | | |
| | | return () => ( |
| | | <> |
| | | <Breadcrumb class="layout-breadcrumb"> |
| | | {() => ( |
| | | <> |
| | | <TransitionGroup name="breadcrumb"> |
| | | {() => { |
| | | return unref(itemList).map((item) => { |
| | |
| | | }); |
| | | }} |
| | | </TransitionGroup> |
| | | </> |
| | | )} |
| | | </Breadcrumb> |
| | | </> |
| | | ); |
| | | }, |
| | | }); |