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

6.3.0中InputTree,expand动作不起作用 #10195

Closed
warning5 opened this issue May 10, 2024 · 0 comments · Fixed by #10322
Closed

6.3.0中InputTree,expand动作不起作用 #10195

warning5 opened this issue May 10, 2024 · 0 comments · Fixed by #10322
Assignees

Comments

@warning5
Copy link

描述问题:

6.3.0中InputTree,设置expand动作,点击后树不做展开,只是节点前的箭头图标转动

截图或视频:

可以的话,尽可能提供截图或视频来补充描述你的问题...

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

  1. 你是如何使用 amis 的?
    sdknpm其他...

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

  3. 粘贴有问题的完整 amis schema 代码:
    {
    "type": "page",
    "body": {
    "type": "form",
    "api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
    "body": [
    {
    "type": "button",
    "label": "展开",
    "onEvent": {
    "click": {
    "actions": [
    {
    "actionType": "expand",
    "componentId": "tree",
    "args": {
    "openLevel": 2
    }
    }
    ]
    }
    }
    },
    {
    "type": "input-tree",
    "name": "tree",
    "label": "Tree",
    "id": "tree",
    "options": [
    {
    "label": "Folder A",
    "value": 1,
    "children": [
    {
    "label": "file A",
    "value": 2
    },
    {
    "label": "Folder B",
    "value": 3,
    "children": [
    {
    "label": "file b1",
    "value": 3.1
    },
    {
    "label": "file b2",
    "value": 3.2
    }
    ]
    }
    ]
    },
    {
    "label": "file C",
    "value": 4
    },
    {
    "label": "file D",
    "value": 5
    }
    ]
    }
    ]
    }
    }

  4. 操作步骤
    请简单描述一下复现的操作步骤...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants