效果图:
直接贴代码
<a-table
:columns="columns" :data-source="statisticData" bordered size="small"
:pagination=false :scroll="scrollY"
:rowKey="(record,index)=>{return index}">
const columns = [
{
title: '资产',
colSpan: 3,
align:'center',
customRender: ( text,record, index ) => {
const obj = {
children: '',
attrs: {},
style:{}
};
if (index === 0) {
obj.children = '国土空间资源';
obj.attrs.rowSpan = 14;