Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update block.md (勘误) #4008

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/zh/guide/block.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ npx umi block add DashboardAnalysis --npm-client cnpm
npx umi block add DashboardAnalysis --registry myregistryUrl
```

> 注:在 umi 2.7 之前,同一个路径下只能添加一个区块,区块会作为整个页面的代码添加到你的项目中。在 2.7 及它之后我们支持重复添加区块,或者添加到当前项目中已有的页面中。对于原因的区块你可以通过在区块的 `package.json` 中配置 `blockConfig.specVersion` 为 `0.1` 来兼容或者通过 `--page` 来指定添加的方式。
> 注:在 umi 2.7 之前,同一个路径下只能添加一个区块,区块会作为整个页面的代码添加到你的项目中。在 2.7 及它之后我们支持重复添加区块,或者添加到当前项目中已有的页面中。对于原有的区块你可以通过在区块的 `package.json` 中配置 `blockConfig.specVersion` 为 `0.1` 来兼容或者通过 `--page` 来指定添加的方式。

## 区块开发

Expand Down