6.3.0中InputTree,expand动作不起作用
Closed this issue · 0 comments
描述问题:
6.3.0中InputTree,设置expand动作,点击后树不做展开,只是节点前的箭头图标转动
截图或视频:
可以的话,尽可能提供截图或视频来补充描述你的问题...
如何复现(请务必完整填写下面内容):
-
你是如何使用 amis 的?
sdk
、npm
或其他
... -
amis 版本是什么?请先在最新 beta 版本测试问题是否存在
-
粘贴有问题的完整
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
}
]
}
]
}
} -
操作步骤
请简单描述一下复现的操作步骤...