1. vant组件库(微信小程序版本)官网地址
2. uniapp微信小程序引入
<1>. 去到GitHub中将资源克隆到本地,地址: vant-weapp
<2>. 到本地把文件拷贝到我们的uniapp微信小程序项目中
在项目的目录下新建一个文件wxcomponents,将克隆下文件中的整个dist文件拷贝到wxcomponents目录下,如下图
<3>. 在pages.json中全局注册组件,注意注册组件的路径
官网上: “van-button”: “@vant/weapp/button/index”
我们的路径: “van-button”: “wxcomponents/dist/button/index”
根据我们使用到的组件进行按需引入