mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
* perf: change to import-x * feat: add rules * chore: fix rule * chore: fix * chore: fix * chore: fix * style: `pnpm lint:fix` * Revert "style: `pnpm lint:fix`" This reverts commitdb0116a288. * Revert "chore: fix" This reverts commit69c82a90c0. * chore: fix * style: `pnpm lint:fix` * fix: lint * chore: `pnpm format`
33 lines
1015 B
TypeScript
33 lines
1015 B
TypeScript
import { withInstall, withNoopInstall } from '@element-plus/utils'
|
|
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'
|
|
|
|
import type { SFCWithInstall } from '@element-plus/utils'
|
|
|
|
export const ElMenu: SFCWithInstall<typeof Menu> & {
|
|
MenuItem: typeof MenuItem
|
|
MenuItemGroup: typeof MenuItemGroup
|
|
SubMenu: typeof SubMenu
|
|
} = withInstall(Menu, {
|
|
MenuItem,
|
|
MenuItemGroup,
|
|
SubMenu,
|
|
})
|
|
export default ElMenu
|
|
export const ElMenuItem: SFCWithInstall<typeof MenuItem> =
|
|
withNoopInstall(MenuItem)
|
|
export const ElMenuItemGroup: SFCWithInstall<typeof MenuItemGroup> =
|
|
withNoopInstall(MenuItemGroup)
|
|
export const ElSubMenu: SFCWithInstall<typeof SubMenu> =
|
|
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'
|
|
export * from './src/instance'
|
|
export * from './src/tokens'
|