mirror of
https://github.com/element-plus/element-plus.git
synced 2025-08-16 03:53:39 +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 commit db0116a288299c507e3cfc4d7a22e2207265d920. * Revert "chore: fix" This reverts commit 69c82a90c01525e38180be4c21e8ef5602512318. * 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'
|