Skip to content

基于 Vue 自定义指令实现图片懒加载

License

Notifications You must be signed in to change notification settings

yykyy123123/vue-lazy-img

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

基于 vue 自定义指令实现图片懒加载

安装依赖

yarn install

运行查看效果

yarn start

components 说明

IntersectionObserver 方案

  • lazy-img-plus.vue

onscroll 方案

  • lazy-img.vue

About

基于 Vue 自定义指令实现图片懒加载

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vue 70.6%
  • JavaScript 20.7%
  • HTML 8.7%