UNPKG

1.16 kBJavaScriptView 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 {Step,SimpleStep} from './Step'
11import Steps from './Steps'
12import {CheckBox,CheckBoxButton,CheckBoxGroup} from './CheckBox'
13import {Radio,RadioGroup} from './Radio'
14import Switch from './Switch'
15import Input from './Input'
16import Tag from './Tag'
17
18
19
20
21
22
23
24
25
26
27const components = [Button, Icon, ButtonGroup, Menu, MenuItem, MenuGroup, Submenu, Row, Col,Step,SimpleStep,Steps,CheckBox,CheckBoxButton,CheckBoxGroup,Radio,RadioGroup,Switch,Input,Tag]
28
29const install = Vue => {
30 components.map(component => {
31 Vue.component(component.name, component)
32 })
33}
34
35if (typeof window !== 'undefined' && window.Vue) {
36 install(window.Vue)
37}
38
39export 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}