dalphyx / vue-headroom

Headroom for Vuejs
128 stars 16 forks source link

Migrate to Vue3 #56

Open caro3801 opened 8 months ago

caro3801 commented 8 months ago

This PR aims to migrate vue headroom to Vue3. It uses yarn as dependency manager and vite as a builder. Removes raf polyfill dependency as suggested in https://github.com/dalphyx/vue-headroom/pull/44 I had to add a ref to the slot parent to retrieve the height of the slot because this.slots.default()[0].elm.offsetHeight was undefined and I did not find any other work around.