baidu / baidu/amis

inputTree 单选无法反选

Open
#8,345 1 comment 0 reactions 1 assignee Claimed by @lurunze1226 View on GitHub
enhancement
Dominant language
TypeScript
Stars
18.9k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

#### 是否关联于某个问题吗:
请问为什么只有多选可以支持反选,单选就不可以呢,这单选反选也是一种很常见的情景

#### 预期的解决方案:
能不能加个属性支持inputTree单选模式也可以进行反选

#### 其他可接受方案:
能不能加个属性支持inputTree单选模式也可以进行反选

#### 任何附加信息:
{
"type": "page",
"body": {
"type": "form",
"api": "/amis/api/mock2/form/saveForm",
"debug": true,
"body": [
{
"type": "input-tree",
"name": "tree",
"label": "Tree",
"showOutline": true,
"showRadio": true,
"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
}
]
}
]
}
}

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.