vue-yizun-ui
Version:
62 lines (48 loc) • 1.16 kB
JavaScript
import Button from './Button'
import ButtonGroup from './ButtonGroup'
import Icon from './Icon'
import Menu from './Menu'
import MenuItem from './MenuItem'
import MenuGroup from './MenuGroup'
import Submenu from './Submenu'
import Row from './Row'
import Col from './Col'
import {Step,SimpleStep} from './Step'
import Steps from './Steps'
import {CheckBox,CheckBoxButton,CheckBoxGroup} from './CheckBox'
import {Radio,RadioGroup} from './Radio'
import Switch from './Switch'
import Input from './Input'
import Tag from './Tag'
const components = [Button, Icon, ButtonGroup, Menu, MenuItem, MenuGroup, Submenu, Row, Col,Step,SimpleStep,Steps,CheckBox,CheckBoxButton,CheckBoxGroup,Radio,RadioGroup,Switch,Input,Tag]
const install = Vue => {
components.map(component => {
Vue.component(component.name, component)
})
}
if (typeof window !== 'undefined' && window.Vue) {
install(window.Vue)
}
export default {
install,
Button,
Icon,
ButtonGroup,
Menu,
MenuGroup,
MenuItem,
Submenu,
Row,
Col,
Step,
SimpleStep,
Steps,
CheckBox,
CheckBoxButton,
CheckBoxGroup,
Radio,
RadioGroup,
Switch,
Input,
Tag
}