1、安裝Vantnpm i vant -S2、在main.js中添加import Vue from "vue"import Vant from 'vant';import 'vant/lib/index.css';Vue.use(Vant);3、直接在頁(yè)面中使用就行,不用注冊(cè)組件,不用在頁(yè)面import組件