Ant Design 表格tr行添加背景色
.clickRowStyle{background-color:#ecf6fd;} //高亮 setRowClassName(record){ if(record.orderCode == null || record.warehouseCode == null || record.operateTime == null){ return 'clickRowStyle' } } <Table components={this.components} columns={columns} dataSource={this.state.tData} scroll={{ x:2100,y:400}} pagination={this.state.pagination} onChange={this.handleTableChange} rowClassName={this.setRowClassName} //高亮 />
扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄

更多精彩