2.1.1 • Published 4 years ago
my_carousel_jjw v2.1.1
my_carousel_jjw
Carousel tools
Build Setup
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
Usage description
#The length and width of the carousel box depends on the parent element
#Support mobile terminal layout
#step1 : Enter -- Vue- loader.conf.js >> " module.exports {}"
#step2 : Add -- preserve whitespace: false
#(remove spaces between template labels, https://vue-loader.vuejs.org/zh/options.html#compiler)
<my-carousel
:isShowNav="true"
:isShowBox="true"
>
<img src="./assets/img/carousel_1.jpg" alt="">
<img src="./assets/img/carousel_2.jpg" alt="">
<img src="./assets/img/carousel_3.jpg" alt="">
</my-carousel>
For detailed explanation on how things work, consult the docs for vue-loader.