UNPKG

753 BJavaScriptView Raw
1import Button from './Button'
2import ButtonGroup from './ButtonGroup'
3import Icon from './Icon'
4import Menu from './Menu'
5import MenuItem from './MenuItem'
6import MenuGroup from './MenuGroup'
7import Submenu from './Submenu'
8import Row from './Row'
9import Col from './Col'
10import Input from './Input'
11
12const components = [Button, Icon, ButtonGroup, Menu, MenuItem, MenuGroup, Submenu, Row, Col, Input]
13
14const install = Vue => {
15 components.map(component => {
16 Vue.component(component.name, component)
17 })
18}
19
20if (typeof window !== 'undefined' && window.Vue) {
21 install(window.Vue)
22}
23
24export default {
25 install,
26 Button,
27 Icon,
28 ButtonGroup,
29 Menu,
30 MenuGroup,
31 MenuItem,
32 Submenu,
33 Row,
34 Col,
35 Input
36}