element-plus [Bug Report] ELTable树形结构展示时合并行出现异常

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

Element Plus version

2.6.2

OS/Browsers version

Chrome

Vue version

3.4.15

https://codesandbox.io/p/devbox/elementplus-tm3mwv?file=%2Fsrc%2FApp.vue%3A16%2C25&layout=%257B%2522sidebarPanel%2522%253A%2522EXPLORER%2522%252C%2522rootPanelGroup%2522%253A%257B%2522direction%2522%253A%2522horizontal%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522id%2522%253A%2522ROOT_LAYOUT%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522clu9hb7m300073b6mus5c24x2%2522%252C%2522sizes%2522%253A%255B70%252C30%255D%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522EDITOR%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522id%2522%253A%2522clu9hb7m200023b6me674biy1%2522%257D%255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522SHELLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522id%2522%253A%2522clu9hb7m200043b6mtixruvfv%2522%257D%255D%252C%2522sizes%2522%253A%255B100%255D%257D%255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522DEVTOOLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522id%2522%253A%2522clu9hb7m300063b6mzi074dhv%2522%257D%255D%252C%2522sizes%2522%253A%255B100%255D%257D%255D%252C%2522sizes%2522%253A%255B50%252C50%255D%257D%252C%2522tabbedPanels%2522%253A%257B%2522clu9hb7m200023b6me674biy1%2522%253A%257B%2522id%2522%253A%2522clu9hb7m200023b6me674biy1%2522%252C%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522clu9i63ph00023b6mbxzfw57w%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522FILE%2522%252C%2522initialSelections%2522%253A%255B%257B%2522startLineNumber%2522%253A16%252C%2522startColumn%2522%253A25%252C%2522endLineNumber%2522%253A16%252C%2522endColumn%2522%253A25%257D%255D%252C%2522filepath%2522%253A%2522%252Fsrc%252FApp.vue%2522%252C%2522state%2522%253A%2522IDLE%2522%257D%255D%252C%2522activeTabId%2522%253A%2522clu9i63ph00023b6mbxzfw57w%2522%257D%252C%2522clu9hb7m300063b6mzi074dhv%2522%253A%257B%2522id%2522%253A%2522clu9hb7m300063b6mzi074dhv%2522%252C%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522clu9hb7m200053b6mzlu8qkqi%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522TASK_PORT%2522%252C%2522taskId%2522%253A%2522pnpm%2520run%2520dev%2522%252C%2522port%2522%253A5173%252C%2522path%2522%253A%2522%252F%2522%257D%255D%252C%2522activeTabId%2522%253A%2522clu9hb7m200053b6mzlu8qkqi%2522%257D%252C%2522clu9hb7m200043b6mtixruvfv%2522%253A%257B%2522id%2522%253A%2522clu9hb7m200043b6mtixruvfv%2522%252C%2522activeTabId%2522%253A%2522clu9hb7m200033b6math4mdjh%2522%252C%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522clu9hb7m200033b6math4mdjh%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522TASK_LOG%2522%252C%2522taskId%2522%253A%2522pnpm%2520run%2520dev%2522%257D%252C%257B%2522id%2522%253A%2522clu9hde4v00lp3b6m7imgsrp3%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522TERMINAL%2522%252C%2522shellId%2522%253A%2522clu9icy2d001sffig9wpjdoih%2522%257D%255D%257D%257D%252C%2522showDevtools%2522%253Atrue%252C%2522showShells%2522%253Atrue%252C%2522showSidebar%2522%253Atrue%252C%2522sidebarPanelSize%2522%253A15%257D

Steps to reproduce

打开链接即可查看到,demo里面是合并的第一列的第一行和第二行,结果展示异常

What is Expected?

第一列的第一行和第二行能正常合并

What is actually happening?

第二行整体右移了,导致第二行数据展示有问题

agyaoht7

agyaoht71#

你需要将另一个单元格隐藏,可以看以下这个demo

bvjxkvbb

bvjxkvbb2#

你需要将另一个单元格隐藏,可以看以下这个demo

感谢回复,这个是可以解决这个场景的,但是还有另外一个场景是合并带children的两行单元格,期望合并后的单元格有收齐展开按钮,实际没有,同间demo

jgzswidk

jgzswidk3#

感谢回复,这个是可以解决这个场景的,但是还有另外一个场景是合并带children的两行单元格,期望合并后的单元格有收齐展开按钮,实际没有,同间demo

可能需要将数据先组装成理想的结构,再交给table渲染

b0zn9rqh

b0zn9rqh4#

感谢回复,这个是可以解决这个场景的,但是还有另外一个场景是合并带children的两行单元格,期望合并后的单元格有收齐展开按钮,实际没有,同间demo

可能需要将数据先组装成理想的结构,再交给table渲染

现在看任意一种数据结构都满足不了这个场景的 无论是吧children放在第一个还是放在最后一个

相关问题