-
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 dropdown (#3636)
* feat(module:breadcrumb): support dropdown * feat: change API * docs: fix demo
- Loading branch information
Showing
6 changed files
with
99 additions
and
8 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,15 @@ | ||
--- | ||
order: 5 | ||
title: | ||
zh-CN: 带下拉菜单的面包屑 | ||
en-US: Bread crumbs with drop down menu | ||
--- | ||
|
||
## zh-CN | ||
|
||
面包屑支持下拉菜单。 | ||
|
||
## en-US | ||
|
||
Breadcrumbs support drop down menu. | ||
|
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,30 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'nz-demo-breadcrumb-dropdown', | ||
template: ` | ||
<nz-breadcrumb> | ||
<nz-breadcrumb-item> | ||
Ant Design | ||
</nz-breadcrumb-item> | ||
<nz-breadcrumb-item> | ||
<a>Component</a> | ||
</nz-breadcrumb-item> | ||
<nz-breadcrumb-item [nzOverlay]="menu"> | ||
<a href>An Application</a> | ||
</nz-breadcrumb-item> | ||
<nz-breadcrumb-item> | ||
Button | ||
</nz-breadcrumb-item> | ||
</nz-breadcrumb> | ||
<nz-dropdown-menu #menu="nzDropdownMenu"> | ||
<ul nz-menu nzSelectable> | ||
<li nz-menu-item><a target="_blank" rel="noopener noreferrer" href="http://www.alipay.com/">General</a></li> | ||
<li nz-menu-item><a target="_blank" rel="noopener noreferrer" href="http://www.taobao.com/">Layout</a></li> | ||
<li nz-menu-item><a target="_blank" rel="noopener noreferrer" href="http://www.tmall.com/">Navigation</a></li> | ||
</ul> | ||
</nz-dropdown-menu> | ||
`, | ||
styles: [] | ||
}) | ||
export class NzDemoBreadcrumbDropdownComponent {} |
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