- 注册时间
- 2017-9-29
- 最后登录
- 2023-6-18
- 阅读权限
- 10
- 积分
- 53
- 精华
- 0
- 帖子
- 11
|
function onIntRateRenderer(e){
let record = e.record;
let uid = record._uid;
let rowIndex = e.rowIndex;
console.log(record);
//<div property="editor" class="mini-progressbar" style="width:100%;" minWidth="200" value="40"></div>
let s = '<div class="mini-progressbar" value="40" style="width:100%;">11</div>';
return s;
}
grid.on("drawcell", function (e) {
var record = e.record,
column = e.column,
field = e.field,
value = e.value;
if (column.name == "intRate") {
e.cellStyle = "text-align:center";
let s = '<div class="mini-progressbar" value="40" style="width:100%;">11</div>';
e.cellHtml = '<div class="mini-progressbar" value="40" style="width:100%;">11</div>';
}
})试了这两个方法都不行
|
|