mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-05 19:41:42 +08:00
docs: update install guide
This commit is contained in:
parent
3d3597c214
commit
733a2149d6
12
README.md
12
README.md
@ -45,21 +45,21 @@
|
||||
Using `npm` to install:
|
||||
|
||||
```bash
|
||||
# install Vant 2 for Vue 2 project
|
||||
npm i vant@2
|
||||
# install latest Vant for Vue 3 project
|
||||
npm i vant
|
||||
|
||||
# install Vant 3 for Vue 3 project
|
||||
npm i vant@3
|
||||
# install Vant 2 for Vue 2 project
|
||||
npm i vant@latest-v2
|
||||
```
|
||||
|
||||
Using `yarn` or `pnpm`:
|
||||
|
||||
```bash
|
||||
# with yarn
|
||||
yarn add vant@3
|
||||
yarn add vant
|
||||
|
||||
# with pnpm
|
||||
pnpm add vant@3
|
||||
pnpm add vant
|
||||
```
|
||||
|
||||
## Quickstart
|
||||
|
@ -49,21 +49,21 @@ Vant 是**有赞前端团队**开源的移动端组件库,于 2017 年开源
|
||||
在现有项目中使用 Vant 时,可以通过 `npm` 进行安装:
|
||||
|
||||
```bash
|
||||
# Vue 2 项目,安装 Vant 2
|
||||
npm i vant@2
|
||||
# Vue 3 项目,安装最新版 Vant
|
||||
npm i vant
|
||||
|
||||
# Vue 3 项目,安装 Vant 3
|
||||
npm i vant@3
|
||||
# Vue 2 项目,安装 Vant 2
|
||||
npm i vant@latest-v2
|
||||
```
|
||||
|
||||
当然,你也可以通过 `yarn` 或 `pnpm` 进行安装:
|
||||
|
||||
```bash
|
||||
# 通过 yarn 安装
|
||||
yarn add vant@3
|
||||
yarn add vant
|
||||
|
||||
# 通过 pnpm 安装
|
||||
pnpm add vant@3
|
||||
pnpm add vant
|
||||
```
|
||||
|
||||
## 快速上手
|
||||
|
@ -7,21 +7,21 @@
|
||||
Using `npm` to install:
|
||||
|
||||
```bash
|
||||
# install Vant 2 for Vue 2 project
|
||||
npm i vant@2
|
||||
# install latest Vant for Vue 3 project
|
||||
npm i vant
|
||||
|
||||
# install Vant 3 for Vue 3 project
|
||||
npm i vant@3
|
||||
# install Vant 2 for Vue 2 project
|
||||
npm i vant@latest-v2
|
||||
```
|
||||
|
||||
Using `yarn` or `pnpm`:
|
||||
|
||||
```bash
|
||||
# with yarn
|
||||
yarn add vant@3
|
||||
yarn add vant
|
||||
|
||||
# with pnpm
|
||||
pnpm add vant@3
|
||||
pnpm add vant
|
||||
```
|
||||
|
||||
### CDN
|
||||
|
@ -11,21 +11,21 @@
|
||||
在现有项目中使用 Vant 时,可以通过 `npm` 进行安装:
|
||||
|
||||
```bash
|
||||
# Vue 2 项目,安装 Vant 2
|
||||
npm i vant@2
|
||||
# Vue 3 项目,安装最新版 Vant
|
||||
npm i vant
|
||||
|
||||
# Vue 3 项目,安装 Vant 3
|
||||
npm i vant@3
|
||||
# Vue 2 项目,安装 Vant 2
|
||||
npm i vant@latest-v2
|
||||
```
|
||||
|
||||
当然,你也可以通过 `yarn` 或 `pnpm` 进行安装:
|
||||
|
||||
```bash
|
||||
# 通过 yarn 安装
|
||||
yarn add vant@3
|
||||
yarn add vant
|
||||
|
||||
# 通过 pnpm 安装
|
||||
pnpm add vant@3
|
||||
pnpm add vant
|
||||
```
|
||||
|
||||
### 通过 CDN 安装
|
||||
|
Loading…
x
Reference in New Issue
Block a user