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

🤔列头能换行吗?不要省略号 #2874

Closed
4 tasks
stone1314 opened this issue Aug 23, 2024 · 4 comments
Closed
4 tasks

🤔列头能换行吗?不要省略号 #2874

stone1314 opened this issue Aug 23, 2024 · 4 comments
Assignees
Labels
❔question 疑问/使用问题

Comments

@stone1314
Copy link

🏷 Version

Package Version
@antv/s2 1.30.0
@antv/s2-react 1.27.0
@antv/s2-vue

Sheet Type

  • PivotSheet
  • TableSheet
  • GridAnalysisSheet
  • [ 1] StrategySheet
  • EditableSheet

🖋 Description

🔗 Reproduce Link

😊 Expected Behavior

😅 Current Behavior

如题,列头的内容太多,想要直接展示,不想省略,有办法吗?

@stone1314 stone1314 added the ❔question 疑问/使用问题 label Aug 23, 2024
@stone1314
Copy link
Author

20240823-141753

想让它换行显示,可以吗?或者 我在内容上加上特殊字符,重新,进行换行?谢谢!

@stone1314
Copy link
Author

stone1314 commented Aug 23, 2024

@antv/s2-react 里面 s2Options添加方法colCell: (node, s2, headConfig) => {
console.log(11);
return new CustomColCell(node, s2, headConfig);
},log 是打印不出来的吗?也没效果

@lijinke666
Copy link
Member

如题,列头的内容太多,想要直接展示,不想省略,有办法吗?

不支持

@antv/s2-react 里面 s2Options添加方法colCell: (node, s2, headConfig) => {
console.log(11);
return new CustomColCell(node, s2, headConfig);
},log 是打印不出来的吗?也没效果

趋势分析表是一个特殊的场景表, 列头本身就已经是一个自定义单元格了, 不能二次自定义, 所以不会调用

@lijinke666 lijinke666 self-assigned this Aug 23, 2024
@stone1314
Copy link
Author

可以用 \n 实现换行
"$$extra_column$$": "["111数\n值111111111","环比","同比"]"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
❔question 疑问/使用问题
Projects
None yet
Development

No branches or pull requests

2 participants