Files
blog-frontEnd/src/app/view/admin/components/common-table/data.ts
2020-08-28 11:36:42 +08:00

26 lines
592 B
TypeScript

import {TemplateRef} from '@angular/core';
export class Data<T> {
title: string;
fieldValue: string;
show: boolean = true;
primaryKey?: boolean = false;
isActionColumns?: boolean = false;
template?: {
template: TemplateRef<any>,
keymap?: {
[value: string]: string
}
};
// order?: number;
action ?: {
name: string,
color?: string,
order?: number,
fontSize?: string,
needConfirm?: boolean,
click: (data: T) => void,
hover?: (data: T) => void | null;
}[] = []
}