在columns列表里面添加onCell属性具体如下:
onCell: (record, index, text) => {
// 判断内容修改单元格背景色
if (text === 1) {
return {
style: {
background: '#E9EBEF ',
},
}
}
}