New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
el-table-column > ng-template中*ngIf部分情况不生效 #50
Comments
你这里的代码标签都没有闭合,应该是不能正常工作的。另外请用代码格式贴上代码。 |
|
如果在table column中加一列block先把值读出来是有true/false的,最后一列中的ngif也能正常了,但是我不想要显式的出来block列,只是希望在最后一列actions中根据blocked的值切换button |
请注意组织好语言、代码格式等,问题不可读我也不知道你想说什么。 |
Issue Type:
Version & Environment:
0.6.3
Description:
el-table-column > ng-template中ngIf如果引用了之前column中没出现过的model key总是判断为ngIf="false"
以下例子中的Block/Unblock button无法正常切换
<el-table class="app-list-content-table" *ngIf="companyList" [model]="companyList.elements">
<ng-template #slot let-scope="scope">
<el-checkbox [model]="selection[scope.rowData.id]" (modelChange)="handleRowSelection($event, scope.rowData.id)">
<ng-template #slot let-scope="scope">
<a [routerLink]="['/companies', scope.rowData.id]" routerLinkActive="active">View
<el-button type="text" size="small" *ngIf="scope.rowData?.blocked" (click)="setBlock(scope.rowData.id, false)">Unblock
<el-button type="text" size="small" *ngIf="!scope.rowData?.blocked" (click)="setBlock(scope.rowData.blocked, true)">Block
The text was updated successfully, but these errors were encountered: