在 码云上下载 vant webAPP 将下载的组件放到,wsxcomponent 下, 使用的时候在 page.json里 所使用的页面配置信息下 app-plus 下 style里 usecomponent 下配置
不能批量引入
"usingComponents": {
"van-button": "/wxcomponents/vant/button/index"
}
//app 端
整体引入,引入的是.vue文件。而uniapp在将小程序组件转.vue组件时有的会报错
"easycom": {
"autoscan": true,
"custom": {
"^van-(.*)": "@/wxcomponents/vant/$1/index"
}
},
不同页面用到的组件需要单独引入