GithubHelp home page GithubHelp logo

Comments (3)

Leopoldthecoder avatar Leopoldthecoder commented on May 21, 2024 1

@LeisureZjj Hi,现在给组件添加了一个 API,可以设置在进入页面时不触发 loadBottom。详见这里。请尝试指定 autoFill 为 false,看看问题能不能解决。

from mint-ui.

Leopoldthecoder avatar Leopoldthecoder commented on May 21, 2024

能否详细说明首次进入列表页面时 loadBottom 事件执行的时机?
关于进入页面时会 3 次触发 loadBottom 的问题:loadmore 组件在初始化时会检测列表能否撑满容器,不能的话就会触发 loadBottom,直到列表撑满容器为止。所以是不是你的列表比较短,以及 loadBottom 每次请求的数据较少?

from mint-ui.

yipoace avatar yipoace commented on May 21, 2024

@Leopoldthecoder

  • 3次触发 loadBottom 的问题,确实正如你所说。

  • 首次进入列表页面的问题,我再反复操作了下,需要纠正下我的叙述:

    首次进入列表页面,我在 route -> data 中获取了第一页列表数据,并撑满容器,这时没有 触发 loadBottom,然后上拉加载第二页数据也正常。在 route -> data 中我通过 promise 串行获取基本信息得到ID,再根据ID获取列表数据。

    但是当我通过浏览器刷新列表页,先触发的 loadBottom,然后才执行 route -> data,这两次得到都是第一页数据,并且上拉没有效果,allLoaded 这时还是 false。另外,退出重新进入列表页时,route -> data 中得到第一页列表数据,然后上拉也效果。

from mint-ui.

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.