3 Star 23 Fork 23

vant / vant-demo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 1.73 KB
一键复制 编辑 原始数据 按行查看 历史
陈嘉涵 提交于 2023-09-03 09:37 . chore: remove lock file

Vant Demo

English | 简体中文

The current repository is the official example repository for Vant, which includes examples related to Vant, Vant Weapp, and Vant Cli.

How to Use

  1. First, clone the current repository to your local:
git clone git@github.com:vant-ui/vant-demo.git
  1. Then, choose the example you need, such as the Vite project example:
cd vant/vite
  1. Install the dependencies using npm or other package managers, and start the project:
npm i
npm run dev
  1. You can fork the current project or directly copy the code from the current project to use.

Directory Structure

├── vant                # Examples related to Vant
│   ├── vite            Building applications using Vue 3, Vant 4, and Vite
│   ├── nuxt3           Building applications using Nuxt 3 and Vant 4
│   ├── vue3            Building applications using Vue 3, Vant 4, and Vue Cli
│   ├── vue3-ts         Building applications using Vue 3, Vant 4, TypeScript, Vite
│   ├── cdn             Importing Vant through CDN
│   ├── rem             Configuring rem adaptation
│   ├── viewport        Configuring viewport settings
│   └── typescript      Configuring TypeScript and importing on demand

├── vant-weapp          # Examples related to Vant Weapp
│   └── base            Building mini-programs using Vant Weapp

├── react-vant          # Examples related to React Vant
│   └── modern-js       Building applications using React Vant, Modern.js, and Rspack

└── vant-cli            # Examples related to Vant Cli
    └── base            Building component libraries using Vant Cli
1
https://gitee.com/vant-contrib/vant-demo.git
git@gitee.com:vant-contrib/vant-demo.git
vant-contrib
vant-demo
vant-demo
master

搜索帮助