docs: update install guide

This commit is contained in:
chenjiahan
2022-02-07 17:24:21 +08:00
committed by neverland
parent a81874fe30
commit 2b0ae4766c
4 changed files with 12 additions and 12 deletions

View File

@@ -5,11 +5,11 @@
### npm
```bash
# Install Vant 2 for Vue 2 project
# Install latest Vant for Vue 3 project
npm i vant -S
# Install Vant 3 for Vue 3 project
npm i vant@next -S
# Install Vant 2 for Vue 2 project
npm i vant@latest-v2 -S
```
### CDN

View File

@@ -11,11 +11,11 @@
在现有项目中使用 Vant 时,可以通过 `npm``yarn` 进行安装:
```bash
# Vue 2 项目,安装 Vant 2
# Vue 3 项目,安装最新版 Vant
npm i vant -S
# Vue 3 项目,安装 Vant 3
npm i vant@next -S
# Vue 2 项目,安装 Vant 2
npm i vant@latest-v2 -S
```
### 通过 CDN 安装