使用tree-select 组件时,设置了cascade为true(当选中父节点时不自动选择子节点)时,无论选个节点,都会全选上!
- Dominant language
- TypeScript
- Stars
- 18.9k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
#### 描述问题:
使用tree-select 组件时,设置了cascade为true(当选中父节点时不自动选择子节点)时,无论选个节点,都会全选上!
#### 截图或视频:

#### 如何复现(请务必完整填写下面内容):
1. 你是如何使用 amis 的?
`sdk`
2. amis 版本是什么?请先在最新 beta 版本测试问题是否存在。
刚刚最新 git pull 下 build 的版本 [2b4e494](https://github.com/baidu/amis/commit/2b4e4945df5b05a2849cf62a316185a712738f8d)
3. 粘贴有问题的完整 `amis schema` 代码:
```
{
"type": "tree-select",
"label": "组织",
"name": "Organizations",
"multiple": true,
"source": "/usr/organization",
"joinValues": true,
"searchable": true,
"cascade": true,
"clearable": true
}
```
4. 操作步骤
请简单描述一下复现的操作步骤...
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at the tree-select component entry point and reproduce the reported schema with multiple selection and cascade enabled. Verify the selection behavior against the stated expectation: selecting a parent should not automatically select its child nodes, and confirm that selecting any node does not select the entire tree.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100