diff --git a/packages/layouts/src/components/menu/index.vue b/packages/layouts/src/components/menu/index.vue
index 5a059057..cb481e54 100644
--- a/packages/layouts/src/components/menu/index.vue
+++ b/packages/layouts/src/components/menu/index.vue
@@ -11,15 +11,21 @@ import { REDIRECT_NAME } from '@vben/constants'
import { renderIcon } from '@vben/vbencomponents'
import { context } from '../../../bridge'
import type { RouteMeta } from 'vue-router'
-
+import { Menu } from '@vben/types'
const { Logo, useAppInject, useAppConfig, useMenuSetting } = context
-import { getMenus, listenerRouteChange } from '@vben/router'
+import { getMenus, listenerRouteChange, emitter } from '@vben/router'
import FooterTrigger from '../trigger/FooterTrigger.vue'
const { getIsMobile } = useAppInject()
-const { menu, isMixSidebar, getCollapsedShowTitle, sidebar, isSidebar } =
- useAppConfig()
+const {
+ menu,
+ isMixSidebar,
+ getCollapsedShowTitle,
+ sidebar,
+ isSidebar,
+ isTopMenu,
+} = useAppConfig()
const { getTopMenuAlign, getShowFooterTrigger } = useMenuSetting()
const showSidebarLogo = computed(() => {
return unref(isSidebar) || unref(isMixSidebar)
@@ -29,13 +35,18 @@ const props = defineProps({
type: String,
default: () => 'vertical',
},
+ split: {
+ type: Boolean,
+ default: () => false,
+ },
})
const { bem } = createNamespace('layout-menu')
const { t } = useI18n()
const { currentRoute } = useRouter()
const menuRef = ref(null)
-const menuList = ref([])
+const options = ref