列宽拖动长内容自适应显示
parent
39ebc000f0
commit
1aa973d300
|
@ -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',
|
||||
|
|
|
@ -83,7 +83,7 @@ public @interface Excel
|
|||
*/
|
||||
public String prompt() default "";
|
||||
|
||||
/**
|
||||
/**
|
||||
* 是否允许内容换行
|
||||
*/
|
||||
public boolean wrapText() default false;
|
||||
|
|
Loading…
Reference in New Issue