import { Image } from 'element-ui'

const components = [Image]

const install = function (Vue) {
  components.forEach(component => {
    Vue.component(component.name, component)
  })
}

if (typeof window !== 'undefined' && window.Vue) {
  install(Window.Vue)
}

export default {
  install,
  Image
}
