<template>
    <van-swipe :autoplay="3000" class="home-swpier" indicator-color="white">

        <van-swipe-item v-for="(item,index) in images" :key="index" >
            <a :href="item.link"><img v-lazy="item.img_url" style="width:100%; height:auto; vertical-align: top;" /></a>
        </van-swipe-item>

    </van-swipe>
</template>

<script>
    export default {
        props:{
            data:{
                type:Array,
                default:() => {return null;}
            }
        },
        name: "swiper",
        data(){
            return {
                images:this.data
            }
        },
        created(){

        },
        methods:{

        }
    }
</script>

<style scoped>

</style>
