1.0.3 • Published 6 years ago

@seolhun/vue-slide v1.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

Vue-slide

A Vue Slide Component to show Banners

Installation

NPM

npm install @seolhun/vue-slide --save

Register the component

import SlideVue from '@seolhun/vue-slide'
Vue.component('vue-slide', SlideVue);

Usage

1. Default items

<!--
const banners = [
  {
    image: '',
    link: '',
  }, {
    image: '',
    link: '',
  },
]
-->
<vue-slide :items='banners'></vue-slide>

2. Custom items

<!--
const banners = [
  {
    img: '',
    url: '',
  }, {
    img: '',
    url: '',
  },
]
-->
<vue-slide :items='banners' :itemImageKey='img' :itemLinkKey='url'></vue-slide>

Props

NameTypeDefaultDescription
itemsArray[]Items to be render in the Slide
itemImageKeyString'image'Image key of items to show client
itemLinkKeyString'link'Link key of items to show client
timeoutNumber6000Automatically changed item on timeout
isAutoBooleantrueWhether used or not automatically changing item
isRepeatBooleantrueWhether used or not repetition when reached last item.

Next Update List

  • Mobile Break point prop will be added for custom.
  • Touch prop will be added for mobile touch.
1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago