更新日志
ng-zorro-antd 严格遵循 Semantic Versioning 2.0.0 语义化版本规范。
发布周期#
- 修订版本号:每周五会进行日常 bugfix 更新。(如果有紧急的 bugfix,则任何时候都可发布)
- 次版本号:每月发布一个带有新特性的向下兼容的版本。
- 主版本号:含有破坏性更新和新特性,不在发布周期内。
20.4.3#
2025-11-28
Bug Fixes#
20.4.2#
2025-11-21
Bug Fixes#
- cascader,select,date-picker,time-picker,tree-select: 补充
nzVariant全局配置类型定义 (#9543) (221386b) - button: 优化 zoneless 模式下仅图标展示的逻辑 (#9541) (9def420)
20.4.1#
2025-11-14
Bug Fixes#
- badge: 修复十六进制
nzColor不生效问题 (#9517) (47d44ba) - cascader: 修复 zoneless
NG0100问题 (#9504) (24b4e83) - color-picker: 修复
NG01350问题 (#9525) (fbcb8c3) - dropdown: 修复部分情形箭头位置不正确 (#9519) (7ff7e09)
- input: 修复 nz-input-search
enterButton为空字符串时搜索图标不渲染 (#9498) (6a40b0d) - result: 修复 ng-content 中的 nz-result-icon 不生效的问题 (#9511) (0e095a1)
- segmented: 修复禁用动画效果时选中不生效的问题 (#9512) (af8b531)
- select: 校正 small 尺寸下的字体大小 (#9516) (6f79005)
20.4.0#
2025-10-31
Features#
- cascader: 支持通过设置
nzOpen使弹出面板完全受控 (#9448) (4d5ec65) - cascader: 多选模式下支持通过
ENTER按钮改变选项 checkbox 值 (#9457) (e02f1f4) - float-button: 新增
nzBadge属性设置徽标 (#9489) (12beec7) - form: 新增
nzRequiredMark属性自定义必选与可选样式 (#9447) (800b6cf) - input-number: 新增前置和后置元素的 inputs 属性 (#9451) (dbebd02)
- input: 新增
nzAllowClear属性以及nzClear回调 (#9452) (830b4b3) - input: 新增组件
nz-input-wrapper(#9408) (a8e56ec), closes #9403 - input: 为
nz-input-wrapper新增前置和后置元素的 inputs 属性 (#9450) (763f69e) - input: 新增
nz-input-search指令 (#9483) (af6f590) - input: 新增
nz-input-password指令 (#9460) (f80832a) - message: 支持自定义样式 (#9427) (2f866b3)
- pagination: 新增
nzAlign属性 (#9433) (88d0864) - segmented:
nzName未设置时支持默认 name (#9466) (33f8142)
Bug Fixes#
- badge: 修复
nzColor未设置时nzStyle不生效的问题 (#9486) (4424eb0) - cascader: 重新打开弹出面板时正确展示激活的列 (#9456) (7802a39)
20.3.1#
2025-09-17
Bug Fixes#
20.3.0#
2025-09-16
Features#
- carousel: 新增
nzArrows属性 (#9355) (1b9714b) - check-list: 清单项支持定义默认是否完成 (#9343) (235b493)
- i18n:
provideNzI18n支持 factory function 作为参数 (#9393) (1371265) - mention: 新增
nzClear属性 (#9377) (cbecebf) - mention: 新增
nzVariant属性 (#9379) (d92568b) - segmented: 新增
nzShape属性 (#9368) (ffce6c3) - segmented: 新增
nzName属性并支持键盘交互 (#9373) (ebd8bdc) - upload:
nzBeforeUpload支持 promise 返回类型 (#9402) (cece107)
Bug Fixes#
- badge: 设置
nzColor后徽标渲染异常 (#9376) (e9abf92) - input: 修复
underline变体下 hover 时样式问题 (#9400) (74c2173) - segmented: 修复
NG0950错误 (#9386) (e82fc01) - select: 修复多选模式下样式异常 (#9409) (38f9065)
- schematics: 在非 LESS 项目中,选择自定义主题后将
less添加到 devDependencies (#9412) (a18cffd)
20.2.1#
2025-08-31
Bug Fixes#
20.2.0#
2025-08-29
Features#
- cascader: 新增
nzOpen属性控制可见性 (#9339) (354c7cf) - collapse: 新增
nzCollapsible设置可折叠触发区域 (#9349) (1ddbcaf) - collapse: 新增
nzSize设置折叠面板大小 (#9348) (b5c256d) - divider: 新增
nzSize设置分割线大小 (#9346) (1f54536) - dropdown: 新增
nzArrow属性控制是否展示箭头 (#9329) (3686b73) - float-button:
nzIcon支持字符串类型 (#9302) (ce611e5) - segmented: 新增
nzVertical属性支持展示垂直方向 (#9359) (52322cd) - select,tree-select,cascader: 支持设置前缀和后缀图标 (#9328) (527ffb6)
- tag: 导出
NzTagColor类型 (#9314) (1efd29e)
Bug Fixes#
- carousel:
nzDotPotion为left或right时指示点位置不正确 (#9358) (f117ccb) - range-picker: 鼠标离开时清理 outline (#9352) (573d092)
- segmented: 仅图标时应只渲染一个元素 (#9363) (89d2168)
20.1.3#
2025-08-22
Bug Fixes#
- i18n: 更新
cs_CZ国际化文案 (#9334) (93e486e) - i18n: 更新
sk_SK国际化文案 (#9335) (ddefc7f) - cascader: 动态绑定时 value 和 label 不正确的问题 (#9338) (324ab5b)
- popconfirm: 正确渲染标题和图标 (#9322) (2c83788)
- select: 修复使用
TemplateRef作为nzNotFoundContent时关闭下拉框时抖动的问题 (#9336) (366f8eb)
20.1.2#
2025-08-08
Bug Fixes#
- input-number: 修复展示值不正确的问题 (#9312) (7a2d3b6)
- select,tree-select,cascader: 已选项文本超出时展示省略号 (#9316) (30672d7)
- table: 内部滚动元素增加
cdkScrollable指令 (#9308) (8cb4113)
20.1.1#
2025-08-05
Bug Fixes#
20.1.0#
2025-07-21
Features#
- 新增 llms.txt 和 llms-full.txt (#9281) (165b963)
- float-button: 新增
nzPlacement属性自定义弹出位置 (#9267) (9dc19f3) - input-number: 支持输入的数字带
,(#9256) (7567bd8) - input: 一次性密码框支持通过键盘控制光标位置 (#9268) (da97b02)
- popconfirm: 取消按钮支持设置
nzDanger属性 (#9270) (f94cb31) - space: 支持通过数组形式设置
nzSize(#9289) (8809885) - schematics: 对齐 Angular 20 更新的风格指南 (#9295) (b5f607b)
Bug Fixes#
- core: 避免使用
setAttribute设置style(#9292) (12d58bd) - input-number: ngModel 的值可为
undefined(#9269) (4c5666a) - tooltip: 重命名
ToolTip为Tooltip(#9285) (2ebef97) - schematics: 支持迁移
ToolTip到Tooltip(#9294) (add21f7)
20.0.0#
2025-07-01
Features#
- cascader,date-picker,input-number,input,select,time-picker,tree-select: 新增
nzVariant属性设置变体 (#9131) (b342bb4) - popover: 新增
nzPopoverTitleContext和nzPopoverContentContext属性 (#9126) (df3ead9) - select: 新增
nzOnClear事件回调 (#9188) (e047ac2) - avatar: 支持设置原生
<img>的loading和fetchpriority属性 (#7347) (ff8419f) - popconfirm: 新增
nzOkButtonProps和nzCancelButtonProps(#9245) (22e2a9f) - tree-select: 支持以 innerHTML 渲染已选项的 title (#9259) (8066f7b)
Bug Fixes#
- flex: 修复
NzAlign类型 (#9151) (b271c19) - segmented: 接受 ng control 的禁用状态 (#9166) (134cd59)
- space: 紧凑模式下只有一个子元素时的 border-radius 不正确 (#9165) (d2f4541)
- tabs: 修复 tab focus 时不正确的滚动行为 (#9186) (4f658e0)
- schematics: 修复重复执行
ng add时的问题 (#9171) (d0a9748) - water-mark: 修复 ssr 模式的兼容问题 (#9250) (a70a682)
- icon: 在 animation frame 上增加渲染防抖 (#8579) (c0709d1)
Code Refactoring#
⚠ BREAKING CHANGES#
- core: 移除对 animation frame 的 polyfill
- 重命名
cancelRequestAnimationFrame为cancelAnimationFrame - 重命名
reqAnimFrame为requestAnimationFrame
- 重命名
- tabs: 废弃
NzTabsetComponent并重命名为NzTabsComponent,废弃nz-tabset选择器并重命名为nz-tabs - table: 移除对 material 组件的兼容
- popconfirm: 废弃
nzOkDisabled和nzOkDanger,请使用nzOkButtonProps代替
移除以下在过去的版本中标记为废弃的 API:
| Module | API |
|---|---|
ng-zorro-antd/button | NzButtonGroupComponent |
ng-zorro-antd/core/form | NzFormPatchModule |
ng-zorro-antd/checkbox | NzCheckBoxOptionInterface |
ng-zorro-antd/input | NzInputGroupComponent#nzCompact |
ng-zorro-antd/message | NzMessageModule |
ng-zorro-antd/notification | NzNotificationModuleNzNotificationServiceModule |
组件的 exportAs 属性命名统一采用小驼峰 camelCase 且以 nz 开头,并移除一些内部组件的 exportAs 属性。变化如下:
| Component | Original | Current |
|---|---|---|
calendar-footer | calendarFooter | - |
date-helper | dateHelper | - |
date-range-popup | dateRangePopup | - |
date-table | dateTable | - |
decade-helper | decadeHelper | - |
decade-table | decadeTable | - |
month-helper | monthHelper | - |
month-table | monthTable | - |
quarter-helper | quarterHelper | - |
quarter-table | quarterTable | - |
year-helper | yearHelper | - |
year-table | yearTable | - |
inner-popup | innerPopup | - |
nz-color-block | NzColorBlock | nzColorBlock |
nz-color-format | NzColorFormat | nzColorFormat |
nz-color-picker | NzColorPicker | nzColorPicker |
nz-model-close | NzModalCloseBuiltin | nzModalCloseBuiltin |
nz-model-footer | NzModalFooterBuiltin | nzModalFooterBuiltin |
nz-model-title | NzModalTitleBuiltin | nzModalTitleBuiltin |
nz-tree-drop-indicator | NzTreeDropIndicator | nzTreeDropIndicator |
nz-water-mark | NzWaterMark | nzWaterMark |
nz-tabs | nzTabset | nzTabs |
Deprecations#
在 v20 中,以下 API 被标记为 deprecated,并将在下一个主要版本中移除。 请参考相关文档以获取更好的替代方案。
| Module | API |
|---|---|
ng-zorro-antd/autocomplete | NZ_AUTOCOMPLETE_VALUE_ACCESSORgetNzAutocompleteMissingPanelError |
ng-zorro-antd/button | NzButtonGroupComponent |
ng-zorro-antd/core/highlight | NzHighlightModule |
ng-zorro-antd/core/form | NzFormPatchModule |
ng-zorro-antd/checkbox | NzCheckBoxOptionInterface |
ng-zorro-antd/input | NzInputGroupComponent#nzCompact |
ng-zorro-antd/mention | NZ_MENTION_TRIGGER_ACCESSOR |
ng-zorro-antd/message | NzMessageModule |
ng-zorro-antd/notification | NzNotificationModuleNzNotificationServiceModule |
ng-zorro-antd/tabs | NzTabsetComponent |
19.3.1#
2025-05-29
Bug Fixes#
- cascader: ngModel 值在选项中不存在时无法更新值 (#9124) (689fc72)
- date-picker:
nzFormat改变时更新 input 元素的值 (#9129) (f4c4e05) - tabs: 修复首次加载页面时
nzLinkRouter不生效的问题 (#9130) (925a6a5)
19.3.0#
2025-05-23
Features#
- avatar: 支持通过 ng-content 自定义图标 (#9090) (89d0767)
- input-number: 新增 Output 属性
nzBlur和nzFocus(#9098) (1b1a013) - tabs: 附加内容支持 start 和 end 两种位置 (#9097) (2500821)
- transfer: 支持键入
Shift后多选 (#9092) (b78b99f)
Bug Fixes#
- i18n: 更新
es_ES国际化文案 (#9127) (0aadfdf) - segmented: 修复初始化时发射不必要的值更新事件 (#9125) (fb0635b)
- tabs: 修复首次加载页面时
nzLinkRouter不生效的问题 (#9118) (0f7f94d)
Performance Improvements#
19.2.2#
2025-04-25
Bug Fixes#
- select: 多选模式下,限制粘贴后的选项数不超过
nzMaxMultipleCount(#9080) (3714840) - input-number: 修复
NG0600错误 (#9106) (9f5b525) - checkbox: 修复
NG0600错误 (#9105) (61b6886) - checkbox: 修正
nzOptions的类型定义 (#9099) (7be2fe5)
19.2.1#
2025-03-29
Bug Fixes#
19.2.0#
2025-03-28
Features#
Documentation#
- tabs: 新增使用 CDK
DragDropModule实现可拖拽页签的示例
Bug Fixes#
- input-number: 输入数字以 0 结尾时视作输入进行中 (#9051) (2a0c2e0)
- segmented: 修复 FormControl 第一次更新时不生效 (#9039) (33fe53d)
- select: 默认模式下禁用
nzMaxMultipleCount属性 (#9068) (dcf8a5d) - select: 多选模式下 ngModel 值变化时更新是否达到
nzMaxMultipleCount的状态 (#9056) (d7031da) - space: 修复 rtl 模式下 nzSpaceItem 的行内边距 (#7801) (2d9ff5f)
- tabs: tabs 改变时更新活动的路由联动页签 (#7649) (1f07121)
- tree-select: 修复虚拟滚动下选项无法水平滚动 (#9045) (e70cae3)
19.1.0#
2025-02-21
Features#
- check-list: 新增
CheckList组件 (#8969) (4cd298b) - message,notification: 内容为模板时支持通过
nzData传入数据 (#9001) (5157470) - popover,popconfirm,tooltip: 支持空格分割的字符串作为
overlayClassName(#8972) (3fcec91) - popover: 支持通过
nzPopoverOverlayClickable禁止点击蒙层关闭面板 (#8878) (5898da7)
Bug Fixes#
- input-number,checkbox: 接受来自 control 的禁用状态变化 (#8979) (2d8968d)
- input-number: 修复一系列输入事件问题,详见 (#8989) (6d8d915)
- tree-select: 修复判断多个实例条件错误 (#9008) (5006ea6)
Code Refactoring#
现在你可以在项目中使用 isolatedModules 编译选项。
19.0.2#
2025-01-10
Bug Fixes#
- auto-complete: 点击聚焦的输入框时应弹出浮层 (#8900) (79cc2f8)
- progress: 修复
NG0956错误 (#8962) (c4d2f81) - transfer: 修复 body 样式异常 (#8960) (a3546a9)
19.0.1#
2025-01-03
Bug Fixes#
- date-picker: 原生 title 属性遵循
nzFormat格式 (#8744) (1b7ab5a) - i18n: 更新
zh_TW国际化文案 (#8950) (9607e11) - input-number: 修复
NG0600错误 (#8955) (8d6135e) - table: 修复水合节点不匹配问题 (#8948) (0a73deb)
19.0.0#
2024-12-06
Bug Fixes#
- autocomplete: 修复 CSP 问题 (#8875) (30c25f0)
- avatar: 修复 overlay 中尺寸计算问题 (#8754) (3a5ba37)
- card: 移除
nzBorderlessinput 属性 (#8741) (22ce17c) - carousel: 修复 rtl 模式下轮播切换顺序问题 (#8770) (0202a19)
- cascader: 取消选择时收起子选项列 (#8866) (5fec53e)
- drawer: 打开时清除之前 focus 的元素 (#8893) (4498af0)
- i18n: 更新
vi_VN国际化文案 (#8894) (f08ad1c) - tree-view: 修复
nzTreeNodePadding在虚拟滚动中不生效问题 (#8920) (82b660a)
Code Refactoring#
- 取消支持渲染 HTML 字符串 (#8831) (5fae01a)
- 移除
ngClassandngStyle(#8895) (c3ab3ba) - image: 移除废弃的
FADE_CLASS_NAME_MAP和IMAGE_PREVIEW_MASK_CLASS_NAME(#8912) (65223d9) - transfer,tree,tree-select 相关 Output 属性中的
CheckBox重命名为Checkbox(#8934) (c76433d5)
Features#
- cascader: 支持多选 (#8903) (e5dfb49)
- cascader: 支持
nzPlacement自定义浮层弹出位置 (#8935) (6fbd22c) - checkbox: 重新设计
nz-checkbox-group组件,支持自定义布局 (#8932) (489e0de) - divider: 新增
nzVariant选项 (#8827) (2c63c87) - float-button: 新增 float-button 组件 (#7884) (dab4d66)
- icon: 新增
nz-iconselector (#8778) (1406241) - image: 支持通过
esc按键关闭预览 (#8809) (d587615) - input: 新增一次性密码框组件 (#8715) (cdbaf4d)
- menu: 新增
nzTriggerSubMenuAction支持点击触发子菜单 (#8461) (860df87) - qrcode: 新增
nzStatusRender支持自定义状态渲染 (#8714) (6f36d75) - segmented: 重新设计 segmented 组件 (#8753) (4dc866c)
- space: 新增
nz-space-compact组件 (#8755) (b9c511d) - table: 支持在全局配置中设置
nzSortDirections(#6613) (#8721) (eb1fdc5) - transfer: 新增
nzOneWay属性支持单向样式 (#8717) (99fd4de) - input-number: 重新设计 input-number 组件 (#8901) (df55d88)
- schematics: 支持 v19 ng update 迁移 (#8911) (1a20de2)
BREAKING CHANGES#
All
nzClass/nzStyle属性不再支持下列值:Set(): 使用数组代替- 键分隔的多个类名或样式:使用空格分隔的多个键代替
- 移除一些组件内部支持渲染 HTML 字符串的功能,因为这是非良好的模式。message,notification,modal 组件除外,因为这些组件可以通过 service 方式创建,渲染 html 字符串的用例会比较多。
- 使用标准装饰器重写
@WithConfig。如果在库中使用了@WithConfig,请在tsconfig.json中关闭experimentalDecorators选项 - 组件内部写法从
[nz-icon]迁移到新的nz-icon标签。如果在 CSS 中使用了[nz-icon]选择器来选择组件内部的图标,请使用为nz-icon替代
input-number: 重新设计 input-number 组件,使其更加简单灵活
现在为新的 input-number 添加前缀或后缀的写法如下,不再需要使用
nz-input-number-group与ng-template:<!-- Custom handler icons --> <nz-input-number> <nz-icon nzInputNumberUpIcon /> <nz-icon nzInputNumberDownIcon /> </nz-input-number> <!-- With affixes --> <nz-input-number> <span nzInputPrefix>Prefix</span> <span nzInputSuffix>Suffix</span> </nz-input-number> <!-- With addons --> <nz-input-number> <span nzInputAddonBefore>Before</span> <span nzInputAddonAfter>After</span> </nz-input-number>旧的 input-number 组件被标记为 deprecated,其入口已更改为
ng-zorro-antd/input-number-legacy。NzInputNumberComponent更名为NzInputNumberLegacyComponent,NzInputNumberModule更名为NzInputNumberLegacyModule。不用担心,
ng update ng-zorro-antd会自动迁移你的代码。cascader:
ngModel取消支持NzCascaderOption[]类型旧版本中,在表单中为 Cascader 组件赋值为
NzCascaderOption[]类型时,Cascader 组件会根据提供的nzValueProperty映射成实际的值并写入,例如:@Component({ template: `<nz-cascader [nzOptions]="options" [ngModel]="value"></nz-cascader>` }) export class ExampleComponent { value = [{ label: 'NG ZORRO', value: 'ng-zorro-antd' }]; }此时 Cascader 组件输出的值将为
'ng-zorro-antd'。这就导致输入与输出的值不一致,可能存在潜在的数据问题。在 v19 中,我们将移除该特性,如果您已经在代码中运用了该特性,请考虑增加一个
map方法将其映射到实际的值。checkbox Redesign the checkbox group component.
- 移除
NzCheckBoxOptionInterface['checked]字段,另外NzCheckBoxOptionInterface被标记为弃用,请使用NzCheckboxOption替代 nz-checkbox-group:ngModel类型从NzCheckBoxOptionInterface[]改为选项值的类型NzCheckboxOption['value'][]
- 移除
card: 移除冗余的
nzBorderless属性,使用nzBordered替代image: 移除废弃的
FADE_CLASS_NAME_MAP和IMAGE_PREVIEW_MASK_CLASS_NAMEpipes: 移除废弃的
NzSafeNullPipesegmented: 重新设计 segmented 组件
ngModel的值从索引值index改为选项值nzValueChange发出值的类型从number改为选项值的类型 (string | number)- 移除
nzLabelTemplate, 使用nz-segmented-item指令替代
space:
NzSpaceComponent的exportAs属性重命名为标准nzSpacetransfer: 属性
nzTreeCheckBoxChange重命名为nzTreeCheckboxChangetree,tree-select: 属性
nzCheckBoxChange重命名为nzCheckboxChange
Deprecations#
在 v19 中,以下 API 被标记为 deprecated,并将在下一个主要版本中移除。 请参考相关文档以获取更好的替代方案。
| Module | API |
|---|---|
ng-zorro-antd/button | NzButtonGroupComponent |
ng-zorro-antd/core/form | NzFormPatchModule |
ng-zorro-antd/checkbox | NzCheckboxWrapperComponent |
ng-zorro-antd/input | NzInputGroupComponent#nzCompact |
ng-zorro-antd/input-number-legacy | * |
ng-zorro-antd/message | NzMessageModule |
ng-zorro-antd/notification | NzNotificationModuleNzNotificationServiceModule |
18.2.1#
2024-11-15
Bug Fixes#
- anchor: 修复
nzTitle使用 TemplateRef 时a标签 title 内容异常 (#8864) (41f6609) - color-picker: 修复 CSP 问题 (#8874) (0264da9)
- image: 修复 CSP 问题 (#8876) (63c8953)
- select: 修复 CSP 问题 (#8873) (9431d0d)
- transfer: 修复取消全选未触发
nzSelectChange事件 (#8872) (5ff9821) - qrcode: 加载稳定后移除事件监听器 (#8861) (40d466d)
- watermark: 加载稳定后移除事件监听器 (#8862) (decd477)
18.2.0#
2024-11-07
Bug Fixes#
- i18n: 添加国际化文案
nb_NO(#8712) (8c9bcd1) - i18n: 添加国际化文案
hu_HU(#8769) (9e21ae8) - badge: 修复组件中的 NG0955 警告 (#8858) (cc52555)
- select: 修复多选模式下和 switch 一起使用时,引发初始化时 switch 组件大小闪烁 (#8851) (d28876c)
- carousel: 修复 rtl 模式下轮播图切换异常 (#8705) (85f23a1)
- drawer: 导航关闭时发射
nzVisibleChange事件 (#8850) (29827df) - modal,drawer: 修复弹出容器中滚动异常 (#8804) (ed7951d)
- modal: 修复
nzMask为false时遮罩被渲染 (#8798) (f2f04fe) - transfer: 正确更新穿梭按钮的禁用状态 (#8824) (195ad26)
Features#
- datepicker: 新增改变模式或日期的回调
nzOnPanelChange(#8685) (6462a47) - tabs: 新增
destroyInactiveTabPane支持销毁非活动状态的 tab (#8845) (0de6d62)
18.1.1#
2024-08-20
Bug Fixes#
- 修复 @angular/compiler-cli#56945 导致的 ngtypecheck reference 问题 (#8699) (8e459c1)
- date-picker: 修复重新渲染时的 NG0956 警告 (#8658) (70a0817)
- grid: 修复示例中的 NG0955 警告 (#8679) (6414c92)
- tree-select: 修改值时清空选中节点 (#8693) (91927bc)
18.1.0#
2024-07-25
Bug Fixes#
- cascader:
compositionstart事件触发时隐藏 placeholder (#8641) (17b0ea3) - i18n: 更新
pt_BR国际化文案 (#7790) (6fc1c78) - i18n: 更新
fr_BE,fr_CA,fr_FR,lv_LV国际化文案 (#8614) (9b69410) - schematics: 修复模板中
RouterLink引入缺失问题 (#8621) (032a0c2) - transfer: 修复选项全部禁用后全选按钮仍可点击 (#8633) (75d8c7b)
Features#
- breadcrumb: 新增
nzRouteFn以格式化面包屑路由 (#6313) (6d805c4) - i18n: 添加国际化文案
en_AU(#7919) (c4e6c8d) - icon: 新增
provideNzIcons和provideNzIconsPatchAPI (#8650) (b22672d) - popconfirm: 新增支持
nzPopconfirmTitleContext上下文 (#7989) (6d27073) - table: 新增支持
nzSummary总结栏 (#8639) (20bb5b2) - table: 总结栏支持
nzFixed固定 (#8642) (bef12e6) - tree-select:
nzNotFoundContent支持 TemplateRef 类型 (#8638) (13e8a45)
18.0.1#
2024-06-27
Bug Fixes#
- graph: 修复 @for track 表达式异常 (#8587) (7687ff2)
- icon: 修复 @for track 表达式异常 (#8588) (8a27bab)
- table: 修复 @for track 表达式异常 (#8593) (b275063)
- pagination: 修复 @for track 表达式异常 (#8586) (6bb95c0)
- i18n: 更新
de_DE国际化文案 (#8605) (8d75378) - i18n: 更新
fa_IR国际化文案 (#8597) (9c6e4bf) - table: 修复固定表头下渲染内容缺失问题 (#8574) (6cff80e)
18.0.0#
2024-06-06
⚠ BREAKING CHANGES#
- collapse:
nzExpandIconPosition类型从left|right变更为start|end(#8561) (3ad5674) - Less 中不再使用 inline JavaScript (#8552) (7e873c8)
使用 antd 提供的 Less 函数时不再需要用 ~`` 包裹,例如:
- color(~`colorPalette('@{primary-color}', 5)`)
+ color(colorPalette('@{primary-color}', 5))
受影响的函数包括:colorEasing,colorPalette,tinycolor
Bug Fixes#
- cascader,select,time-picker,tooltip,tree-select: 修复在 shadow DOM 中获取
EventTarget异常问题 (#7853) (843b703) - tooltip: 修复箭头颜色未被自定义颜色覆盖问题 (#8555) (92c586b)
- upload: 仅在 firefox 浏览器中阻止拖拽事件 (#8551) (c6e7bd7)
- rate: 修复
nzAllowHalf为false时展示半星 (#8536) (7742fe3)
Features#
- date-picker: 支持季度选择 (#8478) (3513889), closes #7818#7380
- qrcode: 新增已扫描状态 (#8447) (0be6178)
- rate: 鼠标离开时触发
nzOnHoverChange事件 (#8448) (38dcc31) - statistic: 新增加载中状态 (#8537) (21c8b62)
- table: 支持设置空数据时内部滚动的高度 (#8457) (724d841)
17.4.1#
2024-05-24
Bug Fixes#
- card: 使用
skeleton代替card-loading-content(#8528) (a36ebd3) - color-picker: 避免两次
nzOnChange事件 (#8530) (5dea059) - list: 静态查询列表项操作模板 (#8527) (85301e0)
- popconfirm: icon 样式丢失 (#8511) (4f1f9bb)
- tooltip,popover,popconfirm: SSR 引入的异常 (#8512) (5009ec0)
Features#
Performance Improvements#
17.4.0#
2024-04-19
Bug Fixes#
- autocomplete: 移除
NgZone依赖 (#8462) (24bb1bc) - button: 补充
ant-btn-defaultClass (#8501) (1588199) - calendar: 修复年份下拉框数据更新异常问题 (#8286) (ee68a2c)
- date-picker: 移除内联样式 (#8458) (e6b83eb)
- drawer: 移除内联样式 (#8065) (5e89441)
- graph: 修复箭头渲染异常问题 (#8493) (342841c)
- graph: 移除
NgZone依赖 (#8460) (a4ec21a) - icon: 补充 SwapOutline 图标 (#8433) (f1a4050)
- image: 修复 rtl 模式下预览切换按钮位置异常 (#8468) (886138d)
- list: 移除
NgZone依赖 (#8439) (1ec0e76) - notification: 修复
nzMaxStack初始值问题 (#8451) (2c09162) - pagination:
nz-pagination-item支持可访问名称 (#8476) (47ee143) - slider: 修复垂直模式下标度刻记样式异常 (#8494) (9bcce6c)
- tag: 修复无边框样式异常 (#8495) (b35e6d6), closes #8492
- typography: 移除
NgZone依赖 (#8440) (af7fb5d) - upload: 移除内联样式 (#8064) (1ac84a8)
Features#
- modal: 遮罩层支持响应每次点击 (#8429) (31b90fa)
- notification: 调整弹出顺序 (#8450) (742f14a)
- select: 支持在全局配置中设置
nzOptionHeightPx(#8504) (4efc5ab), closes #8503 - skeleton: 支持正方形骨架按钮 (#8481) (af1483a)
17.3.0#
2024-03-11
Bug Fixes#
- doc: 更新 monaco editor 参考链接 (#8393) (fdfc816)
- docs: 修复部分文档问题 (#8383) (407e76a)
- select: 修复缩放页面时
nzScrollToBottom未触发问题 (#8355) (bb0468e) - avatar: 修复部分场景无法正确缩放问题 (#8365) (e7b1fa0)
- carousel: 修复调整大小时不适应新的大小问题 (#8374) (6e1decb)
- cdk:
zIndex设置问题 (#8373) (b932d65) - i18n: 添加国际化文案 (#8426) (d575c53)
- i18n: 添加国际化文案
ja_JP(#8290) (662b730) - i18n: 添加国际化文案
vi_VN(#8295) (987a799) - tabs: 修复小屏幕下
tab定位样式丢失问题 (#8372) (a0b08be) - tabs: 修复光标样式 (#8386) (3dc1579)
Features#
- 优化 schematics (#8411) (921f1c1)
- anchor: 支持水平锚点 (#8342) (9cc44f8)
- calendar: 支持自定义 header (#8418) (ec7ec35)
- color-picker: 转为内置
color-picker组件 (#8428) (534fe62) - drawer:
nzContent类型为组件时返回componentRef(#8339) (f71162b) - image: 支持水平和垂直翻转 (#8168) (e856515)
- image: 支持鼠标滚动缩放 (#8180) (4235c29)
- modal: 支持拖拽 (#8419) (ce33294)
- modal:
nzContent返回componentRef对象 (#8389) (e53000e) - segmented: 支持仅图标展示 (#8368) (e8dea7a)
- select: 支持多选最大值设置 (#8371) (18b898e)
17.2.0#
2024-01-29
Bug Fixes#
- table: 修复
nz-table-inner-scroll未正确 import 问题 (#8328) (936317e) - tree-select: 修复中文搜索异常问题 (#8324) (aacd62b)
- 修复 pipeline 依赖报错问题 (#8367) (6024bcc)
Features#
- color-picker: 支持
standalone(#8316) (b050474) - tag: 支持无边框模式 (#8320) (e428083)
- timeline: 支持自定义颜色 (#8335) (66a88db)
17.1.0#
2023-12-17
Bug Fixes#
- calendar: 修复单选按钮样式问题 (#8298) (996e141)
- core: 隐藏构建时 cron 警告信息 (#8277) (138d666)
- cron-expression: 输出类型错误 (#8189) (ad02381), closes #8188
- select:
nzAutoClear设置 true 时自动清理输入 (#8167) (fefcb68) - tabs: 修复
aria错误值 (#8237) (d9a2d27) - tooltip: 修复箭头颜色未更新问题 (#8192) (bc344ed)
Features#
- alert: 支持
standalone(#8182) (167bed0) - anchor: 支持
standalone(#8185) (03cda21) - autocomplete: 支持
standalone(#8193) (548e842) - avatar: 支持
standalone(#8194) (4e2cb74) - back-top: 支持
standalone(#8195) (db5d5f4) - badge: 支持
standalone(#8201) (3d1427f) - breadcrumb: 支持
standalone(#8202) (165f171) - button: 支持
standalone(#8275) (3c09507) - calendar: 支持
standalone(#8274) (80d68a3) - card: 支持
standalone(#8273) (0902a4b) - carousel: 支持
standalone(#8272) (e4244fb) - cascader: 支持
standalone(#8271) (3ab6e5b) - cdk: 支持
standalone(#8270) (d66bcba) - checkbox: 支持
standalone(#8269) (1491fb3) - code-editor: 支持
standalone(#8268) (24547c6) - collapse: 支持
standalone(#8267) (dc43fa5) - color-picker: 禁用 alpha (#8178) (0bebd6a)
- comment: 支持
standalone(#8266) (5af11ea) - core:
no-animation支持standalone(#8257) (de579bc) - core: 支持
standalone(#8265) (c51e8da) - cron-expression: 支持
standalone(#8264) (ae6ceeb) - date-picker: 支持
standalone(#8263) (ac48fba) - description: 支持
standalone(#8262) (128f4c0) - divider: 支持
standalone(#8258) (3a7cd50) - drawer: 支持
standalone(#8256) (2fbe4c0) - dropdown: 支持
standalone#8254 (#8255) (c5df26f) - empty: 支持
standalone(#8254) (15636d2) - experimental-image: 支持
standalone(#8253) (7325781) - flex: 新增
flex组件 (#8145) (f8fedfc) - form: 支持
standalone(#8252) (e742e39) - graph: 支持
standalone(#8251) (d2f1d30) - grid: 支持
standalone(#8250) (208652c) - i18n: 支持
standalone(#8249) (a91cac7) - icon: 支持
standalone(#8248) (b0dbfbc) - image: 支持
standalone(#8200) (63b8777) - input-number: 支持
standalone(#8246) (6210fa0) - input: 支持
standalone(#8247) (0a7028c) - layout: 支持
standalone(#8245) (d21f8a1) - list: 支持
standalone(#8244) (1f3010f) - mention: 支持
standalone(#8243) (adc5e94) - menu: 支持
standalone(#8242) (4673926) - message: 支持
standalone(#8241) (c2120b2) - modal: 支持
standalone(#8240) (387d664) - notification: 支持
standalone(#8236) (686b6b0) - page-header: 支持
standalone(#8235) (aa91486) - pagination: 支持
standalone(#8234) (0f1690c) - pipes:
css-unitpipe 支持更多 (#8260) (5e611e7) - pipes: 支持
standalone(#8233) (319381a) - pop-confirm: 支持
standalone(#8232) (9d656b2) - popover: 支持
standalone(#8231) (f7468e2) - progress: 支持
standalone(#8230) (7022471) - qr-code: 支持
standalone(#8228) (769f74c) - radio: 支持
standalone(#8227) (b62ac64) - rate: 支持
standalone(#8226) (90edba6) - resizable: 支持
standalone(#8225) (ff14ed0) - result: 支持
standalone(#8224) (572965d) - segmented: 支持
standalone(#8223) (86a49d2) - select: 支持
standalone(#8222) (ed0de77) - skeleton: 支持
standalone(#8220) (a2858d3) - slider: 支持
standalone(#8219) (428c53c) - space: 支持
standalone(#8218) (a84ddef) - spin: 支持
standalone(#8217) (cd23e33) - statistics: 支持
standalone(#8216) (186ef60) - steps: 支持
standalone(#8215) (dbb6fcb) - switch: 支持
standalone(#8214) (3f6a9ed) - table: 支持
standalone(#8276) (5765ae9) - tab: 支持
standalone(#8213) (69dd31a) - tag: 支持
standalone(#8212) (15af7c8) - time-picker: 支持
standalone(#8211) (641ebb2) - timeline: 支持
standalone(#8210) (b7c6859) - tooltip: 支持
standalone(#8209) (125768c) - transfer: 支持
standalone(#8208) (960144e) - tree-select: 支持
standalone(#8206) (64ec76a) - tree-view: 支持
standalone(#8205) (d4426fc) - tree: 支持
standalone(#8207) (b9cf3b0) - typography: 支持
standalone(#8204) (d7e387f) - upload: 支持
standalone(#8203) (7cd08ae) - water-mark: 支持
standalone(#8197) (e4d6082), closes #8187
17.0.1#
2023-11-20
Bug Fixes#
17.0.0#
2023-11-19
Bug Fixes#
- autocomplete: 修复内部
nz-auto-option的错误值 (#7907) (0a312e3) - cron-expression: 修复报错信息 (#8114) (ea69790)
- form: 修复点击 label 聚焦元素错误问题 (#8135) (b3d135f)
- i18n: 添加
pl_PL语言 (#7950) (7819426) - i18n: 更新
fa_IR语言 (#8143) (4f63198) - i18n: 更新
fr/be/ca语言 (#8137) (211db31) - mention: 修复表单内未完全加载问题 (#8146) (9505c7c)
- resizable: 修复 pointer capture 问题 (#8169) (a0b8a0b)
- select: 性能优化 (#8159) (7ce50b3)
- slider: 修复 step 不可点击问题 (#7820) (1e1c753)
- table: 优化样式文件 (#8044) (fde48f9)
- tree-select: 修复回显顺序问题 (#8108) (eb4077d)
- tree: 修复 nzCheckBoxChange 事件未发出问题 (#8038) (a9dc205)
Features#
- affix: 支持
standalone用法 (#8037) (583883c) - hash-code: 新增
HashCode组件 (#8111) (0254ee2) - image: 支持指定缩放步骤比例 (#8163) (5aa4db9)
- notification: 支持自定义 template (#8046) (9689c42)
- schematics: 支持
standalone下 ng-add 命令 (#8095) (c1b61f7) - slider:
nzTipFormatter支持 Template 类型 (#7505) (7c79ab3) - table: 添加
nzLabel以在复选框中包含aria-label(#7903) (5834e46) - table: 支持自定义展开图标 (#7886) (1507ed0)
- tooltip,popover,popconfirm: 暴露
cdkConnectedOverlayPush配置 (#8166) (a821c62)
16.2.2#
2023-10-23
Bug Fixes#
- 内置
cdk-overlay样式 (#8132) (3209d74) - cascader: 兼容 rxjs v6 (#8133) (54a5c76)
- drawer:
drawer不能打开 (#8120) (24d0664)
16.2.1#
2023-10-19
Bug Fixes#
@angular/cdk/overlay-prebuilt.css样式报错 (#8122) (42da190)- color-picker: 优化
demo展示 (#8088) (6d03099) - menu: menu title 溢出省略 (#8055) (0674f78)
- tree-select: 修复节点为禁用状态时,back快捷键能删除bug (#8105) (07a1f5e)
Features#
16.2.0#
2023-09-18
Bug Fixes#
- list: 修复同步操作项不显示在项目中的问题 (#7958) (3b6bdec)
- tree: 修复
nzBeforeDrop拖拽样式不消失问题 (#8015) (2d0b3f7) - button: 添加
ant-btn-icon-onlyclass (#7631) (#7678) (7470ed6) - cascader: 修复自定义已选项后会出现 title undefined 问题 (#8011) (10003db), closes #8006
- core: 修复 CSP 问题 (#8059) (295b333)
- cron-expression: 清除 console 警告 (#7926) (b358345)
- date-picker: 更新代码注释 (#7991) (8b6b653)
- i18n: 更新国际化文案 (#7901) (9bfce45)
- message: 关闭后清理 DOM (#7965) (71ead99), closes #7772
- message: 修复
overlay的z-index(#8081) (b1d2095) - notification: 更新操作不创建新的
messageId(#8000) (e240264) - qrcode: 优化 demo 样式 (#8020) (078aaf9)
- table: 自定义列移除空格 (#8022) (15e244c)
- time-picker: 修复
modelChange触发两次问题 (#7902) (74c13a4) - tree-view: 修复重复渲染问题 (#8035) (68cb4b2)
- tree: 移除 console (#8019) (fa0312a)
- watermark: 修复重绘问题 (#8012) (030318e)
- showcase: 修复
rtl模式的样式问题 (#8063) (d57b7da)
Features#
- core: 支持
provide使用方式 (#7952) (150c6ca) - cascader: 支持
observable加载数据 (#8048) (1436f21) - color-picker: 支持颜色选择器组件 (#8013) (8439704)
- cron-expression: 新增单元测试 (#7993) (605e969)
- cron-expression: 支持
nzDisabled&&nzBorderless属性 (#7992) (6d31bde) - dropdown: close context menu on escape (#7915) (6d0032e)
- dropdown: 优化
NzContextMenuService#create()(#7768) (9b3e6cb) - form: 支持
label wrap(#7892) (37391de) - input:
number类型支持隐藏步骤 (#8003) (0f3aed5) - modal: 移除
nzComponentParams过期属性 (#7930) (baab16c) - qrcode: 支持新特性 (#8001) (718ba29)
- resizable:
NzResizeEvent暴露direction(#7987) (4143473) - resizable: 支持更多鼠标类型 (#8042) (e564714)
- table: 支持自定义展示列 (#7966) (d26870f)
Performance Improvements#
- select: 支持传递
nzKey(#8033) (e94da4e) - select: 移除不必要的类型 (#7850) (71c2138)
- tabs: 添加
.ant-tabs-tab样式以减少 css 计算消耗 (#7935) (#7936) (198644a)
16.1.0#
2023-07-16
Bug Fixes#
- list: 修复异步节点未正确展示问题 (#7958) (3b6bdec)
- tree: 修复拖拽节点样式未正确取消问题 (#8015) (2d0b3f7)
- cascader: 修复自定义项导致 title undefined 问题 (#8011) (10003db), closes #8006
- date-picker: 更新代码注释 (#7991) (8b6b653)
- i18n: 更新繁体文案 (#7901) (9bfce45)
- notification: 更新组件不创建新的 messageId (#8000) (e240264)
- time-picker: 修复 modelChange 触发多次问题 (#7902) (74c13a4)
- watermark: 修复水印组件重绘问题 (#8012) (030318e)
Features#
- cron-expression: 新增单元测试 (#7993) (605e969)
- cron-expression: 支持
nzDisabled&&nzBorderless属性 (#7992) (6d31bde) - dropdown: 支持 ESC 退出 (#7915) (6d0032e)
- dropdown: create 返回
EmbeddedViewRef对象 (#7768) (9b3e6cb) - form: 支持
nzLabelWrap属性控制换行 (#7892) (37391de) - modal: 移除废弃属性
nzComponentParams(#7930) (baab16c) - qrcode: 支持
nzBgColor&nzPadding优化另存为图片效果 (#8001) (718ba29) - resizable:
NzResizeEvent支持NzResizeDirection属性 (#7987) (4143473) - table: 支持自定义展示列 (#7966) (d26870f)
Performance Improvements#
16.0.0#
2023-05-31
Bug Fixes#
- date-picker: 修复
ng-untouched问题 (#7922) (9ebcf72) - date-picker: 修复跨年选择周期显示不正确问题 (#7923) (e7f9538)
- datepicker: 修复
ngModel未更新问题 (#7948) (100796c) - slider: 修复首个禁用失效问题 (#7947) (ad2faf4), closes #7943
历史版本#
历史版本的更新记录可以在 Github 查看。