feat(watermark): 添加水印组件及示例页面 - #920
Open
zjxzjw wants to merge 2154 commits into
Open
Conversation
- 在 TDMultiLinkedPicker 和 TDPicker 中添加 keepSameSelection 参数 - 实现了在重新选择时保留相同选项的功能 - 更新了示例页面,增加了保留下一级选项的演示
- 在 TDCalendar 组件中添加 cellWidget 参数,用于自定义日期单元格组件 - 在 TDCalendarCell 组件中增加对自定义 cell 内容的支持 - 示例页面中添加自定义日期单元格的使用示例
- 在 TdDropdownMenu 组件中添加了 openMenu 和 closeMenu 方法- 将原有的 _openMenu 方法改为异步方法,并添加了返回类型 - 保留了原有的功能和逻辑
`TDDropdownMenu`: 添加打开和关闭菜单的公共方法
…ection `TDPicker`: 支持切换时优先保持级联的选项值
`TDTable`: 表格支持行默认选中
- 新增 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 - 添加完整的单元测试覆盖各种使用场景
Member
|
|
Contributor
📱 APK 下载 |
# Conflicts: # tdesign-site/src/watermark/README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

🤔 这个 PR 的性质是?
🔗 相关 Issue
#759
💡 需求背景和解决方案
📝 更新日志
提供水印组件使用,目前为简单开发需要持续维护
☑️ 请求合并前的自查清单
组件类名: 修改描述(示例:TBottomTabBar: 修复iconText模式,底部溢出2.5像素)