效果:
代码:
{field: 'content', title: __('文件内容'),标签:index,省略号,value,field,内容,fastAdmin,row From: https://www.cnblogs.com/youantianqin/p/17762350.html
formatter : function(value, row, index, field){
return "<span style='display: block;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;' title='" + row.content + "'>" + value + "</span>";
},
cellStyle : function(value, row, index, field){
return {
css: {
"white-space": "nowrap",
"text-overflow": "ellipsis",
"overflow": "hidden",
"max-width":"150px"
}
};
}},