Peach
Peach
Thanks for your solution, but I think separated files is a breaking change, it will make trouble for old users, so I plan to solve it in the next major...
@shixy96 抱歉之前看到这个 issue 的时候以为是指列表元素的过渡动画,传达了错误的信息,为避免给其他人造成困扰所以上一条评论我先删除了。 重新看了一下你提供的 reproduce link,按照官方的文档通过 `keep-alive` 组件的 [`include/exclude`](https://cn.vuejs.org/v2/api/#keep-alive) 来控制组件是否缓存即可正常工作。
这个示例是基于你一开始的 fiddle 修改的,正确使用条件式 `keep-alive` 可以正常工作:https://jsfiddle.net/oq7m0brn/ 这个示例是基于你刚刚提供的 fiddle 修改的,可以看到即便移除了 `transition`,还是不能正常工作:https://jsfiddle.net/k41s2d30/ 所以我推测有可能是 vue-router 在多个命名视图渲染的切换过程中有什么特性影响到该插件的加载判断了,后续我会再验证一下该推测;如果你有其他发现也请更新到这里。
@kvanska thanks for your PR! I have no experience to use Nuxt.js, can we not get correct `body` element when using it?
Hi @nirmalraghavan , sorry for late. This problem should be fixed in the [v2.4.4](https://github.com/PeachScript/vue-infinite-loading/releases/tag/v2.4.4), you can try it now.
And thanks for your detailed reporting ❤️
@xfwduke 描述中提供的 demo 与文档中的 demo 不是同一种场景,后者是使用固定高度的 Table 组件、Table 内容区域的场景下,才需要使用 `force-use-infinite-wrapper` 强制指定滚动父级元素;而前者是直接使用自动高度的 Table,此时其实无需将 `infinite-loading` 放入 `append` 插槽中,直接放到 `el-table` 的后面即可。 至于 `position`导致的无限触发问题,确实有些诡异,估计是某些 CSS 特性触发的,我再继续研究下,如果你找到了原因也请同步到这里,感谢。
@amangqq 如果问题仍然存在,请提供一个 Live Demo 以便排查
@LittleHChen 这个问题理应与 重新赋值 还是 `push` 无关,可能是别的因素达成了『已解决』的结果
@PatrLind @syn-zeta thank you, please give me some time to think about it. For the temporary solution, you can use the [extend](https://cn.vuejs.org/v2/api/#extends) feature to override the `getCurrentDistance` method and make...