Skip to content

fix: 滚动加载组件,taro版,下拉刷新bug修改 #1004

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 25, 2022
Merged

fix: 滚动加载组件,taro版,下拉刷新bug修改 #1004

merged 1 commit into from
Feb 25, 2022

Conversation

fs-coder
Copy link
Contributor

这个 PR 做了什么? (简要描述所做更改)
滚动加载组件,taro版,下拉刷新功能BUG,没有下拉距离,导致点击事件也会加载列表。
BUG原因,下拉距离想通过下拉加载动画的DOM高度去计算,但是小程序的获取dom是异步的,导致高度没有获取到,从而造成该BUG。
修改内容: 参考小程序scrollview组件,增加一个props 为upperThreshold,作为下拉加载的阈值,触发加载请求。

这个 PR 是什么类型? (至少选择一个)

  • 错误修复(Bugfix) issue id #
  • 新功能(Feature)
  • 代码重构(Refactor)
  • TypeScript 类型定义修改(Typings)
  • 文档修改(Docs)
  • 代码风格更新(Code style update)
  • 其他,请描述(Other, please describe):

这个 PR 涉及以下平台:

  • NutUI 2.0
  • NutUI 3.0 H5
  • NutUI 3.0 小程序

这个 PR 是否已自测:

@szg2008 szg2008 merged commit c94e7c5 into jd-opensource:next Feb 25, 2022
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.

2 participants