Element UI version
2.13.1
OS/Browsers version
win10 chrome81.0.4044.129
Vue version
2.6.2
Reproduction Link
https://codepen.io/winnerdudu/pen/yLYqMre
Steps to reproduce
表格第二行的id为0,无法展开收起
What is Expected?
正确展开收起
What is actually happening?
无法展开收起
2.13.1
win10 chrome81.0.4044.129
2.6.2
https://codepen.io/winnerdudu/pen/yLYqMre
表格第二行的id为0,无法展开收起
正确展开收起
无法展开收起
3条答案
按热度按时间falq053o1#
row-key类型为string, 0改为 "0"就可展开收起
e37o9pze2#
row-key类型为string, 0改为 "0"就可展开收起
这个确实是个解决方案,但是不现实,
首先这是个树,要改0的话是不是得递归
其次这个是int类型,后端定了的。前端改成“0”,那提交的时候是不是得转一次。
我这个表格不只是展示作用,右侧还有btn,编辑、详情、删除操作。
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.