此环境就是js,没用vue react

展示:

 
//在cellRenderer回调里可以嵌入自己对某标签得操作
cellRenderer: (params) => {
    if (colDef.headerName=='剧目名称'&&this.data.parentTableId== "8174_vZhJu4jY8yfZpVTjkmsrhF"&&this.data.total>0) {
    if (myValue&&myValue=='三个和尚') {
        color = 'rgba(255,0,0,0.5)';
    }
    else {
        color='rgba(0,128,0,0.5)'
    }
    bgStyle = ' style = "display: block;padding: 0 8px;height: 100%;color:#fff;background:' + color + ';text-align:' + textAline + ';"';
    sHtml = '<span' + bgStyle + '>' + params.value + '</span>';
   }
   return sHtml 
}

 

Logo

前往低代码交流专区

更多推荐