Vuwe-Another Mobile Vue2 Component Library

  Framework, Front end, frontend, javascript, vue.js

VUWE

LOGO

Online preview

Introduction

VUWEIt is based on WeChatWeUIDeveloped specifically forVue2The component library of.

It is related toWeUIComplete decoupling. Users through customWeUIThe style of the file, you can easily toVUWERealize customization.

Chinese document

Use

Enter aVueProject, then execute the following command:

npm install vuwe --save

Load WeUI

Before you begin, you need toindex.htmlInternal loadingWeUIStyle 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 timeVUWEIt has been registered globally and can be used directly where needed.VUWEComponent label.

Local introduction

In need of introductionVUWEWhere 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.htmlFile, oneapp.jsDocuments)

npm run build-demo

MIT