Vue router realizes parameter transfer between Vue components

1. Suppose there are two Vue components, index.js in the src/router folder import Vue from 'vue'; import Router from 'vue-router'; import officeHome from '@/view/officeHome'; import home from '@/view/home'; Vue.use(Router); export default new Router({ routes: [ { path: '/officeHome', name: 'officeHome', ...

Added by cry of war on Thu, 19 Dec 2019 20:07:04 +0200

Vue router dynamically loads routes

We use vue to develop a management system with authority. Different menu items are displayed according to different users Scenario: the front-end menu is not statically written in the vue program, but is dynamically loaded into the vue application from the menu list obtained from the background interface Ideas: 1. When the lo ...

Added by bob1660 on Tue, 17 Dec 2019 19:42:06 +0200

When the vue list goes to the details page and returns to the list, save the cache and call the interface again

Using keepAlive caching scheme Note that using in the layout page is not necessarily in App.vue, and the judgment may be a little grumpy. It's better to make a sketch and list all the situations. For example: Jump from non cache page to cache list = > clear cache Cache list jump to details = > unclear cache Cache list jump to cache l ...

Added by radalin on Tue, 17 Dec 2019 19:27:29 +0200

vue component initialization process

It was written in the previous article Instantiation process of vue constructor , just a rough description of the vue instance. There is no detailed description of the process of converting the vue component and virtual DOM into real Dom and page mounting. This paper mainly describes the initialization process of vue components and the conversi ...

Added by php_guy on Tue, 17 Dec 2019 13:47:38 +0200

What do I need to do when I first use TypeScript in a Vue project

Preface As we all know, the new version 3.0 of Vue uses TypeScript development, which makes the already popular TypeScript attract more people's attention. Although TypeScript has only been popular in recent years, it was actually born in October 2012, and the official version was released in June 2013. It is a free and open source programming ...

Added by mikkex on Sat, 14 Dec 2019 22:12:28 +0200

SSM + VUE realize simple CRUD

I. project analysis 1, demand (1) using ssm + vue to implement a crud (database addition, deletion, modification and query).(2) front and back ends are separated, front page display + background management.   2. Technical points (1) basic framework: SSM (Spring, Spring MVC, Mybatis)(2) database: Mysql(3) front end: UI frame iView + vue(4) proje ...

Added by ErikTheViking on Thu, 12 Dec 2019 11:39:06 +0200

Comprehensive exploration of new features of Vue3.0 - rapid construction of practical projects based on Composition Api

Quick Start Project source code: https://github.com/Wscats/vue-cli This project comprehensively uses the new features of Vue3.0, which is suitable for novice learning Based on the Composition API, i.e. function based API, the transformation is carried out. With Vue Cli, the priority is to experience the characteristics of Vue3 Using singleton ...

Added by EvanAgee on Tue, 10 Dec 2019 11:22:34 +0200

vue-cli Project Trench

mock data in vue-cli project Install http-server. Run with the project. The src path creates a mock folder that configures the required json data. Root path creates vue.config.js setting proxy condition. Enter mock.Start http-server. # yarn global add http-server # touch vue.config.js # mkdir src/mock # touch src/mock/list.json # cd mock # h ...

Added by jamesl on Sat, 07 Dec 2019 22:05:28 +0200

Use example of Vue waterfall flow plug-in

I wrote a Vue waterfall flow plug-in by myself. The number of columns is self-adaptive, and I don't need to set the height of each card. Test page: Page.vue Template pages: WaterFollow.vue and WFColumn.vue In Page.vue, modify the value of itemW to set the minimum width of each column. For example: itemW="200" (meaning 200px). list is ...

Added by PromInc on Sat, 07 Dec 2019 03:46:01 +0200

Vue learning Road Part 11: set class style for page elements

1. class is an attribute of the page element. According to the content in the previous chapter 5, the operation attribute needs to be specified by v-bind (or simply:). 2. Let's start with a simple page style: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=d ...

Added by leeroy1 on Thu, 05 Dec 2019 06:53:07 +0200