ElemeFE / ElemeFE/element

[Bug Report] table toggleRowSelection属性在设置reserve-selection后翻页获取新数据触发不生效

Open
#22,909 0 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.9

### OS/Browsers version
chrome 105.0.5195.102

### Vue version
2.6.10

### Reproduction Link
https://panjiachen.github.io/vue-element-admin/#/login?redirect=%2Fdashboard

### Steps to reproduce
设置表格勾选列为reserve-selection 且表格设置了row-key,在一页选中一条数据,然后翻到第二页页后使用toggleRowSelection函数去勾选第一页的数据不生效,看了源码感觉是toggleRowSelection对比row的算法有点问题。

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