docs: update install guide

This commit is contained in:
chenjiahan
2020-10-24 10:38:09 +08:00
parent c6d10abdf9
commit 2a5c67d304
4 changed files with 107 additions and 103 deletions

View File

@@ -44,15 +44,13 @@ Vant 是**有赞前端团队**开源的移动端组件库,于 2016 年开源
## 安装
```bash
# 通过 npm 安装
# Vue 2 项目,安装 Vant 2.x 版本:
npm i vant -S
# 通过 yarn 安装
yarn add vant
# Vue 3 项目,安装 Vant 3.x 版本:
npm i vant@next -S
```
> Tips: Vue 3 项目请安装 Vant 3.0,参见 [issue#7035](https://github.com/youzan/vant/issues/7035)。
## 快速上手
```js