vue3 swiper没有slideto
时间: 2023-10-07 08:08:44 浏览: 169
Vue使用Swiper
根据你提供的引用内容,Vue3的Swiper没有`slideto`方法。在Vue3中,可以使用`swiperRef.swiper.slideTo(index)`来实现相同的功能,其中`swiperRef`是在模板中使用`ref`指令引用Swiper组件的引用名称,`index`是要滑动到的幻灯片的索引值。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [vue swiper vue-awesome-swiper 之 slideTo 用法](https://blog.csdn.net/ws19900201/article/details/103204740)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [Vue项目 swiper.slideTo报错](https://blog.csdn.net/weixin_44835957/article/details/115558130)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文