Home > Web Front-end > Front-end Q&A > What does VUWE mean?

What does VUWE mean?

青灯夜游
Release: 2020-11-30 11:40:49
Original
2537 people have browsed it

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.

What does VUWE mean?

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
Copy after login

Load WeUI

In Before starting, you need to load the WeUI style library in index.html:

<link rel="stylesheet" href="/weui.min.css">
Copy after login

Global introduction

Enter the project entry js and write the following statement:

import Vue from &#39;vue&#39;
import Vuwe from &#39;vuwe&#39;

Vue.use(Vuwe)
Copy after login

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 &#39;vuwe&#39;

export default {
  components: {
    VwButton
  }
}
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template