Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tree-select autoComplete Bug #10176

Open
Ladtor opened this issue May 8, 2024 · 0 comments
Open

tree-select autoComplete Bug #10176

Ladtor opened this issue May 8, 2024 · 0 comments
Assignees

Comments

@Ladtor
Copy link

Ladtor commented May 8, 2024

描述问题:

之前在 #9942 反馈过,最新版本6.4.0修复后仍存在部分问题,见截图;
另外,期望 tree-select autoComplete 搜索的交互逻辑同 input-tree searchApi,搜索时仅展示搜索结果,不展示已选内容,无法区分该内容是否搜索命中

截图或视频:

20240508151634_rec_-convert

如何复现(请务必完整填写下面内容):

  1. 你是如何使用 amis 的?
    sdk

  2. amis 版本是什么?请先在最新 beta 版本测试问题是否存在
    6.4.0

  3. 粘贴有问题的完整 amis schema 代码:

{
  "body": [
    {
      "autoCheckChildren": false,
      "extractValue": true,
      "joinValues": false,
      "multiple": true,
      "name": "tree",
      "autoComplete": "/api/tree-options${term}.json",
      "searchable": true,
      "source": {
        "cache": 500,
        "url": "/api/tree-options.json"
      },
      "type": "tree-select"
    }
  ],
  "debug": true,
  "type": "form"
}
#/api/tree-options.json
{
    "code": 0,
    "data": [
        {
            "label": "root",
            "value": "root",
            "children": [
                {
                    "label": "A",
                    "value": "A",
                    "children": [
                        {
                            "label": "B",
                            "value": "B",
                            "children": [
                                {
                                    "label": "C",
                                    "value": "C",
                                    "children": []
                                }
                            ]
                        }
                    ]
                }
            ]
        }
    ],
    "message": "ok"
}
#/api/tree-options2.json
{
  "code": 0,
  "data": [

  ],
  "message": "ok"
}
  1. 操作步骤
  • 选中子节点
  • 选中父节点
  • 触发远程搜索
  • 组件异常
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants