You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1.2 KiB
32 lines
1.2 KiB
4 years ago
|
<div class="orBox" (mousewheel)="$event.stopPropagation()">
|
||
|
<div class="treebox">
|
||
|
<mat-tree [dataSource]="dataSource" [treeControl]="treeControl" >
|
||
|
<mat-tree-node [ngClass]="{'selectedNode': node.id == selectedNodeId}" *matTreeNodeDef="let node;" matTreeNodePadding (click)="selectedNode(node)">
|
||
|
<button mat-icon-button disabled ></button>
|
||
|
{{node.name}}
|
||
|
</mat-tree-node>
|
||
|
|
||
|
|
||
|
<mat-tree-node [ngClass]="{'selectedNode': node.id == selectedNodeId}" *matTreeNodeDef="let node;when: hasChild" matTreeNodePadding (click)="selectedNode(node)">
|
||
|
<button mat-icon-button
|
||
|
matTreeNodeToggle
|
||
|
[attr.aria-label]="'toggle ' + node.name">
|
||
|
<mat-icon class="mat-icon-rtl-mirror">
|
||
|
{{treeControl.isExpanded(node) ? 'expand_more' : 'chevron_right'}}
|
||
|
</mat-icon>
|
||
|
</button>
|
||
|
{{node.name}}
|
||
|
</mat-tree-node>
|
||
|
</mat-tree>
|
||
|
</div>
|
||
|
|
||
|
<div mat-dialog-actions class="btnbox" style="justify-content: center;">
|
||
|
<button mat-raised-button color="primary" (click)="ok()">
|
||
|
确定
|
||
|
</button>
|
||
|
<button mat-raised-button mat-dialog-close>
|
||
|
取消
|
||
|
</button>
|
||
|
</div>
|
||
|
</div>
|