Small micro-channel programs - wepy use Vant Weapp

 First, download

npm i @vant/weapp -S --production

After the download is complete, you can node_modules folder, see the download package.

 

 

 

2, move the folder

Just download the package folder under the lib folder copied into the src \ components folder.

 

 

3, using

Combined with official documents, demand the introduction of the components required for use. Here, such as the use button and dialog.

3.1、button

(1) introduced into the object under assembly usingComponents config object.

 

(2) directly copied from the official document to the page.

 

(3) the following effects

 

 

3.2、dialog

(1) code is as follows

 

(2) the following effects

 

 

 

 

 

 

Guess you like

Origin www.cnblogs.com/xulinjun/p/12018102.html