antoniandre / splitpanes

A Vue 3 (and 2) reliable, simple and touch-ready panes splitter / resizer.
https://antoniandre.github.io/splitpanes
MIT License
1.85k stars 166 forks source link

Hiding / showing a pane with caching #190

Open edbotstudio opened 1 year ago

edbotstudio commented 1 year ago

If I hide a pane with <v-if>, the child component is destroyed in a similar way to <router-view>. I need it caching so the pane is hidden and shown again in its last state (with a button toggle). I tried placing <keep-alive> around the pane but this messed up the view. Is there a way this can be done?

kakigakki commented 1 year ago

Perhaps setting the minimum size to 0 and hiding the splitter would work?