Application and principle of v-model
Application and principle of v-model
1. Use of V-model
Form controls are very common in practical development. Especially for the submission of user information, a large number of forms are required.Vue uses the v-model instruction to realize the two-way binding of form elements and data.Case analysis:
When we enter something in the input ...
Added by Atari on Fri, 17 Dec 2021 23:37:45 +0200
uniapp custom bottom navigation bar
When working on a project, it is often encountered that the style on the UI diagram cannot be implemented in the existing framework. For example, the font of the bottom navigation bar can be changed into a gradient when it is selected. The css style can be directly modified in the browser, but it is found that it does not take effect at all whe ...
Added by jediman on Fri, 17 Dec 2021 16:10:19 +0200
Quick start Vue3
I Quick start Vue3
1. CDN using Vue3
<script src="https://lib.baomitu.com/vue/3.0.2/vue.global.js"></script>
2.vue-cli
Upgrade to Vue cli v4 5 (remove and install)
npm i -g @vue/cli@next
3. Use Vite
Using the feature that ES6 import will send requests to load files, intercept these requests, do some precompiling, and the pr ...
Added by Quilmes on Thu, 16 Dec 2021 16:53:40 +0200
New Vue3 status management tool: Pinia
Vue3 has been released for some time. It adopts a new responsive system and builds a new Composition API. The surrounding ecology of Vue is stepping up the adaptation of this new system, and the official state management library Vuex is also being adapted. Therefore, the official puts forward a Vuex 5 A new proposal.Support two syntax to create ...
Added by aspbyte on Wed, 15 Dec 2021 14:59:49 +0200
Customize vue bottom navigation bar component tabbar
TabBar
Customize vue bottom navigation bar component tabbar. The effect is as follows:
1. Basic structure construction
According to the idea of component encapsulation, we create several folders in advance to store the corresponding part of the code. The file results are shown in the following figure: From the rendering, the bottom can b ...
Added by michalurban on Wed, 15 Dec 2021 01:57:16 +0200
[source code interpretation] read Vuex4 source code
Writing is not easy. Reprinting in any form is prohibited without the permission of the author! If you think the article is good, you are welcome to pay attention, praise and share! Continue to share technical blog, pay attention to WeChat official account. 👉🏻 Front end LeBron Original link
Vuex4
Vuex is a commonly used state manageme ...
Added by Fog Juice on Wed, 15 Dec 2021 01:01:57 +0200
(springboot+vue) the back end uses the ID value from the front end of vue to play specific videos
Synopsis: when performing the video playback function, I want to use axios to transmit id to the back end to play the corresponding video (my video exists locally, and it should be similar if I use a server.)
The first step is to obtain and display all the video information stored in the database, that is, write a findAllVideo interface to ...
Added by jbatty on Tue, 14 Dec 2021 07:03:05 +0200
Use of $. nextTick() method
Definition: performs a deferred callback after the end of the next DOM update cycle. Use this method immediately after modifying the data to get the updated dom. Therefore, the Vue method for obtaining the updated DOM is derived.
The execution in the Vue.nextTick() callback function should be js code that will operate on the DOM.
Understanding: ...
Added by oldmanice on Wed, 08 Dec 2021 11:04:37 +0200
Introduction and implementation of micro front end
1. What is a micro front end?
Micro front end is a technical means and method strategy for multiple teams to jointly build modern web applications by publishing functions independently.
2. Core values
① Technology stack independent: the main framework does not limit the access to the technology stack of applications, and micro applications h ...
Added by IanMartins on Wed, 08 Dec 2021 09:31:20 +0200
Vue template instruction
preface
Over the past few years, I have been struggling in the it industry. Along the way, many have summarized some high-frequency interviews in the python industry. I see most of the new blood in the industry, and I still have all kinds of difficult questions for the answers to all kinds of interview questions or collection
Therefore, I dev ...
Added by richie19rich77 on Wed, 08 Dec 2021 02:54:19 +0200