hilongjw / vue-lazyload

A Vue.js plugin for lazyload your Image or Component in your application.
http://hilongjw.github.io/vue-lazyload/
MIT License
7.98k stars 865 forks source link

A bug between lazy-component and v-lazy #453

Open sanfengliao opened 3 years ago

sanfengliao commented 3 years ago

Bug & Does not support on-demand import

bug: I want to use v-lazy and lazy-component to achieve such an effect: the image starts to request when the visual window is 20px (v-lazy), and the component does not mount until it enters the visual window (lazy-component), but because of v- lazy and lazy-component use the same option (preLoad), so this effect cannot be achieved(maybe this is a bug). Does not support on-demand import: I only want to use v-lazy, but have to import useless components such as lazy-conponent lazy-image

PR

I make a pr about this a problem pr