//v-loading 的值为false,并且该节点下最后一个元素是loading时,移除节点 if(binding.value===false&& el.lastChild.dataset.v==='loading'){ el.removeChild(el.lastChild) return } //v-loading 的值为true,并且该节点下没有loading节点时,调用函数,挂载loading if(binding.value===true&& el.lastChild....
entries.forEach((entry) => { if (entry.isIntersecting) { const manager = this.managerQueue.find((manager) => { return manager.el === entry.target }) if (manager) { if (manager.state === State.loaded) { this.removeManager(manager) return } manager.load() } } }) }, { rootMargin...