Files
blog-frontEnd/src/app/view/admin/components/common-table/data.ts
2021-03-12 16:11:09 +08:00

26 lines
594 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;
}[] = [];
}