2022-02-11 11:03:15 +08:00
|
|
|
import { withInstall, withNoopInstall } from '@element-plus/utils'
|
2021-09-24 19:11:56 +08:00
|
|
|
|
2021-09-04 19:44:11 +08:00
|
|
|
import Menu from './src/menu'
|
2021-09-28 10:59:22 +08:00
|
|
|
import MenuItem from './src/menu-item.vue'
|
|
|
|
import MenuItemGroup from './src/menu-item-group.vue'
|
|
|
|
import SubMenu from './src/sub-menu'
|
2021-08-24 13:36:48 +08:00
|
|
|
|
2021-09-24 19:11:56 +08:00
|
|
|
export const ElMenu = withInstall(Menu, {
|
|
|
|
MenuItem,
|
|
|
|
MenuItemGroup,
|
|
|
|
SubMenu,
|
|
|
|
})
|
|
|
|
export default ElMenu
|
|
|
|
export const ElMenuItem = withNoopInstall(MenuItem)
|
|
|
|
export const ElMenuItemGroup = withNoopInstall(MenuItemGroup)
|
|
|
|
export const ElSubMenu = withNoopInstall(SubMenu)
|
2021-08-24 13:36:48 +08:00
|
|
|
|
2021-09-28 10:59:22 +08:00
|
|
|
export * from './src/menu'
|
|
|
|
export * from './src/menu-item'
|
|
|
|
export * from './src/menu-item-group'
|
|
|
|
export * from './src/sub-menu'
|
|
|
|
export * from './src/types'
|