import 'element-ui/lib/theme-chalk/index.css' import './assets/icon/iconfont.css' import Breadcrumb from './packages/breadcrumb' // 面包屑 import Pagination from './packages/pagination' // 分页 import Scale from './packages/scale' // 界面缩放 import Collapse from './packages/collapse' //收缩框 import Icon from './packages/icon' //图标 import { Selects } from './packages/select' //下拉选择 const components = [Breadcrumb, Pagination, Scale, Collapse, Icon, Selects] const install = function (Vue: any, opts: any = {}) { components.forEach((component) => { Vue.component(component.name, component) }) } /* istanbul ignore if */ if (typeof window !== 'undefined' && (window as any).Vue) { install((window as any).Vue) } export default { install, Breadcrumb, Pagination, Scale, Collapse, Icon, }