Browse Source

[完善]消防要素树名称显示不全问题

develop
邵佳豪 4 years ago
parent
commit
ae54aa411a
  1. 12
      src/app/ui/collection-tools/collection-tools.component.html
  2. 7
      src/app/ui/collection-tools/collection-tools.component.scss

12
src/app/ui/collection-tools/collection-tools.component.html

@ -304,8 +304,10 @@
<mat-tree-node [ngClass]="{'isLookPattern': !node.isLookPattern && !isEditPattern}" *matTreeNodeDef="let node;" matTreeNodePadding cdkTreeNodePaddingIndent='26' (click)="clickTreeNode(node)" >
<button mat-icon-button disabled></button>
{{node.name}}
<span *ngIf="node.isTemplate">({{node.children.length}})</span>
<span title="{{node.name}}" [ngClass]="{'treeText': !node.isTemplate}">
{{node.name}}
</span>
<span *ngIf="node.isTemplate">({{node.children.length}})</span>
<span class="isLookCss" (click)="clickLookItem(node)"><mat-icon [ngClass]="{'icongray': node.isLook == false}">visibility</mat-icon></span>
</mat-tree-node>
@ -318,8 +320,10 @@
{{treeControl.isExpanded(node) ? 'expand_more' : 'chevron_right'}}
</mat-icon>
</button>
{{node.name}}
<span *ngIf="node.isTemplate && node.isNewElement">({{node.children.length}})</span>
<span title="{{node.name}}" [ngClass]="{'treeText': !node.isTemplate}">
{{node.name}}
</span>
<span *ngIf="node.isTemplate && node.isNewElement">({{node.children.length}})</span>
<span class="isLookCss" (click)="clickLookItem(node)"><mat-icon [ngClass]="{'icongray': node.isLook == false}">visibility</mat-icon></span>
</mat-tree-node>

7
src/app/ui/collection-tools/collection-tools.component.scss

@ -301,4 +301,11 @@ div:focus {
}
.isLookPattern{
display: none;
}
.treeText{
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
display: inline-block;
width: 65px;
}
Loading…
Cancel
Save