Releases: NG-ZORRO/ng-zorro-antd
Releases · NG-ZORRO/ng-zorro-antd
13.1.1
13.1.1
2022-03-03
Bug Fixes
- collapse: markForCheck after collapse title clicked (#7284) (b7433a9)
- icon: do not try to load SVG on the Node.js side since it will throw an error (#7290) (fe0484f), closes #7240
- select: exact match while searching should be active (#6816) (48d2a25), closes #6812
- upload: fix the problem that the transformed file is lost (#7206) (b82d2f3)
13.1.1
2022-03-03
Bug Fixes
13.1.0
13.1.0
2022-02-25
Bug Fixes
- button: prevent default event fire (#7267) (2306e0d)
- date-picker: fix
z-index
toauto
in inline mode (#7172) (26006f6) - date-picker: fix disable time when date changes (#7236) (ae67952)
- i18n: update fa-IR.ts translations (#7249) (a7a0b41)
- i18n: update pt_BR.ts translations (#7218) (95c7816)
- input: do not set box-sizing when measuring (#7214) (035dc94), closes #7203
- input: incorrect background color in disabled state (#7250) (7acb8db)
- radio: emit
false
to thengModel
whenever the radio button is deselected (#7270) (2704237) - select: fix keyboard event error when option data is empty (#7222) (4bd86ca), closes #7242
- slider: fix keydown not trigger nzOnAfterChange (#7252) (f419c07), closes #7251
Features
- alert: support nzAction for customizing actions (#7246) (eb3b1ba)
- drawer: support new apis nzSize and nzExtra (#7227) (d2e5b76)
- i18n: add
kk_KZ
to i18n (#7261) (3580fb0) - i18n: add
km_KH
(#7220) (f972391)
Performance Improvements
- auto-complete: do not run change detection when the promise resolves (#7138) (e95d941)
- back-top: do not run change detection if there are no
nzClick
listeners (#7179) (7d091bb) - carousel: do not run change detection when the timer fires (#7136) (fc991d1)
- collapse: do not run change detection if the panel is disabled (#7181) (3c3eac9)
- dropdown: do not run change detection if the dropdown has been clicked inside (#7135) (4679592)
- image: do not run change detection if there are no
containerClick
listeners (#7147) (f0f52a4) - mention: do not run change detection when the dropdown cannot be closed (#7146) (b72bd27)
- mention: do not trigger change detections if there are no event listeners (#7130) (73af728)
- resizable: do not run change detection on
mousedown
andtouchstart
events (#7170) (9a8d794) - select: do not run change detection on events if the
nz-option-item
is disabled (#7133) (a1bbdab) - select: do not run change detection unnecessarily on click events (#7175) (fd63d22)
- table: do not run change detection if the sorting is not shown (#7174) (e541761)
- table: do not unnecessarily re-enter the Angular zone (#7142) (5a5df13)
- table: spawn timers and add listener outside of the zone (#7140) (ec248c9)
- tabs: do not run change detection when the promise resolves (#7144) (148f84d)
- time-picker: do not run change detection when the timer fires (#7143) (72da774)
- tree-view: do not run change detection on click events if the
nz-tree-node-option
is disabled or there are nonzClick
listeners (#7178) (0054f59) - typography: do not run change detection on
input
andkeydown
events (#7185) (ad547fb)
13.1.0
2022-02-25
Bug Fixes
- button: 修复 nzLoading 为 true 情况下仍可点击问题 (#7267) (2306e0d)
- date-picker: 内联模式下修改
z-index
为auto
(#7172) (26006f6) - date-picker: 修复日期变化时禁用时间段未同步问题 (#7236) (ae67952)
- i18n: 修复 fa-IR.ts 翻译缺失内容 (#7249) (a7a0b41)
- i18n: 修复 pt_BR.ts 翻译缺失内容 (#7218) (95c7816)
- input: 删除 box-sizing 设置 (#7214) (035dc94), closes #7203
- input: 修复 disabled 状态下样式不正确问题 (#7250) (7acb8db)
- radio: 修复 radio 确保取消选中状态返回
false
(#7270) (2704237) - select: 修复下拉选项值为空时键盘事件报错问题 (#7222) (4bd86ca), closes #7242
- slider: 修复
keydown
事件未触发 nzOnAfterChange 问题 (#7252) (...
13.0.1
13.0.1
2022-01-18
Bug Fixes
- back-top: fix more reliable scrolling listener (#7208) (3bcd343), closes #7199
- drawer: fix close icon position without
nzTitle
property (#7176) (a6195b9), closes #7164 - icon: fix old icon element not removed (#7188) (67ac573), closes #7186
- statistic: re-enter the Angular zone when the
nzCountdownFinish
emits (#7137) (6835544) - tree-view: fix innerTrackBy function (#7150) (4484674), closes #7118
Performance Improvements
- auto-complete: memory leak (#7112) (3806250)
- cdk: resolve leak (#7139) (2a93d05)
- checkbox: reduce change detection cycles (#7127) (15abe33)
- code-editor: always initialize outside of the Angular zone (#7151) (f73be80)
- core: remove
resize
listener when the app is destroyed (#7125) (8437111) - image: unsubscribe old src (#7102) (87a3e27)
- input-number: reduce change detection cycles (#7129) (9971faa)
- modal: do not run change detection on mouse events (#7169) (c20bb80)
- modal: resolve memory leaks (#7123) (3664efe)
- graph: do not run change detection on animation frame (#7132) (1ceaf70)
- rate: do not run change detection on
focus
andblur
events if there are no output listeners (#7182) (3e9e035) - steps: do not run change detection if there are no
nzIndexChange
listeners (#7183) (cbfc558) - transfer: do not trigger change detection when the checkbox is clicked (#7124) (b12f43a)
13.0.1
2022-01-18
Bug Fixes
- back-top: 修复 scrolling listener 问题 (#7208) (3bcd343), closes #7199
- drawer: 修复
nzTitle
为空时关闭图标的位置错误问题 (#7176) (a6195b9), closes #7164 - icon: 修复切换图标未正确替换问题 (#7188) (67ac573), closes #7186
- statistic:
nzCountdownFinish
事件触发后应重新进入 ngZone (#7137) (6835544) - tree-view: 修复 trackBy 方法在虚拟滚动场景下节点异常问题 (#7150) (4484674), closes #7118
Performance Improvements
- auto-complete: 修复内存泄漏问题 (#7112) (3806250)
- cdk: 修复内存泄漏问题 (#7139) (2a93d05)
- checkbox: 减少触发脏值检测 (#7127) (15abe33)
- code-editor: 在 ngZone 外初始化提升性能 (#7151) (f73be80)
- core: 应用销毁时停止
resize
事件监听 (#7125) (8437111) - image: unsubscribe 过期的 src 源 (#7102) (87a3e27)
- input-number: 减少触发脏值检测 (#7129) (9971faa)
- modal: 鼠标事件无需触发脏值检测 (#7169) (c20bb80)
- modal: 修复内存泄漏问题 (#7123) (3664efe)
- graph: 动画执行无需触发脏值检测 (#7132) (1ceaf70)
- rate:
focus
与blur
事件在无监听情况下无需触发脏值检测 (#7182) (3e9e035) - steps: 未监听
nzIndexChange
事件时无需触发脏值检测 (#7183) (cbfc558) - transfer: checkbox 被点击无需重复触发脏值检测 (#7124) (b12f43a)
13.0.0
13.0.0
2021-12-29
Removal of View Engine Support
ng-zorro-antd@13
remove support for View Engine and use Ivy library for distribution, you will get faster building and smaller bundle size.
See Angular Ivy.
Removal of IE11 Support
- Removing IE11 support allows Angular to leverage modern browser features such as CSS variables and web animations via native web APIs
- What’s more is that apps will be smaller and load faster because we can remove IE specific polyfills and code paths
See Issue #41840.
Enhanced Performance
Fix the problems that may cause memory leak.
BREAKING CHANGES
dropdown
[nzHasBackdrop]
input value are no longer supported, please use[nzBackdrop]
instead.
13.0.0
2021-12-29
停止对 View Engine 的支持
ng-zorro-antd@13
不再支持 View Engine 并使用 Ivy 包进行分发,你将获得更快的打包速度和更小的包体积。
获取更多帮助请前往 Angular Ivy 查看。
停止对 IE11 的支持
- Angular 可以通过原生的 Web API 使用现代浏览器功能,如 CSS 变量 和 Web 动画等特性
- 移除 IE 相关的 polyfills 和代码使得应用程序更小、加载速度更快
获取更多帮助请前往 Issue #41840 查看。
性能增强
修复了多处可能造成内存泄漏的问题。
BREAKING CHANGES
dropdown
[nzHasBackdrop]
已被移除,请使用[nzBackdrop]
代替。
12.1.1
12.1.1
2021-12-20
Bug Fixes
- date-picker,time-picker: disable autocomplete completely (#7088) (bddc537), closes #6718
- popconfirm: missing arrow (#7086) (3f4a704)
- timeline: when the data clear. reset items (#7109) (0ece612)
Performance Improvements
- carousel: do not run change detection on non-handled
keydown
events (#7097) (ca3299e) - cascader: do not run change detections on non-handled
keydown
events (#7060) (9a37718) - date-picker: do not run change detection when the
date-range-popup
is clicked (#7096) (8f8c71b) - date-picker: resolve memory leaks (#7113) (fe9070a)
- icon: do not run change detection when changing icon (#7071) (e998e4a)
- mention: do not run change detections on
mousedown
events (#7094) (0d4ad23) - switch: reduce change detection cycles (#7105) (6d9b1ff)
- table: do not run change detections on click events for the
nz-filter-trigger
(#7095) (346c50d) - time-picker: do not run change detection when scrolling (#7063) (baf7f0a)
- time-picker: do not run change detection when the time picker panel is clicked (#7126) (76da3ff)
- tree: do not run change detection when the tree node is clicked (#7128) (55f1e04)
12.1.1
2021-12-20
Bug Fixes
- date-picker,time-picker: 禁用自动填充 autocomplete 属性 (#7088) (bddc537), closes #6718
- popconfirm: 修复箭头丢失样式 (#7086) (3f4a704)
- timeline: 清空数据时重置组件状态 (#7109) (0ece612)
Performance Improvements
- carousel:
keydown
事件取消不必要的脏值检测 (#7097) (ca3299e) - cascader:
keydown
事件取消不必要的脏值检测 (#7060) (9a37718) - date-picker: 点击
date-range-popup
取消不必要的脏值检测 (#7096) (8f8c71b) - date-picker: 修复内存泄漏问题 (#7113) (fe9070a)
- icon: 切换图标时取消不必要的脏值检测 (#7071) (e998e4a)
- mention:
mousedown
事件取消不必要的脏值检测 (#7094) (0d4ad23) - switch: 减少触发脏值检测 (#7105) (6d9b1ff)
- table:
nz-filter-trigger
点击事件取消不必要的脏值检测 (#7095) (346c50d) - time-picker: 滚动时取消不必要的脏值检测 (#7063) (baf7f0a)
- time-picker: panel 被点击取消不必要的脏值检测 (#7126) (76da3ff)
- tree: 节点点击时取消不必要的脏值检测 (#7128) (55f1e04)
12.1.0
12.1.0
2021-11-30
Bug Fixes
- tabs: tabs add btn disappear after all tab closed (#7076) (3709b73), closes #7077
- tree-view: incorrect type of
trackBy
(#7085) (891a622) - tree-view: not updates when datasource data changes #7040 (#7083) (cad8ca0)
Features
- core,dropdown,table: add config for backdrop (#6783) (2f7c44d)
- tooltip: add arrow point at center (#7010) (7fac8eb)
- tooltip: support tooltip template context (#6948) (fec40a8), closes #6607
Performance Improvements
- auto-complete: do not run change detection on
mousedown
andmouseenter
fornz-auto-option
(#7048) (d6ca43e) - core: do not run change detection when scrolling (#7062) (a972d7b)
- graph: reduce change detections on click events (#7056) (1e2960a)
- graph: resolve minimap memory leaks (#7052) (f93960c)
- modal: do not run change detection when focusing element (#7070) (ffcb709)
- radio: reduce change detection cycles (#7068) (b8cc94f)
- resizable: reduce change detection cycles (#7036) (5cad154)
- select: reduce change detections for
nz-select-top-control
(#7038) (d45f0ab) - upload: do not trigger change detection for
nz-upload-btn
(#7037) (7e587d1) - upload: previewing images should be cancellable when the component gets destroyed (#7067) (8f21ef1)
12.1.0
2021-11-30
Bug Fixes
- tabs: 修复可编辑标签页全部删除后无法继续添加问题 (#7076) (3709b73), closes #7077
- tree-view: 修复未定义的
trackBy
(#7085) (891a622) - tree-view: 修复数据源中的数据发生变化时组件不更新问题 #7040 (#7083) (cad8ca0)
Features
- core,dropdown,table:: 组件新增 nzBackdrop 全局配置 (#6783) (2f7c44d)
- tooltip: 支持通过设置 nzTooltipArrowPointAtCenter 箭头将指向目标元素的中心 (#7010) (7fac8eb)
- tooltip: 支持提示文字模板上下文渲染 (#6948) (fec40a8), closes #6607
Performance Improvements
- auto-complete:
nz-auto-option
下mousedown
和mouseenter
事件无需触发脏值检测 (#7048) (d6ca43e) - core: 滚动时无需触发脏值检测 (#7062) (a972d7b)
- graph: 点击事件减少触发脏值检测 (#7056) (1e2960a)
- graph: 解决缩略图内存泄漏问题 (#7052) (f93960c)
- modal: 元素聚焦时无需触发脏值检测 (#7070) (ffcb709)
- radio: 减少触发脏值检测 (#7068) (b8cc94f)
- resizable: 减少触发脏值检测 (#7036) (5cad154)
- select:
nz-select-top-control
减少触发脏值检测 (#7038) (d45f0ab) - upload:
nz-upload-btn
取消不必要的脏值检测 (#7037) (7e587d1) - upload: 组件销毁时预览图片应该可取消 (#7067) (8f21ef1)
12.0.2
12.0.2
2021-11-04
Bug Fixes
- core: correct hidden behavior (#6919) (987b1ca), closes #6918
- pagination: pre-ellipsis show in the wrong position (#6793) (9700e89)
- affix: fix update position when target resize (#6896) (d18a8ae), closes #6764
- date-picker: added missing type attributes for buttons (#7013) (d69d374), closes #7012
- datepicker: fixed opacity 0 on inline datepicker reopen (#6910) (d392b2e)
- i18n: update en_GB.ts translations (#6982) (f89cb38), closes #6979
- modal: footer
onClick
re-throw error in promise catch (#6928) (3277d22) - popconfirm: add nzOkDanger option for nz-popconfirm (#6866) (d889e98)
- table: show empty state regardless of loading value (#6934) (013beda)
- timepicker: fix ok button + selection of default open value (#6941) (daf9f57)
- timepicker: fixed auto positioning picker (#6939) (65fdbc8)
- tooltip: fix tooltip for deeply wrapped focusable elements (#6965) (78c16a2), closes #6955
Performance Improvements
- autocomplete: resolve memory leak (#6851) (e61e350)
- breadcrumb: do not re-enter the Angular zone when calling
navigate
(#6850) (830a1f2) - button: do not trigger change detections on click events (#6849) (85c79f6)
- core: resolve memory leak (#6852) (25eb0fe)
- code-editor: load Monaco only once (#7033) (e1eafec)
- image: resolve memory leak (#6856) (6744eb1)
- select: do not run change detection if the
triggerWidth
has not been changed (#6858) (055f4a1) - table: resolve leak within the
nz-table-fixed-row
(#7034) (cfa1ecd) - upload: do not trigger change detection for
nz-upload-btn
(#7032) (47f91c7)
12.0.2
2021-11-04
Bug Fixes
- core: 纠正
hidden
属性行为 (#6919) (987b1ca), closes #6918 - pagination: 修复分页组件错误的省略号 (#6793) (9700e89)
- affix: 目标元素大小调整时更新固钉位置状态 (#6896) (d18a8ae), closes #6764
- date-picker: 修复错误的按钮类型导致在表单中触发提交的问题 (#7013) (d69d374), closes #7012
- date-picker: 修复日期选择框内联模式下重新打开时无法展示问题 (#6910) (d392b2e)
- i18n: 更新
DatePicker
en_GB.ts 国际化文案 (#6982) (f89cb38), closes #6979 - modal: 修复模态框底部按钮
onClick
返回 Promise 未抛出错误问题 (#6928) (3277d22) - popconfirm: 支持
nzOkDanger
确认按钮是否为危险按钮属性 (#6866) (d889e98) - table: 加载状态时显示空状态 (#6934) (013beda)
- timepicker: 修复设置
nzDefaultOpenValue
时确认按钮未正确赋值问题 (#6941) (daf9f57) - timepicker: 修复时间选择组件在页面底部时位置被遮挡问题 (#6939) (65fdbc8)
- tooltip: 修复 tooltip 部分场景下无法聚焦触发问题 (#6965) (78c16a2), closes #6955
Performance Improvements
- autocomplete: 解决内存泄漏问题 (#6851) (e61e350)
- breadcrumb: 当调用
navigate
时,不要重新进入 NgZone (#6850) (830a1f2) - button:
disabled
状态点击事件不需要进行脏值检测 (#6849) (85c79f6) - core: 解决内存泄漏问题 (#6852) (25eb0fe)
- code-editor: 确保 Monaco Editor 仅被加载一次 (#7033) (e1eafec)
- image: 解决内存泄漏问题 (#6856) (6744eb1)
- select:
triggerWidth
未改变不执行脏值检测 (#6858) (055f4a1) - table: 解决内存泄漏问题 (#7034) (cfa1ecd)
- upload: 优化脏值检测时机 (#7032) (47f91c7)
12.0.1
12.0.1
2021-07-12
Bug Fixes
- code-editor: dispose the event listener when the component is destroyed (#6847) (503c6f9)
- code-editor: resolve memory leak (#6846) (6d43b6c)
- code-editor: re-enter the Angular zone only if the value has been changed (#6845) (5c09948)
- drawer: trigger change detection only if there are
nzOnViewInit
listeners (#6841) (c5b5741) - icon: resolve memory leak (#6839) (bdc2a55)
- remove the default resize observer polyfill (#6843) (29d44af), closes #6696
If you want to support older browsers, you can provide polyfill in the following way.
import { NzResizeObserverFactory } from 'ng-zorro-antd/cdk/resize-observer';
import ResizeObserver from 'resize-observer-polyfill';
@NgModule({
providers: [
{ provide: NzResizeObserverFactory, useValue: {
create(callback: ResizeObserverCallback): ResizeObserver | null {
return typeof ResizeObserver === 'undefined' ? null : new ResizeObserver(callback);
}
}
}
]
})
export class AppModule {}
12.0.1
2021-07-12
Bug Fixes
- code-editor: 组件销毁时 dispose 编辑器的事件监听 (#6847) (503c6f9)
- code-editor: 解决 SSR 下内存泄露的问题 (#6846) (6d43b6c)
- code-editor: 只在 value 发生改变时再进入
ngZone
(##6845) (5c09948) - drawer: 只有在
nzOnViewInit
被监听时再触发 (#6841) (c5b5741) - icon: 解决内存泄露的问题 (#6839) (bdc2a55)
- 移除默认的 resize observer polyfill (#6843) (29d44af), closes #6696
如果你想支持老浏览器,你可以像下面这样提供 polyfill。
import { NzResizeObserverFactory } from 'ng-zorro-antd/cdk/resize-observer';
import ResizeObserver from 'resize-observer-polyfill';
@NgModule({
providers: [
{ provide: NzResizeObserverFactory, useValue: {
create(callback: ResizeObserverCallback): ResizeObserver | null {
return typeof ResizeObserver === 'undefined' ? null : new ResizeObserver(callback);
}
}
}
]
})
export class AppModule {}
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)