From d5c31b1f7f2549eb66a3a6da10f124f295c3a577 Mon Sep 17 00:00:00 2001 From: ossowski Date: Thu, 1 Jul 2021 09:55:38 +0200 Subject: [PATCH 1/2] fix(module:date-picker): nz-range-picker support nzId --- components/date-picker/date-picker.component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/components/date-picker/date-picker.component.ts b/components/date-picker/date-picker.component.ts index 8b83b558480..2ffcdfc79e0 100644 --- a/components/date-picker/date-picker.component.ts +++ b/components/date-picker/date-picker.component.ts @@ -126,6 +126,7 @@ export type NzDatePickerSizeType = 'large' | 'default' | 'small'; Date: Thu, 1 Jul 2021 09:58:58 +0200 Subject: [PATCH 2/2] docs(module:date-picker): documentation update --- components/date-picker/doc/index.en-US.md | 2 +- components/date-picker/doc/index.zh-CN.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/date-picker/doc/index.en-US.md b/components/date-picker/doc/index.en-US.md index bd9f5c11996..67c74bee1e2 100644 --- a/components/date-picker/doc/index.en-US.md +++ b/components/date-picker/doc/index.en-US.md @@ -34,6 +34,7 @@ The following APIs are shared by nz-date-picker, nz-range-picker. | Property | Description | Type | Default | Global Config | | -------- | ----------- | ---- | ------- | - | +| `[nzId]` | input id attribute inside the component| `string` | - | | `[nzAllowClear]` | Whether to show clear button | `boolean` | `true` | - | | `[nzAutoFocus]` | get focus when component mounted | `boolean` | `false` | - | | `[nzBackdrop]` | whether or not the overlay should attach a backdrop | `boolean` | `false` | @@ -66,7 +67,6 @@ The following APIs are shared by nz-date-picker, nz-range-picker. | Property | Description | Type | Default | | -------- | ----------- | ---- | ------- | | `[(ngModel)]` | Date | `Date` | - | -| `[nzId]` | input id attribute inside the component| `string` | - | ### nz-date-picker[nzMode="date"] | Property | Description | Type | Default | diff --git a/components/date-picker/doc/index.zh-CN.md b/components/date-picker/doc/index.zh-CN.md index e85583061c8..4970e30e2ca 100644 --- a/components/date-picker/doc/index.zh-CN.md +++ b/components/date-picker/doc/index.zh-CN.md @@ -34,6 +34,7 @@ registerLocaleData(zh); | 参数 | 说明 | 类型 | 默认值 | 全局配置 | | --- | --- | --- | --- | - | +| `[nzId]` | 组件内部 input 的 id 值 | `string` | - | | `[nzAllowClear]` | 是否显示清除按钮 | `boolean` | `true` | - | | `[nzAutoFocus]` | 自动获取焦点 | `boolean` | `false` | - | | `[nzBackdrop]` | 浮层是否应带有背景板 | `boolean` | `false` | @@ -66,7 +67,6 @@ registerLocaleData(zh); | 参数 | 说明 | 类型 | 默认值 | | --- | --- | --- | --- | | `[(ngModel)]` | 日期 | `Date` | - | -| `[nzId]` | 组件内部 input 的 id 值 | `string` | - | ### nz-date-picker[nzMode="date"]