NG-ZORRO 11.0.0
Let us welcome NG-ZORRO V11. It has been around two months when we published our last major version (V10). During this period, we have been actively categorizing and handling our community's issues including merging 140+ PR, closing 200+ issues and support Angular 11. In our NG-ZORRO V11, we introduce new components called Graph, Image and TreeView, and support new Angular Locale internationalization integration strategy, RTL displaying direction and new Aliyun theme.
All you need to do is to run the following command in order to experience all new features mentioned above.
ng update @angular/core @angular/cli ng-zorro-antd
Deprecated APIs have gave users warnings in 10.X dev mode. If you have already followed the warnings to modify your codes, there are no extra actions for you to take for this upgrade.
Highlights
RTL Support
Thanks to community contributors like @saeedrahimi @hdm91 @HDaghash @hmdnikoo, we now support RTL.
New Graph experimental component
Support customized multi-level graph rendering.
New Image component
Used to handle progressive loading of images; failure fallback, and preview of image(s). Thanks to @stygian-desolator 's contribution.
New Tree View component
The previous Tree already contains many common features, and to handle more customizable scenarios we developed a more basic Tree View component with higher ability of customization and better control over performance.
New built-in Aliyun theme
If you encounter problems please go to NG-ZORRO V11 Upgrade Guide for feedback.
CHANGE LOG
Bug Fixes
- tree: fix tree styles (#6198) (a481a15)
- button: only warn about deprecated value when used (#6193) (40c644a), closes #6191 #6187
- i18n: fix Ukrainian i18n file (#6236) (551c7a2)
- image: fix RTL direction and props (#6227) (3978e0f)
- list: fix template rendering order (#6232) (4324011), closes #6229
- modal: fix
nzOkDanger
in confirm mode (#6214) (ebe2869) - select: fix XSS vulnerabilities (#6222) (a393b89), closes #6209
- table: false nzFrontPagination hides pagination (#6201) (8029ef4), closes #6196
- time-picker: placeholder not update with i18n changes (#6069) (f34840b)
Features
- all: add RTL support to all ng-zorro-antd (#4703) (860dfed), closes #4704 #1762 #5261
- date-picker: add
nzShowNow
(#6160) (99e3117), closes #6146 - graph: add graph component (#6053) (e69303f)
- image: add image component (#6154) (83dfdf9)
- tree-view: add tree-view component (#6161) (05d58de), closes #5976 #5809 #5739 #5736 #5519 #5446 #5152 #4694 #4472 #3832 #2785 #2744 #6199
- schematics: make ng-add schematics chainable (#6203) (d1e76f3)
BREAKING CHANGES
date-picker
[nzMode]
does not supportNzDateMode[]
type any more, please adjust it manually.
modal
[nzGetContainer]
has been removed, please remove it manually.open
method inNzModalRef
has been removed, please remove it manually.
tabs
[nzShowPagination]
input has been removed, please remove it manually.(nzOnPrevClick)
output has been removed, please remove it manually.(nzOnNextClick)
output has been removed, please remove it manually.a[nz-tab-link]
selector has been removed, please useng-template[nzTabLink] > a[nz-tab-link]
instead.
NG-ZORRO 11.0.0
欢迎来到 NG-ZORRO V11 版本,距离上一次主版本(V10)发布已经过去了 2 个多月,在此期间我们对社区关心的问题进行了分类和集中处理,一共完成了 140+ PR 的合并,关闭了 200+ issues,并且支持了 Angular 11。在 NG-ZORRO 11 中
新增加了 Graph、Image、TreeView 组件,支持了与新的 Angular Locale 国际化集成方案、 RTL 展示方式与内置阿里云主题。
只需运行以下命令就可以完成全部升级工作,获得以上介绍的所有新特性与改进。
ng update @angular/core @angular/cli ng-zorro-antd
弃用的 API 已经在 10.x 开发环境中给出了警告提醒,如果你之前已经根据告警信息修改了代码,那么升级到 11.0.0 版本不需要有任何额外操作。
发布摘要
支持 RTL
感谢 @saeedrahimi @hdm91 @HDaghash @hmdnikoo 等社区贡献者的贡献,我们现在支持了 RTL。
新增 Graph 实验性组件
新增 Image 组件
可用于处理图片的渐进加载,加载失败占位符,以及图文内容中的图片(多张)预览。感谢 @stygian-desolator 同学的贡献。
新增 Tree View 组件
原有的 Tree 已经包含了许多常用的功能,为了处理更多定制性更高的场景我们开发了更基础的 Tree View 组件,具有更高的定制度并且能够更好的控制性能。
新增内置 Aliyun 主题
如果升级中遇到问题请前往 NG-ZORRO V11 Upgrade Guide 反馈。
CHANGE LOG
Bug Fixes
- tree: 修复样式 (#6198) (a481a15)
- button: 修复错误的弃用警告 (#6193) (40c644a), closes #6191 #6187
- i18n: 修复 Ukrainian i18n 文件 (#6236) (551c7a2)
- image: 修复 RTL 和属性 (#6227) (3978e0f)
- list: 修复模版渲染顺序 (#6232) (4324011), closes #6229
- modal: 修复确认框模式下的
nzOkDanger
(#6214) (ebe2869) - select: 修复 XSS 漏洞 (#6222) (a393b89), closes #6209
- table: 修复
nzFrontPagination
的问题 (#6201) (8029ef4), closes #6196 - time-picker: 修复默认 placeholder 没有跟随 i18n 更新的问题 (#6069) (f34840b)
Features
- all: 添加 RTL 支持 (#4703) (860dfed), closes #4704 #1762 #5261
- date-picker: 添加
nzShowNow
属性 (#6160) (99e3117), closes #6146 - graph: 添加 graph 组件 (#6053) (e69303f)
- image: 添加 image 组件 (#6154) (83dfdf9)
- tree-view: 添加 tree-view 组件 (#6161) (05d58de), closes #5976 #5809 #5739 #5736 #5519 #5446 #5152 #4694 #4472 #3832 #2785 #2744 #6199
- schematics: 使 ng-add schematics 可以链式运行 (#6203) (d1e76f3)
BREAKING CHANGES
date-picker
[nzMode]
不再支持NzDateMode[]
类型, 请手动删除。
modal
[nzGetContainer]
已移除,请手动删除。NzModalRef
里的open
已移除,请手动删除。
tabs
[nzShowPagination]
input 已移除,请手动删除。(nzOnPrevClick)
output 已移除,请手动删除。(nzOnNextClick)
output 已移除,请手动删除。a[nz-tab-link]
selector 已移除,请使用ng-template[nzTabLink] > a[nz-tab-link]
。