breaking(tabbar): 收敛底部标签栏设计与公开契约 - #1085
Open
RSS1102 wants to merge 6 commits into
Open
Conversation
Open
Contributor
Web DemoAPK 下载 |
…abbar-design-alignment # Conflicts: # tdesign-component/example/lib/base/example_widget.dart # tdesign-component/example/test/fonts/README.md # tdesign-component/tool/component_test_manifest.dart
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
💡 需求背景和解决方案
TabBar 将内容类型、选项选中样式、容器外形和图文布局分离;公开 Demo 包含三个分组、九个四项标签栏实例及七个代码入口。
variant拆分为type/itemStyle/style/layout,useVerticalDivider更名为split;value/onChanged管理受控选择,Theme 只保存子树视觉默认值。none/linear/elastic动态切换的位置失步和中断动画跳变;Demo 状态由页面 State 持有,打开代码不会重置选择。双层级初始选中“我的”,菜单为“基本信息/个人主页/设置”。TTabBarItemWithBadge/PopRoute/PopupDialog/PopupDialogState/PanelWithDownArrow私有化;调用方应使用TTabBar与公开菜单配置组合,不依赖内部路由和绘制实现。Spec 与证据:行为契约、分轮验收记录、浅色整页、深色整页、浅色菜单展开、深色菜单展开。
本轮本地验证:Flutter 3.32.0/3.47.0 TabBar/Text/工具 67/67,Demo 5 项与实际七个核心片段编译通过,两版本严格 analyze 零问题。TabBar 覆盖率 518/531(97.55%),Text 219/222(98.65%)。Linux 3.32.0 组件明暗原基线 14/14;整页与菜单展开明暗 4/4 严格复跑,无像素容差。
设计参考:固定 Figma 节点。本轮未重跑移动设备逐像素对照或 release build;历史设备和构建证据不代替当前验证。远端 CI 与新一轮 CNB Review 以推送后的新 head 为准。
📝 更新日志
breaking(tabbar): 将
variant拆分为type、itemStyle、style与layout,将useVerticalDivider更名为split,移除 Theme 中的行为与结构选择器breaking(tabbar): 不再公开内部徽标适配项、弹层路由、弹层状态与绘制器,请使用
TTabBar和公开菜单配置组合feat(tabbar): 支持横向图文布局并完善文本、徽标、双层级与胶囊示例
fix(tabbar): 修复局部文字主题、菜单主题与面板背景覆盖以及空值主题插值问题
fix(tabbar): 修复指示器动画模式切换和连续切换时的位置跳变
本条 PR 不需要纳入 Changelog
☑️ 请求合并前的自查清单
type(<scope>?): 修改描述。示例:
fix(TBottomTabBar): 修复 iconText 模式底部溢出