Vant

基于 Vue 的轻量级移动 UI 组件。「Lightweight Mobile UI Components built on Vue.」

Github星跟蹤圖

Vant

轻量、可靠的移动端 Vue 组件库

fire 文档网站     rocket 小程序版


特性

  • 60+ 高质量组件
  • 90% 单元测试覆盖率
  • 完善的中英文文档和示例
  • 支持按需引入
  • 支持主题定制
  • 支持国际化
  • 支持 TS
  • 支持 SSR

安装

# 通过 npm 安装
npm i vant -S
# 通过 yarn 安装
yarn add vant

快速上手

import Vue from 'vue';
import { Button } from 'vant';
import 'vant/lib/index.css';
Vue.use(Button);

vant 也支持按需引入、CDN 引入等方式,详细说明见 快速上手

贡献代码

修改代码请阅读 开发指南

使用过程中发现任何问题都可以提 Issue,当然,也非常欢迎 PR

浏览器支持

现代浏览器以及 Android 4.0+, iOS 8.0+.

生态

项目 描述
vant-demo Vant 官方示例合集
vant-weapp 微信小程序组件库
vant-react Vant React 版(由社区维护)
vant-cli 开箱即用的组件库搭建工具
vant-icons Vant 图标库
vant-touch-emulator 在桌面端使用 Vant 的辅助库

链接

手机预览

可以手机扫码以下二维码访问手机端 demo:

开源协议

本项目基于 MIT 协议,请自由地享受和参与开源。

概覽

名稱與所有者youzan/vant
主編程語言TypeScript
編程語言JavaScript (語言數: 7)
平台Linux, Mac, Web browsers, Windows, Android, iOS
許可證MIT License
發布數582
最新版本名稱v4.8.11 (發布於 2024-04-14 21:21:08)
第一版名稱v0.0.3 (發布於 2017-02-27 21:11:53)
創建於2017-04-19 07:55:31
推送於2024-04-28 16:08:54
最后一次提交
星數22.7k
關注者數368
派生數9.5k
提交數10k
已啟用問題?
問題數7089
打開的問題數57
拉請求數4984
打開的拉請求數18
關閉的拉請求數342
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?

Features

  • 60+ Reusable components
  • 90% Unit test coverage
  • Extensive documentation and demos
  • Support babel-plugin-import
  • Support Custom Theme
  • Support i18n
  • Support TS
  • Support SSR

Install

# Using npm
npm i vant -S

# Using yarn
yarn add vant

Quickstart

import Vue from 'vue';
import { Button } from 'vant';
import 'vant/lib/index.css';

Vue.use(Button);

See more in Quickstart.

Contribution

Please make sure to read the Contributing Guide before making a pull request.

Browser Support

Modern browsers and Android 4.0+, iOS 8.0+.

Ecosystem

Project Description
vant-demo Official vant demo collection
vant-weapp WeChat MiniProgram UI
vant-cli Scaffold for UI library
vant-icons Vant icons
vant-touch-emulator Using vant in desktop browsers

Preview

You can scan the following QR code to access the demo:

Wechat Group

Scan the qrcode to join our wechat discussion group, please note that you want to join Vant discussion group.

LICENSE

MIT

去到頂部