Skip to content

Releases: NG-ZORRO/ng-zorro-antd

12.1.1

20 Dec 03:41
ab78821
Compare
Choose a tag to compare

12.1.1

2021-12-20

Bug Fixes

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

30 Nov 12:26
d78a8d2
Compare
Choose a tag to compare

12.1.0

2021-11-30

Bug Fixes

Features

Performance Improvements

  • auto-complete: do not run change detection on mousedown and mouseenter for nz-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-optionmousedownmouseenter 事件无需触发脏值检测 (#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

05 Nov 06:58
8ac005d
Compare
Choose a tag to compare

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 Jul 12:10
e3326cf
Compare
Choose a tag to compare

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

11 Jul 14:22
3267571
Compare
Choose a tag to compare

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

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

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

08 Jun 03:41
a672127
Compare
Choose a tag to compare

2021-06-08

Bug Fixes


Bug Fixes

11.4.1

23 Apr 10:40
585f24f
Compare
Choose a tag to compare

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

08 Apr 11:08
d10fcc7
Compare
Choose a tag to compare

11.4.0

2021-04-08

Bug Fixes

Features


Bug Fixes

  • table: 修复 nzFrontPaginationfalse 时排序和筛选的问题 (#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

23 Mar 05:25
bc0e468
Compare
Choose a tag to compare

2021-03-23

Bug Fixes

Features

Deprecated

  • space: nz-space-item in nz-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

Deprecated

  • space: 在 nz-space 中的 nz-space-item 将会在 12.0.0 移除, 请使用 *nzSpaceItem 代替。

11.2.0

26 Feb 13:17
3c6b688
Compare
Choose a tag to compare

2021-02-26

Bug Fixes

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

Features

Performance Improvements