feat(TCascader): 对齐级联面板与公开示例 - #1060
Open
RSS1102 wants to merge 9 commits into
Open
Conversation
Contributor
Web DemoAPK 下载 |
Open
…ader-demo-alignment # Conflicts: # .cnb/.reusable-stages.yml # .github/workflows/test-build.yml # tdesign-component/example/test/fonts/README.md # tdesign-component/tool/check_component_coverage.dart # tdesign-component/tool/run_component_regression.dart # tdesign-component/tool/run_visual_regression.dart
…ader-demo-alignment # Conflicts: # .cnb/.reusable-stages.yml # .github/workflows/test-build.yml # tdesign-component/tool/check_component_coverage.dart # tdesign-component/tool/run_component_regression.dart # tdesign-component/tool/run_visual_regression.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
Related to #1027
💡 需求背景和解决方案
Cascader 原组件与公开 Demo 未完整覆盖设计稿中的 step/tab、逐级副标题、任意层选择、搜索及受控提交路径,部分视觉值还可能被 Material 隐式默认主题覆盖。
TCascader保持平铺且严格受控:value是唯一外部状态源,onChanged == null时禁用;Popup、标题、搜索、草稿、取消与提交继续由调用方组合。subtitles,由组件按内部活动层级展示对应副标题,不新增层级 Controller 或第二状态源。variant的既有默认值TCascaderVariant.tab;公开基础示例显式使用 step,选项卡示例显式使用 tab。TCascaderOption,查看代码展示真实的TCell + TPopup + TCascader受控组合及各实例差异配置。TSearchBar仅在内部TextField边界提供透明 Material 上下文;TPopup相对 develop 无源码差异,不影响 Popup、ActionSheet、Picker、Calendar 的结构和主题。specs/024-cascader-demo-alignment/spec.md验证:Flutter 3.32.0 / latest 严格 analyze、组件与 Demo 回归、APK/iOS/Web 构建全部通过;Flutter 3.32.0 Linux visual regression 通过;Cascader 生产代码覆盖率
248/251 = 98.80%,Search 生产代码覆盖率193/197 = 97.97%;示例代码生成检查无漂移。📝 更新日志
feat(TCascader): 支持按活动层级展示次级标题,并完善 step/tab、任意层选择和搜索组合示例。
fix(TCascader): 修正层级面板的交互、尺寸与主题回退,避免 Material 隐式默认样式覆盖 TDesign 视觉。
本条 PR 不需要纳入 Changelog
☑️ 请求合并前的自查清单
type(<scope>?): 修改描述。示例:
fix(TBottomTabBar): 修复 iconText 模式底部溢出