fastadmin table 改变某一列背景色和字体颜色

 

  {field: 'Duedate', title: __('Duedate'), valign: 'middle', operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime,
                            cellStyle: function (value, row, index) {
                                    return {css: {"background-color": "red"}};
                            }},
{field: 'Duedate', title: __('Duedate'), valign: 'middle', operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime,
                            cellStyle: function (value, row, index) {
                                    return {css: {"color": "red"}};
                            }},

 

posted on 2020-08-03 16:51  巴黎夜雨……  阅读(3834)  评论(0编辑  收藏  举报