MopTym / vue-waterfall

A waterfall layout component for Vue.js
MIT License
2.17k stars 258 forks source link

Use of window necessary? #12

Closed haffla closed 7 years ago

haffla commented 7 years ago

Hello, is the use of window really necessary? As far as I can see there are only a few events bound to window. The thing is that the use of it makes it impossible to use vue-waterfall in a server-side-rendered app.

Would using body instead of window work?

MopTym commented 7 years ago

The key is we can't access window before beforeMount event, now it supports SSR.