-
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:breadcrumb): support indenpendent separator (#4713)
* chore(module:breadcrumb): refactor breadcrumb * feat(module:breadcrumb): add independent separator component * fix: fix new component not exported
- Loading branch information
Wendell
authored
Feb 28, 2020
1 parent
09bf8f4
commit 1f490e9
Showing
12 changed files
with
110 additions
and
42 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,20 @@ | ||
/** | ||
* @license | ||
* Copyright Alibaba.com All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE | ||
*/ | ||
|
||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'nz-breadcrumb-separator', | ||
exportAs: 'nzBreadcrumbSeparator', | ||
template: ` | ||
<span class="ant-breadcrumb-separator"> | ||
<ng-content></ng-content> | ||
</span> | ||
` | ||
}) | ||
export class NzBreadCrumbSeparatorComponent {} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
order: 6 | ||
title: | ||
zh-CN: 独立的分隔符 | ||
en-US: Configuring the Separator Independently | ||
--- | ||
|
||
## zh-CN | ||
|
||
使用 `nz-breadcrumb-separator` 可以自定义分隔符。 | ||
|
||
## en-US | ||
|
||
The separator can be customized by using the component `nz-breadcrumb-separator`. | ||
|
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,31 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'nz-demo-breadcrumb-separator-independent', | ||
template: ` | ||
<nz-breadcrumb [nzSeparator]="null"> | ||
<nz-breadcrumb-item> | ||
Location | ||
</nz-breadcrumb-item> | ||
<nz-breadcrumb-separator> | ||
: | ||
</nz-breadcrumb-separator> | ||
<nz-breadcrumb-item> | ||
<a>Application Center</a> | ||
</nz-breadcrumb-item> | ||
<nz-breadcrumb-separator> | ||
/ | ||
</nz-breadcrumb-separator> | ||
<nz-breadcrumb-item> | ||
Application List | ||
</nz-breadcrumb-item> | ||
<nz-breadcrumb-separator> | ||
/ | ||
</nz-breadcrumb-separator> | ||
<nz-breadcrumb-item> | ||
An Application | ||
</nz-breadcrumb-item> | ||
</nz-breadcrumb> | ||
` | ||
}) | ||
export class NzDemoBreadcrumbSeparatorIndependentComponent {} |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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