forked from NG-ZORRO/ng-zorro-antd
-
Notifications
You must be signed in to change notification settings - Fork 0
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 custom starting index
close NG-ZORRO#1994
- Loading branch information
Wendell
committed
Aug 21, 2018
1 parent
c3d5c90
commit 1f4b96b
Showing
6 changed files
with
60 additions
and
3 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: 1 | ||
title: | ||
zh-CN: 起始序号 | ||
en-US: Starting Index | ||
--- | ||
|
||
## zh-CN | ||
|
||
通过 `nzStartIndex` 来设置步骤条的起始序号. 请注意 `nzCurrent` 也应该有对应的偏移. | ||
|
||
## en-US | ||
|
||
By setting `nzStartIndex` to change starting index of a step component. Be sure to add an offset to `nzCurrent` as well. |
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,15 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'nz-demo-steps-start-index', | ||
template: ` | ||
<nz-steps [nzCurrent]="current" [nzStartIndex]="3" nzSize="small"> | ||
<nz-step nzTitle="Finished"></nz-step> | ||
<nz-step nzTitle="In Progress"></nz-step> | ||
<nz-step nzTitle="Waiting"></nz-step> | ||
</nz-steps> | ||
` | ||
}) | ||
export class NzDemoStepsStartIndexComponent { | ||
current = 3; | ||
} |
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