Skip to content

feat(fab): 新增 onLongPress 长按回调支持 - #985

Open
liweijie0812 wants to merge 7 commits into
developfrom
auto/longpress-fab-1185
Open

feat(fab): 新增 onLongPress 长按回调支持#985
liweijie0812 wants to merge 7 commits into
developfrom
auto/longpress-fab-1185

Conversation

@liweijie0812

Copy link
Copy Markdown
Collaborator

🤔 这个 PR 的性质是?

勾选规则:
1.只要有新增参数,就勾选”新特性提交“
2.只修改内部bug,未新增参数,才勾选”日常 bug 修复“
3.其他选项视具体改动判断

  • 日常 bug 修复
  • 新特性提交
  • 文档改进
  • 演示代码改进
  • 组件样式/交互改进
  • CI/CD 改进
  • 重构
  • 代码风格优化
  • 测试用例
  • 分支合并
  • 其他

🔗 相关 Issue

💡 需求背景和解决方案

📝 更新日志

  • fix(组件名称): 处理问题或特性描述 ...

  • 本条 PR 不需要纳入 Changelog

☑️ 请求合并前的自查清单

⚠️ 请自检并全部勾选全部选项⚠️

  • 标题遵循 Conventional Commits 格式:type(scope): 修改描述scope 可填写组件、文档或 CI 模块(示例:fix(TBottomTabBar): 修复 iconText 模式底部溢出docs(contributing): 更新 PR 提交流程
  • ”相关issue“处带上修复的issue链接
  • 已添加对应的 Spec 链接,或已由 Review 确认本次改动无需 Spec
  • 相关文档已补充或无须补充

@github-actions

github-actions Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

完成

Web Demo

APK 下载

@tencent-adm

tencent-adm commented Aug 10, 2026

Copy link
Copy Markdown
Member

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
2 out of 3 committers have signed the CLA.

✅ liweijie0812
✅ RSS1102
❌ autofix-ci[bot]
You have signed the CLA already but the status is still pending? Let us recheck it.

RSS1102 and others added 4 commits August 11, 2026 06:35
- TFab 在自定义 child 模式下透传 onLongPress 到定位层手势(buildFabPositioned)
- 非拖拽模式:外层 GestureDetector 补充 onLongPress
- 拖拽模式:_FabDraggable 的 GestureDetector 补充 onLongPress
- 修复原有长按测试中 const + 闭包导致的编译错误
- 新增 child 模式长按、未传不包手势、拖拽+长按 3 条测试
- 更新 fab_api.md onLongPress 说明
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants