UNPKG

buefy

Version:

Lightweight UI components for Vue.js (v3) based on Bulma

26 lines (20 loc) 593 B
import type { App } from 'vue' import Menu from './Menu.vue' import MenuList from './MenuList.vue' import MenuItem from './MenuItem.vue' import { registerComponent } from '../../utils/plugins' const Plugin = { install(Vue: App) { registerComponent(Vue, Menu) // explicit `name` is needed to avoid name mangling of // Functional Component in production registerComponent(Vue, MenuList, 'BMenuList') registerComponent(Vue, MenuItem) } } export default Plugin export { Menu as BMenu, MenuList as BMenuList, MenuItem as BMenuItem }