/**
 * Vue-awesome-swiper
 * @author Surmon.me
 */

import Swiper from 'swiper';
import SwiperComponent from './swiper.vue';
import SlideComponent from './slide.vue';

// var Swiper = require('swiper')
// var SwiperComponent = require('./swiper.vue')
// var SlideComponent = require('./slide.vue')
if (typeof window !== 'undefined') {
    window.Swiper = Swiper
}

var swiper = {
    swiperSlide: SlideComponent,
    swiper: SwiperComponent,
    swiperPlugins: Swiper.prototype.plugins,
    install: function (Vue) {
        Vue.component('swiper', SwiperComponent)
        Vue.component('swiper-slide', SlideComponent)
    }
}

module.exports = swiper
