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 #9942

Closed
Ladtor opened this issue Apr 1, 2024 · 1 comment · Fixed by #9944
Closed

tree-select autoComplete Bug #9942

Ladtor opened this issue Apr 1, 2024 · 1 comment · Fixed by #9944
Assignees
Labels
awaiting-release bug Something isn't working

Comments

@Ladtor
Copy link

Ladtor commented Apr 1, 2024

描述问题:

trees-select 树形结构数据 使用 autoComplete 存在bug

截图或视频:

20240401110716_rec_-convert

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

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

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

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

{
  "body": [
    {
      "label": "Tree",
      "multiple": true,
      "name": "tree",
      "source": "/api/tree-options.json",
      "autoComplete":"/api/tree-options.json?keyword=$term",
      "type": "tree-select"
    }
  ]
}
{
  "code": 0,
  "data": [
    {
      "children": [
        {
          "label": "A-1",
          "value": "a1"
        }
      ],
      "label": "A",
      "value": "a"
    },
    {
      "children": [
        {
          "label": "B-1",
          "value": "b1"
        },
        {
          "label": "B-2",
          "value": "b2"
        }
      ],
      "label": "B",
      "value": "b"
    }
  ],
  "message": "ok"
}
  1. 操作步骤
@github-actions github-actions bot added the bug Something isn't working label Apr 1, 2024
Copy link

github-actions bot commented Apr 1, 2024

👍 Thanks for this!
🏷 I have applied any labels matching special text in your issue.

Please review the labels and make any necessary changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-release bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants