VUWE
Introduction
VUWE
It is based on WeChatWeUI
Developed specifically forVue2
The component library of.
It is related toWeUI
Complete decoupling. Users through customWeUI
The style of the file, you can easily toVUWE
Realize customization.
Use
Enter aVue
Project, then execute the following command:
npm install vuwe --save
Load WeUI
Before you begin, you need toindex.html
Internal loadingWeUI
Style library:
<link rel="stylesheet" href="/weui.min.css">
Global introduction
Enter the project entrance js and write the following statement:
import Vue from 'vue'
import Vuwe from 'vuwe'
Vue.use(Vuwe)
At this timeVUWE
It has been registered globally and can be used directly where needed.VUWE
Component label.
Local introduction
In need of introductionVUWE
Where components are introduced directly:
import { VwButton } from 'vuwe'
export default {
components: {
VwButton
}
}
run
Clone projects, installation dependencies
git clone https://github.com/vuwe/vuwe.git
cd vuwe && npm install
Development mode
npm run dev
Production mode
npm run build
Example mode (output oneindex.html
File, oneapp.js
Documents)
npm run build-demo