编写通用组件
This commit is contained in:
@@ -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 {
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user