amis icon indicating copy to clipboard operation
amis copied to clipboard

类型是 tree 是否可以支持搜索

Open zengqinchris opened this issue 6 years ago • 1 comments

实现场景:

下来树,是否支持搜索功能,没有找到对应的案例 image

存在的问题:

请简单描述你现在遇到的不符合预期的问题...

当前方案:

增加 "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
                        }
                    ]
                },

zengqinchris avatar Aug 25 '20 08:08 zengqinchris

暂时不支持,你可以试试 transfer

  • https://baidu.gitee.io/amis/docs/components/form/transfer
  • https://baidu.gitee.io/amis/examples/form/transfer

RickCole21 avatar Aug 28 '20 09:08 RickCole21