1.0.4 • Published 5 years ago

lwm-carousel v1.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

lwm-carousel

基于 vue2.0 的轮播图插件

#安装

npm install lwm-carousel -S

#在 main.js 中引入插件

import LwmCarousel from 'lwm-carousel';
Vue.use(LwmCarousel);

#在组件中使用:

<lwm-carousel :imgList="myImgList" :imgWidth="600" :imgHeight="400" :timeCell="2000"></lwm-carousel>

#接受的参数

propstyperequireddefault
imgListArraytrue-
imgWidthNumberfalse300
imgHeightNumberfalse200
timeCellNumberfalse1500

#提示

myImgList的写法:
myImgList:
require("./img/1.jpg"),
require("./img/2.jpg"),
require("./img/3.jpg")

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build
1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago