Vue vant框架

文章描述:

vue前端vant框架ui

Vue3安装vant

npm i vant -S

 

 

main.js

import Vant from 'vant'
import 'vant/lib/index.css';
// 使用 vant
Vue.use(Vant)

 

 

<van-button type="default">默认按钮</van-button>
<van-button type="primary">主要按钮</van-button>
<van-button type="info">信息按钮</van-button>
<van-button type="warning">警告按钮</van-button>
<van-button type="danger">危险按钮</van-button>

 

发布时间:2023/05/20

发表评论