PeachScript / vue-infinite-loading

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

A conflict in infinity-scroll and vuejs documentations. #286

Open gavrashenko opened 4 years ago

gavrashenko commented 4 years ago

There is a conflict in infinity-scroll and vuejs documentations. It's said that I can hide default styles using v-slot on any elements but template ( https://github.com/PeachScript/vue-infinite-loading/blob/master/docs/guide/configure-load-msg.md#about-hide--default-styles ), but in vuejs docs we can find that it's impossible to add v-slot anywhere except template ( https://vuejs.org/v2/guide/components-slots.html#Named-Slots ). So, currently I don't know how to disable default slot styles, because all my tries to add v-slot to div/span/etc.. according to documentation will raise errors like:

Errors compiling template:

  v-slot can only be used on components or <template>.

Version

v2.4.5

Vue.js version

v2.6.11

smilerz commented 3 years ago

@gavrashenko did you find a solution to this yet?

Szymon-dziewonski commented 3 years ago

Hey, here's how I disabled for example noMore slot https://github.com/PeachScript/vue-infinite-loading/issues/80#issuecomment-866910028