-
Notifications
You must be signed in to change notification settings - Fork 672
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
release(11.0.0): release 11.0.0 (#1104)
- Loading branch information
Showing
11 changed files
with
161 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
order: 1000 | ||
type: Basic | ||
title: Upgrade to version 11.0 | ||
hot: true | ||
--- | ||
|
||
> This guide applies to the current version ng-alain >= 10; | ||
> If you encounter problems during the upgrade process, feel free to comment here. | ||
> If you find any errors in this guide, please point out | ||
> Or you have encountered a new problem and solved it, welcome to comment here. | ||
> If you encounter problems please go to [NG-ALAIN V11 Upgrade Guide](https://github.com/ng-alain/ng-alain/issues/1863) for feedback. | ||
|
||
## Before upgrade | ||
|
||
1. Make sure `Node.js` >= `10.13`. | ||
2. Create a new branch, or use other methods to back up the current project. | ||
3. Delete the `package-lock.json` or `yarn.lock` file. | ||
|
||
### 1.Upgrade dependencies | ||
|
||
- Upgrade Angular to 11.x version, ref https://update.angular.io/ . | ||
- Run `ng update @angular/cdk`, if you have used `@angular/cdk`. | ||
|
||
### 2.Upgrade NG-ZORRO | ||
|
||
- Run `ng update ng-zorro-antd`. | ||
- If any warning messages appear in the console, follow the prompts to modify the corresponding code. | ||
|
||
### 3.Upgrade NG-ALAIN | ||
|
||
- Run `ng update ng-alain` | ||
|
||
**Theme upgrade (optional)** | ||
|
||
We have further refined the default theme to `@delon/theme`, which is further streamlined compared to the previous version of the `layout` directory. This part of the upgrade needs to be done manually. For details, please refer to [Basic Layout](https://github.com /ng-alain/ng-alain/tree/master/src/app/layout/basic), [blank layout](https://github.com/ng-alain/ng-alain/tree/master/src/app /layout/blank) new way of writing. For the documentation of the new components, please refer to [Document](https://ng-alain.com/theme/layout-default/en). | ||
|
||
### Common Problems | ||
|
||
`...` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
order: 1000 | ||
type: Basic | ||
title: 升级到 11.0 版本 | ||
hot: true | ||
--- | ||
|
||
> 本指南适用于当前版本 ng-alain >= 10 ; | ||
> 如果在升级过程中遇到问题,欢迎提出。提问前请阅读 [如何向开源社区提问题](https://github.com/seajs/seajs/issues/545) | ||
> 如果发现本指南存在遗漏/错误,请指出! | ||
> 或者你遇到了新的问题并解决了,欢迎补充! | ||
> 如果升级中遇到问题请前往 [NG-ALAIN V11 Upgrade Guide](https://github.com/ng-alain/ng-alain/issues/1863) 反馈。 | ||
## 开始之前 | ||
|
||
1. 首先确保你 `Node.js` >= `10.13` | ||
2. 创建新的分支,或者使用其他方式备份当前项目 | ||
3. 删除项目下 `package-lock.json` 或 `yarn.lock` 文件 | ||
|
||
## 升级步骤 | ||
|
||
### 1. 升级相关依赖 | ||
|
||
- 前往 https://update.angular.io/ 将项目升级到 Angular 11。 | ||
- 如果你有单独使用 `@angular/cdk` 请执行 `ng update @angular/cdk` | ||
|
||
### 2.升级 NG-ZORRO | ||
|
||
- 运行 `ng update ng-zorro-antd` | ||
- 如果控制台出现警告消息请按提示修改对应代码 | ||
|
||
### 3.升级 NG-ALAIN | ||
|
||
- 运行 `ng update ng-alain` | ||
|
||
**主题升级(可选)** | ||
|
||
我们将默认主题进一步提炼至 `@delon/theme` 相比较以前版本 `layout` 进一步精简,这部分升级需要手动来完成,有关细节可以参考 [基础布局](https://github.com/ng-alain/ng-alain/tree/master/src/app/layout/basic)、[空白布局](https://github.com/ng-alain/ng-alain/tree/master/src/app/layout/blank) 的新写法。有关新组件的文档请参考[文档](https://ng-alain.com/theme/layout-default/zh)。 | ||
|
||
## 常见问题 | ||
|
||
`...` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters