编写通用组件

This commit is contained in:
禾几海
2020-06-30 23:56:16 +08:00
parent c271b1a8cf
commit 781513d8c9
6 changed files with 67 additions and 33 deletions

View File

@@ -0,0 +1,15 @@
export class Data<T> {
fieldName: string;
fieldValue: string;
show: boolean = true;
primaryKey?: boolean = false;
isActionColumns?: boolean = false;
action?: {
name: string,
color?: string,
order?: number,
fontSize?: string,
click: (data: T) => void,
hover?: (data: T) => void | null;
}[] = []
}