-
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:steps): support navigation type and nzDisable nzSubtitle (#…
…4064) * feat(module:steps): support navigation type and nzDisable nzSubtitle close #3931 * docs(module:steps): update docs
- Loading branch information
Showing
14 changed files
with
345 additions
and
66 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
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,16 @@ | ||
--- | ||
order: 11 | ||
title: | ||
zh-CN: 导航步骤 | ||
en-US: Navigation Steps | ||
--- | ||
|
||
## zh-CN | ||
|
||
导航类型的步骤条。 | ||
|
||
## en-US | ||
|
||
Navigation steps. | ||
|
||
|
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,48 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'nz-demo-steps-nav', | ||
template: ` | ||
<nz-steps nzType="navigation" nzSize="small" [nzCurrent]="index" (nzIndexChange)="onIndexChange($event)"> | ||
<nz-step nzTitle="Step 1" nzSubtitle="00:00:05" nzStatus="finish" nzDescription="This is a description."> | ||
</nz-step> | ||
<nz-step nzTitle="Step 2" nzSubtitle="00:01:02" nzStatus="process" nzDescription="This is a description."> | ||
</nz-step> | ||
<nz-step | ||
nzTitle="Step 3" | ||
nzSubtitle="waiting for long long time" | ||
nzStatus="wait" | ||
nzDescription="This is a description." | ||
> | ||
</nz-step> | ||
</nz-steps> | ||
<nz-steps nzType="navigation" [nzCurrent]="index" (nzIndexChange)="onIndexChange($event)"> | ||
<nz-step nzTitle="Step 1" nzStatus="finish"></nz-step> | ||
<nz-step nzTitle="Step 2" nzStatus="process"></nz-step> | ||
<nz-step nzTitle="Step 3" nzStatus="wait"></nz-step> | ||
<nz-step nzTitle="Step 4" nzStatus="wait"></nz-step> | ||
</nz-steps> | ||
<nz-steps nzType="navigation" nzSize="small" [nzCurrent]="index" (nzIndexChange)="onIndexChange($event)"> | ||
<nz-step nzTitle="finish 1" nzStatus="finish"></nz-step> | ||
<nz-step nzTitle="finish 2" nzStatus="finish"></nz-step> | ||
<nz-step nzTitle="current process" nzStatus="process"></nz-step> | ||
<nz-step nzTitle="wait" nzStatus="wait" nzDisabled></nz-step> | ||
</nz-steps> | ||
`, | ||
styles: [ | ||
` | ||
nz-steps { | ||
display: block; | ||
margin-bottom: 60px; | ||
box-shadow: rgb(232, 232, 232) 0px -1px 0px 0 inset; | ||
} | ||
` | ||
] | ||
}) | ||
export class NzDemoStepsNavComponent { | ||
index = 0; | ||
|
||
onIndexChange(event: number): void { | ||
this.index = event; | ||
} | ||
} |
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
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.