Vue Learning Notes Built-in Instructions and Forms

Vue Learning Notes (2) Built-in Instructions and Forms 1. Built-in Instructions 1. Basic Instructions v-cloak: It does not require an expression; it is removed from the bound HTML element at the end of the Vue instance compilation and is often used in conjunction with display:none of CSS. [v-cloak] { display: none; ...

Posted by jotate on Wed, 08 Apr 2020 21:06:44 -0700

Summary of form checks in elementui large projects

Summary of application of elementui form checking in large projects Use of vuex In the vue+elementui project, you can use vuex for state data management, which you can see here: Introduction to vuex Validation of forms in elemenuit First, you need to know the basic example of form validation: here: Form form for elementui Next, there are s ...

Posted by lasse48 on Tue, 07 Apr 2020 09:45:45 -0700

Vue webAPP home page development

Continue with previous article https://www.cnblogs.com/chenyingying0/p/12612393.html   Loading components In api--home.js, add code to delay ajax from displaying a second after it gets the data for the relay map import axios from 'axios'; import {SUCC_CODE,TIMEOUT} from './config'; //Get slide data ajax export const getHomeSliders=()=>{ ...

Posted by forsooth on Sun, 05 Apr 2020 11:08:31 -0700

Introduction to Vue -- imitating Baidu search

Sketch Learning the second section of vue, because version 2.0 is not downward compatible, many of the video can not be implemented. Here are some main knowledge points //v-on can be abbreviated as@ //Event bubbling means that when you click the button inside the div to trigger show1(), it will inevitably bubble to ...

Posted by renob on Sun, 05 Apr 2020 01:48:09 -0700

Making slide label with VUE

Step 1: write out the HTML structure First write a static effect you need to show, and then change it to VUE dynamic generation. The code is as follows: <div id="app1" class="wrap"> <ul class="tabs"> <li class="active"><a href="javascript:">Label 1</a></li> <li>&lt ...

Posted by SiMiE on Sat, 04 Apr 2020 21:06:54 -0700

Real router V4 & V5 interceptor (hook), static route, route view implementation

premise Before the v3 version of React Router, there was the onEnter hook function, which also supports the static routing configuration; however, after the v4 version, the hook function was removed, which is officially intended to be provided to developers, who can play it freely. In this case, we can only realize it ourselves. At present, th ...

Posted by sandrine2411 on Sat, 04 Apr 2020 13:35:56 -0700

ElementUI get sub component validation results

Recently, in the project, the parent component needs to obtain the verification result of the child component (form), which is sorted out as follows: Although there are prop s and events, sometimes you still need to access the subcomponents directly in JavaScript. To do this, use ref to specify a reference ID for t ...

Posted by maybl8r03 on Sat, 04 Apr 2020 06:40:08 -0700

Vue 2.0 monitoring text box content changes and ref instructions

<!DOCTYPE html>   <html lang="en">          <head>           <meta charset="UTF-8">           <title>Title</title>           <link rel="stylesheet" href="css/bootstrap.css">           <script src="js/jquery-3.2.1.min.js"></script>           <script src="js/bootstrap.js ...

Posted by TheMD on Sat, 04 Apr 2020 02:40:52 -0700

Vue router sub route (nested route)

The application interface in real life is usually composed of multiple nested components. Similarly, each dynamic path in the URL corresponds to the nested components in a certain structure. With the help of Vue router, this relationship can be expressed simply by using nested routing configuration. This document should be viewed first“ ...

Posted by MmmVomit on Fri, 03 Apr 2020 05:25:51 -0700

The element UI dialog component adds a draggable position and draggable width and height

There are several points to pay attention to Each pop-up window must have a unique dom operable instruction To add a draggable block header when dragging Because the element UI dialog component uses a percentage of its width at design time, there are compatibility problems with different browsers Getting edge when dra ...

Posted by Lee W on Thu, 02 Apr 2020 15:31:05 -0700