列宽拖动长内容自适应显示

master
RuoYi 2024-12-07 14:19:06 +08:00
parent 39ebc000f0
commit 1aa973d300
2 changed files with 11 additions and 2 deletions

View File

@ -38,7 +38,16 @@
},
{
field : 'userName',
title : '用户姓名'
title : '用户姓名',
cellStyle: function (value, row, index) {
return { css: { "min-width": "100px", "white-space": "nowrap", "text-overflow": "ellipsis", "overflow": "hidden", "max-width": "200px" } }
},
formatter: function(value, row, index) {
if (index == 0) {
value = value + ",测试用户姓名,这是一条长文本,可以通过拖拽自适应内容显示。。。。";
}
return $.table.tooltip(value, 30, "open");
}
},
{
field : 'userPhone',

View File

@ -83,7 +83,7 @@ public @interface Excel
*/
public String prompt() default "";
/**
/**
*
*/
public boolean wrapText() default false;