src/index.js
function install(Vue) {
  for (const name in components) {
    const component = components[name].component || components[name]
    Vue.component(name, component)
  }
  Vue.prototype.$actionSheet = $actionSheet
  Vue.prototype.$loading = $loading
  Vue.prototype.$toast = $toast
  Vue.prototype.$dialog = $dialog
}
function install(Vue) {
  for (const name in components) {
    const component = components[name].component || components[name]
    Vue.component(name, component)
  }
  Vue.prototype.$actionSheet = $actionSheet
  Vue.prototype.$loading = $loading
  Vue.prototype.$toast = $toast
  Vue.prototype.$dialog = $dialog
}
function install ( Vue ) { for ( const name in components ) { const component = components [ name ] . component || components [ name ] Vue . component ( name , component ) } Vue . prototype . $actionSheet = $actionSheet Vue . prototype . $loading = $loading Vue . prototype . $toast = $toast Vue . prototype . $dialog = $dialog }
register globally all components
register globally all components