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 setting status (#7473)
* feat(module:time-picker): support setting status * feat(module:time-picker): add tests
- Loading branch information
1 parent
c3d0874
commit 0d8249b
Showing
7 changed files
with
115 additions
and
6 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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import { NzTimePickerModule } from 'ng-zorro-antd/time-picker'; | ||
import { NzButtonModule } from 'ng-zorro-antd/button'; | ||
import { NzSpaceModule } from 'ng-zorro-antd/space'; | ||
|
||
export const moduleList = [ NzTimePickerModule, NzButtonModule ]; | ||
export const moduleList = [ NzTimePickerModule, NzButtonModule, NzSpaceModule ]; |
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: 10 | ||
title: | ||
zh-CN: 自定义状态 | ||
en-US: Status | ||
--- | ||
|
||
## zh-CN | ||
|
||
使用 `nzStatus` 为 TimePicker 添加状态,可选 `error` 或者 `warning`。 | ||
|
||
## en-US | ||
|
||
Add status to TimePicker with `nzStatus`, which could be `error` or `warning`. |
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,12 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'nz-demo-time-picker-status', | ||
template: ` | ||
<nz-space nzDirection="vertical"> | ||
<nz-time-picker *nzSpaceItem nzStatus="error"></nz-time-picker> | ||
<nz-time-picker *nzSpaceItem nzStatus="warning">></nz-time-picker> | ||
</nz-space> | ||
` | ||
}) | ||
export class NzDemoTimePickerStatusComponent {} |
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