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

input-tree "initiallyOpen": false 属性不生效 #11651

Open
18049684135 opened this issue Feb 24, 2025 · 0 comments
Open

input-tree "initiallyOpen": false 属性不生效 #11651

18049684135 opened this issue Feb 24, 2025 · 0 comments

Comments

@18049684135
Copy link

描述问题:

配置该属性不生效 不会折叠子节点
input-tree "initiallyOpen": false 属性不生效

截图或视频:

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

Image

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

{
"type": "page",
"body": {
"type": "form",
"debug": true,
"api": "/amis/api/mock2/form/saveForm",
"body": [
{
"type": "input-tree",
"name": "tree1",
"label": "默认不自动带上子节点的值",
"initiallyOpen": false,
"options": [
{
"label": "A",
"value": "a"
},
{
"label": "B",
"value": "b",
"children": [
{
"label": "B-1",
"value": "b-1"
},
{
"label": "B-2",
"value": "b-2"
},
{
"label": "B-3",
"value": "b-3"
}
]
},
{
"label": "C",
"value": "c"
}
]
}
]
}
}

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

1 participant