https://github.com/emosheeep/card-swiper
一个基于vue的简单卡片式轮播插件
https://github.com/emosheeep/card-swiper
vue
Last synced: 4 months ago
JSON representation
一个基于vue的简单卡片式轮播插件
- Host: GitHub
- URL: https://github.com/emosheeep/card-swiper
- Owner: emosheeep
- Created: 2020-01-31T05:28:36.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T06:13:34.000Z (almost 3 years ago)
- Last Synced: 2025-04-01T23:06:12.088Z (6 months ago)
- Topics: vue
- Language: Vue
- Size: 26.8 MB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 27
-
Metadata Files:
- Readme: README.md
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
```