ElemeFE / ElemeFE/element

[Bug Report] 嵌套table toggleRowSelection方法参数传值为数组时无效

Open
#22,400 2 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.13

### OS/Browsers version
win11 chrome 109.0.5414.120

### Vue version
2.7.14

### Reproduction Link
https://codepen.io/superchangme/pen/QWVyReE

### Steps to reproduce
1.点击表格中的第一项展开按钮
2.等待一秒后调用勾选方法勾选数据第一项
```
toggleRowSelection([this.tableData2[0]],true)
```
3.子表格只有表头被勾中,子数据没被勾中

ps:如果toggleRowSelection参数里传对象是可以的,但是数组就不行。请查一下是什么问题?

### What is Expected?
期望调用toggleRowSelection([this.tableData2[0]],true)能够实现勾中数据

### 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.