Releases: renatodeleao/v-base
Releases · renatodeleao/v-base
v-eye@0.4.1-alpha.1
- fixes retrieval of dom refs on vue3:
this.$el
no longer points to the first element passed to the slot on renderless components. It now points to a placeholder component (comment). We use this to get the element via.nextElementSibling
https://stackoverflow.com/a/71903249/2801012 - adds support for template refs: if you want v-eye to be bound to a specific element on the slot, use
setElementRef
function<v-eye v-slot="{ setElementRef }"> <div>Something i don't want</div> <button :ref="setElementRef>the element i want</button>
- drops usage of deprecated $set and $delete apis
Full Changelog: https://github.com/renatodeleao/v-base/compare/v-eye@0.4.0-alpha.0...v-eye@0.4.1-alpha.1
💚 with `@vue/compat`
Pushed the wrong version it should have been 0.4.0-alpha.1
but wtv
This patch makes the library work with vue@3
+ @vue/compat
. Default compat mode is 2
for backwards compatibility, but our isVue3
flag still evals to true
, so our utils
were wrongly forward to instance properties that "no" exist in this mode: $slots
in this mode are not yet covered to functions, as vue3, so it broke.
universal 🪐
What's Changed
- The library now works in
vue@2.7.x
andvue@3.x
. BREAKING: no longer works in2.6.x
check #3 for why. - added 2.7 and 3.x playgrounds to play around powered by vite
Full Changelog: https://github.com/renatodeleao/v-base/commits/v-eye@0.4.0-alpha.0