We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
const s2Options: S2Options = { width: 600, height: 480, style: { // 列头宽度始终和数值单元格一致 dataCell: { width: 200, height: 50, // 高度没生效 }, colCell: { width: 200, height: 50, widthByField: { // 特定维度 (如: 城市) city: 100, // 特定维值 (明细表场景下等同于配置特定维度) "root[&]province": 80, }, }, rowCell: { // 设置行高 height: 40, // 明细表每一行根据行索引单独设置 (从 0 开始) heightByField: { "0": 40, "1": 130, "3": 60, "10": 80, "15": 20, }, }, }, };
sandbox
预期应该根据高度设置的值变化,但现在并没有变化
The text was updated successfully, but these errors were encountered:
Demo 示例只是演示一下各种配置如何写, 优先级规则是 rowCell.heightByField > rowCell.height > dataCell.height (后面再完善下文档吧)
rowCell.heightByField > rowCell.height > dataCell.height
所以这里 dataCell.height 是不生效的, 你想设置明细表的行头, 直接使用 rowCell.height 就行了
dataCell.height
rowCell.height
Sorry, something went wrong.
docs: 完善自定义单元格的优先级说明和自定义绘制图标的示例 close #2736
7964a76
docs: 完善自定义单元格的优先级说明和自定义绘制图标的示例 close #2736 (#2741)
0ea1c14
lijinke666
No branches or pull requests
🏷 Version
Sheet Type
🖋 Description
⌨️ Code Snapshots
🔗 Reproduce Link
🤔 Steps to Reproduce
sandbox
😊 Expected Behavior
预期应该根据高度设置的值变化,但现在并没有变化
😅 Current Behavior
💻 System information
The text was updated successfully, but these errors were encountered: