element-plus/packages/menu/index.ts

13 lines
269 B
TypeScript
Raw Normal View History

2020-11-12 14:43:55 +08:00
import { App } from 'vue'
import type { SFCWithInstall } from '@element-plus/utils/types'
2020-11-12 14:43:55 +08:00
import Menu from './src/menu.vue'
Menu.install = (app: App): void => {
2020-11-12 14:43:55 +08:00
app.component(Menu.name, Menu)
}
2020-11-13 10:39:03 +08:00
const _Menu: SFCWithInstall<typeof Menu> = Menu
export default _Menu