1.0.6 • Published 6 years ago
vue-imgload v1.0.6
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"/>