[Bug Report] tree组件当有disabled时选中状态有误
Open
- Dominant language
- Vue
- Stars
- 54k
- Forks
- 14.4k
- PR merge metrics
- No merged PRs in 30d
Description
### Element UI version
2.15.9
### OS/Browsers version
windows11 / Chrome 116.0.5845.97(正式版本) (64 位)
### Vue version
2.6.14
### Reproduction Link
https://github.com/zzy-web/issue/blob/main/el-tree-demo.vue
### Steps to reproduce
当使用this.$refs.tree.setCheckedKeys([1, 2])设置key时,由于选中了所有disabled为true的子节点并且选中父节点,就会导致渲染错误
### What is Expected?
应该父节点node-key为1的项为半选,子节点node-key为2的项为全选
### What is actually happening?
所有父子节点都取消选中
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.