antoniandre / wave-ui

A UI framework for Vue.js 3 (and 2) with only the bright side. ☀️
https://antoniandre.github.io/wave-ui
MIT License
549 stars 40 forks source link

[Feature Request] `keep-alive`-like support for `w-tabs` #65

Closed gudzpoz closed 3 years ago

gudzpoz commented 3 years ago

Currently it seems tab contents are getting created each time one switches a tab. (See https://codepen.io/gudzpoz/pen/PojYJMv for an instance: each w-switch is a new switch and the w-accordion state is not preserved.) When the content is big, re-rendering each time is inefficient and an effect like keep-alive or v-show might be desirable.

antoniandre commented 3 years ago

Hi @GuDzpoz, that makes sense. Adding this to my todo. :)

antoniandre commented 3 years ago

Hi @GuDzpoz, @macjuul,

Thanks for your feature request and clear example on Codepen 👍 This is now implemented in version 1.40.0 (You can rerun your Codepen).

Hope it helps, please reopen if not solved. :)