@ -175,10 +175,10 @@
<span>建筑列表</span>
</div>
<div class="buildingBody">
<div class="buildName" *ngFor="let item of planTemplateData[1].building;let i=index">
<div class="buildName" *ngFor="let item of selectedContent.building;let i=index">
<mat-checkbox class="example-margin" color='primary' [(ngModel)]="item.completed"
(change)='clickBuilding(item,i)'></mat-checkbox>
<span>{{item.name}}</span>
<span [title]="item.name">{{item.name}}</span>
@ -681,7 +681,7 @@
display: flex;
flex-direction: column;
overflow-y: auto;">
<div *ngFor="let itemunit of planTemplateData[1].building;let uniti=index" style="border-bottom: 3px solid #999;">
<div *ngFor="let itemunit of item.building;let uniti=index" style="border-bottom: 3px solid #999;">
<div *ngIf="itemunit.completed">
<div class="unithead" style=" height: 40px;
width: 100%;
@ -198,6 +198,9 @@
cursor: pointer;
height: 40px;
overflow: hidden;/*超出部分隐藏*/
white-space: nowrap;/*不换行*/
text-overflow:ellipsis;/*超出部分文字以...显示*/
border-bottom: 1px solid #f2f4f5;
.example-margin {
width: 14px;