@shenluw/vue-roll

一个基于better-scroll实现的横向滚动图片容器

Usage no npm install needed!

<script type="module">
  import shenluwVueRoll from 'https://cdn.skypack.dev/@shenluw/vue-roll';
</script>

README

vue-roll

一个基于better-scroll实现的横向滚动图片容器

demo

demo

使用方法

<vue-roll :images="imgs"
          :item-size="{height:'200px'}" >
</vue-roll>


<script>
import VueRoll from '@shenluw/vue-roll'

export default {
    name: 'demo',
    components: {
        VueRoll,
    },
    data() {
        return {
            imgs: ['img url', ...]
        }
    },
}
</script>