vue+element: use lazy loading or remote search when there is too much data in the El select drop-down box
Recently, a lot is too laggy to cause too much card or even stuck. Search lazy loading and remote search methods.
1. El select lazy loading
The data in the El select selector is returned through the back end. Nearly 20000 pieces of data are returned here. Click the selector page to open the special card, so it is best to use the lazy loading me ...
Posted by MLJJ on Mon, 01 Nov 2021 18:42:41 +0100
Vue3 new feature experience -- in (Composition API)
The Composition API in Vue3 is mainly used to facilitate the integration of codes, centralize the codes that realize the same functions, and facilitate maintenance and management. The entry of the new features of the Composition API - the setup() function, which is a new attribute provided for components. Make a simple example and feel it.
The ...
Posted by popsiclesph on Sat, 30 Oct 2021 06:55:37 +0200
Vue _ Tutorial version 04 components
catalogue
1, Vue components
1.1 overview
1.2. Global registration
1.3 partial registration
1.4 value transfer between components
1.5 dynamic components
2, Component slot
2.1. Single slot
2.2 named slot
2.3. Scope slot
1, Vue components
1.1 overview
assembly (Component) is one of the most powerful functions of Vue.js. It is ...
Posted by TexasMd91 on Fri, 29 Oct 2021 15:09:11 +0200
Vue component [advanced version]
Dynamic component
Objective: multiple components use the same mount point and switch dynamically, which is called dynamic components
Steps:
2 components to be switched - username.vue / userinfo.vue Import to UseDynamic.vue registration Prepare variables to host the component name to display Set the mount point < component > ...
Posted by GreyBoy on Fri, 29 Oct 2021 13:02:33 +0200
Vue practice foundation arrangement
Vue practice foundation arrangement
Recently, I was reading the project source code and systematically learning the classic development architecture of SpringBoot+Vue, but today I opened the back-end code I wrote before and found that many of them had forgotten, so I decided to stop and summarize the problems encountered this week for later re ...
Posted by pestilence669 on Thu, 28 Oct 2021 19:22:44 +0200
8000 words introduction ECMAScript 6.0 (gray article ~)
1. ES6 Foundation
1.1 what is ES6
ECMAScript 6.0 (hereinafter referred to as ES6) is the next generation standard of JavaScript language, which has been officially released in June 2015. Its goal is to make JavaScript language can be used to write complex large-scale applications and become an enterprise development language. The standa ...
Posted by bjazmoore on Thu, 28 Oct 2021 18:23:01 +0200
vue foundation V (state management)
vuex is a software developed specifically for Vue.js applications
State management mode.
Centralized storage management is adopted to manage the state of all components of the application, and corresponding rules are used to ensure that the state changes in a predictable way.
Vue provides a unified management tool - VueX for these values ...
Posted by foid025 on Thu, 28 Oct 2021 13:59:37 +0200
Eight ways of transmitting parameters in vue routing
Programming routing parameters
In addition to creating a tag to define navigation links, we can also use the instance method of router to write code.
1. Pass through params
Routing configuration
Path parameters are represented by colon:.
const routes = [
// The dynamic segment starts with a colon
{ path: 'details/:id', name: "d ...
Posted by Tonka1979 on Tue, 26 Oct 2021 02:41:37 +0200
Do you understand the principle of Axios? Have you seen its source code?
1, Use of axios
The basic use of axios has been covered in the previous article. Here is a brief review:
Send request
import axios from 'axios';
axios(config) // Direct incoming configuration
axios(url[, config]) // Incoming url and configuration
axios[method](url[, option]) // Directly call the request mode method, and ...
Posted by shinichi_nguyen on Mon, 25 Oct 2021 06:46:38 +0200
Summary of component communication methods
How components communicate
props$emit$listener and $attrsGlobal event busvuex
props
Parent component
<template>
<div>
First
<second :fatherMessage="fatherMessage" />
</div>
</template>
<script>
import second from './Second'
export default {
name: 'First',
data(){
return {
...
Posted by Ghost_81st on Sun, 24 Oct 2021 11:16:05 +0200