Project final packaging optimization
Packaging Optimization - Overview
Project development completed
pack:
Package with webpack (put. Vue,. JS,. Less --------- >. JS,. CSS,. HTML) The command npm run build is provided in the project
Packaging Optimization:
On the premise of ensuring the availability of functions, let our files be as small as possible On the premise of ...
Posted by web.designer.iq on Sun, 31 Oct 2021 10:59:41 +0100
vue template syntax
Matters needing attention in naming the contents of this issue:
① . variable definitions cannot use middle dashes
② . hump cannot be used for custom component naming
1, Style binding
1. class binding Usage: v-bind:class="expression" ...
Posted by Hipster on Sat, 30 Oct 2021 08:05:35 +0200
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 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
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
Detailed explanation of vux advanced module splitting
Detailed explanation of vux advanced module splitting
If we are a vue project built with scaffolding, there is a store folder in the default directory, and there is only one index.js below. If it is a small project, we don't need to split the module and write it directly in it
2.
If it is a slightly larger project, we will help ...
Posted by Mr.x on Fri, 22 Oct 2021 11:51:02 +0200
vue note 7 (to be continued...)
vue notes 7
16. Dynamic components
In addition to using conditional rendering (v-if/v-show), dynamic components can also be used to dynamically switch between different components somewhere in the page.
vue provides component tag to implement;
The attribute name of the is attribute on the component tag determines which component is used for ...
Posted by bweekly on Tue, 19 Oct 2021 21:15:27 +0200
vue component Foundation
vue componentization
Simple understanding
What is componentization?
The so-called componentization means that the page is divided into multiple components, and the CSS, JS, templates, pictures and other resources that each component depends on are developed and maintained together. Because components are resource independent, components can ...
Posted by John_S on Tue, 19 Oct 2021 07:55:00 +0200