vue-custom-select
Version:
simple, minimalistic autocomplete select dropdown component for Vue apps for you!
27 lines (20 loc) • 466 B
JavaScript
import component from './CustomSelect.vue'
function install(Vue) {
if (install.installed) return;
install.installed = true;
Vue.component("CustomSelect", component);
}
const plugin = {
install
};
let GlobalVue = null;
if (typeof window !== "undefined") {
GlobalVue = window.Vue;
} else if (typeof global !== "undefined") {
GlobalVue = global.vue;
}
if (GlobalVue) {
GlobalVue.use(plugin);
}
component.install = install;
export default component;