feat(TMessage): 补齐官方 Demo 矩阵并同步站点文档与图标间距 - #1035
Open
RSS1102 wants to merge 3 commits into
Open
Conversation
Contributor
Web DemoAPK 下载 |
Open
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
💡 需求背景和解决方案
以 TDesign 小程序 Message 官方实现为基线,对 Flutter
TMessage进行跨端对齐,补齐公开 Demo 矩阵、同步生成代码与站点文档,并修复一处像素级视觉差异。example/lib/page/t_message_page.dart):按官方分组逐一补齐并一一对应——组件类型(纯文字 / 带图标 / 带关闭 / 可滚动跑马灯 / 带按钮链接 / 组件声明式调用)、组件风格(普通 / 成功 / 警示 / 错误 4 主题)、关闭所有通知(打开多个 / 关闭所有)。example/assets/code/message.*.txt12 个片段,删除失效的message._marquee.txt,与示例页保持一致。tdesign-site/docs/components/message/README.md):示例代码与 API 表格统一为TMessage.show/TMessageVariant/TMessageLink/TMessageMarquee/showIcon/showCloseButton/onCloseButtonPressed/onLinkPressed,移除已废弃 API 写法。@spacer(8px),并同步 marquee 文本可用宽度计算(30→28)。仅内部视觉微调,未新增 / 未删除 / 未重命名任何公共 API。t_message_test.dart):覆盖图标-文本间距、纯文字无图标、多消息叠加与句柄关闭、声明式visible切换。相关 Spec:
specs/007-message-contract-alignment/。验证状态
f5ec47d3):flutter analyze --fatal-infos(Flutter 3.32.0 与 3.47.0)均 0 error / 0 warning;test/components/message/t_message_test.dart25/25 通过;lib/src/components/message/行覆盖率 98.21%(LH=220 / LF=224);codegen--check通过。91a64290(多消息示例相互覆盖修复)晚于上述记录,最终态 CI / analyze / test 重跑待确认。📝 更新日志
fix(TMessage): 图标与文本间距对齐官方规范,由 10px 调整为 8px
本条 PR 不需要纳入 Changelog
☑️ 请求合并前的自查清单
type(<scope>?): 修改描述。示例:
fix(TBottomTabBar): 修复 iconText 模式底部溢出