wormsan / vue-lazyload-img

A plugin of vue for image lazyload(vue图片懒加载插件)
http://docs.gomeminus.com/vue-lazyload-img/test/bundle.html
MIT License
249 stars 52 forks source link

当为单页面应用的时候,如果路由到另一没有使用懒加载的页面,会报错 #4

Closed ykx456654 closed 7 years ago

ykx456654 commented 8 years ago

Uncaught TypeError: Cannot read property 'getBoundingClientRect' of null

需要在 compute方法执行的时候进行判断, this.el != undefined

whwnow commented 8 years ago

这个github上的版本时有的,但是npm没更新,落后了……

wormsan commented 8 years ago

已经提交npm

wormsan commented 7 years ago

v1基本放弃了,v2对router做了较好的处理,如果还需要对v1修复的话,欢迎直接提交merge request