公共组件 #18
@@ -45,10 +45,10 @@ const routes: Routes = [
|
||||
loadChildren: () => import('./admin-visitor/admin-visitor.module').then(mod => mod.AdminVisitorModule),
|
||||
// canActivate: [AuthGuard]
|
||||
},
|
||||
// {
|
||||
// path: 'test',
|
||||
// loadChildren: () => import('./test-common-table/test-common-table.module').then(Mod => Mod.TestCommonTableModule)
|
||||
// },
|
||||
{
|
||||
path: 'test',
|
||||
loadChildren: () => import('./test-common-table/test-common-table.module').then(Mod => Mod.TestCommonTableModule)
|
||||
},
|
||||
{
|
||||
path: '**',
|
||||
loadChildren: () => import('./admin-dashboard/admin-dashboard.module').then(mod => mod.AdminDashboardModule),
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<app-common-table [data]="data" [request]="req" cardTitle="文章管理"
|
||||
[template]="{
|
||||
<!--<c-common-table [data]="data" [request]="req" cardTitle="文章管理"
|
||||
[template]="{
|
||||
dislikeCount:{temp:tag},
|
||||
readingNumber:{temp:readingNumber},
|
||||
open:{temp:open},
|
||||
original:{temp:original,param:{true:'原创',false:'转载'}
|
||||
}}">
|
||||
</app-common-table>
|
||||
}}">-->
|
||||
<!--</c-common-table>-->
|
||||
<ng-template #tag let-value="value">
|
||||
<nz-tag [nzColor]="'#87d068'">{{value}}</nz-tag>
|
||||
</ng-template>
|
||||
@@ -21,3 +21,6 @@
|
||||
<ng-template #open let-value="value">
|
||||
<label nz-checkbox nzDisabled [ngModel]="value"></label>
|
||||
</ng-template>
|
||||
|
||||
|
||||
<editable-tag >hhh</editable-tag>
|
||||
|
||||
@@ -5,6 +5,7 @@ import {Router, RouterModule} from '@angular/router';
|
||||
import {CommonTableModule} from '../components/common-table/common-table.module';
|
||||
import {NzCheckboxModule, NzTagModule} from 'ng-zorro-antd';
|
||||
import {FormsModule} from '@angular/forms';
|
||||
import {EditableTagModule} from '../components/editable-tag/editable-tag.module';
|
||||
|
||||
|
||||
@NgModule({
|
||||
@@ -15,7 +16,8 @@ import {FormsModule} from '@angular/forms';
|
||||
CommonTableModule,
|
||||
NzTagModule,
|
||||
NzCheckboxModule,
|
||||
FormsModule
|
||||
FormsModule,
|
||||
EditableTagModule
|
||||
]
|
||||
})
|
||||
export class TestCommonTableModule {
|
||||
|
||||
Reference in New Issue
Block a user