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.
29 lines
941 B
29 lines
941 B
<div> |
|
<!-- 非表格类 --> |
|
<table *ngIf="!data.tabledata && data.type != '四周毗邻'"> |
|
<tr> |
|
<td *ngFor="let item of data.children">{{item.name}}</td> |
|
</tr> |
|
<tr> |
|
<td *ngFor="let item of data.children">{{item.value || item.propertyValue}}</td> |
|
</tr> |
|
</table> |
|
<!-- 表格类 --> |
|
<table *ngIf="data.tabledata"> |
|
<tr> |
|
<td *ngFor="let item of data.tabledata">{{item.propertyName}}</td> |
|
</tr> |
|
<tr *ngFor="let item of data.tabledata[0].data;let key = index"> |
|
<td *ngFor="let i of data.tabledata">{{i.data[key]. propertyValue}}</td> |
|
</tr> |
|
</table> |
|
|
|
<table *ngIf="data.type == '四周毗邻'"> |
|
<tr> |
|
<td *ngFor="let item of data.children">{{item.title}}</td> |
|
</tr> |
|
<tr> |
|
<td *ngFor="let item of data.children">{{item.name}}</td> |
|
</tr> |
|
</table> |
|
</div> |