selector名

This commit is contained in:
禾几海
2020-07-02 21:51:15 +08:00
parent 03018d402f
commit 94ba2c2281
2 changed files with 4 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
<c-common-table cardTitle="文章管理" <common-table cardTitle="文章管理"
#commonTableComponent #commonTableComponent
[data]="headData" [data]="headData"
[request]="request" [request]="request"
@@ -9,7 +9,7 @@
dislikeCount:{temp:dislikeCount}, dislikeCount:{temp:dislikeCount},
open:{temp:open} open:{temp:open}
}"> }">
</c-common-table> </common-table>
<ng-template let-value="value" let-originValue="originValue" #original> <ng-template let-value="value" let-originValue="originValue" #original>
<nz-tag [nzColor]="originValue?'green':'#ff5500'">{{value}}</nz-tag> <nz-tag [nzColor]="originValue?'green':'#ff5500'">{{value}}</nz-tag>

View File

@@ -50,9 +50,9 @@
</ng-template> </ng-template>
--> -->
<c-common-table [request]="request" [data]="headData" cardTitle="评论管理" <common-table [request]="request" [data]="headData" cardTitle="评论管理"
[template]="{status:{temp:status,param:{'0':' 正常 ','3':'已删除'}}}"> [template]="{status:{temp:status,param:{'0':' 正常 ','3':'已删除'}}}">
</c-common-table> </common-table>
<ng-template let-originValue="originValue" let-value="value" #status> <ng-template let-originValue="originValue" let-value="value" #status>
<nz-tag nzColor="geekblue" *ngIf="originValue==0">{{value}}</nz-tag> <nz-tag nzColor="geekblue" *ngIf="originValue==0">{{value}}</nz-tag>