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

refactor: calendar-graph #699

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

orangelckc
Copy link
Contributor

重构了打卡图组件,支持自定义配置,兼容响应式,多语言配置

支持的自定义配置

  • locale: 语言,目前内置了中文/英文
  • theme:主题模式,目前内置亮色/暗色
  • formatFntooltip自定义格式化函数,(date: string, count: number) => string
  • beginDay: 可选打卡图第一行的星期,sunday / monday
  • seperate:星期是否间隔显示,支持
    • true: 间隔显示
    • false: 全部显示
    • odd:显示基数星期
    • even:显示偶数星期

@fengstats fengstats self-requested a review May 20, 2024 15:16
@orangelckc
Copy link
Contributor Author

可以在 #666 合并后,添加独立的打卡图配置项给用户

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

Successfully merging this pull request may close these issues.

2 participants