1.0.7 • Published 6 years ago

vue-lazyload-progressive v1.0.7

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

vue-lazyload-progressive

Demo page

Installation

npm

$ npm install vue-lazyload-progressive

Requirements

import progressive from 'vue-lazyload-progressive'
import 'vue-lazyload-progressive/dist/progressive.css'
Vue.use(progressive);

<template>
  <div id="app" >
    <div class="content" v-for="item in imgList">
      <span class="progressive" :date-src="item.big">
        <img v-lazyprogressive :src="item.small" class="preview">
      </span>
    </div>
  </div>
</template>
<script>
  export default {
    name: 'App',
    data (){
      return {
        imgList : [{
          big : 'http://www.hongyunbang.net/images/home/carousel_img1.png',
          small : 'http://www.hongyunbang.net/images/home/carousel_img_small1.png'
        },{
          big : 'http://www.hongyunbang.net/images/home/carousel_img2.png',
          small : 'http://www.hongyunbang.net/images/home/carousel_img_small2.png'
        },{
          big : 'http://www.hongyunbang.net/images/home/carousel_img3.png',
          small : 'http://www.hongyunbang.net/images/home/carousel_img_small3.png'
        },{
          big : 'http://www.hongyunbang.net/images/home/carousel_img4.png',
          small : 'http://www.hongyunbang.net/images/home/carousel_img_small4.png'
        },{
          big : 'http://www.hongyunbang.net/images/home/carousel_img5.png',
          small : 'http://www.hongyunbang.net/images/home/carousel_img_small5.png'
        },{
          big : 'http://www.hongyunbang.net/images/home/carousel_img6.png',
          small : 'http://www.hongyunbang.net/images/home/carousel_img_small6.png'
        }]
      }
    }
  }
</script>

License

The MIT License

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago