Releases: NG-ZORRO/ng-zorro-antd
Releases · NG-ZORRO/ng-zorro-antd
13.2.1
13.2.0
13.2.0
2022-04-26
Bug Fixes
- carousel: fix nzAfterChange callback value not correctly (#7326) (b517bd4), closes #7323
- cascader: fix the problem of disappearing drop-down menu (#7381) (3d41ce0)
- cascader: update position when click menu item (#7306) (4c669a5)
- i18n: update fr translations (#7364) (64e1c7c)
- list: re-enter the Angular zone when the
NgZone.onStable
emits (#7314) (425f8df) - modal: no longer trigger any action when closing (#7336) (d169452)
- popconfirm: reverting missing nzPopconfirmVisibleChange (#7338) (561041c)
- upload: fix upload drag drop will open new tab in firefox 91 and 92 (#7190) (9b51874)
Features
- code-editor: add global configuration to support monaco require config (#7121) (21ec517)
- code-editor: support MonacoEnvironment config in NZ_CONFIG (#7359) (4dfd9cd), closes #6502
- image: nz-image add press
left
orright
to switch image (#7321) (b5f82b5) - input-number: add
nzReadOnly
property (#7372) (0da7496), closes #7369
Performance Improvements
- anchor: mark
scroll
listener as passive (#7330) (aab060f) - back-top: mark
scroll
listener as passive (#7329) (7f3c4e1) - cascader: do not run change detection on
change
event (#7312) (cb803f9) - image: do not run change detection when the image preview is clicked (#7309) (752a5b6)
- input-number: do not run change detection when
mouseup
andmouseleave
events are dispatched on handlers (#7313) (54386ef) - modal: call
focus()
on the next rendering frame to prevent frame drop (#7293) (106d346) - resizable: mark
mousedown
andtouchstart
listeners as passive (#7331) (518997b) - tree-view: do not run change detection when the
nz-tree-node-checkbox
is clicked (#7307) (1e0872b)
13.2.0
2022-04-26
Bug Fixes
- carousel: 修复
nzAfterChange
回调未正确触发问题 (#7326) (b517bd4), closes #7323 - cascader: 修复
hover
模式选项框无法错误隐藏问题 (#7381) (3d41ce0) - cascader: 修复选项框超出区域被遮挡问题 (#7306) (4c669a5)
- i18n: 修复部分翻译缺失问题 (#7364) (64e1c7c)
- list: 修复
NgZone.onStable
事件后未正确触发脏值检测问题 (#7314) (425f8df) - modal: 关闭弹窗过程中忽略点击确认取消按钮行为 (#7336) (d169452)
- popconfirm: 修复
nzPopconfirmVisibleChange
未触发问题 (#7338) (561041c) - upload: 修复在 Firefox 91/92 版本中拖拽文件会打开新页面问题 (#7190) (9b51874)
Features
- code-editor: 支持设置自定义配置以支持 monaco editor 配置 (#7121) (21ec517)
- code-editor: 支持在
NZ_CONFIG
定义window.MonacoEnvironment
(#7359) (4dfd9cd), closes #6502 - image: 支持点击键盘左右方向键切换图片 (#7321) (b5f82b5)
- input-number: 增加
nzReadOnly
属性支持只读方式 (#7372) (0da7496), closes #7369
Performance Improvements
- anchor: 使用
passive
改善的滚屏性能 (#7330) (aab060f) - back-top: 使用
passive
改善的滚屏性能 (#7329) (7f3c4e1) - cascader: 减少触发不必要的脏值检测 (#7312) (cb803f9)
- image: 减少触发不必要的脏值检测 (#7309) (752a5b6)
- input-number: 减少触发不必要的脏值检测 (#7313) (54386ef)
- modal: 优化在不同设备上渲染帧率效果 (#7293) (106d346)
- resizable: 使用
passive
改善性能 (#7331) (518997b) - tree-view: 减少触发不必要的脏值检测 (#7307) (1e0872b)
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 {}