Small installation error introduced vant

Applet is the latest version of the installation procedure van

 

1: Open the applet and then download the file npm init 

# I vant-weapp by mounting npm npm -S --production

# Mounting yarn by yarn add vant-weapp --production

 

Then in the applet tool `build npm` 

In introducing the document .json

{
  "usingComponents": {
    "van-button": "vant-weapp/button"
    }
}

  Page introduction

<Van-button type = "default"> Default button </ van-button>
testing successfully! ! !
Note the order must not be wrong! ! !

Guess you like

Origin www.cnblogs.com/damai/p/11111367.html