A🇷
Size: a a a
A🇷
DS
П
A
DS
N
directives: {
scroll: {
inserted: function (el, binding) {
let f = function (evt) {
if (binding.value(evt, el)) {
window.removeEventListener('scroll', f)
}
}
window.addEventListener('scroll', f)
}
},
},
handleScroll(evt, el) {
if (window.scrollY > 50) {
console.log(123)
}
return window.scrollY > 100
}
v-scroll="handleScroll"
A🇷
П
П
П
M
П
M
П
П
M
MM
П
ПГ
ПГ