mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 09:20:51 +08:00
c68d59c6a0
* refactor(menu): rename to kebab-case * refactor(menu): rename RootMenuProvider to MenuProvider * refactor(menu): rename menu.type to types * refactor(menu): extract menu props and emits * refactor(menu): change sub-menu.vue to ts * refactor(menu): extract menu-item-group props and emits * refactor(menu): extract menu-item props and emits * refactor(menu): extract sub-menu props and emits * refactor(menu): rename type RegisterMenuItem to MenuItemRegistered * refactor(menu): MenuProvider ref to reactive * refactor(menu): MenuProvider remove methods * refactor(menu): change submenus to subMenus * refactor(menu): remove RootMenuProps type * refactor(menu): MenuProvider improve types & rename submenu to subMenu * refactor(menu): menu add block to provide * refactor(menu): menu improve expose * refactor(menu): menu improve render types * refactor(menu): menu refactor types & change handle(Sub)MenuItemClick params * refactor(menu): menu refactor types * refactor(menu): menu-item-group improve types * refactor(menu): menu-item improve types * refactor(menu): sub-menu improve types * refactor(menu): use-menu improve types * refactor(menu): sub-menu fix types * refactor(menu): menu-collapse-transition improve types * refactor(menu): menu-item-group improve template * refactor(menu): menu-item rename emit param * refactor(menu): finally improve types * fix lint * chore: re-order import * chore: remove reactive
23 lines
674 B
TypeScript
23 lines
674 B
TypeScript
import { withInstall, withNoopInstall } from '@element-plus/utils/with-install'
|
|
|
|
import Menu from './src/menu'
|
|
import MenuItem from './src/menu-item.vue'
|
|
import MenuItemGroup from './src/menu-item-group.vue'
|
|
import SubMenu from './src/sub-menu'
|
|
|
|
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)
|
|
|
|
export * from './src/menu'
|
|
export * from './src/menu-item'
|
|
export * from './src/menu-item-group'
|
|
export * from './src/sub-menu'
|
|
export * from './src/types'
|