Skip to content

Sevody/ve-lazyload

Repository files navigation

ve-lazyload

A Vue.js component for lazyload

Usage

ES6 Modules / CommonJS

$ npm run build
import VeLazyload from 'dist/ve-lazyload';

Vue.component('ve-lazyload', VeLazyload);
<ve-lazyload :src="targetImg" width="100px" height ="100px"></ve-lazyload>

UMD

$ npm run build:umd
<ve-lazyload :src="targetImg" width="100px" height ="100px"></ve-lazyload>

<script src="https://unpkg.com/vue" charset="utf-8"></script>
<script src="./dist/ve-lazyload.min.js" charset="utf-8"></script>

<script type="text/javascript">
  Vue.component('ve-lazyload', window.VeLazyload);
</script>

Installation

Using yarn

yarn add ve-lazyload

Using npm

npm i --save ve-lazyload

Demo and Docs

npm run serve

Tests

This template uses karma with chai by default, you can change test settings in poi.config.js

npm run test npm run test:watch npm run test:cov

License

This project is licensed under MIT License

About

A Vue.js component for lazyload

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published