rowClassName={(record, index) => { let className = ‘odd‘; if (index % 2 === 1) className = ‘even‘; return className; }}
rowClassName:Table行的类名
record:当前行数据
index:行序号
Antd的隔行变色
原文:https://www.cnblogs.com/kosakl/p/15048084.html