1.0.5 • Published 4 years ago

vue_swiper_smooth v1.0.5

Weekly downloads
2
License
ISC
Repository
-
Last release
4 years ago

Global Registration

import Vue from 'vue'
import Swiper from 'vue_swiper'
Vue.use(Swiper)

Example

<Swiper 
  :imageList="imageList" 
  :ifAutoPlay="falseFlag"
  :autoPlaySpeed="speed"
  @itemClick="getClickEvent"
/>

API

Attributes

参数名说明默认值参数类型
imageList轮播图图片列表3张单色初始图Array
swiperItemWidth轮播图宽度页宽Number
swiperItemHeight轮播图高度度300Number
ifAutoPlay是否开启自动轮播trueBoolean
autoPlayDelay自动轮播间隔1000Number
autoPlaySpeed自动轮播速度350Number
ifDots是否开启导航点trueBoolean

imageList数据格式示例

[
  {src:'图片地址 ',url:'跳转地址'}, 
  {src:'图片地址' ,url:'跳转地址'}, 
  {src:'图片地址 ',url:'跳转地址'}
]

Events

参数名说明返回值
itemClick轮播图点击事件imageList参数中带url则返回url,否则返回序号
itemChange轮播图切换事件位序 , url
1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago