ElemeFE / element

A Vue.js 2.0 UI Toolkit for Web
https://element.eleme.io/
MIT License
54.12k stars 14.64k forks source link

The scope of the [bug report] table component may not be isolated #19148

Open matinjugou opened 4 years ago

matinjugou commented 4 years ago

Element UI version

2.13.0

OS/Browsers version

MacOS/Chrome

Vue version

2.6.11

Reproduction Link

https://codepen.io/matinjugou/pen/abvbwQJ

Steps to reproduce

点击左边的Table2,再点击Table1就会发现Table1的数据错乱了

What is Expected?

Table1和Table2各自正常显示自己的数据

What is actually happening?

Table1的表格数据被Table2干扰了,name列按照Table2的address的逻辑来显示的

element-bot commented 4 years ago

Translation of this issue:

Element UI version

2.13.0

OS/Browsers version

MacOS/Chrome

Vue version

3.0.0-alpha.12

Reproduction Link

https://codepen.io/matinjugou/pen/abvbwQJ

Steps to reproduce

Click table2 on the left, and then click table1 to find that the data of table1 is disordered

What is Expected?

Table1 and table2 display their own data normally

What is actually happening?

The table data of table1 is disturbed by table2. The name column is displayed according to the address logic of table2

matinjugou commented 4 years ago

vue版本是2.6.11,发issue的时候写错了

matinjugou commented 4 years ago

发现了一个解决方案,就是给每个table强行加一个key属性,这样就不会出现渲染错误了

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.