surmon-china / vue-awesome-swiper

🏆 Swiper component for @vuejs
https://github.surmon.me/vue-awesome-swiper
MIT License
12.81k stars 1.97k forks source link

Virtual Slide Component #297

Open jamesblasco opened 6 years ago

jamesblasco commented 6 years ago

I am wondering how to use a component in virtual slide because the array virtual: { slides: ['Slide 1', 'Slide 2', 'Slide 3', 'Slide 4', 'Slide 5'], }, only accepts html no vue componets

surmon-china commented 6 years ago

Yes, if you need components to render virtual slides, I think this business segment may not be reasonable.

kid1412621 commented 6 years ago

@surmon-china May I ask why? I'm doing somthing sorta quiz test. I want to load quiz component into every virtual slider component,is that possible?or reasonable?

siulca commented 5 years ago

This answer is supposed to do what you and I want but I can't seem to get it working. https://stackoverflow.com/questions/51359121/how-can-i-insert-vue-component-into-virtual-slides

I've also created a codesandbox to show the problem: https://codesandbox.io/s/x28kxkxvnq

dokterbob commented 5 years ago

Another attempt. https://stackoverflow.com/questions/47467943/swiper-renderexternal-example-in-virtual-slides-with-react

Qingzii commented 4 years ago

The virtual slideshow does not support vertical, which is a bit regretful