uniApp引入vant2

uniApp引入vant2

1、cnpm 下载:cnpm i vant@latest-v2 -S

2、main.js文件引入

import Vant from './node_modules/vant/lib/vant';

Vue.use(Vant);

在这里插入图片描述

3.app.vue中引入vant 样式文件

@import '@/node_modules/vant/lib/index.css';

在这里插入图片描述

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/q4717529/article/details/132295056
今日推荐