A Vue.js component for lazyload
$ npm run build
import VeLazyload from 'dist/ve-lazyload';
Vue.component('ve-lazyload', VeLazyload);
<ve-lazyload :src="targetImg" width="100px" height ="100px"></ve-lazyload>
$ 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>
yarn add ve-lazyload
npm i --save ve-lazyload
npm run serve
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
This project is licensed under MIT License