element [bug report] conflict between two tables on the same page

hfyxw5xn  于 5个月前  发布在  其他
关注(0)|答案(6)|浏览(43)

Element UI version

0.1.0

OS/Browsers version

windows

Vue version

3.0.0-beta.3

https://codepen.io/jacksuc/pen/XWmjGBg

Steps to reproduce

点击click按钮

What is Expected?

第二个表格中不应该有多选框一列

What is actually happening?

第二个表格中出现了选择框一列,并且原有的第一列属性没有了

ax6ht2ek

ax6ht2ek1#

Translation of this issue:

Element UI version

0.1.0

OS/Browsers version

windows

Vue version

3.0.0-beta.3

https://codepen.io/jacksuc/pen/XWmjGBg

Steps to reproduce

Click the click button

What is Expected?

There should be no multiple boxes and columns in the second table

What is actually happening?

In the second table, there is a selection box column, and the original attributes of the first column are not available

wswtfjt7

wswtfjt72#

显式指定 key 可以解决这个问题

ippsafx7

ippsafx73#

显式指定 key 可以解决这个问题
不是很明白,加column-key嘛?请指教,谢谢!

envsm3lx

envsm3lx4#

楼上,这个问题最后解决了吗

w3nuxt5m

w3nuxt5m5#

我指定的key是index,根据DIFF算法,这个index没变的,原样拷贝dom节点 。所以指定key的时候最好用index+label的形式

qzlgjiam

qzlgjiam6#

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.

相关问题