功能:在下拉的时候能停留住tab-control。

Small program mall front end:tab-control stay

Small program mall front end:tab-control stay

Small program mall front end:tab-control stay

Small program mall front end:tab-control stay

Small program mall front end:tab-control stay

解决下拉图片占位tab-control:用一个tab-control先来占位,然后再根据下拉距离去覆盖此tab-control:

Small program mall front end:tab-control stay

获取该组件距离顶部的距离:

Small program mall front end:tab-control stay

Small program mall front end:tab-control stay

Small program mall front end:tab-control stay

不是意味都加载。

还可以用定时器:

Small program mall front end:tab-control stay

不过最好是监听某一个组件加载完轮到了tab-control的那一个位置:

也就是监听是一个组件图片加载完的时候:

Small program mall front end:tab-control stay

Small program mall front end:tab-control stay

Small program mall front end:tab-control stay

监听:

Small program mall front end:tab-control stay

Small program mall front end:tab-control stay

默认设置为0:

Small program mall front end:tab-control stay

Small program mall front end:tab-control stay

 

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-02
  • 2022-12-23
  • 2021-10-10
  • 2022-01-11
  • 2021-08-16
猜你喜欢
  • 2021-09-08
  • 2021-08-27
  • 2021-12-22
  • 2021-11-16
  • 2021-04-14
  • 2021-08-28
  • 2022-12-23
相关资源
相似解决方案