docs(dropdown-menu): 补齐官方示例矩阵 - #1034
Open
RSS1102 wants to merge 1 commit into
Open
Conversation
Contributor
Web DemoAPK 下载 |
Open
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
💡 需求背景和解决方案
DropdownMenu 的锚点、滚动跟随与自动方向能力已完整,但示例页未公开展示官方 1/2/3 列多选、纯禁用菜单、向上展开与自定义开合图标场景,示例分组也较零散。本次仅改动 Example 层:
01 组件类型/02 组件状态/03 Flutter 额外能力三组,按场景归类。columns: 1/2/3,面板maxHeight: 280)。enabled: false)。placement: TDropdownMenuPlacement.above与TDropdownMenuItem.custom)。实现复用现有公开 API,未改动组件源码与公开 API,无 breaking change。对应 Spec:
specs/011-dropdown-menu-official-demos/。验证与待办(如实说明):Flutter 3.32.0 聚焦测试与分析通过、组件生产源码 LCOV ≥95%、生成片段与源码同步;Flutter latest 聚焦测试与分析通过,但既有组件用例存在一处非本次改动的 0.93px 几何断言差异(原容差 0.5px)尚未处理。真机/像素与官方截图对照、新 Demo 的 Golden 快照,以及勾选默认位置/空选行为/全局最大高度等公开契约的维护者决策,均仍待完成。
📝 更新日志
docs(dropdown-menu): 示例新增 1/2/3 列多选、禁用与向上展开自定义图标场景,并重组示例分组
本条 PR 不需要纳入 Changelog
☑️ 请求合并前的自查清单
type(<scope>?): 修改描述。示例:
fix(TBottomTabBar): 修复 iconText 模式底部溢出