Releases: NG-ZORRO/ng-zorro-antd
Releases · NG-ZORRO/ng-zorro-antd
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)
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)