vxe-table结合ElementUI单元格样式
可以根据自定义的方法,进行条件判断设置样式
//单元格样式 cellStyle(row){ console.log(row); /* if(row.columnIndex==8){ */ let days=this.getDiffDay(new Date(),row.limitedDate); if(days<=0){ return {color: "#ff007f"}; }else if(days<=3A){ return {color: "#ffaa7f"}; }
春有百花秋有月,夏有凉风冬有雪!