Skip to content

feat(watermark): 添加水印组件及示例页面 - #920

Open
zjxzjw wants to merge 2154 commits into
Tencent:developfrom
zjxzjw:dev_watermark
Open

feat(watermark): 添加水印组件及示例页面#920
zjxzjw wants to merge 2154 commits into
Tencent:developfrom
zjxzjw:dev_watermark

Conversation

@zjxzjw

@zjxzjw zjxzjw commented Apr 14, 2026

Copy link
Copy Markdown
Contributor

🤔 这个 PR 的性质是?

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

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

🔗 相关 Issue

#759

💡 需求背景和解决方案

  • 新增 TWatermark 组件支持文本水印功能
  • 实现单行、多行文本水印类型
  • 提供水平、垂直、网格三种排列方式
  • 支持自定义颜色、透明度、字体大小等样式
  • 添加水印旋转和间距调整功能
  • 集成水印组件到示例应用中
  • 更新 iOS 最低版本要求至 13.0
  • 添加完整的单元测试覆盖各种使用场景

📝 更新日志

提供水印组件使用,目前为简单开发需要持续维护

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

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

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

v_szheshi and others added 30 commits June 20, 2025 17:20
- 在 TDMultiLinkedPicker 和 TDPicker 中添加 keepSameSelection 参数
- 实现了在重新选择时保留相同选项的功能
- 更新了示例页面,增加了保留下一级选项的演示
- 在 TDCalendar 组件中添加 cellWidget 参数,用于自定义日期单元格组件
- 在 TDCalendarCell 组件中增加对自定义 cell 内容的支持
- 示例页面中添加自定义日期单元格的使用示例
- 在 TdDropdownMenu 组件中添加了 openMenu 和 closeMenu 方法- 将原有的 _openMenu 方法改为异步方法,并添加了返回类型
- 保留了原有的功能和逻辑
`TDDropdownMenu`: 添加打开和关闭菜单的公共方法
…ection

`TDPicker`: 支持切换时优先保持级联的选项值
`TDTable`: 表格支持行默认选中
williamliao and others added 24 commits March 21, 2026 11:07
- 新增 TDCalendarDateType 枚举支持阳历/农历切换
- 新增 TDCalendarDataSource 接口供外部实现农历转换
- 新增 showLunarInfo 参数支持阳历模式下显示农历副标题
- 完全向后兼容,不影响现有 API
- 包含完整测试用例和示例代码

Close Tencent#717
- 修改 TDCalendar 添加 dateType, dataSource, showLunarInfo 参数
- 修改 TDCalendarBody 支持数据源并注入农历信息到 TDate
- 修改 TDCalendarCell 实现农历显示逻辑
- TDate 新增 lunarInfo 字段存储农历信息
- 完全向后兼容,默认参数保持原有行为
修正 _buildDefaultCell 方法中的类型错误,使用正确的 TDCalendarStyle 类型
…lunar-support

feat(calendar): 支持阴历、阳历类型 (Tencent#717)⁠
fixed: The capsule-shaped slider thumb is out of track range -  Tencent#755 Issue
`TDBottomTabBar`:增加安全区域占位属性
* chore: update feedback and release apk qrcode

* chore: 更新 apk 下载地址

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
fix(text): 修复Web端文字垂直居中显示问题

- 针对Web端添加特殊的高度校准逻辑,避免行高过大导致的居中偏移
- 为Web端实现独立的垂直居中算法,基于实际文字高度动态计算padding
- 调整Web端文字实际占用高度计算方式,使用fontSize的0.9倍作为基准
- 添加Flutter版本兼容性处理,不同版本使用不同的微调系数
- 将Web端paddingRate统一设为0,改由新的居中逻辑处理
- 优化代码缩进格式,统一参数对齐方式
…#900) (Tencent#905)

* fix(tab-bar): fix icon color not changing on selection (fixes Tencent#900)

In iconText and icon types, icons were rendered without applying
selection-based color. Wrap icons with IconTheme so they receive
brandNormalColor when selected and textColorPrimary when unselected,
consistent with how text color is applied.

- Add IconTheme wrapper in `icon` branch of _constructItem
- Add IconTheme wrapper in `iconText` branch of _constructItem
- Add unit tests covering TC-01 to TC-07 (selected/unselected/
  switch/regression/boundary scenarios)
- Regenerate API docs via demo_tool/all_build.sh

Made-with: Cursor

* [autofix.ci] apply automated fixes

---------

Co-authored-by: zflyluo <zflyluo@tencent.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* Revert "ci(test-build): 恢复3.x 编译测试 (Tencent#901)"

This reverts commit 792672b.

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes (attempt 2/3)

* [autofix.ci] apply automated fixes (attempt 3/3)

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* 组件前缀TD改为T

* 修改文件名前缀

* 重命名copyWithTThemeData方法

* refactor: 统一命名规范,td前缀改为t

* [autofix.ci] apply automated fixes

* fix: regenerate api md files with all_build.sh to match CI output

* fix: regenerate site README files to match CI-generated output

* fix: replace remaining TD prefixes in source code comments and generated docs

The autofix CI regenerates api md and README files from source code.
Source code comments still had TD prefixes (TDCheckbox, TDRadio, etc.)
which caused the generated docs to differ from the committed files.

* fix: remove old text._buildNormalTDText.txt after method rename

* fix: gitignore ephemeral dirs and untrack macOS generated files

These files contain machine-specific paths (FLUTTER_ROOT, etc.)
that change on every CI run, causing autofix to always detect diffs.

* [autofix.ci] apply automated fixes

---------

Co-authored-by: 阿菜 Cai <jimmyrss1102@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* ci: 清理构建生成的 txt 文件

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
- 新增 TWatermark 组件支持文本水印功能
- 实现单行、多行文本水印类型
- 提供水平、垂直、网格三种排列方式
- 支持自定义颜色、透明度、字体大小等样式
- 添加水印旋转和间距调整功能
- 集成水印组件到示例应用中
- 更新 iOS 最低版本要求至 13.0
- 添加完整的单元测试覆盖各种使用场景
@tencent-adm

Copy link
Copy Markdown
Member

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ zjxzjw
❌ autofix-ci[bot]
You have signed the CLA already but the status is still pending? Let us recheck it.

@github-actions

github-actions Bot commented Apr 14, 2026

Copy link
Copy Markdown
Contributor

完成

📱 APK 下载

tdesign-flutter-0.2.7-460.apk

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.