fix: 修复类目/品牌/平台下拉框搜索功能,使用option-filter-prop替代filterOption
This commit is contained in:
parent
6a1c54913e
commit
643b2ffb5c
@ -279,12 +279,13 @@
|
||||
placeholder="请选择品牌"
|
||||
size="large"
|
||||
show-search
|
||||
:filter-option="filterOption"
|
||||
option-filter-prop="label"
|
||||
>
|
||||
<a-select-option
|
||||
v-for="brand in brands"
|
||||
:key="brand.id"
|
||||
:value="brand.id"
|
||||
:label="brand.name"
|
||||
>
|
||||
{{ brand.name }}
|
||||
</a-select-option>
|
||||
@ -297,11 +298,14 @@
|
||||
v-model:value="formData.platformId"
|
||||
placeholder="请选择平台"
|
||||
size="large"
|
||||
show-search
|
||||
option-filter-prop="label"
|
||||
>
|
||||
<a-select-option
|
||||
v-for="platform in platforms"
|
||||
:key="platform.id"
|
||||
:value="platform.id"
|
||||
:label="platform.name"
|
||||
>
|
||||
{{ platform.name }}
|
||||
</a-select-option>
|
||||
@ -317,12 +321,13 @@
|
||||
placeholder="请选择叶子类目"
|
||||
size="large"
|
||||
show-search
|
||||
:filter-option="filterOption"
|
||||
option-filter-prop="label"
|
||||
>
|
||||
<a-select-option
|
||||
v-for="category in categories"
|
||||
:key="category.id"
|
||||
:value="category.id"
|
||||
:label="category.name"
|
||||
>
|
||||
{{ category.name }}
|
||||
</a-select-option>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user