https://vant-contrib.gitee.io/vant/#/zh-CN/quickstart
1.安装vant:npm i vant
import { createApp } from ‘vue’
import App from ‘./App.vue’
import router from ‘./router’
import vant from ‘vant’;
import ‘vant/lib/index.css’;
createApp(App).use(router).use(vant).mount(‘#app’)
4.引用组件
结果:
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)