# v-lazy-pic

> Vue 图片懒加载指令

Latest version **2.0.1** (published 2022-04-15) · ISC license · 0 weekly downloads

## Install

```sh
npm install v-lazy-pic
pnpm add v-lazy-pic
yarn add v-lazy-pic
bun add v-lazy-pic
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.1 |
| Published | 2022-04-15 |
| First published | 2022-04-15 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | songyu |
| Maintainers | zard1991 |

## Links

- npm: https://www.npmjs.com/package/v-lazy-pic
- npm.io page: https://npm.io/package/v-lazy-pic

## Recent versions

- 2.0.1 (latest) — 2022-04-15

## README

## v-lazyload-src
Vue 轻量级图片懒加载指令。

### 安装
使用 [npm](https://www.npmjs.com/package/v-lazyload-src) 安装：
```git
npm i v-lazyload-src --save
```

```javascript
import Vue from 'vue'
import vueLazyLoad from 'v-lazyload-src';

Vue.use(lazyLoad, {
     loading:'http://localhost:5500/images/loading.gif',
     error: 'http://localhost:5500/images/default.jpg',
     preload: 1
})
```

### 使用

```html
<template>
     <img  alt="" v-lazy="item.index_pic">
</template>
```

---
_Source: https://npm.io/package/v-lazy-pic · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
