3 Star 23 Fork 23

vant / vant-demo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Vant Demo

English | 简体中文

当前仓库是 Vant 官方的示例仓库,包含 Vant、Vant Weapp 和 Vant Cli 相关的示例。

如何使用

  1. 首先,克隆当前仓库到你的本地:
git clone git@github.com:vant-ui/vant-demo.git
  1. 然后选择你需要的示例,比如 Vite 项目示例:
cd vant/vite
  1. 通过 npm 或其他包管理器安装依赖,即可启动项目:
npm i
npm run dev
  1. 你可以 Fork 一份当前项目,也可以直接从当前项目拷贝代码来使用。

目录结构

├── vant                # Vant 相关示例
│   ├── vite            使用 Vue 3、Vant 4、Vite 搭建应用
│   ├── nuxt3           使用 Nuxt 3、Vant 4 搭建应用
│   ├── vue3            使用 Vue 3、Vant 4、Vue Cli 搭建应用
│   ├── vue3-ts         使用 Vue 3、Vant 4、TS、Vite 搭建应用
│   ├── cdn             通过 CDN 引入 Vant
│   ├── rem             配置 rem 适配
│   ├── viewport        配置 viewport 配置
│   └── typescript      配置 typescript 按需引入

├── vant-weapp          # Vant Weapp 相关示例
│   └── base            使用 Vant Weapp 搭建小程序

├── react-vant          # React Vant 相关示例
│   └── modern-js       使用 React Vant、Modern.js、Rspack 搭建应用

└── vant-cli            # Vant Cli 相关示例
    └── base            使用 Vant Cli 搭建组件库
Copyright 2016-present Youzan Copyright (c) Chen Jiahan and other contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/vant-contrib/vant-demo.git
git@gitee.com:vant-contrib/vant-demo.git
vant-contrib
vant-demo
vant-demo
master

搜索帮助