1、通过npm install 方式引入 npm i @vant/weapp -S --production
"easycom": {
"autoscan": true,
"custom": {
"van-(.*)": "@vant/weapp/dist/$1/index.vue"
}
}
2、通过复制黏贴到wxcomponents方式引入
"easycom": {
"autoscan": true,
"custom": {
"van-(.*)": "@/wxcomponents/vant/$1/index.vue"
}
}
问题反馈给DCloud等待反馈:https://github.com/dcloudio/uni-app/issues/2369