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 {Step,SimpleStep} from './Step'
|
11 | import Steps from './Steps'
|
12 | import {CheckBox,CheckBoxButton,CheckBoxGroup} from './CheckBox'
|
13 | import {Radio,RadioGroup} from './Radio'
|
14 | import Switch from './Switch'
|
15 | import Input from './Input'
|
16 | import Tag from './Tag'
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 | const components = [Button, Icon, ButtonGroup, Menu, MenuItem, MenuGroup, Submenu, Row, Col,Step,SimpleStep,Steps,CheckBox,CheckBoxButton,CheckBoxGroup,Radio,RadioGroup,Switch,Input,Tag]
|
28 |
|
29 | const install = Vue => {
|
30 | components.map(component => {
|
31 | Vue.component(component.name, component)
|
32 | })
|
33 | }
|
34 |
|
35 | if (typeof window !== 'undefined' && window.Vue) {
|
36 | install(window.Vue)
|
37 | }
|
38 |
|
39 | export default {
|
40 | install,
|
41 | Button,
|
42 | Icon,
|
43 | ButtonGroup,
|
44 | Menu,
|
45 | MenuGroup,
|
46 | MenuItem,
|
47 | Submenu,
|
48 | Row,
|
49 | Col,
|
50 | Step,
|
51 | SimpleStep,
|
52 | Steps,
|
53 | CheckBox,
|
54 | CheckBoxButton,
|
55 | CheckBoxGroup,
|
56 | Radio,
|
57 | RadioGroup,
|
58 | Switch,
|
59 | Input,
|
60 | Tag
|
61 | }
|