并不能直接引用的。先在项目目录下npm init -y 然后 npm i 模块 然后勾选面板中的使用NPM模块,最后构建npm。引用时路径如下
"usingComponents": {
"van-action-sheet": "/miniprogram_npm/[@vant](/user/vant)/weapp/action-sheet/index",
"van-search": "/miniprogram_npm/[@vant](/user/vant)/weapp/search/index",
"van-sticky": "/miniprogram_npm/[@vant](/user/vant)/weapp/sticky/index"
},