PeachScript / vue-infinite-loading

An infinite scroll plugin for Vue.js.
https://peachscript.github.io/vue-infinite-loading/
MIT License
2.66k stars 366 forks source link

disable spinner #305

Open qxygene opened 3 years ago

qxygene commented 3 years ago

is it possible to disable or hide spinner?

rrd108 commented 3 years ago

@qxygene did you find a solution to this?

wobsoriano commented 3 years ago

Just use the spinner slot and make it an empty div

<infinite-loading>
  <div slot="spinner"></div>
</infinite-loading>
kyrylo93 commented 3 years ago

@wobsoriano, in vue3 there is a bug with spinner. If you use custom tag with slot="spinner" or <template #spinner>... it doesn't hide the spinner after loading.

It does for default spinner, but not from custom ;(

wobsoriano commented 3 years ago

@wobsoriano, in vue3 there is a bug with spinner. If you use custom tag with slot="spinner" or <template #spinner>... it doesn't hide the spinner after loading.

It does for default spinner, but not from custom ;(

is there even support for Vue 3 already? I implemented my own infinite handler on Vue 3 that mimics this component's behavior https://gist.github.com/wobsoriano/41a01290a9967c7f39077fe5c4a70436