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