antdforvue a-tree-select组件用treeNodeFilterProp设置自定义属性搜索结果不正确
代码如下:
html:
<a-tree-select
treeNodeFilterProp="name"
allowClear
style="width: 70%"
:treeData="treeDataTest"
:value="val"
treeCheckable
:dropdownStyle="{ maxHeight: '60vh' }"
:filterTreeNode="fillterFUN"
>
<span style="color: #08c" slot="title" slot-scope="data">
{
{ data.name }}
</span>
</a-tree-select>
js:
export default {
name: 'tree-bug',
data () {
return {
treeDataTest: [
{
scopedSlots: {
// custom title
title: 'title'
},
name: 'node1',
value: '0-0',
key: '0-0',
children: [