Skip to content

Commit 45ec83f

Browse files
authored
chore(release): release 20.4.0 (#9494)
1 parent 48077d1 commit 45ec83f

File tree

21 files changed

+151
-67
lines changed

21 files changed

+151
-67
lines changed

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
## [20.4.0](https://github.com/NG-ZORRO/ng-zorro-antd/compare/20.3.1...20.4.0) (2025-10-31)
2+
3+
### Features
4+
5+
- **cascader:** control the visibility of popup panel by `nzOpen` ([#9448](https://github.com/NG-ZORRO/ng-zorro-antd/issues/9448)) ([4d5ec65](https://github.com/NG-ZORRO/ng-zorro-antd/commit/4d5ec6536f64690319e0fd219dc4b07c724764db))
6+
- **cascader:** toggle checkbox of option by `ENTER` key in multiple mode ([#9457](https://github.com/NG-ZORRO/ng-zorro-antd/issues/9457)) ([e02f1f4](https://github.com/NG-ZORRO/ng-zorro-antd/commit/e02f1f45f6ae1d5836b1b751bb23bfa55c5f1c33))
7+
- **float-button:** support `nzBadge` ([#9489](https://github.com/NG-ZORRO/ng-zorro-antd/issues/9489)) ([12beec7](https://github.com/NG-ZORRO/ng-zorro-antd/commit/12beec73fe3071e116788635ae17b1668d3b5ad8))
8+
- **form:** support `nzRequiredMark` ([#9447](https://github.com/NG-ZORRO/ng-zorro-antd/issues/9447)) ([800b6cf](https://github.com/NG-ZORRO/ng-zorro-antd/commit/800b6cf960af7c4dfce0378eeb9fd361d21ac06b))
9+
- **input-number:** add affix and addon inputs ([#9451](https://github.com/NG-ZORRO/ng-zorro-antd/issues/9451)) ([dbebd02](https://github.com/NG-ZORRO/ng-zorro-antd/commit/dbebd025cc5101d879301405f0e0ce4baca4bdf5))
10+
- **input:** add `nzAllowClear` input and `nzClear` callback ([#9452](https://github.com/NG-ZORRO/ng-zorro-antd/issues/9452)) ([830b4b3](https://github.com/NG-ZORRO/ng-zorro-antd/commit/830b4b3cced07ecc484375ab62a3593ac7140b39))
11+
- **input:** introduce new component `nz-input-wrapper` ([#9408](https://github.com/NG-ZORRO/ng-zorro-antd/issues/9408)) ([a8e56ec](https://github.com/NG-ZORRO/ng-zorro-antd/commit/a8e56ecbc5040dc36dd38881d2d3f7133c7c7991)), closes [#9403](https://github.com/NG-ZORRO/ng-zorro-antd/issues/9403)
12+
- **input:** add affix and addon inputs to `nz-input-wrapper` ([#9450](https://github.com/NG-ZORRO/ng-zorro-antd/issues/9450)) ([763f69e](https://github.com/NG-ZORRO/ng-zorro-antd/commit/763f69e7e35ef3697245e9074034d17f110c5876))
13+
- **input:** introduce `nz-input-search` directive ([#9483](https://github.com/NG-ZORRO/ng-zorro-antd/issues/9483)) ([af6f590](https://github.com/NG-ZORRO/ng-zorro-antd/commit/af6f590b30270205300e028287f205249b316efa))
14+
- **input:** introduce `nz-input-password` directive ([#9460](https://github.com/NG-ZORRO/ng-zorro-antd/issues/9460)) ([f80832a](https://github.com/NG-ZORRO/ng-zorro-antd/commit/f80832a7741a6efd9049372a8759d710dc72bde4))
15+
- **message:** add support for custom styles and classes ([#9427](https://github.com/NG-ZORRO/ng-zorro-antd/issues/9427)) ([2f866b3](https://github.com/NG-ZORRO/ng-zorro-antd/commit/2f866b31febe4c1f6dd784537fc8ca2b68a66a93))
16+
- **pagination:** support `nzAlign` ([#9433](https://github.com/NG-ZORRO/ng-zorro-antd/issues/9433)) ([88d0864](https://github.com/NG-ZORRO/ng-zorro-antd/commit/88d08648570756e35b989f55e15bcb116175dbc2))
17+
- **segmented:** add default name if `nzName` is not provided ([#9466](https://github.com/NG-ZORRO/ng-zorro-antd/issues/9466)) ([33f8142](https://github.com/NG-ZORRO/ng-zorro-antd/commit/33f8142626e337e1cef997bc99a289effcb64dd0))
18+
19+
### Bug Fixes
20+
21+
- **badge:** should `nzStyle` work even if `nzColor` is not provided ([#9486](https://github.com/NG-ZORRO/ng-zorro-antd/issues/9486)) ([4424eb0](https://github.com/NG-ZORRO/ng-zorro-antd/commit/4424eb0a018c7d90fb74dfda6ceb5c54a080eb4d))
22+
- **cascader:** display activated column correctly when reopen the popup panel ([#9456](https://github.com/NG-ZORRO/ng-zorro-antd/issues/9456)) ([7802a39](https://github.com/NG-ZORRO/ng-zorro-antd/commit/7802a39167d0efaf1bca5e829fa4907f7af54650))
23+
124
## [20.3.1](https://github.com/NG-ZORRO/ng-zorro-antd/compare/20.3.0...20.3.1) (2025-09-17)
225

326
### Bug Fixes

components/float-button/demo/badge.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
order: 10
3+
version: 20.4.0
34
title:
45
zh-CN: 徽标数
56
en-US: Badge

components/float-button/doc/index.en-US.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ description: A button that floats at the top of the page.
1616

1717
### Common API
1818

19-
| Property | Description | Type | Default |
20-
| ----------------- | ----------------------------------------- | ------------------------------------- | ----------- |
19+
| Property | Description | Type | Default | Version |
20+
| ----------------- | ----------------------------------------- | ------------------------------------- | ----------- | ------- |
2121
| `[nzIcon]` | Set the icon component of button | `string \| TemplateRef<void> \| null` | - |
2222
| `[nzDescription]` | Text and other content | `string \| TemplateRef<void> \| null` | - |
2323
| `[nzType]` | Button type | `'default' \| 'primary'` | `'default'` |
2424
| `[nzShape]` | Button shape | `'circle' \| 'square'` | `'circle'` |
2525
| `[nzHref]` | The target of hyperlink | `string` | - |
2626
| `[nzTarget]` | Specifies where to display the linked URL | `string` | - |
27-
| `[nzBadge]` | badge | `NzFloatButtonBadge` | - |
27+
| `[nzBadge]` | badge | `NzFloatButtonBadge` | - | 20.4.0 |
2828
| `(nzOnClick)` | Callback of `click` event | `EventEmitter<boolean>` | - |
2929

3030
### nz-float-button-group

components/float-button/doc/index.zh-CN.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ description: 悬浮于页面上方的按钮。
1717

1818
### 共同的 API
1919

20-
| 参数 | 说明 | 类型 | 默认值 |
21-
| ----------------- | ----------------------------------------------------- | ------------------------------------- | ----------- |
20+
| 参数 | 说明 | 类型 | 默认值 | 版本 |
21+
| ----------------- | ----------------------------------------------------- | ------------------------------------- | ----------- | ------ |
2222
| `[nzIcon]` | 自定义图标 | `string \| TemplateRef<void> \| null` | - |
2323
| `[nzDescription]` | 文字及其它内容 | `string \| TemplateRef<void> \| null` | - |
2424
| `[nzType]` | 按钮类型 | `'default' \| 'primary'` | `'default'` |
2525
| `[nzShape]` | 按钮形状 | `'circle' \| 'square'` | `'circle'` |
2626
| `[nzHref]` | 点击跳转的地址,指定此参数 button 的行为和 a 链接一致 | `string` | - |
2727
| `[nzTarget]` | 相当于 a 标签的 target 属性,`nzHref` 存在时生效 | `string` | - |
28-
| `[nzBadge]` | 徽标数 | `NzFloatButtonBadge` | - |
28+
| `[nzBadge]` | 徽标数 | `NzFloatButtonBadge` | - | 20.4.0 |
2929
| `(nzOnClick)` | 点击按钮时的回调 | `EventEmitter<boolean>` | - |
3030

3131
### nz-float-button-group

components/form/demo/required-style.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
order: 16
3+
version: 20.4.0
34
title:
45
zh-CN: 必选样式
56
en-US: Required style

components/form/doc/index.en-US.md

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ description: High-performance form component with data domain management. Includ
1212
- When you need to create an instance or collect information.
1313
- When you need to validate fields in certain rules.
1414

15-
> Form is totally based on [Angular Forms](https://angular.dev/guide/forms), you can use [reactive forms](https://angular.dev/guide/forms/reactive-forms) or [template-driven-forms](https://angular.dev/guide/forms/template-driven-forms).
15+
> Form is totally based on [Angular Forms](https://angular.dev/guide/forms), you can
16+
> use [reactive forms](https://angular.dev/guide/forms/reactive-forms)
17+
> or [template-driven-forms](https://angular.dev/guide/forms/template-driven-forms).
1618
> Please make sure you have read the official form document before using the component.
1719
1820
## Form
@@ -50,28 +52,28 @@ A form consists of one or more form fields whose type includes input, textarea,
5052

5153
### [nz-form]
5254

53-
| Property | Description | Type | Default Value | Global Config |
54-
| --------------------- | ------------------------------------------------------------------------------------------------------- | ---------------------------------------------- | ----------------------------------------------- | ------------- |
55-
| `[nzLayout]` | Form layout | `'horizontal' \| 'vertical' \| 'inline'` | `'horizontal'` |
56-
| `[nzAutoTips]` | Set default props `[nzAutoTips]` value of `nz-form-control`, please refer to the example: **Auto tips** | `Record<string, Record<string, string>>` | `{}` ||
57-
| `[nzDisableAutoTips]` | Set default props `[nzDisableAutoTip]` value of `nz-form-control` | `boolean` | `false` ||
58-
| `[nzNoColon]` | Set default props `[nzNoColon]` value of `nz-form-label` | `boolean` | `false` ||
59-
| `[nzTooltipIcon]` | Set default props `[nzTooltipIcon]` value of `nz-form-label` | `string \| { type: string; theme: ThemeType }` | `{ type: 'question-circle', theme: 'outline' }` ||
60-
| `[nzLabelAlign]` | Set default props `[nzLabelAlign]` value of `nz-form-label` | `'left' \| 'right'` | `'right'` |
61-
| `[nzLabelWrap]` | Set default props `[nzLabelWrap]` value of `nz-form-label` | `boolean` | `false` |
62-
| `[nzRequiredMark]` | Required mark style. Can use required mark or optional mark. | `NzRequiredMark` | `true` |
55+
| Property | Description | Type | Default Value | Global Config | Version |
56+
| --------------------- | ------------------------------------------------------------------------------------------------------- | ---------------------------------------------- | ----------------------------------------------- | ------------- | ------- |
57+
| `[nzLayout]` | Form layout | `'horizontal' \| 'vertical' \| 'inline'` | `'horizontal'` | | |
58+
| `[nzAutoTips]` | Set default props `[nzAutoTips]` value of `nz-form-control`, please refer to the example: **Auto tips** | `Record<string, Record<string, string>>` | `{}` || |
59+
| `[nzDisableAutoTips]` | Set default props `[nzDisableAutoTip]` value of `nz-form-control` | `boolean` | `false` || |
60+
| `[nzNoColon]` | Set default props `[nzNoColon]` value of `nz-form-label` | `boolean` | `false` || |
61+
| `[nzTooltipIcon]` | Set default props `[nzTooltipIcon]` value of `nz-form-label` | `string \| { type: string; theme: ThemeType }` | `{ type: 'question-circle', theme: 'outline' }` || |
62+
| `[nzLabelAlign]` | Set default props `[nzLabelAlign]` value of `nz-form-label` | `'left' \| 'right'` | `'right'` | | |
63+
| `[nzLabelWrap]` | Set default props `[nzLabelWrap]` value of `nz-form-label` | `boolean` | `false` | | |
64+
| `[nzRequiredMark]` | Required mark style. Can use required mark or optional mark. | `NzRequiredMark` | `true` | | 20.4.0 |
6365

6466
### nz-form-item
6567

6668
Used to separate the item in forms, contains label(optional) and control field.
6769

68-
> All api in [nz-row](/components/grid/zh) can be used in `nz-form-item`.
70+
> All api in [nz-row](/components/grid/en) can be used in `nz-form-item`.
6971
7072
### nz-form-label
7173

7274
The label of the form item, optional.
7375

74-
> All api in [nz-col](/components/grid/zh) can be used in `nz-form-label`.
76+
> All api in [nz-col](/components/grid/en) can be used in `nz-form-label`.
7577
7678
| Property | Description | Type | Default Value |
7779
| ------------------ | -------------------------------------------- | ----------------------------- | ------------- |
@@ -85,11 +87,13 @@ The label of the form item, optional.
8587

8688
### nz-form-control
8789

88-
> Note:Due to the lack of partial Observable in [Angular Form](https://github.com/angular/angular/issues/10887), you have to notify `nz-form-control` to update its status with `updateValueAndValidity` when you update form status using methods like `markAsDirty`.
90+
> Note:Due to the lack of partial Observable in [Angular Form](https://github.com/angular/angular/issues/10887), you
91+
> have to notify `nz-form-control` to update its status with `updateValueAndValidity` when you update form status using
92+
> methods like `markAsDirty`.
8993
9094
A form consists of one or more form fields whose type includes input, textarea, checkbox, radio, select, tag, and more.
9195

92-
> All api in [nz-col](/components/grid/zh) can be used in `nz-form-control`.
96+
> All api in [nz-col](/components/grid/en) can be used in `nz-form-control`.
9397
9498
| Property | Description | Type | Default Value |
9599
| --------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------- |

0 commit comments

Comments
 (0)