我把 vant 下载到 src目录下 wxcomponents 文件夹
![image.png](https://i-blog.csdnimg.cn/blog_migrate/b6e6c65c30659f5b97784b2f55c134a0.png)
src/wxcomponents/vant
在页面中使用这些组件, 网上看的方法都是 (可能我没找到) 要在 页面json里面配置然后才能在页面中使用. 觉得这样超级麻烦啊, 页面跳来跳去的…
![image.png](https://i-blog.csdnimg.cn/blog_migrate/c958b45328c475d295ed2526fa1dd600.png)
![image.png](https://i-blog.csdnimg.cn/blog_migrate/298607432215da27df82dd36277eddd6.png)
办法
既然 uni 中高度接近vue, 其他组件可以使用 import 方式, 那应该引用小程序组件也可以吧
然后试了一下
![image.png](https://i-blog.csdnimg.cn/blog_migrate/7a62aa41046306bf2d8243dc7eb504a8.png)
果然是可以的!
看效果>>>>
![image.png](https://i-blog.csdnimg.cn/blog_migrate/0f840cc77191720d256ad1814fdf3c47.png)
uni 自动帮我们生成到配置json去了.
小编13年上海交大毕业,曾经在小公司待过,也去过华为、OPPO等大厂,18年进入阿里一直到现在。
深