编写通用组件
This commit is contained in:
15
src/app/view/admin/components/common-table/data.ts
Normal file
15
src/app/view/admin/components/common-table/data.ts
Normal 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;
|
||||
}[] = []
|
||||
}
|
||||
Reference in New Issue
Block a user