Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(module:date-picker): nz-range-picker support nzId #6814

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions components/date-picker/date-picker.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ export type NzDatePickerSizeType = 'large' | 'default' | 'small';
<ng-template #tplRangeInput let-partType="partType">
<input
#rangePickerInput
[attr.id]="nzId"
[disabled]="nzDisabled"
[readOnly]="nzInputReadOnly"
[size]="inputSize"
Expand Down
2 changes: 1 addition & 1 deletion components/date-picker/doc/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` |
Expand Down Expand Up @@ -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 |
Expand Down
2 changes: 1 addition & 1 deletion components/date-picker/doc/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ registerLocaleData(zh);

| 参数 | 说明 | 类型 | 默认值 | 全局配置 |
| --- | --- | --- | --- | - |
| `[nzId]` | 组件内部 input 的 id 值 | `string` | - |
| `[nzAllowClear]` | 是否显示清除按钮 | `boolean` | `true` | - |
| `[nzAutoFocus]` | 自动获取焦点 | `boolean` | `false` | - |
| `[nzBackdrop]` | 浮层是否应带有背景板 | `boolean` | `false` |
Expand Down Expand Up @@ -66,7 +67,6 @@ registerLocaleData(zh);
| 参数 | 说明 | 类型 | 默认值 |
| --- | --- | --- | --- |
| `[(ngModel)]` | 日期 | `Date` | - |
| `[nzId]` | 组件内部 input 的 id 值 | `string` | - |

### nz-date-picker[nzMode="date"]

Expand Down