search
HomeCommon ProblemWhat does the vue.js family bucket include?

Vue.js family bucket includes scaffolding vue-cli, routing vue-router, state management mode vuex, axios, and UI framework. Vue is a JavaScript framework for building user interfaces. It is built based on standard HTML, CSS and JavaScript, and provides a set of declarative and component-based programming models to help developers develop user interfaces efficiently.

What does the vue.js family bucket include?

The operating system of this tutorial: Windows 10 system, vue version 3.0, Dell G3 computer.

Vue.js family bucket is composed of scaffolding vue-cli, routing vue-router, state management mode vuex, axios, and UI framework. Vue (pronounced /vjuː/, similar to view) is a JavaScript framework for building user interfaces. It is built based on standard HTML, CSS and JavaScript, and provides a declarative and component-based programming model to help developers develop user interfaces efficiently.

1. Project construction tool: vue-cli

vue-cli is also called scaffolding and is officially defined as a standard tool for Vue.js development. Vue-cli is a complete system for rapid development based on Vue.js, which can automatically generate Vue.js webpack project templates. Vue cli provides powerful features for customizing new projects, configuring prototypes, adding plugins and inspecting webpack configurations. @vue/cli 3.x version can quickly create the scaffolding of a new project through the vue create command. It does not need to rely on webpack to build the project like vue 2.x.

Compared with the introduction of scirpt tags, vue-cli scaffolding has the following characteristics:

1) Rich functions

Supports Babel, TypeScript, ESLint, PostCSS, PWA, unit testing and End-to-end testing is supported out of the box.

2) Easy to Expand

Its plug-in system allows the community to build and share reusable solutions based on common needs.

3) No Eject required

Vue CLI is completely configurable, no eject required. This way your project can be kept updated for a long time.

4) Graphical interface on CLI

Create, develop and manage your projects through the supporting graphical interface.

5) Instantly create prototypes

Use a single Vue file to instantly implement new inspirations.

6) Future-proof

Easily produce native ES2015 code for modern browsers, or build your Vue components as native Web Components.

Installation

npm install -g @vue/cli
# OR
yarn global add @vue/cli

//安装完成后创建一个项目,vue ui为图形化构建,相对简单(推荐)
vue create my-project
# OR
vue ui

2. Routing manager: vue-router

vue-router is the official routing manager launched by Vue. It is mainly used to manage URLs, realize the correspondence between URLs and components, and switch between components through URLs, making it easier to build single-page applications. It mainly has the following features:

1) Nested routing/view table

2) Modular, component-based routing configuration

3) Routing parameters, queries, Wildcard

4) View transition effect based on Vue.js transition system

5) Fine-grained navigation control

6) Links with automatically activated CSS classes

7)HTML5 history mode or hash mode, automatically downgraded in IE9

8)Customized scroll bar behavior

vue Router installation code

npm install vue-router
//安装后在mainjs引入
import VueRouter from 'vue-router'

Vue.use(VueRouter)

3. State management mode: vuex

In some large projects, sometimes we encounter a single page that contains a large number of components and complex data structures, and may be different. Components also affect each other's state, in which case the flow of events in the component tree can quickly become very complex, making debugging extremely difficult. In order to solve this problem, the state management model of Vuex was introduced. Vuex is an implementation library of the state management model. It is mainly used in conjunction with Vue.js in the form of a plug-in, which allows us to manage complex tasks in Vue.js. Component event flow.

vuex installation method

npm install vuex --save

4. axios

##Axios is a promise-based HTTP library. Simply put, it can send get , post request.

Axios Features

1) Create XMLHttpRequests from the browser

2) Create http requests from node.js

3) Support Promise API

4) Intercept requests and responses

5) Convert request data and response data

6) Ability to cancel requests

7) Automatically convert JSON data

8) The client supports defense against XSRF

Installation method

npm install axios
Or directly introduce

<p></p><p>5. UI framework: iview, vant, elementUI<strong></strong></p>iview A set of high-quality UI component libraries based on Vue (divided into Different versions such as mini program and PC version);<p></p>vant is a lightweight and reliable mobile Vue component library. It is a set of mobile component libraries based on Vue 2.0 open sourced by Youzan, aiming to be faster and simpler. Develop beautiful and easy-to-use mobile sites based on Vue. <p></p>Ant Design Vue is the Vue implementation of Ant Design, which develops and serves enterprise-level backend products. <p></p>elementUI is based on the Vue 2.0 desktop middle and backend component library. <p></p>

The above is the detailed content of What does the vue.js family bucket include?. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
ao3 quark entrance official website ao3 official website quark entranceao3 quark entrance official website ao3 official website quark entranceMay 15, 2025 pm 06:45 PM

1. Ao3 official website quark entrance☜☜☜☜☜☜Click to save. 2. Ao3 Quark entrance official website☜☜☜☜☜☜☜Click to save. 【ao3】1. AO3 (Archive of Our Own) is a huge online archive website created by fans. 2. It mainly contains fan works, covering a wide variety of media, from books and movies to TV series and games, almost everything is included. 3. AO3 has rich content and diverse types, which can meet the needs of different readers.

ao3 mirror URL quark ao3 mirror address quark entranceao3 mirror URL quark ao3 mirror address quark entranceMay 15, 2025 pm 06:42 PM

1. Ao3 mirror URL Quark☜☜☜☜☜☜☜☜ Click to enter. 2. Ao3 mirror address quark entrance ☜☜☜☜☜☜☜ Click to enter. 3. AO3 (Archives Our Own) is a non-profit fan and fan-fiction archive website launched on October 29, 2008. 4. AO3 is a website founded by fans and run by fans, dedicated to protecting the works created by fans and providing a censorship-free environment for fan novel writers.

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Roblox: Bubble Gum Simulator Infinity - How To Get And Use Royal Keys
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Nordhold: Fusion System, Explained
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Mandragora: Whispers Of The Witch Tree - How To Unlock The Grappling Hook
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Clair Obscur: Expedition 33 - How To Get Perfect Chroma Catalysts
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft