树组件怎么做到不全选的时候父组件也被选中
- Dominant language
- Vue
- Stars
- 16.4k
- Forks
- 4.7k
- PR merge metrics
- No merged PRs in 30d
Description

像这样,全选的时候,选中的节点是5个,但是去掉一个子节点以后,就是三个了,我想这个时候父节点也被选中。
我记得饿了么 里面 有一个属性加上就可以了,

不知道ivew 是否也有这样的属性。求大神,
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue names no file, test, or entry point. Start by locating the tree component usage in the iView admin template and reproduce the selection behavior shown in the screenshots. Done means confirming whether a parent remains selected when one child is deselected, and documenting or implementing the available configuration if supported.
Written by the indexing model from the issue text.
Assessment
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100