ElemeFE / ElemeFE/element

[bug report] bug in row data operation of table

Open
#21,522 1 comment 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
window11/Chrome 96.0.4664.45

### Vue version
2.6.14

### Reproduction Link
https://codepen.io/ileirui/pen/NWaqPLq

### Steps to reproduce
table绑定cell-mouse-leave和cell-mouse-enter方法,在鼠标移入行与移出行时,姓名列显示不同的值

### What is Expected?
鼠标移入行,姓名列显示日期,移出行,姓名列显示姓名

### What is actually happening?
已预定义了show=false的数据(前三行数据),鼠标移入行,姓名列显示日期,移出行,姓名列显示姓名
未预定义show=false的数据(最后一行数据),鼠标移入行,姓名列依旧显示姓名,移出行,姓名列显示姓名
2.15.6版本不需要在源数据中提前预定义字段show=false尽可以对表格行数据进行创建字段等操作,2.15.7版本必须在源数据声明show=false在能进行正常操作,若不提前在源数据声明,后续通过别的方式在row中添加show字段在对其进行操作,无法达到预期效果

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.