ElemeFE / ElemeFE/element

[Bug Report] Tree组件,默认勾选的前N项子节点(N>1),则该父节点的所有子节点都将被默认勾选

Open
#21,602 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Vue
Stars
54k
Forks
14.4k
PR merge metrics
No merged PRs in 30d

Description

### Element UI version
2.15.7

### OS/Browsers version
macos/windows

### Vue version
2.6.14

### Reproduction Link
https://codepen.io/justhe/pen/GRMQqoX

### Steps to reproduce
1、tree 组件设置为懒加载
2、设置某个父节点默认为展开状态
3、再设置该父节点的前两个节点为选中状态
4、此时该父节点的所有节点都将被处于选中状态
5、具体表现可参考:https://codepen.io/justhe/pen/GRMQqoX

### What is Expected?
只有前两个节点处于被选中状态

### What is actually happening?
该父节点的所有子节点都处于选中状态

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.