Releases: NG-ZORRO/ng-zorro-antd
Releases · NG-ZORRO/ng-zorro-antd
21.2.2
21.2.2
2026-04-13
Bug Fixes
- input: initialize value with control value (#9748) (c650b8a)
- input: fix incorrect control values when using ngModel (#9745) (69f4efd)
- select: fast scroll causes the
scrollToBottomoutput not to be emitted (#8771) (9c302a6) - select: fix transition lazy load (#9756) (49be18e)
21.2.2
2026-04-13
Bug Fixes
21.2.1
21.2.0
21.2.0
2026-03-20
Features
- alert: add loop text (#9697) (6b45037)
- form: support
nzVariant(#9694) (51d6eb6) - input-number: add
emitterinnzOnStepevent options (#9716) (f83af1e) - input: supports custom count logic for input-wrapper (#9645) (2450a60)
- tabs: support
nzIndicator(#9704) (02befe7)
Bug Fixes
- modal: prevent flicker on open (#9728) (56ad81d)
- select: fix dropdown position in Safari (#9724) (1081620)
21.2.0
2026-03-20
Features
- alert: 支持轮播的公告 (#9697) (6b45037)
- form: 新增
nzVariant属性,改变表单内所有组件的变体 (#9694) (51d6eb6) - input-number:
nzOnStep回调事件透出emitter(#9716) (f83af1e) - input: 支持自定义 input-wrapper 的计数逻辑 (#9645) (2450a60)
- tabs: 新增
nzIndicator属性,支持自定义 tab 的指示条 (#9704) (02befe7)
Bug Fixes
21.1.1
21.1.0
21.1.0
2026-02-05
Features
- collapse: sync the latest antd styles (#9680) (4eec05f) (#9678) (2483498)
- form: support
nzSize(#9606) (785ca6f) - time-picker: support
nzPrefix(#9647) (8d75887) - time-picker: support
nzNeedConfirm(#9638) (9f887af) - time-picker: support
nzPlacement(#9630) (931b3f4)
21.1.0
2026-02-05
Features
21.0.2
21.0.1
21.0.0
21.0.0
2026-01-09
Code Refactoring
- migrate to native animation API, feel free to remove the
@angular/animationsdependency
Features
- color-picker: support
nzPresets(#9341) (d59ec99) - core: add
provideNzNoAnimation(#9555) (c945e81) - date-picker: output date range in correct order (#9518) (d0b3185)
- float-button: add pop animation to float button menu (#9413) (b40ad91)
- input-number: supports mouse wheel control (#9591) (6ce3545)
- input,input-number: add additional options for
focusmethod (#9595) (c336711) - qrcode: support
nzTypeandnzBoostLevel, delete array usage ofnzPadding(#9535) (5419b51) - tree-view: upgrade tree view component (#9003) (ae9ad57)
- upload: add
nzMaxCountfeature (#9424) (0bf13c3)
Bug Fixes
- i18n: add missing translations to
fa_IR(#9615) (1e8845d) - popconfirm: allow null for
nzIconhide icon (#9569) (760b587) - select: disable
nzAutoClearSearchValuein single mode (#9605) (4720c21) - tree: no
preventDefaultwhen right-clicking the node title (#9532) (900efad)
⚠ BREAKING CHANGES
- back-top: removed, please use
float-buttoninstead - color-picker: change DOM structure to be simpler, and remove no unnecessary payload of
nzClickoutput - input-number-legacy: removed, please use
input-numberinstead - qrcode: change the type of
nzPaddingfromnumber | number[]tonumber(#9535) - statistic: rename
NzStatisticNumberComponenttoNzStatisticContentValueComponent - tabs: remove deprecated
nz-tabsetselector (#9613) - tree-view:
nzTreeControlhas been removed, please usenzLevelAccessorornzChildrenAccessorinstead - watermark: change import path from
ng-zorro-antd/water-marktong-zorro-antd/watermark
Remove the following APIs which were marked as deprecated in the previous version:
| Module | API |
|---|---|
ng-zorro-antd/back-top |
* |
ng-zorro-antd/dropdown |
NzDropdownButtonDirective |
ng-zorro-antd/input-number-legacy |
* |
ng-zorro-antd/core |
NzHighlightModule |
ng-zorro-antd/auto-complete |
NZ_AUTOCOMPLETE_VALUE_ACCESSOR |
ng-zorro-antd/checkbox |
nz-checkbox-wrapper |
ng-zorro-antd/date-picker |
NzDatePickerComponent#nzBorderless |
ng-zorro-antd/input |
NzInputDirective#nzBorderless |
ng-zorro-antd/input-number |
NzInputNumberComponent#nzBordered |
ng-zorro-antd/mention |
NZ_MENTION_TRIGGER_ACCESSOR |
ng-zorro-antd/select |
NzSelectComponent#nzBorderless |
ng-zorro-antd/time-picker |
NzTimePickerComponent#nzBorderless |
ng-zorro-antd/tooltip |
NzToolTipModule NzToolTipComponent |
Unify and standardize component naming, involving the following name changes:
| Module | Original | Current |
|---|---|---|
core |
NzConfig#backTop |
NzConfig#floatButton |
core |
NzConfig#dropDown |
NzConfig#dropdown |
dropdown |
NzDropDownModule |
NzDropdownModule |
dropdown |
NzDropDownADirective |
NzDropdownADirective |
menu |
NzIsMenuInsideDropDownToken |
NzIsMenuInsideDropdownToken |
watermark |
NzWaterMarkModule |
NzWatermarkModule |
watermark |
NzWaterMarkComponent |
NzWatermarkComponent |
Deprecations
The following APIs are marked as deprecated in v20 and will be removed in the next major version.
Please refer to related documentation for better alternatives.
| Module | API |
|---|---|
ng-zorro-antd/collapse |
nz-collapse-panel[nzDisabled] |
ng-zorro-antd/input |
textarea[nzAutosize], nz-input-group, [nz-input-group-slot] |
ng-zorro-antd/upload |
nz-upload[nzTransformFile], NzUploadTransformFileType |
21.0.0
2026-01-09
Code Refactoring
- 迁移至 native animation API,您可以按需移除依赖
@angular/animations
Features
- color-picker: 新增
nzPresets参数支持预设颜色 (#9341) (d59ec99) - core: 新增
provideNzNoAnimationprovider 用于禁用动画效果 (#9555) (c945e81) - date-picker: 日期范围选择顺序颠倒时确保能输出正确的范围 (#9518) (d0b3185)
- float-button: 悬浮按钮组合新增动画效果 (#9413) (b40ad91)
- input-number: 支持鼠标滚轮控制 (#9591) (6ce3545)
- input,input-number:
focus方法新增额外参数 (#9595) (c336711) - qrcode: 新增
nzType和nzBoostLevel参数,nzPadding类型从number | number[]调整为number(#9535) (5419b51) - tree-view: 升级 tree-view 组件,支持
nzLevelAccessor和nzChildrenAccessor(#9003) (ae9ad57) - upload: 新增
nzMaxCount属性 (#9424) (0bf13c3)
Bug Fixes
- i18n: 更新
fa_IR国际化文案 (#9615) (1e8845d) - popconfirm: 允许设置
nzIcon为null以隐藏图标 (#9569) (760b587) - select: 单选模式下
nzAutoClearSearchValue不应生效 (#9605) (4720c21) - tree: 不再阻止右键点击树节点标题的默认行为 (#9532) (900efad)
⚠ BREAKING CHANGES
- back-top: 移除,请使用
float-button替代 - color-picker: 简化 DOM 结构,移除
nzClickoutput 不必要的参数 - input-number-legacy: 移除,请使用
input-number替代 - qrcode:
nzPadding类型从number | number[]调整为number - statistic: 重命名
NzStatisticNumberComponent为 ...
21.0.0-beta.0
21.0.0-beta.0
2025-12-26
Code Refactoring
- migrate
uploadselectdropdowncascadertabssegmentedmessagenotificationto native animation
Bug Fixes
21.0.0-beta.0
2025-12-26
Code Refactoring
- native animation 迁移:
uploadselectdropdowncascadertabssegmentedmessagenotification
Bug Fixes
21.0.0-next.2
21.0.0-next.2
⚠ BREAKING CHANGES
- tabs: remove deprecated
nz-tabsetselector (#9613) (d5e5772) - qrcode: change the type of
nzPaddingfromnumber | number[]tonumber(#9535) (5419b51)
Features
- color-picker: support
nzPresets(#9341) (d59ec99) - date-picker: output date range in correct order (#9518) (d0b3185)
- input-number: supports mouse wheel control (#9591) (6ce3545)
- input,input-number: add additional options for
focusmethod (#9595) (c336711) - qrcode: support
nzTypeandnzBoostLevel, delete array usage ofnzPadding(#9535) (5419b51)
Bug Fixes
- icon: include nzSpin in change detection logic (#9598) (7d3c637)
- select: disable nzAutoClearSearchValue in single mode (#9605) (4720c21)
21.0.0-next.2
⚠ BREAKING CHANGES
- tabs: 移除已弃用的
nz-tabsetselector (#9613) (d5e5772) - qrcode:
nzPadding类型从number | number[]调整为number(#9535) (5419b51)
Features
- color-picker: 新增
nzPresets参数支持预设颜色 (#9341) (d59ec99) - date-picker: 日期范围选择顺序颠倒时确保能输出正确的范围 (#9518) (d0b3185)
- input-number: 支持鼠标滚轮控制 (#9591) (6ce3545)
- input,input-number:
focus方法新增额外参数 (#9595) (c336711) - qrcode: 新增
nzType和nzBoostLevel参数 (#9535) (5419b51)