import Vue from 'vue' ; import { Message , Modal , Tooltip , Poptip , RadioGroup , Radio , Tabs , TabPane , Dropdown , DropdownMenu , DropdownItem , Slider , CheckboxGroup , Checkbox , Icon } from 'view-design' ; const components = { Message , Modal , Tooltip , Poptip , RadioGroup , Radio , Tabs , TabPane , Dropdown , DropdownMenu , DropdownItem , Slider , CheckboxGroup , Checkbox , Icon } ; const modules = components ; Vue . prototype . $Modal = Modal ; Vue . prototype . $Message = Message ; Object . keys ( modules ) . forEach ( ( key ) => { Vue . component ( key , modules [ key ] ) ; } ) ;