The current version has not been tested for the overall business, and those with the same needs are welcome to try it out. Preview 1. Demand Analysis Since Vue is heavily used in Example scenario:
2. Tried methodsI tried the following methods, but none of them worked as I expected: 2.1 keep-alive Generally, two
2.2 CSS with nested routes When I was looking at the examples of But there are also disadvantages:
3. Functional description
4. Installation and UsageInstall: npm install vue-page-stack # OR yarn add vue-page-stack use: import Vue from 'vue' import VuePageStack from 'vue-page-stack'; // vue-router is required Vue.use(VuePageStack, { router }); // App.vue <template> <div id="app"> <vue-page-stack> <router-view ></router-view> </vue-page-stack> </div> </template> <script> export default { name: 'App', data() { return { }; }, components: {}, created() {}, methods: {} }; </script> 5. API 5.1 Registration When registering, you can specify the name and Vue.use(VuePageStack, { router, name: 'VuePageStack', keyName: 'stack-key' }); 5.2 Forward and Backward If you want to add some animations when going forward, backward or on a special route, you can use 6. Related instructions6.1 keyName Why is the 6.2 Principle The This plugin has been in my mind for a long time. I worked on it on and off for a long time, and finally I got it done. I am really happy. The current version has not been tested for the overall business. Welcome to try it out if you have the same needs. If you have any comments or suggestions, please raise This plugin draws on both vue-navigation and vue-nav. I am very grateful for their inspiration. This is the end of this article about the details of Vue Page Stack Manager. For more relevant Vue Page Stack Manager content, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: How to configure anti-hotlinking for nginx website service (recommended)
>>: Mysql Chinese sorting rules description
1. Create a table using HTML tags: Copy code The ...
MongoDB is a high-performance database, but in th...
Apache Tomcat is an open source software that imp...
This article example shares the specific code of ...
Linux often encounters situations such as adding ...
In MySQL 8.0.18, a new Hash Join function was add...
Method 1: Use the SET PASSWORD command First log ...
(?i) means do not match case. Replace all uppercas...
Table of contents fold (reduce) Using for...of Us...
In web development, since the checkbox is small an...
Only show the top border <table frame=above>...
x-ua-compatible is used to specify the model for ...
Table of contents 1. What is a design pattern? 2....
border-radius: CSS3 rounded corners Syntax: borde...
Check what is installed in mysql rpm -qa | grep -...