1.1.0 • Published 3 years ago

vue-webp-lazyload v1.1.0

Weekly downloads
38
License
MIT
Repository
-
Last release
3 years ago

vue-webp-lazyload

intro

A concise Vue plugin that provides webp images and lazyload

download

npm install -save vue-webp-lazyload

usage

main.js

import lazyLoad from '@/vue-lazyload/index.js'

Vue.use(lazyLoad,{
  loadImg:'/static/loading.svg',
  failImg:'/static/fail.png',
  openWebp:false
})

template

 <img v-webp="{image:'https://grewer.github.io/dataSave/back.jpg',
      webp:'https://grewer.github.io/dataSave/back.webp'}">

grammar

paramexplanation
loadImgLoading picture
failImgFailed to load the picture
openWebpWhether to support webp picture

github

License

MIT

Copyright (c) 2018-present, Grewer

1.1.0

3 years ago

1.0.1

4 years ago

1.0.0

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago