Vue.js from entry to mastery day 4

Vue.js - Day4 Parent component passes value to child component For the component instance definition method, note: the props attribute must be used to define the data passed by the parent component <script> // Create Vue instance and get ViewModel var vm = new Vue({ el: '#app', data: { msg: 'This is the ...

Posted by moselkady on Wed, 09 Mar 2022 15:29:38 +0100

Part12 - NuxtJS server side rendering

01 - server rendering technology 02-Nuxt. Introduction to JS 1, Installation and operation Online installation method: Reference: https://zh.nuxtjs.org/docs/2.x/get-started/installation We can directly unzip nuxt app zip 2, Page, navigation and routing 1. Page Create the pages directory, and create the index in the pages directory vue ...

Posted by jmgarde on Wed, 09 Mar 2022 14:59:48 +0100

Learn the calculated data in Vue from the perspective of source code

computed: calculated attribute, which is generally used when a variable depends on the change of multiple variables or needs some processing. The value is responsiveThe data is cached Calculation attribute: cache based on their response type. It will be re evaluated only when the related response type dependency changes. The following i ...

Posted by adige72 on Tue, 08 Mar 2022 10:54:16 +0100

Graphical analysis of Vue3 diff algorithm

Graphical analysis of Vue3 diff algorithmHello, I'm jiandarui. This article mainly analyzes Vue3 diff algorithm. Through this article, you can know:diff's main process, core logicHow does diff reuse, move and unload nodesAnd there is an example, which can be analyzed in combination with this paperIf you don't particularly understand the patch p ...

Posted by someberry on Tue, 08 Mar 2022 05:48:46 +0100

Vue advanced (one eight two): parent-child component element acquisition and method call each other

preface During the development of Vue project, sometimes we need the parent component to directly access the child component, the child component to directly access the parent component, or the child component to access the root component. Sort out the following request methods: Parent component accesses child component: $children or $refsChi ...

Posted by eyespark on Tue, 08 Mar 2022 01:35:48 +0100

Vue learning notes (self use, incomplete)

Vue summary Is a progressive JavaScript framework for building user interfaces. Vue is designed to be applied layer by layer from the bottom up. Vue's core library only focuses on view layers to facilitate integration with third-party libraries or existing projects. Soc separation of concerns principle UI framework Ant design, produced by ...

Posted by dmschenk on Tue, 08 Mar 2022 01:22:45 +0100

How to use icon gracefully in Vue project

Before we begin to understand how to standardize the use of icon in Vue projects, we need to understand some of the most basic knowledge points of icon - sprite technology. Sprite Technology Currently, SVG sprite's best practice is to use the symbol element. What is the symbol element? In simple translation, it means "symbol". Howev ...

Posted by Arrow on Tue, 08 Mar 2022 00:15:35 +0100

Vue3 study notes

Vue3 study notes setup = data + methods + computeds Report component: transfer its internal content to the target element Suspend component: load asynchronous component createApp(): create a new instance Do not use the arrow function on the option property or callback, because it does not have this, resulting in an error v-once: when the ...

Posted by foochuck on Tue, 08 Mar 2022 00:03:26 +0100

vue implements rolling load instruction

Scroll loading instructions, with source code and use cases, can be used directly. Background: Rolling paging is required in the project, but it will be triggered when rendering with v-infinite-scroll, so you can implement the rolling loading instruction instead prerequisite: jquery.js: jQuery is used to calculate the element height, w ...

Posted by arlabbafi on Mon, 07 Mar 2022 17:47:21 +0100

VUE3 uses labels to achieve animation and transition effects - this series of tutorials is easy to understand and suitable for novices

1. General Caterpillar effect: In one experiment, many caterpillars were placed on the edge of a flowerpot to make them connect head to tail and form a circle. Then sprinkled some caterpillar food near the flowerpot. At this time, caterpillars do not climb in the direction of food, but circle one by one at the edge of the flowerpot until they d ...

Posted by danc81 on Sun, 06 Mar 2022 15:37:47 +0100