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

🙏希望能支持自适应列宽和列高 #1114

Closed
daisy0123 opened this issue Feb 21, 2022 · 7 comments
Closed

🙏希望能支持自适应列宽和列高 #1114

daisy0123 opened this issue Feb 21, 2022 · 7 comments
Assignees
Labels
🙏feature request 新需求支持 💤 inactive 不活跃的 Issue 或 PR, 30天没有回复 ✨ supported or fixed in 2.x 在 2.x 版本中,已支持该需求,或 bug 已修复 ⭐️ Welcom PR 需求合理, 但是优先级特别低, 近期不会开发, 欢迎社区共建, 提交PR

Comments

@daisy0123
Copy link

🖋 Description

希望能支持自适应列宽和列高,当前单元格数据比较长,希望可以能以当前列的数据的最大宽度作为列宽,另外单元格支持换行,不希望...折叠了

🏞 What problem does this feature solve

🧐 Suggest the API

name type default description
- - - -
@86XIng
Copy link

86XIng commented Apr 19, 2022

+1 求支持🙏
旧版@antv/g文本不支持自动换行,新版已经支持了
升级一下g-canvas,每个单元格应用宽度和样式后new Rectrect.getBBox()获得height,把每行的maxHeight增量到 rowCfg - heightByField 里,不知道是否可行,还得考虑到虚拟渲染

@qubaomingg qubaomingg assigned xingwanying and unassigned lcx-seima and wjgogogo May 16, 2022
@xingwanying
Copy link
Member

+1 求支持🙏 旧版@antv/g文本不支持自动换行,新版已经支持了 升级一下g-canvas,每个单元格应用宽度和样式后new Rectrect.getBBox()获得height,把每行的maxHeight增量到 rowCfg - heightByField 里,不知道是否可行,还得考虑到虚拟渲染

升级进行中,尽情期待

@xingwanying xingwanying added the ⭐️ Welcom PR 需求合理, 但是优先级特别低, 近期不会开发, 欢迎社区共建, 提交PR label May 16, 2022
@github-actions github-actions bot added the 💤 inactive 不活跃的 Issue 或 PR, 30天没有回复 label Jun 16, 2022
@lshunran
Copy link

+1 求支持🙏
@xingwanying 请问下目前有计划排期开发么~

@geek-lu
Copy link

geek-lu commented Aug 23, 2022

+1

@lijinke666
Copy link
Member

lijinke666 commented Nov 1, 2023

希望可以能以当前列的数据的最大宽度作为列宽

目前 latest 版本已经支持, 设置为紧凑模式后, 列头会根据数值单元格对应文字的宽度 (采样前50列) 取值, see #2392

文档有点欠缺, 近期补充.

  const s2Options = {
    width: 400,
    height: 480,
    style: {
      layoutWidthType: 'compact',
    },
  };

image

自适应列高, 单元格支持换行

多行文本开发中, 2.0 版本支持 #2383

@lijinke666
Copy link
Member

#1564

@lijinke666 lijinke666 added the ✨ supported or fixed in 2.x 在 2.x 版本中,已支持该需求,或 bug 已修复 label Nov 1, 2023
@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
🙏feature request 新需求支持 💤 inactive 不活跃的 Issue 或 PR, 30天没有回复 ✨ supported or fixed in 2.x 在 2.x 版本中,已支持该需求,或 bug 已修复 ⭐️ Welcom PR 需求合理, 但是优先级特别低, 近期不会开发, 欢迎社区共建, 提交PR
Projects
None yet
Development

No branches or pull requests

8 participants