1.通过npm安装
npm i @vant/weapp -S --production
2. 点击工具构建npm
3.usingComponents 里的路径前面要带上miniprogram_npm
例如:"van-grid": "/miniprogram_npm/@vant/weapp/grid/index",
1.通过npm安装
npm i @vant/weapp -S --production
2. 点击工具构建npm
3.usingComponents 里的路径前面要带上miniprogram_npm
例如:"van-grid": "/miniprogram_npm/@vant/weapp/grid/index",