Merged
feat: support nested scroll for PullToRefresh #88
feat: support nested scroll for PullToRefresh #88
Merged
linsanjiuAdd on May 21
linsanjiu
linsanjiu
May 21

一、内容说明(相关的Issue)

https://gitcode.com/CPF-ApplicationTPC/ohos_pull_to_refresh/issues/164

三、变更内容

  1. 在 PullToRefresh 和 PullToRefreshV2 中新增可选参数 enableNestedScroll。
  2. 开启后,组件主体区域切换为 Scroll 承载内容,并在内部统一应用默认 nestedScroll 配置。
  3. 当业务通过 setHasRefresh(false) 关闭下拉刷新时,组件会走兼容路径,避免下拉刷新抢占 Sheet 下拉关闭手势;上拉加载逻辑保持不变。
  4. 新增 bindSheetPullRefresh 示例页面,提供“未配置模式”和“开启嵌套滚动模式”两种对照场景。
  5. 同步更新 README.md 和 README_zh.md,补充 bindSheet 场景下的使用说明和 API 说明。

四、研发自测点(自测哪些?冒烟用例全部自测?)

自测测试结论:

  • 已在 bindSheetPullRefresh 示例页验证嵌套滚动模式下的滚动与下拉关闭协同
  • 已确认关闭下拉刷新后,上拉加载仍可正常触发
  • 已确认未开启 enableNestedScroll 的普通 PullToRefresh 场景无明显行为回退
  • 已确认 PullToRefreshV2 与 PullToRefresh 在 nestedScroll 能力上保持一致

五、测试关注点(需要提醒QA重点关注的、可能会忽略的地方)

检查点:

需求名称 是否影响xx公共模块 是否需要xx功能 需求升级是否依赖别的子产品
bindSheet 半模态 nestedScroll 支持

接口测试:

  • 验证 enableNestedScroll 开启/关闭两种模式下组件行为是否符合预期
  • 验证 setHasRefresh(false) 场景下上拉加载是否正常

性能测试:

  • 验证开启 nestedScroll 后列表滚动无明显卡顿

并发测试:

likedislike
Pull Request has been successfully merged by openharmony_ci.
(Thank you for linsanjiu's contribution.)
openharmony_ci
openharmony_ciCollaborators
May 21 Comments:

感谢提交 Pull Requests !此PR未通过DCO校验。
校验失败可能原因:

1. 未签署“DCO协议”(开发者原创声明协议),在线签署、查看签署状态

2. Commits 中未包含 Signed-off-by信息,参考FAQ处理

修复上述问题后,在PR的评论框输入“check dco” ,单击”评论”,系统将再次进行DCO校验。

当前检测到如下Commits的Signed-off-by邮箱未签署DCO协议:


当前检测到如下Commits 未包含Signed-off-by信息:

Thanks for submitting a pull request. This pull request has not passed the DCO check.
Possible causes:

1. You have not signed the Developer Certificate of Origin (DCO). Sign the DCO and check DCO status.

2. The commits do not contain the Signed-off-by information. To resolve this issue, see FAQs.

After resolving the preceding issues, enter check dco in the comment box of this pull request and click Comment. The system will check DCO status again.

The Signed-off-by emails in the following commits have not signed the DCO:


The following commits do not contain the Signed-off-by information:
likedislike
openharmony_ciopenharmony_ciCollaborators
May 21 Added label: dco检查失败
linsanjiulinsanjiu
May 21 Force-pushed 1 commits:b49cd6fc-feat: support nested scroll for PullToRefresh
linsanjiu
linsanjiu
May 21 Comments:

check dco

likedislike
openharmony_ci
openharmony_ciCollaborators
May 21 Comments:

感谢提交 Pull Requests!
Thanks for submitting a pull request.

likedislike
205 messages are collapsed here。 See more
openharmony_ci
openharmony_ciCollaborators
Jun 17 Comments:

本地或库上代码有更新,全量重新构建,重置所有关联PR的验证状态
门禁构建开始,包含静态检查、代码编译【applicationTPC编译】,预计在60分钟内完成,门禁结果会同步发送到注册邮箱。您可以通过如下链接跟踪门禁进展:http://dcp.openharmony.cn/workbench/cicd/detail/6a32161f64650f998bcfe418/runlist

likedislike
openharmony_ciopenharmony_ciCollaborators
Jun 17 Test passed
openharmony_ci
openharmony_ciCollaborators
Jun 17 Comments:

代码门禁通过
您可以通过如下链接查看门禁报告:http://dcp.openharmony.cn/workbench/cicd/detail/6a32161f64650f998bcfe418/runlist

静态检查:

# check type result report
1 codeCheck pass >>>

编译测试:
# Device build result package
1 applicationTPC success >>>

likedislike
openharmony_ciopenharmony_ciCollaborators
Jun 17 Closed associated issue
openharmony_ciopenharmony_ciCollaborators
Jun 17 Merged pull request