miniui 渲染单元格样式

grid.on("drawcell", function(res){
        var record = res.record;
        var field = res.field;
        var value = res.value;
        if (field == "checkquantity" && Number(record.deliveryquantity) != Number(record.checkquantity)){
            res.cellStyle = "color: red;";
        }
    });

 

posted @ 2018-06-14 11:54  筱小Q  阅读(667)  评论(0编辑  收藏  举报