全局导入vant-ui
1.可以dependencies安装:npm install vant -S,
"vant": "^2.12.6",
2.全局导入,直接main.js引入并注册
import Vant from 'vant' import 'vant/lib/index.css' Vue.use(Vant)
3.vue文件中直接使用:
<van-button type="info">信息按钮</van-button>
工欲善其事 必先利其器
1.可以dependencies安装:npm install vant -S,
import Vant from 'vant' import 'vant/lib/index.css' Vue.use(Vant)
3.vue文件中直接使用:
<van-button type="info">信息按钮</van-button>