Releases: NG-ZORRO/ng-zorro-antd
11.1.0
2021-01-22
Bug Fixes
- table: fix table
nzBordered
(#6367) (d6ca800), closes #6135 #6254 - typography: edit area cannot get the content (#6369) (814ef92)
Features
- date-picker: support nzId (#6242) (#6246) (1e9f8bd)
- modal: add nzCentered for modal (#6333) (8fd4df6), closes #6327
- table: add support for ReadonlyArray (#6156) (9d67d0b)
- table: support nzPaginationType property (#5986) (61ca6e2)
- upload: support
NzUploadFile
parameter ofnzIconRender
(#6283) (a949470), closes #6279
Bug Fixes
- table: 修复
nzBordered
的问题(#6367) (d6ca800), closes #6135 #6254 - typography: 修复编辑区域无法获取内容的问题 (#6369) (814ef92)
Features
11.0.2
Bug Fixes
- carousel: fix carousel under rtl (#6336) (f6a844b)(#6318)); (bef7e29), closes #6301
- date-picker: remove wrong warning message (#6335) (cf10a03), closes #6310
- date-picker: start and end month displays unreasonable (#6339) (7f47698), closes #6308 #6142 #5992
- descriptions: fix
nzBordered
in the global config (#6348) (eb20970), closes #6331 - image: add missing entry components (#6300) (caad718), closes #6299
- table: memory leak (#6325) (7f267b6)
Bug Fixes
- carousel: 修复在 RTL 下的问题 (#6336) (f6a844b(#6318)); (bef7e29), closes #6301
- date-picker: 修复警告信息提示错误的问题 (#6335) (cf10a03), closes #6310
- date-picker: 修复开始结束面板展示不合理的问题 (#6339) (7f47698), closes #6308 #6142 #5992
- descriptions: 修复
nzBordered
在全局配置的问题 (#6348) (eb20970), closes #6331 - image: 添加未引用的模块 (#6300) (caad718), closes #6299
- table: 修复内存泄漏问题 (#6325) (7f267b6)
11.0.1
Bug Fixes
- carousel: remove unused patch style (#6269) (3a70a2d)
- collapse: animation cannot be disabled (#6280) (16fa890)
- image: add missing imported modules (#6273) (20db5d4), closes #6271
- image: image fit content when drag released (#6262) (07ae66a)
- modal: mask is not set with the
nzZindex
property (#6294) (54d294a), closes #6288 - select: change order for clear and arrow (#6245) (c822073), closes #5989
- slider: fix slider style + reverse marks if reversed slider (#6006) (fa06415)
- table: data is not updated when pagination exists (#6298) (1f2ab41), closes #6272
- tabs: fix clickable area of the anchor element (#6278) (0694079)
- tabs: index only changed by router event when nzLinkRouter (#6293) (ca1b861)
Bug Fixes
- carousel: 修复样式问题 (#6269) (3a70a2d)
- collapse: 修复动画不能关闭的问题 (#6280) (16fa890)
- image: 添加未引用的模块 (#6273) (20db5d4), closes #6271
- image: 修复拖拽释放后图片尺寸适应的问题 (#6262) (07ae66a)
- modal: 修复遮罩层
nzZindex
与弹窗不一致的问题 (#6294) (54d294a), closes #6288 - select: 调整清除图标和箭头图标的 DOM 顺序 (#6245) (c822073), closes #5989
- slider: 修复
nzReverse
的样式问题 (#6006) (fa06415) - table: 修复 pagination 存在时数据没有更新的问题 (#6298) (1f2ab41), closes #6272
- tabs: 修复 a 标签可点击范围的问题 (#6278) (0694079)
- tabs: 启用
nzLinkRouter
时 index 只应由路由事件改变 (#6293) (ca1b861)
11.0.0
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
10.2.2
10.2.1
2020-12-11
Bug Fixes
- date-picker,time-picker: prevent losing input focus (#6171) (a055905), closes #6170
- description: fix label colon not working (#6155) (47065f6), closes #6151
- mention: scroll to focus when arrow up or down (#6137) (13f2281), closes #5995
- modal: add nzOkDanger to avoid old button style (#6157) (f22024e), closes #6111
- select: activate first item or first selected item (#6148) (a456c93), closes #6041
- table: showPagination in ngIf when nzHideOnSinglePage (#6133) (fbe13c2), closes #6080
- tabs: keyboard events in extra areas trigger navigation (#6173) (375366f), closes #6139
- transfer: fix only filtered data in
nzRenderList
(#6169) (17d43fb), closes #5641
Bug Fixes
- date-picker,time-picker: 阻止输入框失焦 (#6171) (a055905), closes #6170
- description: 修复 label 冒号的问题 (#6155) (47065f6), closes #6151
- mention: 修复键盘导航时没有滚动跟随的问题 (#6137) (13f2281), closes #5995
- modal: 添加
nzOkDanger
以修复危险按钮样式 (#6157) (f22024e), closes #6111 - select: 修复没有默认激活第一个选项的问题 (#6148) (a456c93), closes #6041
- table: 修复配置
nzHideOnSinglePage
时的样式问题 (#6133) (fbe13c2), closes #6080 - tabs: 修复在额外区域里触发键盘导航的问题 (#6173) (375366f), closes #6139
- transfer: 修复
nzRenderList
过滤数据的问题 (#6169) (17d43fb), closes #5641
10.2.0
2020-12-01
Bug Fixes
- cascader: restore its value after cancel search (#6088) (22ddc60)
- cascader: scroll active options into view (#6082) (b42b51f), closes #6037
- date-picker: clear wrong date input after closing panel (#6079) (edffdee), closes #6070
- date-picker: display error in dynamic switching
nzMode
(#6125) (220a590), closes #6052 - descriptions: fix DOM structure (#6112) (5e42d71)
- tree: fix indent line styles (#6123) (2f8edbc)
- tree-select: selector cannot focus (#6073) (032bd01), closes #6063
- upload: fix prevent trigger submit when click list button (#6096) (123982f), closes #6095
Features
- drawer: add
nzDrawerContent
directive (#6085) (6fc0683) - drawer: support nzVisible two-way binding (#6013) (caab8be), closes #5999
- input: textarea supports character count (#6104) (601ab50), closes #5907
- modal: add
nzModalContent
directive (#6081) (6594414) - pagination: support global config (#6043) (3c55b7c), closes #6042
- steps: supports enable and disable (#6101) (b87e72d), closes #5579
Deprecated
- modal
- Usage
<ng-content></ng-content>
is deprecated, which will be removed in 12.0.0. Please instead use<ng-template nzModalContent></ng-template>
to declare the content of the modal.
- Usage
- drawer
- Usage
<ng-content></ng-content>
is deprecated, which will be removed in 12.0.0. Please instead use<ng-template nzDrawerContent></ng-template>
to declare the content of the drawer.
- Usage
Bug Fixes
- cascader: 修复取消搜索时没有恢复值的问题 (#6088) (22ddc60)
- cascader: 修复没有滚动到选中选项的问题 (#6082) (b42b51f), closes #6037
- date-picker: 修复错误输入在关闭时没有清除的问题 (#6079) (edffdee), closes #6070
- date-picker: 修复切换
nzMode
的问题 (#6125) (220a590), closes #6052 - descriptions: 修复 DOM 结构 (#6112) (5e42d71)
- tree: 修复缩进连接线的样式问题 (#6123) (2f8edbc)
- tree-select: 修复选择器不能被聚焦的问题(#6073) (032bd01), closes #6063
- upload: 修复 button 触发 submit 的问题 (#6096) (123982f), closes #6095
Features
- drawer: 添加
nzDrawerContent
指令 (#6085) (6fc0683) - drawer:
nzVisible
支持双向绑定 (#6013) (caab8be), closes #5999 - input: textarea 支持输入计数 (#6104) (601ab50), closes #5907
- modal: 添加
nzModalContent
指令 (#6081) (6594414) - pagination: 添加全局配置支持 (#6043) (3c55b7c), closes #6042
- steps: 添加
enable
和disable
方法 (#6101) (b87e72d), closes #5579
Deprecated
- modal
<ng-content></ng-content>
用法已经被弃用, 将会在 12.0.0 版本中移除。 请使用<ng-template nzModalContent></ng-template>
代替声明 modal 的内容。
- drawer
<ng-content></ng-content>
用法已经被弃用, 将会在 12.0.0 版本中移除。 请使用<ng-template nzDrawerContent></ng-template>
代替声明 drawer 的内容。
10.1.2
10.1.2
2020-11-16
Bug Fixes
- i18n: include missing language exports (#6061) (6543a80)
- cascader: fix broken nzChangeOnSelect (#6049) (1575bae), closes #6048
- code-editor: memorize cursor position and selections (#6044) (84f520d), closes #6038
- typography: ellipsis does not work with copy action (#6058) (858fff9), closes #6057
Bug Fixes
10.1.1
10.1.1 (2020-11-09)
Bug Fixes
- breadcrumb: patch last-child's style indule a is included (#5994) (50f0744), closes #5942
- cascader: menu closing behavoir (#6023) (22aea7e), closes #6022
- cascader: search bar styles error (#6030) (9c4424f), closes #6020
- select: dropdown can be opened when disabled (#6008) (79c52ea), closes #6005 #6007
- tabs:
nzTabBarGutter
is not work in vertical position (#5998) (516bf97), closes #5396 - tabs: ink-bar does not render correctly in some cases (#6016) (8af418b), closes #6009 #4802 #3999
Bug Fixes
- breadcrumb: 修复最后一项的样式 (#5994) (50f0744), closes #5942
- cascader: 修复菜单关闭行为 (#6023) (22aea7e), closes #6022
- cascader: 修复搜索框样式 (#6030) (9c4424f), closes #6020
- select: 修复被禁用时可以打开下拉框的问题 (#6008) (79c52ea), closes #6005 #6007
- tabs: 修复垂直模式下
nzTabBarGutter
不生效的问题 (#5998) (516bf97), closes #5396 - tabs: 修复 ink-bar 在某些情况下显示不正确的问题 (#6016) (8af418b), closes #6009 #4802 #3999
10.1.0
Bug Fixes
- form: remove @host so child components recieve autotips (#5962) (705d6d8)
- select: input search not work in IE11 (#5953) (5dc1ff3), closes #5645 #4296
- select: the ESC keydown event not handled correctly (#5973) (d898cce), closes #5965
- select: title not display (#5978) (fd77cd4), closes #5281
- tabs: link is not active on the whole tab (#5954) (5c661c5), closes #5857
- time-picker: hidden clear icon when disabled (#5990) (761cf40)
- upload: ensure i18n$ is defined on unsubscribe (#5971) (b067e7e)
Features
- avatar: add avatar group component (#5916) (2dc8d98), closes #5882
- avatar: support for set gap (#5920) (f3f1aa9), closes #5883
- back-top: add
nzDuration
property (#5892) (b256461), closes #5887 - cascader: support suffix icon & expand icon (#5899) (d235589), closes #5885
- date-picker: add
nzBorderless
(#5975) (25e41fa), closes #5680 #4967 - descriptions: add extra property (#5859) (846331e), closes #5855
- form:
nz-form-label
supportnzFormTooltip
(#5957) (4a00b69), closes #5905 - form: support a fallback locale for validation tips (#5967) (c01e20b), closes #5917
- menu: add danger style (#5932) (5c19bbd), closes #5881
- tooltip: add nzTooltipColor (#5896) (643bd03), closes #5884
- tooltip: enable custom placements (#5861) (0fce47e), closes #5733
- typography: support custom icons and tooltips (#5911) (2d4cbb0), closes #5888
- typography: support success type (#5915) (93c0d46), closes #5906
Bug Fixes
- form: 修复子组件无法接收自动提示的问题 (#5962) (705d6d8)
- select: 修复搜索框在 IE11 输入不生效的问题 (#5953) (5dc1ff3), closes #5645 #4296
- select: 修复 ESC 按键监听的问题 (#5973) (d898cce), closes #5965
- select: 修复 title 没有显示的问题 (#5978) (fd77cd4), closes #5281
- tabs: 修复链接没有激活的问题 (#5954) (5c661c5), closes #5857
- time-picker: 修复 disabled 时清除按钮显示的问题 (#5990) (761cf40)
- upload: 修复 i18n 的问题 (#5971) (b067e7e)
Features
- avatar: 添加 avatar group 组件 (#5916) (2dc8d98), closes #5882
- avatar: 支持设置间隔 (#5920) (f3f1aa9), closes #5883
- back-top: 添加
nzDuration
属性 (#5892) (b256461), closes #5887 - cascader: 支持后缀和展开图标 (#5899) (d235589), closes #5885
- date-picker: 添加
nzBorderless
属性 (#5975) (25e41fa), closes #5680 #4967 - descriptions: 添加
nzExtra
属性 (#5859) (846331e), closes #5855 - form:
nz-form-label
支持nzFormTooltip
(#5957) (4a00b69), closes #5905 - form: 支持 tooltips locale 回退 (#5967) (c01e20b), closes #5917
- menu: 添加 danger 样式 (#5932) (5c19bbd), closes #5881
- tooltip: 添加
nzTooltipColor
属性 (#5896) (643bd03), closes #5884 - tooltip: 增强自定义位置 (#5861) (0fce47e), closes #5733
- typography: 支持自定义图标和提示 (#5911) (2d4cbb0), closes #5888
- typography: 支持 success 类型 (#5915) (93c0d46), closes #5906