import { debounce } from 'quasar'
export default {
methods: {
scrolled: debounce(function (position) { // ВОТ ЭТУ СТРОКУ
...
}, 200) // debounce for 200ms
}
}
scrolled(){
return debounce((position) => {
...
}, 200) // debounce for 200ms
}
get FooDebonced() {
return _.debounce(this.Foo, this.timeDebounce)
}
this.FooDebonced(FooParam1, FooParam2,...)
@myEvent="FooDebonced"
private Foo(FooParam1: string, FooParam2: int, ...) {
...
}