Comments (3)
@LeisureZjj Hi,现在给组件添加了一个 API,可以设置在进入页面时不触发 loadBottom。详见这里。请尝试指定 autoFill 为 false,看看问题能不能解决。
from mint-ui.
能否详细说明首次进入列表页面时 loadBottom 事件执行的时机?
关于进入页面时会 3 次触发 loadBottom 的问题:loadmore 组件在初始化时会检测列表能否撑满容器,不能的话就会触发 loadBottom,直到列表撑满容器为止。所以是不是你的列表比较短,以及 loadBottom 每次请求的数据较少?
from mint-ui.
-
3次触发 loadBottom 的问题,确实正如你所说。
-
首次进入列表页面的问题,我再反复操作了下,需要纠正下我的叙述:
首次进入列表页面,我在 route -> data 中获取了第一页列表数据,并撑满容器,这时没有 触发 loadBottom,然后上拉加载第二页数据也正常。在 route -> data 中我通过 promise 串行获取基本信息得到ID,再根据ID获取列表数据。
但是当我通过浏览器刷新列表页,先触发的 loadBottom,然后才执行 route -> data,这两次得到都是第一页数据,并且上拉没有效果,allLoaded 这时还是 false。另外,退出重新进入列表页时,route -> data 中得到第一页列表数据,然后上拉也效果。
from mint-ui.
Related Issues (20)
- [Feature Request] 建议所有样式编写使用class类名以支持小程序识别
- 这么好的项目,居然不维护了 HOT 7
- datepicker组件如何防止事件冒泡呢? HOT 1
- 使用 MessageBox.prompt 属性加上inputValue 后 报错 [Vue warn]: Error in callback for watcher "inputValue": "TypeError: Cannot read property 'classList' of undefined" HOT 1
- picker-selected
- timepicker文档跟源码demo的调用方式竟然不一样。文档里直接唤不起来
- 在?为什么两年多不更新?饿了么前端是解散了吗?考虑下这么多star的感受啊! HOT 4
- [Bug Report] mintui 的 checkList 组件 设置max,达到值后虽然置灰,但是页面仍然可以选择bug?
- mint-ui的文档怎么打不开了呢,有大佬知道吗,麻烦告诉下最新的api文档地址,谢谢 HOT 3
- range组件无法拖动 HOT 1
- ios datetime-picker年份未显示出来
- 别关闭,快看 HOT 6
- 求大佬帮忙 HOT 1
- Navbar组件修改样式不生效
- 项目无法运行
- 什么时候支持Vue3??? HOT 4
- 主题色修改
- mt-search 使用问题
- picker可以支持自定义弹出吗 就是点击按钮弹出picker HOT 3
- fix: Checklist组件 在ios手机上面 出现点击无效问题
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mint-ui.