How can element-ui lists be juxtaposed based on whether the content is the same?


the problem may not be described clearly, so write a demo to explain it, such as this: I want the same names to be merged together, and 1 and 2 names are the same, so they are merged together.
how is it implemented?

Apr.03,2021

A meaning https://jsfiddle.net/8r3L09rw/ https://codeshelper.com/q/10.


can I still play like this? Sit and wait for the great god to answer!


element-ui table does not seem to specifically provide this thing
if I deal with it, the first step of the two operations
put the same name together, that is, sort
the second part merges the same name through the span-method method


the official website has a parallel and column method: span-method= "method name" to judge whether to merge or not according to the value of the cell!


you can refer to the code demonstration here. This not only fixes the BUG, that Comrade tassel could not display in a single case, but also shows https://jsfiddle.net/Tomatoro.

with row merging and column merging in a table at the same time.
Menu