1、新建小程序项目
2、初始化:npm install,安装vant小程序框架,vant weapp官网看安装文档,地址:
"usingComponents": { "van-button": "@vant/weapp/button/index" } <van-button type="default">默认按钮</van-button> <van-button type="primary">主要按钮</van-button> <van-button type="info">信息按钮</van-button> <van-button type="warning">警告按钮</van-button> <van-button type="danger">危险按钮</van-button>