element [Bug Report] table tree某个节点的row-key值为0时,无法展开收起

rdlzhqv9  于 4个月前  发布在  其他
关注(0)|答案(3)|浏览(111)

Element UI version

2.13.1

OS/Browsers version

win10 chrome81.0.4044.129

Vue version

2.6.2

https://codepen.io/winnerdudu/pen/yLYqMre

Steps to reproduce

表格第二行的id为0,无法展开收起

What is Expected?

正确展开收起

What is actually happening?

无法展开收起

falq053o

falq053o1#

row-key类型为string, 0改为 "0"就可展开收起

e37o9pze

e37o9pze2#

row-key类型为string, 0改为 "0"就可展开收起

这个确实是个解决方案,但是不现实,
首先这是个树,要改0的话是不是得递归
其次这个是int类型,后端定了的。前端改成“0”,那提交的时候是不是得转一次。
我这个表格不只是展示作用,右侧还有btn,编辑、详情、删除操作。

b09cbbtk

b09cbbtk3#

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.

相关问题