antoniandre / splitpanes

A Vue 3 (and 2) reliable, simple and touch-ready panes splitter / resizer.

Home Page:https://antoniandre.github.io/splitpanes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hiding / showing a pane with caching

edbotstudio opened this issue · comments

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?

commented

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