目录

antd-a-tree-select搜索功能和a-select搜索功能

目录

antd a-tree-select搜索功能和a-select搜索功能

https://i-blog.csdnimg.cn/blog_migrate/71f8d7323ad94cd04e28374a45cb2b99.png

a-select要搜索功能需要加上
        show-search
        :filter-option="searchBrand"

下面是绑定的搜索方法

https://i-blog.csdnimg.cn/blog_migrate/2cdeffb9a68104b2b7de9be82dac3ee1.png

a-tree-select要实现搜索功能 不需要单独写方法

https://i-blog.csdnimg.cn/blog_migrate/54e2085661625fc95fc7f4993b1b8952.png

加上这两个属性就可以搜索了,name是通过name这个字段进行搜索