docs: 样式微调

This commit is contained in:
Zhicheng Wang 2018-09-15 08:13:04 +08:00
parent 9ad4498655
commit 9e94c2a119
3 changed files with 8 additions and 1 deletions

View File

@ -545,6 +545,11 @@
"tooltip": "关于 Angular 中类和值的详细信息。",
"url": "api"
},
{
"title": "-",
"tooltip": "分割线",
"divider": true
},
{
"title": "互助问答",
"tooltip": "github 上的中文互助问答区",

View File

@ -1,9 +1,10 @@
<div *ngIf="!node.children">
<a href="{{node.url}}" [ngClass]="classes" title="{{node.tooltip}}"
<a *ngIf="!node.divider" href="{{node.url}}" [ngClass]="classes" title="{{node.tooltip}}"
class="vertical-menu-item" style="position: relative" [target]="isExternalUrl(node.url)?'_blank':'_self'">
{{node.title}}
<mat-icon *ngIf="isExternalUrl(node.url)">open_in_new</mat-icon>
</a>
<div *ngIf="node.divider" class="mat-divider" style="margin: 4px 20px; border-top: 1px solid lightgray"></div>
</div>
<div *ngIf="node.children">

View File

@ -7,6 +7,7 @@ export interface NavigationNode {
title?: string;
tooltip?: string;
hidden?: boolean;
divider?: boolean;
children?: NavigationNode[];
}