mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
docs: update install guide
This commit is contained in:
parent
a81874fe30
commit
2b0ae4766c
@ -44,11 +44,11 @@
|
|||||||
## Install
|
## Install
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Install Vant 2 for Vue 2 project
|
# Install latest Vant for Vue 3 project
|
||||||
npm i vant -S
|
npm i vant -S
|
||||||
|
|
||||||
# Install Vant 3 for Vue 3 project
|
# Install Vant 2 for Vue 2 project
|
||||||
npm i vant@next -S
|
npm i vant@latest-v2 -S
|
||||||
```
|
```
|
||||||
|
|
||||||
## Quickstart
|
## Quickstart
|
||||||
|
@ -47,11 +47,11 @@ Vant 是**有赞前端团队**开源的移动端组件库,于 2017 年开源
|
|||||||
## 安装
|
## 安装
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Vue 2 项目,安装 Vant 2:
|
# Vue 3 项目,安装最新版 Vant:
|
||||||
npm i vant -S
|
npm i vant -S
|
||||||
|
|
||||||
# Vue 3 项目,安装 Vant 3:
|
# Vue 2 项目,安装 Vant 2:
|
||||||
npm i vant@next -S
|
npm i vant@latest-v2 -S
|
||||||
```
|
```
|
||||||
|
|
||||||
## 快速上手
|
## 快速上手
|
||||||
|
@ -5,11 +5,11 @@
|
|||||||
### npm
|
### npm
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Install Vant 2 for Vue 2 project
|
# Install latest Vant for Vue 3 project
|
||||||
npm i vant -S
|
npm i vant -S
|
||||||
|
|
||||||
# Install Vant 3 for Vue 3 project
|
# Install Vant 2 for Vue 2 project
|
||||||
npm i vant@next -S
|
npm i vant@latest-v2 -S
|
||||||
```
|
```
|
||||||
|
|
||||||
### CDN
|
### CDN
|
||||||
|
@ -11,11 +11,11 @@
|
|||||||
在现有项目中使用 Vant 时,可以通过 `npm` 或 `yarn` 进行安装:
|
在现有项目中使用 Vant 时,可以通过 `npm` 或 `yarn` 进行安装:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Vue 2 项目,安装 Vant 2:
|
# Vue 3 项目,安装最新版 Vant:
|
||||||
npm i vant -S
|
npm i vant -S
|
||||||
|
|
||||||
# Vue 3 项目,安装 Vant 3:
|
# Vue 2 项目,安装 Vant 2:
|
||||||
npm i vant@next -S
|
npm i vant@latest-v2 -S
|
||||||
```
|
```
|
||||||
|
|
||||||
### 通过 CDN 安装
|
### 通过 CDN 安装
|
||||||
|
Loading…
x
Reference in New Issue
Block a user