🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

vue-lazy-load

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-lazy-load

0.0.7

0.0.7
latest
npm
Version published
Weekly downloads
29
-56.72%
Maintainers
1
Weekly downloads
 
Created
Source

##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

Keywords

vue

FAQs

Package last updated on 07 Aug 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts