code: 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
  }
docs: register globally all components