克隆vant仓库
将dist目录下的所有文件复制到你项目的/static/vant/目录下。
git clone https://github.com/youzan/vant-weapp.git
// 当然你也可以克隆本仓库代码,本仓库会与`vant`仓库保持同步。直接将`vant`目录复制到`/static`目录下git clone https://github.com/Rychou/mpvue-vant.git
引入
在需要引入的页面目录下的main.json文件中
{"usingComponents": {"van-button": "/static/vant/button/index",}}
使用
<van-button type="danger">危险按钮</van-button>
