element 使用:cell-style改变行背景颜色

 
cellStyle({ row, rowIndex }) {
  if (row.signUser == 'undefined' || !row.signUser) {
    return
  }
  if (row.signUser.name == '紧急') {
    return 'background-color:#f5cdcd;'
  } else {
    return ''
  }
},

你可能感兴趣的:(element 使用:cell-style改变行背景颜色)