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

换行符渲染 #1735

Closed
zhuweileo opened this issue May 20, 2024 · 6 comments
Closed

换行符渲染 #1735

zhuweileo opened this issue May 20, 2024 · 6 comments
Assignees

Comments

@zhuweileo
Copy link

当表格内容中存在换行符时,会渲染成一个空格
image

@Rui-Sun
Copy link
Contributor

Rui-Sun commented May 20, 2024

option.enableLineBreak: true可以开启解析换行符

@zhuweileo
Copy link
Author

@Rui-Sun 我尝试在0.25.2 和 0.25.7 版本上使用这个属性,开启之后渲染效果变成了下面这样
image

这里是我的代码
image

@zhuweileo
Copy link
Author

@Rui-Sun 是高通的孙瑞么?

@Rui-Sun
Copy link
Contributor

Rui-Sun commented May 20, 2024

@Rui-Sun 我尝试在0.25.2 和 0.25.7 版本上使用这个属性,开启之后渲染效果变成了下面这样 image

这里是我的代码 image

这里的行高是默认值,显示不下两行,自动省略;可以配置heightMode:'autoHeight' 开启自动行高

@zhuweileo
Copy link
Author

同时设置option.enableLineBreak: true,option.heightMode:'autoHeight' 达到了想要的效果。
非常酷的开源项目!

@fangsmile
Copy link
Contributor

@Rui-Sun 写一个FAQ吧

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

3 participants