Releases: NG-ZORRO/ng-zorro-antd
12.0.0
Bug Fixes
- pagination: mark for check when the total number of pages changes (#6780) (2f1f8dc)
- pagination: pagination in form will trigger submit (#6744) (f77ab28)
- cascader: add nzClear functionality to cascader (#6761) (3dd9534), closes #6751
- select: focus input when selector is clicked (#6786) (1c9331a)
- time-picker: close time-picker after tabbing out (#6602) (0e53053)
- tree: stop change url in firefox (#6771) (be20114)
- typography: single line ellipsis style (#6776) (e192a70)
Features
- checkbox: add nzId input (#6813) (52235c9)
- core: support reset NZ_CONFIG inside component & overflow component (#6601) (edd410a)
- date-picker: nz-range-picker support nzId (#6814) (28074e1)
- experimental/image: add experimental image component (#6590) (7e2fba3)
- popconfirm: support
nzAutoFocus
(#6256) (91e5d49), closes #6249 - rate: support customize character (#6787) (7163e36)
- steps: steps support circular progress bar (#6132) (466a093), closes #5684
- timeline: support
nzLabel
(#6687) (86c587d), closes #6682
BREAKING CHANGES
button
[nz-button][nzType="danger"]
input value are no longer supported, please use[nz-button][nzDanger]
instead.
modal
- usage of
ng-content
has been removed, please use<ng-template nzModalContent></ng-template>
instead.
drawer
- usage of
ng-content
has been removed, please use<ng-template nzDrawerContent></ng-template>
instead.
tree-view
[nzNodeWidth]
has been removed, please use[nzItemSize]
instead.
nz-space-item
nz-space-item, [nz-space-item]
has been removed, please use<ng-template nzSpaceItem></ng-template>
instead.
Bug Fixes
- pagination: 修复总页数改变时没有触发变更检查的问题 (#6780) (2f1f8dc)
- pagination: 修复错误的按钮类型导致在表单中触发提交的问题 (#6744) (f77ab28)
- cascader: 修复
nzClear
不工作的问题 (#6761) (3dd9534), closes #6751 - select: 修复选择器被点击时没有聚焦的问题 (#6786) (1c9331a)
- time-picker: 修复 Tab 切换焦点时弹出没有关闭的问题 (#6602) (0e53053)
- tree: 修复 firefox 下拖拽的问题 (#6771) (be20114)
- typography: 修复单行省略的样式问题 (#6776) (e192a70)
Features
- checkbox: 添加
nzId
属性 (#6813) (52235c9) - date-picker: 添加
nzId
属性 (#6814) (28074e1) - experimental/image: 添加新的实验性组件 (#6590) (7e2fba3)
- popconfirm: 添加
nzAutoFocus
属性 (#6256) (91e5d49), closes #6249 - rate: 为定义字符模版添加
index
变量 (#6787) (7163e36) - steps: 支持环形进度条 (#6132) (466a093), closes #5684
- timeline: 添加
nzLabel
属性 (#6687) (86c587d), closes #6682
BREAKING CHANGES
button
[nz-button][nzType="danger"]
已经不再支持,请使用[nz-button][nzDanger]
代替。
modal
ng-content
的用法已经被移除,请使用<ng-template nzModalContent></ng-template>
代替。
drawer
ng-content
的用法已经被移除,请使用<ng-template nzDrawerContent></ng-template>
代替。
tree-view
[nzNodeWidth]
已经被移除, 请使用[nzItemSize]
代替.
nz-space-item
nz-space-item, [nz-space-item]
已经被移除, 请使用<ng-template nzSpaceItem></ng-template>
代替。
11.4.2
2021-06-08
Bug Fixes
- autocomplete: no reset status when no matching inputs (#6685) (7199ad5), closes #6286
- badge: fix nzNoAnimation not working (#6717) (36c03e3)
- modal:
nzVisible
not updated when implicitly closed (#6649) (5faac2c), closes #6647 #6320 - slider: processing value zero correctly (#6729) (62a86c0)
- tabs: fix
nzCentered
not working (#6706) (439ff0a) - tag: missing styles on view engine (#6738) (29c316b), closes #6732
- tree-view: node indent line without mark change check (#6736) (215a278), closes #6714
- focus monitor cleanup (#6562) (32b3254)
Bug Fixes
- autocomplete: 修复没有输入匹配时没有重置状态 (#6685) (7199ad5), closes #6286
- badge: 修复
nzNoAnimation
不生效的问题 (#6717) (36c03e3) - modal:
nzVisible
编程式修改时没有更新 (#6649) (5faac2c), closes #6647 #6320 - slider: 正确处理
0
值 (#6729) (62a86c0) - tabs: fix
nzCentered
not working (#6706) (439ff0a) - tag: 修复 View Engine 下样式丢失 (#6738) (29c316b), closes #6732
- tree-view: 节点缩进线没有标记变更检测 (#6736) (215a278), closes #6714
- 添加 focus monitor 的清理逻辑 (#6562) (32b3254)
11.4.1
11.4.1
2021-04-23
Bug Fixes
- *: create image using
document
method to avoid ReferenceError in SSR (#6569) (d7b9291) - date-picker: click outside not change value (#6596) (62e4bb6), closes #6595
- date-picker: not switch month panel when range is same month (#6616) (bf4ae4d)
- date-picker: time picker panel not scroll at first time (#6604) (b97dfbe)
- graph: fix edge default style and wrong toggling group nodes (#6615) (c434ea9)
- i18n: added property missing in ka_GE (#6589) (825925c)
- slider: fix range slider not working for arrow keys (#6612) (51f33e6), closes #6586
- typography: add type="button" attribute to button element in nz-text-copy component (#6606) (48a9714), closes #6605
Bug Fixes
- *: 修复在服务端渲染中创建图片的 ReferenceError 错误 (#6569) (d7b9291)
- date-picker: 修复点击外部没有更新值的问题 (#6596) (62e4bb6), closes #6595
- date-picker: 修复切换月面板的问题 (#6616) (bf4ae4d)
- date-picker: 修复 time picker 第一次打开时没有滚动的问题 (#6604) (b97dfbe)
- graph: 修复 edge 默认样式和切换 group node 的问题 (#6615) (c434ea9)
- i18n: 添加 ka_GE 缺少的翻译 (#6589) (825925c)
- slider: 修复范围模式下方向键的问题 (#6612) (51f33e6), closes #6586
- typography: 为操作按钮添加 type="button" 属性 (#6606) (48a9714), closes #6605
11.4.0
11.4.0
2021-04-08
Bug Fixes
- table: fix sort and filter when nzFrontPagination is false (#6547) (097cb6c), closes #5457
- date-picker: close date-picker after tabbing out (#6571) (21ded3f), closes #5844
- drawer: content is attached before the drawer is opened (#6581) (ac50a7b), closes #6381 #6534
- space: fix deprecated warning for nz-space-item (#6549) (#6561) (f80a5bb)
- tabs: make remove icon of nz-tab-link clickable (#6563) (3a68c10)
- tabs: not scrolling to the selected tab after init (#6580) (4ddd8fb), closes #6579
Features
Bug Fixes
- table: 修复
nzFrontPagination
为false
时排序和筛选的问题 (#6547) (097cb6c), closes #5457 - date-picker: 修复 Tab 失去焦点没有关闭的问题 (#6571) (21ded3f), closes #5844
- drawer: 修复内容在打开之前被挂载的问题 (#6581) (ac50a7b), closes #6381 #6534
- space: 修复
nz-space-item
的弃用警告 (#6549) (#6561) (f80a5bb) - tabs: 使
nz-tab-link
移除图标可点击 (#6563) (3a68c10) - tabs: 修复初始化后没有滚动到选中的标签的问题 (#6580) (4ddd8fb), closes #6579
Features
11.3.0
2021-03-23
Bug Fixes
- mention: preserve white spaces when insert suggestions (#6505) (d5ed97e), closes #6175
- tooltip: detect trigger change (#6470) (e8e7dc3), closes #6469
- dropdown: dropdown animations (#6143) (70da5a2), closes #6018
- pagination: fix class name in NzPaginationItemComponent (#6485) (0e326e7)
- date-picker,core,i18n: import date-fns by esm (#6524) (fb4eeae)
- descriptions: fix dom structure under vertical layout (#6513) (ef0f3a5)
- modal: fix incorrect assignment of 'nzFooter' (#6468) (85ea273), closes #6467
- rate: fix invalid type of
nzCount
instrictTemplates
(#6457) (4d28a60) - space: add missing exports (#6521) (e0073e4)
- table: virtual scroll bordered style (#6493) (c2f44be)
- tooltip: keep tooltip visibility when trigger is null (#6489) (0de0e6f)
Features
- all: global config for
nzBackdrop
(#6380) (ba80ec3), closes #6029 #6177 - modal: add nzModalTitle directive (#6396) (25f6c27), closes #4343 #6337
- space: add
nzSplit
support (#6487) (c535f06)
Deprecated
- space:
nz-space-item
innz-space
will be removed in 12.0.0, please use*nzSpaceItem
instead.
Bug Fixes
- mention: 插入建议时保留空白 (#6505) (d5ed97e), closes #6175
- tooltip: 修复
nzTooltipTrigger
改变时没有侦测变化的问题 (#6470) (e8e7dc3), closes #6469 - dropdown: 修复动画失效的问题 (#6143) (70da5a2), closes #6018
- pagination: 修复 NzPaginationItemComponent 中的类名问题 (#6485) (0e326e7)
- date-picker,core,i18n: 使用 es module 来引入 date-fns (#6524) (fb4eeae)
- descriptions: 修复在 vertical 布局下的 DOM 结构问题 (#6513) (ef0f3a5)
- modal: 修复
nzFooter
错误赋值的问题(#6468) (85ea273), closes #6467 - rate: 修复
nzCount
的无效类型 (#6457) (4d28a60) - space: 补全需要导出的类 (#6521) (e0073e4)
- table: 修复虚拟滚动下的边框样式问题 (#6493) (c2f44be)
- tooltip: 当
nzTooltipTrigger
为空时保持显示 (#6489) (0de0e6f)
Features
- all: 新增
nzBackdrop
的全剧配置 (#6380) (ba80ec3), closes #6029 #6177 - modal: 新增
[nzModalTitle]
指令 (#6396) (25f6c27), closes #4343 #6337 - space: 新增
nzSplit
(#6487) (c535f06)
Deprecated
- space: 在
nz-space
中的nz-space-item
将会在 12.0.0 移除, 请使用*nzSpaceItem
代替。
11.2.0
2021-02-26
Bug Fixes
- 18n: adding new translations de_DE (#6434) (1c09fe1)
- 18n: adding new translations es_ES (#6421) (6b878b9)
- docs: fix dependabot alert (#6428) (2fbbe94)
- dropdown: close menu when click again (#6353) (#6354) (cd90349)
- grid,menu,radio,table: fix memory leak problem (#6408) (94607a0)
- input: fix [nzAutosize]="true" (#6409) (8ca1e5a)
- message: avoid flicker when window close (#6296) (#6370) (772e76c)
- table: fix table filter (#6384) (#6385) (ad01c8f)
- tree-view: correct API typo (#6386) (27a1c4e)
- schematics: fix
add-icon-assets
schema path (#6404) (340670d)
Features
- date-picker: add
nzInline
property (#6436) (4d80873) - grid:
nzGutter
support string type (#6450) (ec03c7f) - time-picker: support updating OK and Now button text (#6410) (ef3af58)
- time-picker,select,tree-select: support
nzId
(#6379) (85d423d)
Performance Improvements
Bug Fixes
- 18n: 新增 de_DE 翻译 (#6434) (1c09fe1)
- 18n: 新增 es_ES 翻译 (#6421) (6b878b9)
- docs: 修复依赖警告问题 (#6428) (2fbbe94)
- dropdown: 修复再次点击没有关闭的问题 (#6353) (#6354) (cd90349)
- grid,menu,radio,table: 修复内存泄漏问题 (#6408) (94607a0)
- input: 修复
nzAutosize
的问题 (#6409) (8ca1e5a) - message: 修复窗口关闭时闪烁的问题 (#6296) (#6370) (772e76c)
- table: 修复过滤问题 (#6384) (#6385) (ad01c8f)
- tree-view: 修复 API 名错误 (#6386) (27a1c4e)
- schematics: 修复
add-icon-assets
schema 路径问题 (#6404) (340670d)
Features
- date-picker: 新增
nzInline
(#6436) (4d80873) - grid:
nzGutter
支持 string 类型 (#6450) (ec03c7f) - time-picker: 新增
nzNowText
nzOkText
(#6410) (ef3af58) - time-picker,select,tree-select: 新增
nzId
(#6379) (85d423d)
Performance Improvements
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 反馈。