Home  >  Article  >  Web Front-end  >  What does VUWE mean?

What does VUWE mean?

青灯夜游
青灯夜游Original
2020-11-17 13:38:382446browse

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

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 &#39;vue&#39;
import Vuwe from &#39;vuwe&#39;

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

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!

Statement:
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
Previous article:How to disable css hoverNext article:How to disable css hover