rowClassName={(record, index) => { let className = ‘odd‘; if (index % 2 === 1) className = ‘even‘; return className; }}
rowClassName:Table行的类名
record:当前行数据
index:行序号
2023-12-30 08:18:10
rowClassName={(record, index) => { let className = ‘odd‘; if (index % 2 === 1) className = ‘even‘; return className; }}
rowClassName:Table行的类名
record:当前行数据
index:行序号