Repository navigation
breaking(TPopup): 收敛蒙层配置并补齐 1.0.1 升级说明 - #1199
Merged
Merged
Conversation
Contributor
Web DemoAPK 下载 |
RSS1102
marked this pull request as ready for review
October 25, 2026 17:25
This was referenced Oct 25, 2026
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
关联 #1148 的 API 审查;按组件职责拆分交付。
💡 需求背景和解决方案
onTap;显隐变化继续由onVisibleChange通知。TPopupOverlayConfig改为final;新增onTap,保留onClick参数及只读成员并标记废弃。onTap优先,否则回退到onClick;只通知一次,原默认值、回调时机和 Controller 绑定规则不变。show()/open()区别;destroyOnClose仍由 breaking(TPopup): 修复 destroyOnClose 的关闭销毁与状态保留 #1197 独立处理。final会使旧继承、implements及相关 mock 无法编译,需改用构造或组合;仍属于源码 breaking。onClick调用仍可编译,但废弃提示可能影响严格静态检查;动态 getter 与配置快照也不保证等价。验证:本地 Flutter 3.32.0 / 3.47.7 各 320 项回归、严格分析及各 57 份 API 检查通过,站点 35 项通过;当前 head CI 全部成功,含 Linux Golden 和平台构建。构建通过不代表真机验收。
Spec/验收 · Popup FAQ。保持草稿,暂不合并。
📝 更新日志
TPopupOverlayConfig改为final,库外继承/实现及相关 mock 需改用直接构造或组合。onTap,兼容旧入口。onClick参数及成员保留并标记废弃;非空onTap优先,否则沿用onClick,只触发一次。默认行为和回调时机不变。1.0.0 → 1.0.1 升级提醒(存在源码不兼容变化)
final,库外不能再extends或implements;已有业务子类和相关 mock 需改为直接构造或通过工厂组合。onClick构造参数及成员保留并标记废弃,旧调用仍可编译使用;推荐改用onTap。两者同时传入时,非空的onTap优先,只触发一次;旧onClick成员返回实际生效的回调。完整适配说明与示例见 Popup FAQ。
☑️ 请求合并前的自查清单
type(<scope>?): 修改描述。示例:
fix(TBottomTabBar): 修复 iconText 模式底部溢出