1.0.0 • Published 8 years ago

vue-lazy-img v1.0.0

Weekly downloads
3
License
ISC
Repository
github
Last release
8 years ago

vue-lazy-img

Build Status

A component for image lazy loading implement by vuejs

Demo

Demo

Usage

Install

npm install vue-lazy-img --save

And, if you are using vue 2.0

npm install vue-lazy-img@next --save

CommonJS

var VueLazyImg = require('vue-ip-input');

new Vue({
    components: {
        'vue-lazy-img': VueLazyImg
    },
    template: '<vue-lazy-img source="..." placeholder="..."></vue-lazy-img>'
});

ES6

import VueLazyImg from 'vue-lazy-img';

new Vue({
    components: {
        'vue-lazy-img': VueLazyImg
    },
    template: '<vue-lazy-img source="..." placeholder="..."></vue-lazy-img>'
});

Props

PropertyDescription
sourcethe source of the image
placeholderthe placeholder of the image which will be loaded before the source

License

MIT

1.0.0

8 years ago

0.1.0

8 years ago

0.0.1

8 years ago