An open API service indexing awesome lists of open source software.

https://github.com/emosheeep/card-swiper

一个基于vue的简单卡片式轮播插件
https://github.com/emosheeep/card-swiper

vue

Last synced: 4 months ago
JSON representation

一个基于vue的简单卡片式轮播插件

Awesome Lists containing this project

README

          

# 轮播小插件Swiper
一个组件,一共三百行的样子,比较容易看懂。然后主要文件是CardSwiper.vue

[预览链接](http://projects.biubiubius.com/swiper/index.html)

# 参数
```
images: Array // 必须。图片链接数组
width: Number | String // default: 500, 单位px
height: Number | String // default: 250, 单位px
autoplay: Boolean | Number // default: 3000, 单位ms
```
# TODO
不仅可以放图片,还可以放其他的容器,例如div卡片等

# 运行
```
// 安装依赖
npm install
// 编译运行
npm run serve
```