6 practical Vue3 related ecology (summary sharing)
This article will help you organize and share some practical vue related ecology. I hope it will be helpful to everyone!
1. Vue plug-in library
Vue plug-in library collects the latest and most complete Vue plug-ins and provides detailed usage methods of various Vue plug-ins. , supports online preview and Vue plug-in download. (Learning video sharing: vue video tutorial)
Official address: https://www.vue365.cn/
vue The plugin library aims to provide web and mobile application developers with the latest free Vue.js components and plugins.
2, Pinia
Lightweight state management library, the API design is closer to the Vuex 5 proposal, and is also the state recommended by the Vue core team Management library, supporting both Vue2 and Vue3.
Official address: https://pinia.vuejs.org/
Features
Pinia has the following Several features:
Intuitive, define store just like defining components
Complete Typescript support
-
Remove mutations, only state, getters, actions
actions support synchronous and asynchronous
Vue Devtools supports Pinia, providing better Development experience
Able to build multiple stores and realize automatic code split
Extremely lightweight (1kb), you can’t even feel it Its existence
There are many benefits to using Pinia:
-
Development tool support
- Track timelines for actions, mutations
- Stores appear in components that use them
- Time travel and easier debugging
-
hotmodulechange
- Modify your store without reloading the page
- Keep any existing state while developing
Plugins: Use plugins to extend Pinia functionality
Provide JS users with proper TypeScript support or autocomplete functionality
-
Server-side rendering support
3, Nuxt Modules
Created by the Nuxt team and community, learn about us A list of modules to enhance your Nuxt projects.
Official address: https://modules.nuxtjs.org/
github address: https://github.com/nuxt/ modules
4、Nuxt 3
is a lightweight application framework that can be used to create Server-side rendering (SSR) application
Official address: https://v3.nuxtjs.org/
Chinese documentation: https://www.nuxtjs.org.cn/
Integrating vue vue3 composition api ts, CLI, DevTools, and Nuxt Kit shows that this is a complete general development framework that can provide good code organization, extremely high development efficiency, Development experience and server-side rendering/static website generation (SSR/SSG) capabilities, this is the core!
New features of Nuxt 3
The refactoring of Nuxt 3 streamlines the kernel, makes it faster, and provides a better development experience.
-
More lightweight
Server deployment and client-side production can be reduced by up to 75x when targeting modern browsers.
-
Faster
Optimize cold starts with dynamic server-side code splitting, powered by nitro.
-
Hybrid
Incremental static generation and other advanced patterns are now possible.
-
Suspense
Get data from any component before and after navigation.
-
Composition API
Achieve true reusability using the Composition API and Nuxt 3’s composables.
-
Nuxt CLI
A new zero-dependency experience to help you easily build projects and integrate modules.
-
Nuxt Devtools
More information and quick fixes to work efficiently in the browser.
-
Nuxt Kit
New module development based on TypeScript and cross-version compatible.
-
Webpack 5
Faster builds and smaller build artifacts, with zero configuration.
-
Vite
Use Vite as your packager to experience lightweight and fast HMR.
-
Vue3
Vue3 will be a solid foundation for your next application.
-
TypeScript
Constructed from native TypeScript and ESM - no extra steps.
5, vuepress
vuepress is a static website generator based on vue, which can be used to write documents .
Official address: https://v2.vuepress.vuejs.org/zh/
Features
- Built-in markdown extension, optimized for technical documentation
- Ability to utilize Vue code embedded in markdown files
- Vue-driven custom theme system
- PWA support
- Google Analytics Integration
- A default theme:
- Responsive layout
- Optional home page
- Simple, out-of-the-box, title-based search functionality
- Customizable navigation bar and side Sidebar
- Automatically generated GitHub link and page editing link
6, VueUse
The powerful Vue composition utility collection is a collection of basic Vue composition utility functions implemented based on the Composition API. Official address: https://vueuse.org/Vue 3 Demo:
- Use vite: https://github.com/vueuse/vueuse-vite-starter
- Using Webpack: https://github.com/vueuse/vueuse-vue3-example
- Using Vue CLI: https://github.com/vueuse/vueuse-vue2-example
From version v6.0 onwards, vue3 requires vue >= v3.2; vue2 needs to depend on
@vue/composition-api>@vue/composition >= v1.1[Related video tutorial recommendations:
The above is the detailed content of 6 practical Vue3 related ecology (summary sharing). For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

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

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

tinymce is a fully functional rich text editor plug-in, but introducing tinymce into vue is not as smooth as other Vue rich text plug-ins. tinymce itself is not suitable for Vue, and @tinymce/tinymce-vue needs to be introduced, and It is a foreign rich text plug-in and has not passed the Chinese version. You need to download the translation package from its official website (you may need to bypass the firewall). 1. Install related dependencies npminstalltinymce-Snpminstall@tinymce/tinymce-vue-S2. Download the Chinese package 3. Introduce the skin and Chinese package. Create a new tinymce folder in the project public folder and download the

vue3+vite:src uses require to dynamically import images and error reports and solutions. vue3+vite dynamically imports multiple images. If vue3 is using typescript development, require will introduce image errors. requireisnotdefined cannot be used like vue2 such as imgUrl:require(' .../assets/test.png') is imported because typescript does not support require, so import is used. Here is how to solve it: use awaitimport

To achieve partial refresh of the page, we only need to implement the re-rendering of the local component (dom). In Vue, the easiest way to achieve this effect is to use the v-if directive. In Vue2, in addition to using the v-if instruction to re-render the local dom, we can also create a new blank component. When we need to refresh the local page, jump to this blank component page, and then jump back in the beforeRouteEnter guard in the blank component. original page. As shown in the figure below, how to click the refresh button in Vue3.X to reload the DOM within the red box and display the corresponding loading status. Since the guard in the component in the scriptsetup syntax in Vue3.X only has o

Vue implements the blog front-end and needs to implement markdown parsing. If there is code, it needs to implement code highlighting. There are many markdown parsing libraries for Vue, such as markdown-it, vue-markdown-loader, marked, vue-markdown, etc. These libraries are all very similar. Marked is used here, and highlight.js is used as the code highlighting library. The specific implementation steps are as follows: 1. Install dependent libraries. Open the command window under the vue project and enter the following command npminstallmarked-save//marked to convert markdown into htmlnpmins

vue3+ts+axios+pinia realizes senseless refresh 1. First download aiXos and pinianpmipinia in the project--savenpminstallaxios--save2. Encapsulate axios request-----Download js-cookienpmiJS-cookie-s//Introduce aixosimporttype{AxiosRequestConfig ,AxiosResponse}from"axios";importaxiosfrom'axios';import{ElMess

Preface Whether it is vue or react, when we encounter multiple repeated codes, we will think about how to reuse these codes instead of filling a file with a bunch of redundant codes. In fact, both vue and react can achieve reuse by extracting components, but if you encounter some small code fragments and you don’t want to extract another file, in comparison, react can be used in the same Declare the corresponding widget in the file, or implement it through renderfunction, such as: constDemo:FC=({msg})=>{returndemomsgis{msg}}constApp:FC=()=>{return(

The final effect is to install the VueCropper component yarnaddvue-cropper@next. The above installation value is for Vue3. If it is Vue2 or you want to use other methods to reference, please visit its official npm address: official tutorial. It is also very simple to reference and use it in a component. You only need to introduce the corresponding component and its style file. I do not reference it globally here, but only introduce import{userInfoByRequest}from'../js/api' in my component file. import{VueCropper}from'vue-cropper&

After the vue3 project is packaged and published to the server, the access page displays blank 1. The publicPath in the vue.config.js file is processed as follows: const{defineConfig}=require('@vue/cli-service') module.exports=defineConfig({publicPath :process.env.NODE_ENV==='production'?'./':'/&
