1.0.6 • Published 7 years ago

vue-slider-163music v1.0.6

Weekly downloads
17
License
ISC
Repository
github
Last release
7 years ago

vue-slider-163music

build build build

一个模仿网易云音乐的vue图片滚动插件

Live Demos

Documention

based on vue 2.0

Install

npm install vue-163music-slider 

Local

git clone  https://github.com/ShanaMaid/vue-slider-163music.git

#安装依赖
npm install 

#启动
npm run dev

Usage

<template>
  <div>
    <slider v-bind="setting">
  </div>
</template>

<script>
import slider from 'vue-slider-163music';

export default {
  components: {
    slider
  },
  data: function() {
    return {
      setting: {
        imgSrc: ['1.jpg', '2.jpg', '3.jpg']
      }
    }
  }
}
</script>          

Update

  • finish basics
  • image add tagName and tagStyle

Opitions

Props

PropsTypeDefaultDescription
styleObjectObject{width:'750',height:'240'}scroll box style,please use lower camel case, eg: background-color => backgroundColor
imageArraynullimgae source path ,tagName,tagStyle; length >= 3
intervalInteger2000unit: ms, rolling interval
imgStyleObjectnullimage style, the same as styleObject
autoRollBooleantruetrue or false
directionStringleftscroll direction, left or right

To do

  • Basics
  • add tag for image

more!!

License

MIT

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago