1.0.6 • Published 6 years ago

vue-imgload v1.0.6

Weekly downloads
1
License
ISC
Repository
-
Last release
6 years ago

Vue-imgload

npm

$ npm install vue-imgload --save-dev

Usage

main.js

import Vue from 'vue'
import VueImgLoad from 'vue-imgload'

Vue.use(VueImgLoad)

// or with options
Vue.use(VueImgLoad, {
  preLoad: 1.2,
  error: 'dist/error.png',
  loading: 'dist/loading.gif',
  attempt: 1
})

use work with raw HTML

  <img v-lazy="//domain.com/img1.jpg" :loading="default.jpg"/> 

License

The MIT License

1.0.6

6 years ago

1.0.5

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago