smartTable icon indicating copy to clipboard operation
smartTable copied to clipboard

请教一下,怎么设置单元格宽度固定,显示不完的内容省略号表示?

Open AiFocus opened this issue 1 year ago • 1 comments

请教一下,怎么设置单元格宽度固定,显示不完的内容省略号表示?

AiFocus avatar Apr 17 '23 14:04 AiFocus

这个得你自己去实现 /** * 列构造方法 * 用于构造子列 * * @param columnName 列名 * @param fieldName 需要解析的反射字段 * @param drawFormat 绘制格式化 */ public Column(String columnName, String fieldName, IDrawFormat<T> drawFormat) { this(columnName, fieldName, null, drawFormat); } 这里的第三个参数,自己处理格子的绘制工作,可以参考com.bin.david.form.data.format.draw.MultiLineDrawFormat

zhouclcode avatar May 22 '23 01:05 zhouclcode