Swiper
Swiper 相关
yuyu_2019
这个作者很懒,什么都没留下…
展开
-
使用element的pagination分页控制swiper跳转
<template> <div> <div> <swiper ref="swiper" :options="swiperOption" style="height:100px"> <swiper-slide v-for='(item,index) in newObjData' :key="index">原创 2020-12-31 14:32:48 · 259 阅读 · 0 评论 -
vue-awesome-swiper slideTo 点击外部控制切换到某一页
this.$refs.swiper.swiper.slideTo(2, 500, false);<template> <div> <swiper ref="swiper" :options="swiperOption" style="height:100px"> <swiper-slide v-for='(item,index) in newObjData'原创 2020-12-31 12:53:34 · 1707 阅读 · 0 评论 -
swiper自定义分页器
基础写法swiperOption: { loop: true, pagination: { el: ".swiper-pagination", clickable: true, type: 'custom', renderCustom: function (swiper, current, total) { return current + ' of ' + total; } }},自定义Html标签...原创 2020-12-31 10:32:41 · 260 阅读 · 0 评论 -
一页swiper显示多条数据
<template> <div> <div class="container"> <swiper :options="swiperOption"> <swiper-slide v-for='(value,index) in swiperList' :key="index"> <div class="kk"> &原创 2020-11-23 19:07:29 · 1471 阅读 · 0 评论