Skip to content

Commit

Permalink
fix: directive name
Browse files Browse the repository at this point in the history
  • Loading branch information
Wendell committed Jul 16, 2019
1 parent 22fa717 commit 08180cb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions components/tabs/doc/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ import { NzTabsModule } from 'ng-zorro-antd/tabs';
| -------- | ----------- | ---- | ------- |
| `[nzTitle]` | Show text in tab's head | `string \| TemplateRef<void>` | - |
| `[nzForceRender]` | Forced render of content in tabs, not lazy render after clicking on tabs | `boolean` | `false` |
| `[nzDisabled]` | tab disable | `boolean` | - |
| `[nzDisabled]` | tab disable | `boolean` | - |
| `(nzClick)` | title click callback | `EventEmitter<void>` | - |
| `(nzSelect)` | title select callback | `EventEmitter<void>` | - |
| `(nzDeselect)` | title deselect callback | `EventEmitter<void>` | - |
Expand All @@ -66,4 +66,4 @@ Show a link in tab's head. Used in router link mode.

### Link Router

This make the tabs component changes `nzSelectedIndex` with Angular route. You must use `nz-tab-title` instead of `[nzTitle]` in this situation.
This make the tabs component changes `nzSelectedIndex` with Angular route. You must use `nz-tab-link` instead of `[nzTitle]` in this situation.
2 changes: 1 addition & 1 deletion components/tabs/doc/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,4 @@ import { NzTabsModule } from 'ng-zorro-antd/tabs';

### 路由联动

路由联动可以让 tab 的切换和路由行为相一致。使用此功能时,title 必须通过 `nz-tab-title` 组件指定。
路由联动可以让 tab 的切换和路由行为相一致。使用此功能时,title 必须通过 `nz-tab-link` 组件指定。
4 changes: 2 additions & 2 deletions components/tabs/nz-tabs.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -641,11 +641,11 @@ export class NzTestTabsTabPositionLeftComponent {
template: `
<nz-tabset nzLinkRouter>
<nz-tab nzTitle="default">
<nz-tab-title><a [routerLink]="['.']">One</a></nz-tab-title>
<a nz-tab-link [routerLink]="['.']">One</a>
One
</nz-tab>
<nz-tab nzTitle="two">
<nz-tab-title><a [routerLink]="['.', 'two']">Two</a></nz-tab-title>
<a nz-tab-link [routerLink]="['.', 'two']">Two</a>
Two
</nz-tab>
</nz-tabset>
Expand Down

0 comments on commit 08180cb

Please sign in to comment.