编写通用组件

This commit is contained in:
禾几海
2020-06-30 18:12:23 +08:00
parent b60688cfd7
commit c271b1a8cf
5 changed files with 76 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
import {Component, Input, OnInit} from '@angular/core';
import {Data} from './data';
@Component({
selector: 'app-common-table',
templateUrl: './common-table.component.html',
styleUrls: ['./common-table.component.less']
})
export class CommonTableComponent<T> implements OnInit {
constructor() {
}
@Input() data: Data<T>[]
ngOnInit(): void {
}
}