antdv API地址:
https://www.antdv.com/components/select-cn/#API
上代码
template
<template>
<a-select showSearch :filterOption="filterOption">
<a-select-option :value="item.value" :title="item.label" v-for="(item, index) in options"
:key="index">
{{ item.label }}
</a-select-option>
</a-select>
</template>
script
...
data() {
return {
options: [],
filterOption: (input, option) => {
// label搜索
return option.componentOptions.propsData.title.indexOf(input) > -1
}
}
}
组件实现模糊搜索&spm=1001.2101.3001.5002&articleId=111915948&d=1&t=3&u=478e57e32b99454cb1b552394c241d55)
2998

被折叠的 条评论
为什么被折叠?



