vue插件,延迟载入图片.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
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
README.CN.md 增加效果展示 Sep 12, 2016
README.md update README.md 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

README.md

npm version NPM Downloads

NPM

NPM

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';
vue.use(vueLazyImg);

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.