1.0.0 • Published 5 years ago

@zee.kim/vue-swipe v1.0.0

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

vue-swipe

=============

基于 Vue.js 的轮播组件

npm.io

安装

npm install --save @zee.kim/vue-swipe

使用

首先在项目的入口文件中引入, 调用 Vue.use 全局安装组件。

import vueSwipe from '@zee.kim/vue-swipe'
Vue.use(vueSwipe)
<div id="app">
    <swipe 
    :autoplay="autoplay" 
    :width="width" 
    :height="height" 
    :items="items"></swipe>
</div>
export default {
    data() {
        return {
            autoplay:true,
            width: window.innerWidth,
            height: 200,
            items: [
                "http://domain/xxx.jpg",
                "http://domain/xxx.jpg"
            ]
        };
    }
}