前言
官网介绍的不太清楚,这里记录一下。
第一步在所在页面的 xx.json
文件中引入,注意路径:
"usingComponents": {
"van-toast": "@vant/weapp/toast/index"
}
在所在页面中 xx.js
文件中引入,注意路径!
import Toas