
## 多表头设置

- `colspan`: 横向合并单元格的数量
- `rowspan`: 纵向合并单元格的数量


```javascript
this.columns = [
    [
        {title: '基本信息', colspan: 5, halign: 'center'},
        { field: 'addr', width: 170, title: '地址', halign: 'center', rowspan: 3 },
        { title: '工作信息', colspan: 3, halign: 'center'}
    ],
    [
        { field: 'id', width: 100, title: 'ID', rowspan: 2, footer: {
            options: { text: '合计'},
            formatter: (v, d, i) => {
                return `<b>${v}</b>`;
            }
        } },
        { field: 'name', width: 130, title: '姓名', rowspan: 2, footer: {
            options: { calculationType: CalculationType.count},
            formatter: (v, d, i) => {
                return `<b>共 ${v} 条</b>`;
            }
        }},
        { title: '自身问题', colspan: 3, halign: 'center'},
        { field: 'company', width: 100, title: '公司', rowspan: 2},
        { field: 'nianxin', width: 70, title: '年薪', rowspan: 2 , footer: {
            options: { calculationType: CalculationType.sum},
            formatter: { type: 'number', options: { prefix: '￥', suffix: '元', precision: 2 }}
        }},
        { field: 'zhiwei', width: 100, title: '职位', rowspan: 2 }
    ],
    [
        { field: 'sex', width: 70, title: '性别' },
        { field: 'birthday', width: 120, title: '出生日期'},
        { field: 'maray', width: 70, title: '婚否'}
    ]
];
```