6-1安装依赖
yarn add vant babel-plugin-import
6-2配置babel.config.js
{"plugins": [["import", {"libraryName": "vant","libraryDirectory": "es","style": true}]]}
6-3在main.js中按需引入需要的组件
import { Button } from 'vant';Vue.use(Button)
6-4使用
<van-button type="default">默认按钮</van-button>
官网https://youzan.github.io/vant/?source=vuejsorg#/zh-CN/quickstart
