undefinedfix
Sign in

How can the element table achieve this effect?

Deez edited in Wed, 19 Oct 2022

12.png

Source array:

`[{ spuId:123 , spuname: 'spuname1', goodslist:[

{skuId:2757,skuName:'sku名称1',sale:169,storSUm:125},
{skuId:2758,skuName:'sku名称2',sale:169,storSUm:125},
{skuId:2759,skuName:'sku名称3',sale:169,storSUm:125},

]},{ spuId:456 , spuname: 'spuname2', goodslist:[

{skuId:2757,skuName:'sku名称1',sale:169,storSUm:125},
{skuId:2758,skuName:'sku名称2',sale:169,storSUm:125},
{skuId:2759,skuName:'sku名称3',sale:169,storSUm:125},

]}]`

How can this kind of two-dimensional data be displayed with element's < El table?

3 Replies
Gautyhenley
commented on Wed, 19 Oct 2022

Isn't there a lot of demos on the component that can be used directly? It's not very difficult

mortgagemanagement
commented on Thu, 20 Oct 2022

This table is very special. It is equivalent to combining two tables into one table and sharing one header.

SpenserWilson1
commented on Thu, 20 Oct 2022

This can be achieved by merging rows https://element.eleme.cn/#/zh...