vue3-infinite-scroll-good
vue3-infinite-scroll-good copied to clipboard
Vue3 has delete $nextTick, why still use in mounted function?
挂载警告
页面使用插件时会报Failed to resolve component: van-loading If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement,这是什么问题呀大佬
如果一个Dom下有多个 子节点使用指令,你代码 myInstance 只会是最后一个挂载的节点。 看了下你的代码,你在这里使用的是局部变量 https://github.com/dingshaohua-cn/vue3-infinite-scroll-good/blob/e74ec85b9d3f0ec7fe933bde2e461898fabcd590/src/directive.js#L207 导致多个节点同时使用,myInstance 永远是最后一个。 带来的问题就是,之前的dom 绑定的 expression 不会执行 因为 `myInstance ` 错误,导致 https://github.com/dingshaohua-cn/vue3-infinite-scroll-good/blob/e74ec85b9d3f0ec7fe933bde2e461898fabcd590/src/directive.js#L220-L222 这里判断 `isAttached` 永远是false
滚动请求不卸载
我在A页面实现无限滚动请求加载,我从A页面的路由方法跳转到B页面后,滚动页面还会继续执行A页面的滚动方法这是为什么,A页面是有完成卸载的