小程序Vant框架

1、新建小程序项目

 

 

 

 

 

 

 

2、初始化:npm install,安装vant小程序框架,vant weapp官网看安装文档,地址:https://youzan.github.io/vant-weapp/#/quickstart

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

"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>

 

 

 

 

 

 

 

 

 

 

 

posted @ 2020-05-26 14:55  此夏_唯美  阅读(900)  评论(0编辑  收藏  举报