Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(excel): 添加自适应列宽处理器并替换默认列宽策略 #196

Open
wants to merge 4 commits into
base: master-jdk17
Choose a base branch
from

Conversation

huangmingsir
Copy link

  • 新增 ColumnWidthMatchStyleStrategy 类实现自适应列宽功能。增加了日期类型数据的自适应支持
  • 在 ExcelUtils 类中使用新的列宽处理器替换原有的 LongestMatchColumnWidthStyleStrategy
  • LongestMatchColumnWidthStyleStrategy默认的自适应宽度效果如下(列宽偏小+不支持日期类型)
    ​​​​
    Uploading 1733363085909.png…

hmb added 4 commits November 26, 2024 18:38
- 针对执行结果为 null 的情况增加了日志记录
- 为了避免 ConcurrentHashMap put空指针异常,将 result 设置为空字符串
- 新增 ColumnWidthMatchStyleStrategy 类实现自适应列宽功能
- 在 ExcelUtils 类中使用新的列宽处理器替换原有的 LongestMatchColumnWidthStyleStrategy
@YunaiV
Copy link
Owner

YunaiV commented Dec 7, 2024

收到!我研究下!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants