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

🐛内置dark主题不生效 #2943

Closed
5 tasks
xuefeibai opened this issue Oct 25, 2024 · 1 comment
Closed
5 tasks

🐛内置dark主题不生效 #2943

xuefeibai opened this issue Oct 25, 2024 · 1 comment

Comments

@xuefeibai
Copy link

🏷 Version

官网示例中, 自定义主题https://s2.antv.antgroup.com/examples/theme/custom/#custom-generate-palette, 将代码中的colorful改为dark, 切换任何颜色, 整个表格都是白色. dark不生效

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

Sheet Type

  • PivotSheet
  • TableSheet
  • GridAnalysisSheet
  • StrategySheet
  • EditableSheet

🖋 Description

⌨️ Code Snapshots

🔗 Reproduce Link

🤔 Steps to Reproduce

😊 Expected Behavior

😅 Current Behavior

💻 System information

Environment Info
System
Browser
@lijinke666
Copy link
Member

暗黑主题下, 不支持自定义 palette 色板, 仅声明 name 即可.

image

   <SheetComponent
      dataCfg={dataCfg}
      options={s2Options}
      themeCfg={{ name: 'dark' }}
    />

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants