antd 表格隔行变色

rowClassName={(record, index) => {
                        let className = 'light-row';
                        if (index % 2 === 1) className = 'dark-row';
                        return className;
                    }}

 

posted @ 2019-08-07 16:56  ThisCall  阅读(3321)  评论(0编辑  收藏  举报