Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.idea add options timeout Sep 16, 2016
build 为了兼容打包之后的程序 Sep 12, 2016
dist add rollup build Sep 29, 2016
example fix bug and npm publish Sep 12, 2016
src fix bug Sep 21, 2016
.babelrc.bak add rollup build Sep 29, 2016
.gitignore add gitignore Sep 22, 2016 增加效果展示 Sep 12, 2016 update Sep 22, 2016
package.json add rollup build Sep 29, 2016
rollup.config.js add rollup build Sep 29, 2016
webpack.config.js fix bug Sep 12, 2016

npm version NPM Downloads



How do use?



step 1 install

npm install --save vue-lazyloadimg

step 2 use vue

import vue-lazyloadimg

import vueLazyImg from 'vue-lazyloadimg';
import vue from 'vue';

step 3 .vue setting image

module read class lazyimg and cache to onscroll event.

<img src="{{'1x1 transform png'}}" :data-src="{{need load img url}}" class="lazyimg" alt="">

build script

use babel.