Repository navigation
docs(migration): 精简迁移说明并统一组件对照布局 - #1210
Merged
Merged
Conversation
This was referenced Oct 26, 2026
RSS1102
force-pushed
the
docs/migration-guide-layout
branch
from
October 26, 2026 15:12
89ce1c7 to
ac11c2b
Compare
Contributor
Web DemoAPK 下载 |
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
来源:从 #1202 拆分,按要求优先处理。无关联 Issue。
本 PR 直接基于 develop
920babc9,不依赖 #1202 或 #1208,可独立审查和合并。#1202 的主题与通用导航问题继续单独处理。💡 需求背景和解决方案
迁移说明存在重复入口、组件信息难以对照及折叠表格样式缺失。本 PR 整理文档及其必要展示:
正文源:
tdesign-site/site/docs/migration-0.2.7-to-1.0.md;示例源:tdesign-component/example/lib/migration_examples.dart,独立验证:test/migration_consumer/;包内副本由同步脚本生成。Spec:文档体验。没有更改站点依赖、主题初始化、路由或导航模块,也没有新增 Spec 图片。迁移消费验证项目属于仓库开发基础设施,目录去除 fixtures 中间层,包名统一为 tdesign_migration_consumer。验证项目在
test/migration_consumer/,专用运行器在同目录run.dart,从自身位置定位仓库,只复制验证输入,支持从仓库外直接运行。文档生成器、测试、GitHub 路径过滤及 GitHub/CNB 共用工具入口同步更新;正文和包内副本逐字节不变。测试按用途拆分:Example 的
lib/migration_examples.dart是指南唯一示例源,文档生成器直接读取,独立消费者在运行时复制同一文件,不维护副本;lib/public_api_examples.dart承载由静态分析检查的公开签名/参数替代示例;运行时只保留 12 项指南交互组合和 4 项 Theme 链/TabBar/Popover/Popup 的独立消费契约。4 项构造类检查改用静态分析,Text/Avatar/Tag 的 3 项重复样式及 1 项仅挂载用例复用既有组件/Demo 回归,运行时用例由 24 项收敛为 16 项。维护与测试边界。仓库级测试集中在根目录
test/:脚本测试在test/scripts/,独立消费者在test/migration_consumer/;迁移专用运行器与测试项目放在同一目录(test/migration_consumer/run.dart),scripts/保留通用运行和生成脚本。共用自动化入口及 CI 路径过滤已同步。测试目录说明。已补齐共享 Golden 字体的“概”(U+6982),同步字符清单并使用原 Noto Sans SC 2.004 / HarfBuzz 11.4.5 重新生成。既有 1182 个码点的轮廓、横纵度量和全局度量保持一致,未修改 Golden 图片。双版本完整 Dart 工具测试各 179/179、7 项脚本测试及文档同步通过。
远端最终验证:提交 bafca4e 的全部检查完成,30 项成功、1 项按条件跳过(同步删除分支);双版本分析、组件/示例/工具测试、Linux Golden、Android/iOS/Web 构建均通过。主验证流水线:https://github.com/Tencent/tdesign-flutter/actions/runs/40375886822 。未合并 PR。
验证:
边界:未部署,未运行完整组件/Golden/设备矩阵;不强行适配手机侧栏和页头,也不声称修复现有站点的历史恢复或通用异步导航。最终远端 CI 按本 PR 新 head 核对。
📝 更新日志
本次为文档与配套验证整理,不改变组件库公开 API 或默认行为。
☑️ 请求合并前的自查清单
type(<scope>?): 修改描述。示例:
fix(TBottomTabBar): 修复 iconText 模式底部溢出