antvis / S2

⚡️ A practical visualization library for tabular analysis.

Home Page:https://s2.antv.antgroup.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🐛官方文档 S2升级指南中自定义宽高配置调整的示例代码书写错误

Miaodashu opened this issue · comments

🏷 Version

Package Version
@antv/s2 2.0.0-next.15
@antv/s2-react -
@antv/s2-vue -

Sheet Type

  • PivotSheet
  • TableSheet
  • GridAnalysisSheet
  • StrategySheet
  • EditableSheet

🖋 Description

官方文档 S2升级指南中关于自定义宽高配置调整的示例代码书写错误

⌨️ Code Snapshots

🔗 Reproduce Link

(https://s2.antv.antgroup.com/manual/migration-v2#-%E4%B8%8D%E5%85%BC%E5%AE%B9%E7%9A%84%E5%8F%98%E5%8C%96)

🤔 Steps to Reproduce

bug2

😊 Expected Behavior

const s2Options = {
  style: {
        -   rowCfg: {},
        -   colCfg: {},
        -   cellCfg: {},
        
        +   rowCell: {},
        +   colCell: {},
        +   dataCell: {},
  }
}

😅 Current Behavior

const s2Options = {
  style: {
        -   rowCfg: {},
        -   colCfg: {},
        -   cellCfg: {},
        
        +   rowCell: {},
        +   colCell: {},
        +   cellCell: {},
  }
}

💻 System information

Environment Info
System macos Big Sur 11.6 (arm64)
Browser chrome: v96.0.4664.55

感谢反馈, 文档已更新.