1.0.0 • Published 7 years ago

vue-slide2 v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

vue-slide

A slide component for Vue. :boom: :boom: :boom: :boom:

live demo

Installing

$ npm install vue-slide2 --save

Example

<template>
    <slide :imgs="imgs" :currentIndex="index" v-if="slideStatus" @hiddenSlide="hiddenSlide"></slide>
</template>

<script>
    import slide from "vue-slide2"

    export default {
        data() {
            imgs: [],
            index: 0,
            slideStatus: false
        },
        methods: {
        	hiddenSlide() {
        		this.slideStatus = false
        	}
        }
    }
</script>

Options

Props

PropsTypeDefaultDescription
imgsArraynullThe image of the slide.
currentIndexNumber0The index of the slide.

Events

NameDescription
hiddenSlideHide the slide.