通用组件-TemplateRef应用

This commit is contained in:
禾几海
2020-07-01 13:54:32 +08:00
parent 014a9eebe4
commit 8cc8f8e8d5
7 changed files with 80 additions and 12 deletions

View File

@@ -1,10 +1,18 @@
import {TemplateRef} from '@angular/core';
export class Data<T> {
fieldName: string;
fieldValue: string;
show: boolean = true;
primaryKey?: boolean = false;
isActionColumns?: boolean = false;
action?: {
template?: {
template: TemplateRef<any>,
keymap?: {
[value: string]: string
}
};
action ?: {
name: string,
color?: string,
order?: number,