vue-lazy-load

1,518
Install
npm install vue-lazy-load@1.0.0
Latest Version:1.0.0
Vue:1
License:MIT
Last Updated:Aug 7, 2016
Links: npm
Maintainer: camoth

##vue-lazy-load


###插件介绍 最近移动端项目有图片懒加载需求就索性自己写了一个,暂时先用着,以后再优化

###使用方法

// 安装插件
npm install vue-lazy-load
// 使用插件
import Vue from 'vue'
import lazyload from 'vue-lazy-load'
Vue.use(lazyload,{
	loading: '默认图片',
	error: '加载错误图片'
	}
)
//使用v-lazy指令
 <div v-for="img in list">
 	<img v-lazy="img">
 </div>

###运行demo

npm run dev

Related Packages

vue-lazyload-img

A plugin of vue for image lazyload, especially optimized for mobile browser(vue...

844 248
vue-lazyload

Vue module for lazy-loading images in your vue.js applications.

2,917,864 7,978
vue-lazyload-token

Vue module for lazy-loading images in your vue.js applications.

1,089 7,977
vue-lazyload-ssr

Vue module for lazy-loading images in your vue.js applications.(support ssr)

853 1
@jambonn/vue-lazyload

Vue module for lazy-loading images in your vue 3 applications.

29,292 38

Version History

Version Released Vue License
1.0.0 ^1.0.26 MIT
0.0.7 ^1.0.26 MIT
0.0.6 ^1.0.26 MIT
0.0.5 ^1.0.26 MIT
0.0.4 ^1.0.26 MIT