UNPKG

vue-instant

Version:

vue instant allows you to easily create custom search controls with auto suggestions for your vue 2 application.

37 lines (30 loc) 709 B
import VueInstant from './components/VueInstant.vue' // Install the components export function install (Vue) { Vue.component('vueInstant', VueInstant) /* -- Add more components here -- */ } // Expose the components export { VueInstant /* -- Add more components here -- */ } /* -- Plugin definition & Auto-install -- */ /* You shouldn't have to modify the code below */ // Plugin const plugin = { /* eslint-disable no-undef */ version: VERSION, install } export default plugin // Auto-install let GlobalVue = null if (typeof window !== 'undefined') { GlobalVue = window.Vue } else if (typeof global !== 'undefined') { GlobalVue = global.Vue } if (GlobalVue) { GlobalVue.use(plugin) }