[AntD] The head cell of the Antd Table component is centered horizontally, and the cell is on the left:


1. Effect diagram:

insert image description here

2. Implementation code:

insert image description here
insert image description here

customHeaderCell: () => ({
    
     style: {
    
     textAlign: 'center' } }),//头部单元格水平居中

Guess you like

Origin blog.csdn.net/weixin_53791978/article/details/131725007