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

不同数字的占位不同,导致相同位数的数字显示长度不一致🤔 #2536

Closed
2 of 5 tasks
tufaofu opened this issue Feb 1, 2024 · 1 comment
Closed
2 of 5 tasks
Labels
❔question 疑问/使用问题

Comments

@tufaofu
Copy link

tufaofu commented Feb 1, 2024

🏷 Version

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

Sheet Type

  • PivotSheet
  • TableSheet
  • GridAnalysisSheet
  • StrategySheet
  • EditableSheet

🖋 Description

表格中显示的数字1和其他数字显示长度不一致,会导致位数一致的两个数字,数字1出现次数多的数字在显示上会短一点,效果如下图
image
请问这个问题有什么解决办法吗?

🔗 Reproduce Link

https://codesandbox.io/p/sandbox/blissful-cori-x96vz9?file=%2Fsrc%2Findex.js%3A24%2C20

😊 Expected Behavior

😅 Current Behavior

@tufaofu tufaofu added the ❔question 疑问/使用问题 label Feb 1, 2024
@lijinke666
Copy link
Member

lijinke666 commented Feb 1, 2024

默认的字体是 "fontFamily": "Roboto, PingFangSC, BlinkMacSystemFont, Microsoft YaHei, Arial, sans-serif"

你可以更改主题配置, 使用等宽字体 #2312 (comment)

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