Skip to content

TDCalendar: 支持自定义 cell 的组件 #667

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

Merged
merged 1 commit into from
Jul 7, 2025

Conversation

epoll-j
Copy link
Contributor

@epoll-j epoll-j commented Jun 30, 2025

🤔 这个 PR 的性质是?

勾选规则:
1.只要有新增参数,就勾选”新特性提交“
2.只修改内部bug,未新增参数,才勾选”日常 bug 修复“
3.其他选项视具体改动判断

  • 日常 bug 修复
  • 新特性提交
  • 文档改进
  • 演示代码改进
  • 组件样式/交互改进
  • CI/CD 改进
  • 重构
  • 代码风格优化
  • 测试用例
  • 分支合并
  • 其他

🔗 相关 Issue

#652

💡 需求背景和解决方案

新增可选参数cellWidget,可自定义日期单元样式

📝 更新日志

  • feat(calendar): 增加自定义日期单元格功能

  • 本条 PR 不需要纳入 Changelog

☑️ 请求合并前的自查清单

⚠️ 请自检并全部勾选全部选项⚠️

  • pr目标分支为develop分支,请勿直接往main分支合并
  • 标题格式为:组件类名: 修改描述(示例:TDBottomTabBar: 修复iconText模式,底部溢出2.5像素)
  • ”相关issue“处带上修复的issue链接
  • 相关文档已补充或无须补充

- 在 TDCalendar 组件中添加 cellWidget 参数,用于自定义日期单元格组件
- 在 TDCalendarCell 组件中增加对自定义 cell 内容的支持
- 示例页面中添加自定义日期单元格的使用示例
@Luozf12345
Copy link
Collaborator

flutter最新版本(3.32.5)编译成功

@Luozf12345
Copy link
Collaborator

flutter 3.16.9版本打包失败,请检查代碼。

@jflin19990707
Copy link
Collaborator

3.16版本没有编译通过,麻烦看下原因

@epoll-j
Copy link
Contributor Author

epoll-j commented Jul 4, 2025

@jflin19990707 本地排查发现是3.16.9版本用的dart sdk是3.2.6的,但是项目中依赖的image_picker 1.1.2需要3.3.0以上的版本,这个报错应该跟本次pr相关的改动没关系

The current Dart SDK version is 3.2.6.

Because tdesign_flutter depends on image_picker 1.1.2 which requires SDK version ^3.3.0, version solving failed.

You can try the following suggestion to make the pubspec resolve:
* Try using the Flutter SDK version: 3.32.5. 

@Luozf12345 Luozf12345 merged commit d3db748 into Tencent:develop Jul 7, 2025
3 of 4 checks passed
@github-actions github-actions bot mentioned this pull request Jul 9, 2025
16 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants