通过rowClassName属性
<ProTable
columns={tableColumnList}
actionRef={tableRef}
request={onLoadDtl}
rowKey={'id'}
height={'full'}
search={false}
manualRequest={false}
toolBarRender={() => [...tableTools]}
options={{
reload: true,
fullScreen: true,
density: true,
}}
rowClassName={(record) => {
if(record.status == '200'){
return 'success-status';
}
return ''
}}
/>
样式文件
.success-status {
td {
color: #66d116 !important;
}
}