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.
loadmore组件 translate的计算,应该是手指移动的距离distance 先和 scrollTop进行运算后的值再和手指移动与组件移动距离的比值distanceIndex相除;而不是distance 先除以distanceIndex,再和scrollTop作运算,此做法会导致,当loadmore组件已经下拉或者上拉了一段距离后,再通过手指直接上拉或者下拉到达顶部或者底部的时候,translate并没有变化 ,需要继续拉动一段距离translate才会变化.
tab-container组件的mouse事件处理,建议不要直接在组件上绑定mousemove和mouseup,因为可能在滑动的时候,松开鼠标的时候,鼠标已经不再组件上方了,然后鼠标移动回组件里面的时候,组件会跟着鼠标滑动。所以建议把mousemove和mouseup绑定到document.documentElement对象上,并且是在组件的mousedown数据触发时才绑定,mouseup事件触发时或者组件destroyed钩子触发的时候就解除绑定