友链添加按钮

This commit is contained in:
禾几海
2020-08-05 22:36:09 +08:00
parent 86378a46f2
commit a81f41e15c
2 changed files with 11 additions and 1 deletions

View File

@@ -4,6 +4,7 @@
[headData]="headData" [headData]="headData"
[template]="{open:{temp:open,param:{true:'可见',false:'不可见'}},delete:{temp:deleteTemp,param:{true:'已删除',false:'未删除'}}}" [template]="{open:{temp:open,param:{true:'可见',false:'不可见'}},delete:{temp:deleteTemp,param:{true:'已删除',false:'未删除'}}}"
> >
<button nz-button (click)="addLink()">添加</button>
</common-table> </common-table>
<ng-template #open let-value="value"> <ng-template #open let-value="value">

View File

@@ -3,7 +3,15 @@ import {CommonModule} from '@angular/common';
import {RouterModule} from '@angular/router'; import {RouterModule} from '@angular/router';
import {AdminLinkComponent} from './admin-link.component'; import {AdminLinkComponent} from './admin-link.component';
import {CommonTableModule} from '../components/common-table/common-table.module'; import {CommonTableModule} from '../components/common-table/common-table.module';
import {NzCheckboxModule, NzFormModule, NzInputModule, NzModalModule, NzSelectModule, NzTagModule} from 'ng-zorro-antd'; import {
NzButtonModule,
NzCheckboxModule,
NzFormModule,
NzInputModule,
NzModalModule,
NzSelectModule,
NzTagModule
} from 'ng-zorro-antd';
import {FormsModule, ReactiveFormsModule} from '@angular/forms'; import {FormsModule, ReactiveFormsModule} from '@angular/forms';
@@ -23,6 +31,7 @@ import {FormsModule, ReactiveFormsModule} from '@angular/forms';
NzInputModule, NzInputModule,
NzSelectModule, NzSelectModule,
NzTagModule, NzTagModule,
NzButtonModule,
] ]
}) })