VUWE is a component library developed based on WeChat WeUI and dedicated to Vue2; it is completely decoupled from WeUI. Users can easily customize VUWE by customizing WeUI's style files.
VUWE Introduction
VUWE is a dedicated app developed based on WeChat WeUI Component library for Vue2.
It is completely decoupled from WeUI. Users can easily customize VUWE by customizing WeUI's style files.
Chinese document address: https://vuwe.github.io/vuwe/doc.html#/
Installation and use
Installation
Enter a Vue project, and then execute the following command:
npm install vuwe --save
Load WeUI
In Before starting, you need to load the WeUI style library in index.html:
<link rel="stylesheet" href="/weui.min.css">
Global introduction
Enter the project entry js and write the following statement:
import Vue from 'vue' import Vuwe from 'vuwe' Vue.use(Vuwe)
At this time VUWE has been globally registered, and you can use VUWE component tags directly where needed.
Local introduction
Introduce VUWE components directly where you need to introduce them:
import { VwButton } from 'vuwe' export default { components: { VwButton } }
Related recommendations:
2020 Summary of front-end vue interview questions (with answers)
vue tutorial recommendation: 2020 latest 5 vue.js video tutorial selections
For more programming-related knowledge, please visit: Programming Teaching! !
The above is the detailed content of What does VUWE mean?. For more information, please follow other related articles on the PHP Chinese website!