import Vue from 'vue'; import VueSelect from 'vue-select'; const options = [ { name: 'SomeName' }, { name: 'SomeName2' } ]; new Vue({ el: '#app', data: { options, value: null, }, components: { 'vue-select': VueSelect }, methods: { getOptionLabel(option: any) { if (option && option.name) { return option.name; } return ''; }, optionConsumer(option: any) { }, optionToOption(option: any) { return option; }, onValChange(val: any) { }, onVoidTab() { }, onSearch(search: string, loading: (b: boolean) => void) { loading(true); }, optionFilterBy(option: any, label: string, search: string) { return true; }, optionsFilter(options: any[], search: string) { return true; } }, template: ` ` });