-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Closed
Description
- I have searched the issues of this repository and believe that this is not a duplicate.
Version
3.2.12
Environment
vue 3.2.21
Reproduction link
https://www.antdv.com/components/table-cn/#components-table-demo-colspan-rowspan
Steps to reproduce
代码片段:
{
title: '住址',
dataIndex: 'address',
key: 'address',
width: 150,
//colSpan: 2,
resizable: true,
customCell: (record, rowIndex, column) => {
return hyperTableCustomCell(record, rowIndex, column);
},
customHeaderCell: (columns) => {
return {
colSpan:2
}
},
}
What is expected?
在customHeaderCell属性中直接返回colSpan:2,按理来说应该和customCell中一样,可以生效。
What is actually happening?
在customHeaderCell属性中直接返回colSpan:2 表格head并没有合并单元格,只能在column属性中添加colSpan:2才生效。