//左右合并//绑定的表头加入colSpan属性{
field:'country',colSpan:function(params){const country = params.data.country;if(country ==='Russia'){// have all Russia age columns width 2return2;//合并2个}elseif(country ==='United States'){// have all United States column width 4return4;//合并4个}else{// all other rows should be just normalreturn1;//合并1个}},},