1.2.4 • Published 1 year ago

vue2-swiper-z v1.2.4

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

vue2-swiper

Installation

yarn install vue2-swiper
import SwiperBox from 'vue2-swiper'
Vue.use(SwiperBox);

Usage

    <swiper-box ref="swiper" class="carousel-box" tag="banner" :options="options1">
        <swiper-item v-for="(item, index) in dataList" :key="index" class="carousel-item">
            <img :src="item.src" :alt="item.title">
        </swiper-item>
        <template #pagination></template>
        <template #navigation></template>
    </swiper-box>

Props

PropertyTypeDefault ValueDescription
tagString类名
optionsObject{onlyOneStopLoop: true, onlyOneHideControl: false}swiper5.4.5的option之外增加了onlyOneStopLoop:只有一个元素时是否停止自动轮播;onlyOneHideControl: 只有一个元素时是否隐藏分页器及前进后退按钮,只针对内部操作按钮有用,外部的需要自定义逻辑

需要获取swiper对象可以使用this.$refs.swiper.mySwiper 获取到

1.2.4

1 year ago

1.2.3

1 year ago

1.2.2

1 year ago

1.2.0

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.2.1

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago