{"repo":"hezhongfeng/vue-page-stack","free":true,"listed":false,"github":"https://github.com/hezhongfeng/vue-page-stack","clone":"git clone https://github.com/hezhongfeng/vue-page-stack.git","description":"Routing and navigation for your Vue SPA. Vue3.0 单页应用导航管理器","language":"JavaScript","stars":767,"topics":["vue","vue-router","cache","stack","page","vue-navigation","vue-spa","translation","vue3"],"license":"MIT","category":"ui-components","readme_excerpt":"vue-page-stack vue-page-stack currently targets Vue 3. For the Vue 2 version, see v1.5.0. English 简体中文 --- A Vue 3 SPA navigation stack that preserves route state in stack order, so back navigation feels closer to a native app than a full page remount. Example preview demo code Features - Works on top of vue-router without changing your route definitions - Stores newly rendered pages on push and forward - Restores previous pages from the stack on back and go(-n) so local UI state can survive - Removes unreachable pages from the stack after back navigation - Replaces the current stack entry on replace - Emits back and forward events for direction-aware transitions - Supports browser back and forward buttons Compared with KeepAlive - VuePageStack manages pages in navigation order instead of providing include , exclude , or max - KeepAlive keeps previously cached pages around until they are evicted; VuePageStack trims pages that are no longer reachable in the stack - Navigating to the same route again creates a fresh page, while returning to an earlier page restores its cached instance Installation and use Installation Use Use a stable route key on the rendered route component. In most apps, $route.fullPath is the safest default because it treats different params and query strings as distinct stack entries. API Install Use app.use to install vue-page-stack . Options: Attribute Description Type Accepted Values Default --------- ----------- ---- --------------- ------- router vue-","default_branch":null,"files":null,"tree":[],"storefront":"/r/hezhongfeng","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/hezhongfeng/vue-page-stack/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}