element table(任意td改变背景颜色cell-class-name)

 

rowClass ({ row, column, rowIndex, columnIndex }) {
  if (rowIndex === 5 && columnIndex === 4) {
    return 'rgb196'
  } else if (rowIndex === 6 && columnIndex === 4) {
    return 'bacColorf4984e'
  } else if (rowIndex === 6 && columnIndex === 5) {
    return 'bacColor317eb0'
  }
}

 

.rgb196{
  background: rgb(196,196,196);
}
.bacColor317eb0{
  background: #317eb0;
}
.bacColorf4984e{
  background: #f4984e;
}

element table(任意td改变背景颜色cell-class-name)_第1张图片

你可能感兴趣的:(element)