Skip to content

Commit 244bda2

Browse files
authored
Merge pull request #1653 from NervJS/docs
docs: 更新文档
2 parents 318a6e5 + cab1462 commit 244bda2

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,18 @@ Taro 是由 [凹凸实验室](https://aotu.io) 倾力打造的多端开发解决
3434

3535
## 安装
3636

37-
需要安装 `Taro` 开发工具 `@tarojs/cli``Taro` 版本需要在 `1.0.0-beta.18` 以上
37+
### 2.x
38+
当 Taro 版本 < 3 时,使用 2.x 版本
3839

3940
```bash
40-
npm install -g @tarojs/cli
41+
$ npm install [email protected]
4142
```
4243

43-
然后在项目中安装 Taro UI
44+
### 3.x
45+
当 Taro 版本 ≥ 3 时,使用 3.x 版本
4446

4547
```bash
46-
npm install taro-ui
48+
$ npm install taro-ui@latest
4749
```
4850

4951
## 使用

packages/taro-ui-docs/markdown/quickstart.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,12 @@ $ taro init myApp
4141

4242
```bash
4343
$ cd myApp
44-
$ npm install taro-ui
44+
45+
# 当 Taro 版本 < 3 时,使用 2.x 版本
46+
$ npm install [email protected]
47+
48+
# 当 Taro 版本 ≥ 3 时,使用 3.x 版本
49+
$ npm install taro-ui@latest
4550
```
4651

4752
:::

0 commit comments

Comments
 (0)