19.0.0-beta.1
2024-12-17
Bug Fixes
- cascader: abnormal width of search results (#8937) (c6aa501)
- cascader: should change check state trigger ngModelChange (#8941) (2c7f49a)
- input-number: skip first setDisabledState when use with ngModel (#8933) (8b24746)
- input-number: value out of range when hold shift key (#8936) (a8efd2b)
- select: multiple selection don't show search input (#8929) (ef4bbb1)
- tree-view: nzTreeNodePadding not works in virtual scroll (#8920) (82b660a)
Features
- cascader: support
nzPlacement
(#8935) (6fbd22c) - checkbox: redesign the checkbox group component (#8932) (489e0de)
BREAKING CHANGES
-
All Migrate
[nz-icon]
tonz-icon
tag. If you're using[nz-icon]
selector in stylesheet to select icon inside zorro component, please usenz-icon
instead -
checkbox Redesign the checkbox group component.
- Remove
NzCheckBoxOptionInterface['checked]
field. By the way,NzCheckBoxOptionInterface
is marked as deprecated, useNzCheckboxOption
instead nz-checkbox-group
: Type ofngModel
is changed fromNzCheckBoxOptionInterface[]
toNzCheckboxOption['value'][]
- Remove
-
transfer: Rename
nzTreeCheckBoxChange
tonzTreeCheckboxChange
-
tree,tree-select: Rename
nzCheckBoxChange
tonzCheckboxChange
Deprecations
The following APIs are marked as deprecated in v19 and will be removed in the next major version.
Please refer to related documentation for better alternatives.
Module | API |
---|---|
ng-zorro-antd/checkbox
| NzCheckboxWrapperComponent
|
19.0.0-beta.1
2024-12-17
Bug Fixes
- cascader: 修复搜索下拉框宽度异常的问题 (#8937) (c6aa501)
- cascader: 修复多选模式下 checkbox 状态改变时未触法
ngModelChange
的问题 (#8941) (2c7f49a) - input-number: 使用 ngModel 时跳过第一次
setDisabledState
调用 (#8933) (8b24746) - input-number: 修复按键改变值时值超出上下限的问题 (#8936) (a8efd2b)
- select: 多选模式下输入框不展示的问题 (#8929) (ef4bbb1)
- tree-view: 修复
nzTreeNodePadding
在虚拟滚动中不生效问题 (#8920) (82b660a)
Features
- cascader: 支持
nzPlacement
自定义浮层弹出位置 (#8935) (6fbd22c) - checkbox: 重新设计
nz-checkbox-group
组件,支持自定义布局 (#8932) (489e0de)
BREAKING CHANGES
-
All 组件内部写法从
[nz-icon]
迁移到新的nz-icon
标签。如果在 CSS 中使用了[nz-icon]
选择器来选择组件内部的图标,请使用为nz-icon
替代 -
checkbox Redesign the checkbox group component.
- 移除
NzCheckBoxOptionInterface['checked]
字段,另外NzCheckBoxOptionInterface
被标记为弃用,请使用NzCheckboxOption
替代 nz-checkbox-group
:ngModel
类型从NzCheckBoxOptionInterface[]
改为选项值的类型NzCheckboxOption['value'][]
- 移除
-
transfer: 属性
nzTreeCheckBoxChange
重命名为nzTreeCheckboxChange
-
tree,tree-select: 属性
nzCheckBoxChange
重命名为nzCheckboxChange
Deprecations
在 v19 中,以下 API 被标记为 deprecated,并将在下一个主要版本中移除。 请参考相关文档以获取更好的替代方案。
Module | API |
---|---|
ng-zorro-antd/checkbox
| NzCheckboxWrapperComponent
|