breaking(TSideBar): 收敛侧边栏设计与公开契约 - #1083
Open
RSS1102 wants to merge 1 commit into
Open
Conversation
Open
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
关联 #1027 中“导航 / SideBar 侧边栏”组件任务。
💡 需求背景和解决方案
现有 SideBar 的结构样式和高度同时由实例与 Theme 提供,默认宽度及公开 Demo 的数据、Badge、内容布局与当前移动端设计不一致。
TSideBarVariant收敛为line/tag,style为非空实例结构状态;新增默认 103 的width,height继续由实例持有。TSideBarThemeData移除style/height;Theme 只保留颜色、文字样式和内边距,解析优先级为实例 > Theme > TDesign Token。本地验证:组件 43/43、Demo 8/8;生产覆盖率 232/232 = 100%;Flutter 3.32 Linux 的入口、锚点、tag 共 6 个 light/dark 严格 Golden 更新后无更新参数复跑通过并逐张核对;Flutter 3.32.0 / 3.47.0 analyze 零诊断,功能测试及 Web/Android 构建通过;Android 16 真机完成 uppercase Hot Restart、四条可见操作、integration 1/1、普通 APK 安装
Success与冷启动。📝 更新日志
breaking(TSideBar): 结构样式重命名为
line/tag,并移除 Theme 中的style与height状态入口breaking(TSideBar): 默认宽度调整为 103,并新增实例
width覆盖入口fix(TSideBar): 公开 Demo 补齐 10 项纵向图文、Badge、锚点、禁用、图标与 tag 操作状态
本条 PR 不需要纳入 Changelog
☑️ 请求合并前的自查清单
type(<scope>?): 修改描述。示例:
fix(TBottomTabBar): 修复 iconText 模式底部溢出