Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Vue Awesome Swiper | 12,559 | 2,243 | 449 | 3 months ago | 58 | March 19, 2022 | 309 | mit | JavaScript | |
🏆 Swiper component for @vuejs | ||||||||||
Mpvue Weui | 1,459 | 4 months ago | 1 | mit | Vue | |||||
用 vue 写小程序,基于 mpvue 框架重写 weui。 | ||||||||||
Vue Meizi | 1,386 | 4 years ago | 11 | JavaScript | ||||||
vue最新实战项目,vue2 + vuex + webpack + es6 干货多多,新手福利 | ||||||||||
Node Vue Moba | 868 | a year ago | 41 | mit | Vue | |||||
Node.js (Express.js) + Vue.js (Element UI) 全栈开发王者荣耀手机端官网和管理后台 | ||||||||||
Alaweb | 849 | 3 years ago | Vue | |||||||
一套 Vue 代码,多端可用(H5、小程序、苹果App、安卓App、头条等)。系统含150+页面,200+组件(5端通用),30+元件(每个终端独立完成) | ||||||||||
Vue Slick Carousel | 733 | 8 | 3 months ago | 18 | July 05, 2020 | 153 | other | Vue | ||
🚥Vue Slick Carousel with True SSR Written for ⚡Faster Luxstay | ||||||||||
Goh5 | 686 | 4 years ago | 1 | JavaScript | ||||||
visual h5 edit | ||||||||||
Shkjem | 581 | 21 days ago | 26 | Vue | ||||||
基于Vue&ElementUI的企业官网 | ||||||||||
Netease_yanxuan | 412 | 4 years ago | 3 | Vue | ||||||
vue版网易严选,体验网易严选购物流程,线上访问:http://zhaoboy.bid/yanxuan/#/ | ||||||||||
Vue Demo Maizuo | 341 | 5 years ago | 4 | JavaScript | ||||||
用vue2模仿卖座网:http://m.maizuo.com/v4/?co=maizuo |
Swiper component for Vue.
The vue-awesome-swiper project has been deprecated and superseded by Swiper Vue component, a TypeScript friendly project which is a recent official release provided by Swiper. For better stability, please migrate as soon as possible.
vue-awesome-swiper released its last version v5 for (bridge) transition. It's worth noting that APIs in this version are completely NOT compatible with that of previous version, it only re-exports swiper/vue
and only supports Vue3, which means only functions of swiper/vue
are available. For example, the following code is fully equivalent in [email protected]
. And if you want to check update catelog of Swiper API, please refer to Swiper Changelog.
import { Swiper, SwiperSlide, /* rest swiper/vue API... */ } from 'vue-awesome-swiper'
// exactly equivalent to
import { Swiper, SwiperSlide, /* rest swiper/vue API... */ } from 'swiper/vue'
If you need to use older versions of vue-awesome-swiper, you can find the corresponding version number below. Feel free to fork our code and maintain your own copy.
npm install swiper vue-awesome-swiper --save
yarn add swiper vue-awesome-swiper
<template>
<swiper :modules="modules" :pagination="{ clickable: true }">
<swiper-slide>Slide 1</swiper-slide>
<swiper-slide>Slide 2</swiper-slide>
<swiper-slide>Slide 3</swiper-slide>
</swiper>
</template>
<script>
import SwiperClass, { Pagination } from 'swiper'
import { Swiper, SwiperSlide } from 'vue-awesome-swiper'
// import swiper module styles
import 'swiper/css'
import 'swiper/css/pagination'
// more module style...
export default {
components: {
Swiper,
SwiperSlide
},
setup() {
return {
modules: [Pagination]
}
}
}
</script>
import { createApp } from 'vue'
import SwiperClass, { /* swiper modules... */ } from 'swiper'
import VueAwesomeSwiper from 'vue-awesome-swiper'
// import swiper module styles
import 'swiper/css'
// more module style...
// use swiper modules
SwiperClass.use([/* swiper modules... */])
const app = createApp()
app.use(VueAwesomeSwiper)
<!-- All options and events of the original Swiper are supported -->
<swiper
:modules="..."
:allow-touch-move="false"
:slides-per-view="1"
:autoplay="{ delay: 3500, disableOnInteraction: false }"
@swiper="..."
@slide-change="..."
@transition-start="..."
...
>
<template #container-start><span>Container start</span></template>
<template #wrapper-start><span>Wrapper start</span></template>
<swiper-slide>Slide 1<swiper-slide>
<swiper-slide v-slot="{ isActive }">Slide 2 {{ isActive }}<swiper-slide>
<swiper-slide>Slide 3<swiper-slide>
<template #wrapper-end><span>Wrapper end</span></template>
<template #container-end><span>Container end</span></template>
</swiper>
Detailed changes for each release are documented in the release notes.
Licensed under the MIT License.