1、使用的单元格属性cellStyle

  1. column:[
  2. {
  3. field: \'birthday\',
  4. title: \'生日\',
  5. align: \'center\',
  6. cellStyle: columnColorFunction
  7. }
  8. ]
  1. function columnColorFunction (value, row, index) {
  2. if (value == "1999-02-11") {
  3.      //字体颜色
  4. return {css:{\'color\':\'#ed5565\'}};
  5. } else {
  6.           //背景颜色
  7. return {css:{\'background-color\':\'#ed5565\'}};;
  8. }
  9. }

 

版权声明:本文为wongzzh原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/wongzzh/p/15102719.html