2.1K Star 9.1K Fork 2.7K

悟耘开源 / easypoi

 / 详情

使用2层@ExcelCollection时,第2层中width无效

待办的
任务
创建于  
2021-07-30 01:12
public class DeptNicheVo implements Serializable {
    @Excel(width = 30, needMerge = true, name = "部门")
    private String deptName;
    @ExcelCollection(name = "")
    private List<UserNicheVo> userNicheVos;
}

public class UserNicheVo implements Serializable {
    @Excel(name = "姓名" ,width = 20, needMerge = true)
    private String userName;
    @Excel(name = "商机数" ,width = 20, needMerge = true)
    private String nicheNum;
    @ExcelCollection(name = "")
    private List<NicheNameVo> nicheNameVos;
}

public class NicheNameVo implements Serializable {
    @Excel(name = "一个月更新", width = 40)
    private String oneMonthUpdateNicheName;
    @Excel(name = "一个月未更新", width = 40)
    private String oneMonthNotUpdateNicheName;
    @Excel(name = "三个月未更新", width = 40)
    private String threeMonthNotUpdateNicheName;
    @Excel(name = "六个月未更新", width = 40)
    private String sixMonthNotUpdateNicheName;
}

NicheNameVo中width无效

评论 (4)

sdsdf 创建了任务
sdsdf 关联仓库设置为悟耘开源/easypoi
sdsdf 修改了描述
sdsdf 修改了标题
展开全部操作日志

isColumnHidden 同样会失效

这个问题你解决了吗

请问现在最新版本解决此问题了吗?

现在最新版4.4.0似乎还没解决这个问题

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(5)
7563132 anmiho 1622425377
Java
1
https://gitee.com/lemur/easypoi.git
git@gitee.com:lemur/easypoi.git
lemur
easypoi
easypoi

搜索帮助