Coder Social home page Coder Social logo

Comments (4)

stackjie avatar stackjie commented on May 20, 2024

上拉加载如果需要一定的阈值才去触发的话用bottom-load-method这个prop接口,上拉下拉这两个接口的阀值都是可配置的,后面那个问题不是很理解

from vue-pull-to.

 avatar commented on May 20, 2024

我用的没任何问题,你最后那句问题在于你高度 没有设置 100%吧

from vue-pull-to.

veaba avatar veaba commented on May 20, 2024

@shx1545 你好,你说的是pull-to 组件的直接父级吗?
下图是pull-to 的父级设置了高度100%
image

下图是高度未到顶,在模拟器上,按住下拉,会触发事件
image

@stackjie 感谢答复。我表述可能有问题,这里纠正下,意思是:下拉动作(在顶部往下拖的动作,top-load-method | 顶部下拉时执行的方法),在pull-to 组件上 按住下拉,就会触发,不管是不是阈值设定多,一在上面下拉就会触发,但实际情况需求是,需要看到顶部的导航栏才会下拉执行事件。否则,用户使用手势往下拉滚动到底部的时候就会加载,这样的话,假如页面很长,用户就回不到顶部了。

如果还不太理解的我意思的话,稍后我可以做个录屏啊

from vue-pull-to.

stackjie avatar stackjie commented on May 20, 2024

@veaba 可以发下录屏看看

from vue-pull-to.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.