UNPKG

vue-slick

Version:

Vue component for Slick-carousel (http://kenwheeler.github.io/slick)

17 lines (12 loc) 498 B
import Slick from './slickCarousel.vue'; const install = function installMyComponent(Vue, opt) { // Don't install if already installed, or SSR if (install.installed || Vue.prototype.$isServer) return install.installed = true Vue.component('slick', Slick) } // Inject install function into component - allows component // to be registered via Vue.use() as well as Vue.component() Slick.install = install // To allow use as module (npm/webpack/etc.) export component export default Slick