refactor(example): 重组全组件 Demo 并映射 Web 文档 - #1142
Merged
Merged
Conversation
Contributor
Web DemoAPK 下载 |
RSS1102
marked this pull request as draft
September 19, 2026 20:05
RSS1102
marked this pull request as ready for review
September 19, 2026 20:43
RSS1102
marked this pull request as draft
September 20, 2026 01:58
RSS1102
marked this pull request as ready for review
September 20, 2026 05:26
Member
|
|
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
无关联 Issue;本 PR 延续 #1139 的 Demo 结构整理。
💡 需求背景和解决方案
原有 Example 页面同时承担页面入口、示例元数据、状态和具体实现;Web 组件文档又保存手写 Dart 副本,容易与实际运行 Demo 分叉。
本 PR 完成:
example/lib/page/<component>/,形成 60 个<component>_page.dart入口;ExampleModule分组、完整ExampleItem元数据与顺序,不保留只承载分组的模块文件;ExampleItem各自迁入一个语义化独立文件;运行 Demo 与可复制代码引用同一个 Widget,状态、Controller、局部数据、helper 和生命周期归属对应示例;includes合并,不由解析器猜测隐藏依赖;flutter-example-group文档指令,Web 按公开分组、描述和顺序展开生成资产;缺失清单、非法映射或未注册资产直接失败,不再回退到目录扫描;设计与验收记录:
specs/045-example-code-web-mapping。本 PR 不修改组件公开 API、默认行为或视觉结果,不属于 breaking change。
本地验证结果:
flutter analyze均通过,0 issues;--check通过,严格生成器测试 11/11;npm run site生产构建通过,108 modules transformed;📝 更新日志
无
本条 PR 不需要纳入 Changelog
☑️ 请求合并前的自查清单
type(<scope>?): 修改描述。示例:
fix(TBottomTabBar): 修复 iconText 模式底部溢出