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

🤔 请问如何让列头文字换行 #2059

Closed
1 of 5 tasks
kilik52 opened this issue Jan 28, 2023 · 7 comments
Closed
1 of 5 tasks

🤔 请问如何让列头文字换行 #2059

kilik52 opened this issue Jan 28, 2023 · 7 comments
Labels
💤 inactive 不活跃的 Issue 或 PR, 30天没有回复 ❔question 疑问/使用问题 ✨ supported or fixed in 2.x 在 2.x 版本中,已支持该需求,或 bug 已修复

Comments

@kilik52
Copy link

kilik52 commented Jan 28, 2023

🏷 Version

Package Version
@antv/s2 1.19.0
@antv/s2-react 1.17.0

Sheet Type

  • PivotSheet
  • TableSheet
  • GridAnalysisSheet
  • StrategySheet
  • EditableSheet

🖋 Description

截屏2023-01-28 12 37 51

如上图所示,列头文字比较多,在移动端的话,显示不了几个字。
想以多行显示,请问如何做到?

🔗 Reproduce Link

😊 Expected Behavior

列头能多行显示文本

😅 Current Behavior

@kilik52 kilik52 added the ❔question 疑问/使用问题 label Jan 28, 2023
@github-actions
Copy link
Contributor

你要找的是不是 (You may look for issues):

  1. 85% 🤔 #1881

@wangwufan
Copy link

我也有这个诉求

@lijinke666
Copy link
Member

目前不支持换行, 新版在开发中, 会内置换行能力

如急需换行, 需要分词, 自行计算文字宽度和坐标, 进行文字的绘制, 可参考 corner cell 的逻辑

if (!isEmpty(secondLine)) {

@lijinke666 lijinke666 added the ✨ supported or fixed in 2.x 在 2.x 版本中,已支持该需求,或 bug 已修复 label Feb 3, 2023
@github-actions github-actions bot added the 💤 inactive 不活跃的 Issue 或 PR, 30天没有回复 label Mar 16, 2023
@KuduroJS
Copy link

目前不支持换行, 新版在开发中, 会内置换行能力

如急需换行, 需要分词, 自行计算文字宽度和坐标, 进行文字的绘制, 可参考 corner cell 的逻辑

if (!isEmpty(secondLine)) {

可以透露一下大概的新版时间吗

@ArleneShine
Copy link

目前不支持换行, 新版在开发中, 会内置换行能力
如急需换行, 需要分词, 自行计算文字宽度和坐标, 进行文字的绘制, 可参考 corner cell 的逻辑

if (!isEmpty(secondLine)) {

可以透露一下大概的新版时间吗

同问新版发布时间

@lijinke666
Copy link
Member

多行文本 2.0 版本支持 #2383, 发布时间待定, 预计年底

@lijinke666
Copy link
Member

resolved #2383

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💤 inactive 不活跃的 Issue 或 PR, 30天没有回复 ❔question 疑问/使用问题 ✨ supported or fixed in 2.x 在 2.x 版本中,已支持该需求,或 bug 已修复
Projects
None yet
Development

No branches or pull requests

5 participants