Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
新特性:
已修复:
#123 loadmore一直调用
#112 该组件在v-if条件渲染部分内部使用不会触发,只能使用v-show
#106 首次加载,会不停的加载数据,滚动条距离底部很远它自己就发起请求了,这是什么原因呢
测试用例:the function should be called when v-if="true"
#121 v-infinite-scroll loadMore function was called when in another component
#115 同页面多个loadmore事件触发异常
测试用例:change to component2 will not execute component1 function while scroll
#114 看了源码,如果没监听到父级组件的mounted事件,就不会bind,也就是会无效
#109 infinite-scroll-disabled 为什么有时候要改成 :infinite-scroll-disabled传参才行
api改动,经过自测没问题
#100 infinite-scroll-disabled取vue的computed值不工作
测试用例:scroll computed disabledKey test
未测试案例:
#101 v-infinite-scroll应该加个abort操作之类
待优化案例:
#89 第一页数据未填满屏幕,如何自动加载第二页?
直接在浏览器引入,会导致
executeName
为小写字母,详情见example/index.html
执行
promise
自动禁止触发,jasmine
需要引入promise
支持,引入core-js@2
后无法捕捉测试结束,暂放不引入