GithubHelp home page GithubHelp logo

Comments (6)

duyanpeng avatar duyanpeng commented on June 17, 2024

没看懂,什么页面参数,路由参数吗?
另外截图代码有点少,看一下文档,提供了获取滚动距离和设置滚动距离的api。

from vue-quick-loadmore.

owen-gxz avatar owen-gxz commented on June 17, 2024

就是我的一个scroll字段是一个bool。。把我截图这一段注释了就不会有问题。。

from vue-quick-loadmore.

owen-gxz avatar owen-gxz commented on June 17, 2024
var _this = this
        setInterval(function () {
          if (!_this.scroll) {
            return
          }
          var container = _this.$el.querySelector(".content");
          container.scrollTop = container.scrollHeight;
        }, 100)

from vue-quick-loadmore.

owen-gxz avatar owen-gxz commented on June 17, 2024

这样的一段。竟然他会主动的更改我的scroll

from vue-quick-loadmore.

duyanpeng avatar duyanpeng commented on June 17, 2024

还是不知道你的需求是什么,我的scroll事件是在组件内部监听的,暴露了三个方法,一个是获得滚动距离,一个是设置滚动距离,一个是scroll事件,你这样直接设置scrollTop会和我内部冲突,我内部也使用了这个方法,最好不要这么写,你可以说一下你的需求,我看看怎么实现好。

from vue-quick-loadmore.

owen-gxz avatar owen-gxz commented on June 17, 2024

我应该知道那里的问题了

from vue-quick-loadmore.

Related Issues (6)

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.