index.ts 661 B

12345678910111213141516171819202122
  1. import { withInstall, withNoopInstall } from '@element-plus/utils'
  2. import Menu from './src/menu'
  3. import MenuItem from './src/menu-item.vue'
  4. import MenuItemGroup from './src/menu-item-group.vue'
  5. import SubMenu from './src/sub-menu'
  6. export const ElMenu = withInstall(Menu, {
  7. MenuItem,
  8. MenuItemGroup,
  9. SubMenu,
  10. })
  11. export default ElMenu
  12. export const ElMenuItem = withNoopInstall(MenuItem)
  13. export const ElMenuItemGroup = withNoopInstall(MenuItemGroup)
  14. export const ElSubMenu = withNoopInstall(SubMenu)
  15. export * from './src/menu'
  16. export * from './src/menu-item'
  17. export * from './src/menu-item-group'
  18. export * from './src/sub-menu'
  19. export * from './src/types'