-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(module:page-header): add
nzGhost
property (#4306)
* feat(module:page-header): add `nzGhost` property * chore: add config name cont close #4303
- Loading branch information
1 parent
09f1ec6
commit 4c78cca
Showing
11 changed files
with
95 additions
and
19 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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
order: 4 | ||
order: 5 | ||
title: | ||
zh-CN: 多种形态的 PageHeader | ||
en-US: Various forms of PageHeader | ||
|
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,5 +1,5 @@ | ||
--- | ||
order: 2 | ||
order: 3 | ||
title: | ||
zh-CN: 带面包屑页头 | ||
en-US: Use with breadcrumbs | ||
|
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,5 +1,5 @@ | ||
--- | ||
order: 3 | ||
order: 4 | ||
title: | ||
zh-CN: 组合示例 | ||
en-US: Complete example | ||
|
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: 2 | ||
title: | ||
zh-CN: 白底模式 | ||
en-US: white background mode | ||
--- | ||
|
||
## zh-CN | ||
|
||
默认 PageHeader 是透明底色的。在某些情况下,PageHeader 需要自己的背景颜色。 | ||
|
||
## en-US | ||
|
||
The default PageHeader is a transparent background. In some cases, PageHeader needs its own background color. |
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,38 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'nz-demo-page-header-ghost', | ||
template: ` | ||
<div class="wrap"> | ||
<nz-page-header nzBackIcon [nzGhost]="false"> | ||
<nz-page-header-title>Title</nz-page-header-title> | ||
<nz-page-header-subtitle>This is a subtitle</nz-page-header-subtitle> | ||
<nz-page-header-extra> | ||
<button nz-button>Operation</button> | ||
<button nz-button>Operation</button> | ||
<button nz-button nzType="primary">Primary</button> | ||
</nz-page-header-extra> | ||
<nz-page-header-content> | ||
<nz-descriptions [nzColumn]="3"> | ||
<nz-descriptions-item nzTitle="Created" [nzSpan]="1">Lili Qu</nz-descriptions-item> | ||
<nz-descriptions-item nzTitle="Association" [nzSpan]="1"><a>421421</a></nz-descriptions-item> | ||
<nz-descriptions-item nzTitle="Creation Time" [nzSpan]="1">2017-01-10</nz-descriptions-item> | ||
<nz-descriptions-item nzTitle="Effective Time" [nzSpan]="1">2017-10-10</nz-descriptions-item> | ||
<nz-descriptions-item nzTitle="Remarks" [nzSpan]="2"> | ||
Gonghu Road, Xihu District, Hangzhou, Zhejiang, China | ||
</nz-descriptions-item> | ||
</nz-descriptions> | ||
</nz-page-header-content> | ||
</nz-page-header> | ||
</div> | ||
`, | ||
styles: [ | ||
` | ||
.wrap { | ||
background-color: #f5f5f5; | ||
padding: 24px; | ||
} | ||
` | ||
] | ||
}) | ||
export class NzDemoPageHeaderGhostComponent {} |
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,5 +1,5 @@ | ||
--- | ||
order: 5 | ||
order: 6 | ||
title: | ||
zh-CN: 响应式 | ||
en-US: responsive | ||
|
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