- 在mpvue 按文檔使用
1.1 安裝
1.2"usingComponents": { "van-button": "@vant/weapp/button/index", "van-toast": "@vant/weapp/toast/index", "van-row": "@vant/weapp/row/index", "van-col": "@vant/weapp/col/index", "van-image": "@vant/weapp/image/index" }
2 在微信小程序構建npm
安裝npm
npm init 全部默認
安裝 npm