amis
amis copied to clipboard
类型是 tree 是否可以支持搜索
实现场景:
下来树,是否支持搜索功能,没有找到对应的案例

存在的问题:
请简单描述你现在遇到的不符合预期的问题...
当前方案:
增加 "searchable": true, 好像不管用
{
"type": "tree",
"name": "tree",
"label": "树",
"options": [
{
"label": "Folder A",
"value": 1,
"children": [
{
"label": "file A",
"value": 2
},
{
"label": "file B",
"value": 3
}
]
},
{
"label": "file C",
"value": 4
},
{
"label": "file D",
"value": 5
}
]
},
暂时不支持,你可以试试 transfer
- https://baidu.gitee.io/amis/docs/components/form/transfer
- https://baidu.gitee.io/amis/examples/form/transfer