S2 icon indicating copy to clipboard operation
S2 copied to clipboard

🐛紧凑模式,手动拖拽减小列宽,字体直接溢出

Open Azhi-ux opened this issue 1 year ago • 2 comments

🏷 Version

Package Version
@antv/s2 next27
@antv/s2-react
@antv/s2-vue

Sheet Type

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

🖋 Description

image

⌨️ Code Snapshots

🔗 Reproduce Link

https://s2.antv.antgroup.com/examples/layout/basic/#compact

🤔 Steps to Reproduce

😊 Expected Behavior

😅 Current Behavior

💻 System information

Environment Info
System mac
Browser chrome

Azhi-ux avatar Sep 14 '24 09:09 Azhi-ux

@lijinke666 大佬帮看下

Azhi-ux avatar Sep 14 '24 09:09 Azhi-ux

可以尝试来个 PR, 精力有限, 近期没时间修复.

lijinke666 avatar Sep 24 '24 11:09 lijinke666

@antv/s2^2.0.0-next.30 中升级了 G 的底层依赖, 应该不会出现字体溢出的问题了, 可以试试更新到最新版本 (官网还未部署)

image

另外调整了最小可调整宽高的默认值, 如有特殊需求, 可自定义, 避免单元格被调整到一个极小不合理的宽度

const s2Options = {
  interaction: {
    resize: {
      minCellWidth: 40,
	  minCellHeight: 20
	}
  }
}

lijinke666 avatar Oct 30 '24 07:10 lijinke666