S2
S2 copied to clipboard
🐛修改 themeCfg 主题配置 S2 表头对齐UI问题
🏷 Version
Package | Version |
---|---|
@antv/s2 | |
@antv/s2-react | 1.18.0 |
@antv/s2-vue |
Sheet Type
- [ ] PivotSheet
- [x] TableSheet
- [ ] GridAnalysisSheet
- [ ] StrategySheet
🖋 Description
⌨️ Code Snapshots
const theme = { theme: { colCell: { cell: { backgroundColor: "#fff", verticalBorderColor: "#d3d3d3", verticalBorderWidth: 1, horizontalBorderWidth: 3, horizontalBorderColor: "#1d2328", }, }, }, };
<SheetComponent themeCfg={theme} />


🔗 Reproduce Link
🤔 Steps to Reproduce
😊 Expected Behavior
😅 Current Behavior
💻 System information
你好 @wukai7777777,很抱歉给你带来了不好的体验, 我们会尽快排查问题并修复, 请关注后续发布日志.
Hello, @wukai7777777, We are so sorry for the bad experience. We will troubleshoot and fix the problem as soon as possible. Please pay attention to the follow-up change logs.
这个边框没对齐是底层设计问题, 在目前开发的 2.0 新版本中已经解决了, 改动较大, 目前的 1.x 版本只能暂时保持现状了 https://github.com/antvis/S2/issues/2153
这个问题我们也有,能不能先出一个临时方案解决,或者通过调用哪些方法能够手动对齐下。
ref: https://github.com/antvis/S2/pull/1854, 可试用 2.0 版本