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

抱歉,想问一下,html模板导出excel ,列中的值字段换行问题 #361

Closed
zhenghuanqi opened this issue Mar 30, 2022 · 4 comments

Comments

@zhenghuanqi
Copy link

Bug描述
描述Bug产生的现象(A clear and concise description of what the bug is.)
在html中使用
标签 ,和 style="word-break: break-all;“ 格式, 导出到excel中确实可以换行,但是
第二行开始出会空出一个字符,即第一行和第二行没有对齐
Bug复现
按如下步骤复现(Steps to reproduce the behavior):

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

期望的结果
期望的结果是什么(A clear and concise description of what you expected to happen.)
换行后,各行可以对齐。

@liaochong
Copy link
Owner

liaochong commented Mar 30, 2022 via email

@zhenghuanqi
Copy link
Author

你好,麻烦了,还有最后一个问题,我是用 DefaultStreamExcelBuilder 类 分段输出到模板,但是每段都有title行输出到excel中。怎样设置使title只出现excel的第一行。

@liaochong
Copy link
Owner

liaochong commented Mar 30, 2022 via email

@zhenghuanqi
Copy link
Author

标题是模板里面的,我想到方法了,我在外面添加了一个变量,在模板里面判断如果不是第一组添加,就不渲染,现在还有一个问题就是, excel里面某列自动换行了,但是高度没有自适应,有办法解决么,大神?

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

No branches or pull requests

2 participants