iview / iview/iview-admin

树组件怎么做到不全选的时候父组件也被选中

Open
#748 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Vue
Stars
16.4k
Forks
4.7k
PR merge metrics
No merged PRs in 30d

Description

![image](https://user-images.githubusercontent.com/31715318/42194827-5f8f7bca-7ea8-11e8-9d56-88a6baf30439.png)
像这样,全选的时候,选中的节点是5个,但是去掉一个子节点以后,就是三个了,我想这个时候父节点也被选中。
我记得饿了么 里面 有一个属性加上就可以了,
![image](https://user-images.githubusercontent.com/31715318/42194952-14c12476-7ea9-11e8-886e-bdca07a30fb8.png)
不知道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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.