drewjbartlett / vue-simple-breakpoints

A wrapper for simple-breakpoints for Vue.js
19 stars 2 forks source link

Not attached to window resize event? #3

Open EvanAgee opened 7 years ago

EvanAgee commented 7 years ago

First off thanks for the plugin!

I'm trying to use this to conditionally set an image src and while it works great on refresh it's not swapping the src when the window is resized. Is this by design? I would love to be able to use the functions within a computed value for dynamic component and attribute swapping.

Thanks!!

xpmn commented 6 years ago

Still nothing? Looks like issue is ignored

adi518 commented 6 years ago

It seems the package, which it depends on does listen to the resize event.

This package probably misses some implementation to have this work on resize.

Anyway, the major pitfall I find with this package is that it's a Vue plugin, so you can't compose it, for example into a library of components.

Nice job nonetheless.