选择器(可搜索)+气泡提示组件
select show-search placeholder="Select a person" option-filter-prop="children" style="width: 200px" :filter-option="filterOption" @focus="handleFocus" @blur="handleBlur" @change="handleChange" > option :value="item.id" v-for="item in hosts" :key="item.id" > "topLeft"> "title"> {{ item.label }} {{ item.label }}
主要是这个
option.componentOptions.children[0].componentOptions.children[1].text.toLowerCase().indexOf(input.toLowerCase()) >= 0 应该在原来选择器的子选项中加了标签,所以获取选项的text位置有变
样子: