-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(module:time-picker): support 12-hour with
nzUse12Hours
(#3127)
- Loading branch information
1 parent
e30a9be
commit 7c52774
Showing
12 changed files
with
518 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
order: 9 | ||
title: | ||
zh-CN: 12小时制 | ||
en-US: 12 hours | ||
--- | ||
|
||
## zh-CN | ||
|
||
12小时制的时间选择器,默认format为 `h:mm:ss a` | ||
|
||
## en-US | ||
|
||
TimePicker of 12 hours with default format `h:mm:ss a` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'nz-demo-time-picker-use12Hours', | ||
template: ` | ||
<nz-time-picker [(ngModel)]="time" [nzUse12Hours]="true"></nz-time-picker> | ||
<nz-time-picker [(ngModel)]="time" [nzUse12Hours]="true" nzFormat="h:mm a"></nz-time-picker> | ||
`, | ||
styles: [ | ||
` | ||
nz-time-picker { | ||
margin: 0 8px 12px 0; | ||
} | ||
` | ||
] | ||
}) | ||
export class NzDemoTimePickerUse12HoursComponent { | ||
time: Date | null = null; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.