leepyng / vue2-photo-carousel

A component for photo carousel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vue2-photo-carousel

Photo display of a vue 2.0 component

Coverage Status

install

npm install vue2-photo-carousel --save-dev

how to use

template:
	 <PhotosBox :pics="photos" ></PhotosBox>

script:
	//import
	import PhotosBox from 'vue2-photo-carousel'
	
	//define
	components:{
		PhotosBox
	},
	//set default data
	data(){
		return{
			photos:['xx','xx']
		}
	}

props description

photos:photo address list

About

A component for photo carousel


Languages

Language:Vue 100.0%